{
  "contractVersion": "1.0.0",
  "invariantRegistryDigest": "1e8a1bdd3acc19e59b46653f626347986a50e26c778e94c63bf0e140e5a57332",
  "invariants": {
    "invariants": [
      {
        "category": "common",
        "description": "Non-portable domain paths are relative, traversal-free, and never absolute.",
        "id": "todos.common.relative_path",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "common.relative_path_semantics"
        ],
        "schemaIds": [
          "hasna.todos.task_file.v1",
          "hasna.todos.run_file.v1",
          "hasna.todos.git_commit.v1",
          "hasna.todos.request.task_file_record.v1",
          "hasna.todos.request.run_file_create.v1",
          "hasna.todos.request.git_commit_link.v1"
        ]
      },
      {
        "category": "identity",
        "description": "Identity roles and scopes are unique and administrative audiences carry the administrative role.",
        "id": "todos.identity.context_semantics",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "identity.context_semantics"
        ],
        "schemaIds": [
          "hasna.todos.identity_context.v1"
        ]
      },
      {
        "category": "identity",
        "description": "Identity tenant, audience, scopes, and idempotency satisfy the requested operation.",
        "id": "todos.identity.authorization_binding",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "identity.authorization_binding"
        ],
        "schemaIds": [
          "hasna.todos.identity_context.v1"
        ]
      },
      {
        "category": "authority",
        "description": "A network authority endpoint must be HTTPS; a null endpoint is the on-box installation.",
        "id": "todos.authority.endpoint_https_rule",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "authority.config_semantics",
          "authority.handshake_semantics"
        ],
        "schemaIds": [
          "hasna.todos.authority_config.v1",
          "hasna.todos.authority_handshake.v1"
        ]
      },
      {
        "category": "authority",
        "description": "Authority capability identifiers are unique.",
        "id": "todos.authority.capability_uniqueness",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "authority.config_semantics",
          "authority.handshake_semantics"
        ],
        "schemaIds": [
          "hasna.todos.authority_config.v1",
          "hasna.todos.authority_handshake.v1"
        ]
      },
      {
        "category": "authority",
        "description": "Authority handshakes bind exact current digests and the sorted capability inventory.",
        "id": "todos.authority.canonical_binding",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "authority.canonical_binding",
          "authority.validate_canonical_handshake"
        ],
        "schemaIds": [
          "hasna.todos.authority_handshake.v1"
        ]
      },
      {
        "category": "domain",
        "description": "Task tags are unique and completed tasks carry a completion timestamp.",
        "id": "todos.domain.task_record",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "domain.task_record_semantics"
        ],
        "schemaIds": [
          "hasna.todos.task.v1"
        ]
      },
      {
        "category": "domain",
        "description": "Task status transitions follow the closed lifecycle and terminal states do not reopen.",
        "id": "todos.domain.task_status_transition",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "domain.task_status_transition"
        ],
        "schemaIds": [
          "hasna.todos.task.v1"
        ]
      },
      {
        "category": "domain",
        "description": "Agent role identifiers are unique.",
        "id": "todos.domain.agent_role_uniqueness",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "domain.agent_role_uniqueness"
        ],
        "schemaIds": [
          "hasna.todos.agent.v1"
        ]
      },
      {
        "category": "domain",
        "description": "A dependency cannot point a task at itself.",
        "id": "todos.domain.dependency_self_reference",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "domain.dependency_self_reference"
        ],
        "schemaIds": [
          "hasna.todos.dependency.v1"
        ]
      },
      {
        "category": "domain",
        "description": "Git object identifiers have the exact hexadecimal length required by their algorithm.",
        "id": "todos.domain.git_object_id",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "domain.git_object_id"
        ],
        "schemaIds": [
          "hasna.todos.git_object_id.v1"
        ]
      },
      {
        "category": "response",
        "description": "Every page count equals the exact number of returned items.",
        "id": "todos.response.page_count",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "response.page_count"
        ],
        "schemaIds": [
          "hasna.todos.response.capability_page.v1",
          "hasna.todos.response.task_page.v1",
          "hasna.todos.response.activity_page.v1",
          "hasna.todos.response.comment_page.v1",
          "hasna.todos.response.dependency_page.v1",
          "hasna.todos.response.project_page.v1",
          "hasna.todos.response.task_list_page.v1",
          "hasna.todos.response.plan_page.v1",
          "hasna.todos.response.agent_page.v1",
          "hasna.todos.response.saved_view_page.v1",
          "hasna.todos.response.verification_page.v1",
          "hasna.todos.response.task_file_page.v1",
          "hasna.todos.response.run_page.v1",
          "hasna.todos.response.run_event_page.v1",
          "hasna.todos.response.run_command_page.v1",
          "hasna.todos.response.run_file_page.v1",
          "hasna.todos.response.run_artifact_page.v1",
          "hasna.todos.response.git_commit_page.v1",
          "hasna.todos.response.git_ref_page.v1",
          "hasna.todos.response.projection_page.v1",
          "hasna.todos.response.migration_receipt_page.v1",
          "hasna.todos.response.deletion_record_page.v1",
          "hasna.todos.response.approval_page.v1",
          "hasna.todos.response.task_template_page.v1"
        ]
      },
      {
        "category": "operation",
        "description": "Operation identifiers and surfaces are unique, derived, mode-correct, and semantically complete.",
        "id": "todos.operation.manifest_semantics",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "operation.manifest_semantics"
        ],
        "schemaIds": [
          "hasna.todos.operation_manifest.v1"
        ]
      },
      {
        "category": "operation",
        "description": "Task update requests contain at least one changed field.",
        "id": "todos.operation.task_update_nonempty",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "operation.task_update_nonempty"
        ],
        "schemaIds": [
          "hasna.todos.request.task_update.v1"
        ]
      },
      {
        "category": "operation",
        "description": "Transfer execution checkpoints bind the source, target, bundle, plan, and canonical digests.",
        "id": "todos.operation.transfer_checkpoint_binding",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "operation.transfer_checkpoint_binding"
        ],
        "schemaIds": [
          "hasna.todos.request.transfer_import_execute.v1"
        ]
      },
      {
        "category": "invocation",
        "description": "Operation invocations bind exact current contract and manifest digests.",
        "id": "todos.invocation.canonical_digests",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "invocation.operation_binding",
          "invocation.validate_operation"
        ],
        "schemaIds": [
          "hasna.todos.operation_invocation.v1"
        ]
      },
      {
        "category": "invocation",
        "description": "Invocation authority equals the validated organization and tenant identity.",
        "id": "todos.invocation.authority_identity_binding",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "invocation.operation_binding",
          "invocation.validate_operation"
        ],
        "schemaIds": [
          "hasna.todos.operation_invocation.v1"
        ]
      },
      {
        "category": "invocation",
        "description": "The operation, scopes, idempotency, and typed request all match the manifest.",
        "id": "todos.invocation.operation_scope_request",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "invocation.operation_binding",
          "invocation.validate_operation"
        ],
        "schemaIds": [
          "hasna.todos.operation_invocation.v1"
        ]
      },
      {
        "category": "contract",
        "description": "The descriptor closes over current manifest, capability, schema, invariant, provenance, and generator digests.",
        "id": "todos.contract.digest_closure",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "contract.digest_closure",
          "contract.verify_digest_closure"
        ],
        "schemaIds": [
          "hasna.todos.contract.v1"
        ]
      },
      {
        "category": "transfer",
        "description": "Every section, record, nested reference, projection, closure, attachment, and inventory entry has one source authority.",
        "id": "todos.transfer.source_authority",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "transfer.bundle_owner_binding"
        ],
        "schemaIds": [
          "hasna.todos.transfer_bundle.v1"
        ]
      },
      {
        "category": "transfer",
        "description": "Public transfer validation binds exact current contract and manifest digests.",
        "id": "todos.transfer.canonical_digests",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "transfer.canonical_digests"
        ],
        "schemaIds": [
          "hasna.todos.transfer_bundle.v1"
        ]
      },
      {
        "category": "transfer",
        "description": "Public import execution binds exact current contract and manifest digests.",
        "id": "todos.transfer.execution_canonical_digests",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "transfer.canonical_execution"
        ],
        "schemaIds": [
          "hasna.todos.transfer_import_execution.v1"
        ]
      },
      {
        "category": "transfer",
        "description": "Every section count and digest and the bundle checksum match canonical content.",
        "id": "todos.transfer.section_integrity",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "transfer.integrity"
        ],
        "schemaIds": [
          "hasna.todos.transfer_bundle.v1"
        ]
      },
      {
        "category": "transfer",
        "description": "Portable records exclude raw commands, arguments, paths, credentials, and execution internals.",
        "id": "todos.transfer.classification",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "transfer.integrity"
        ],
        "schemaIds": [
          "hasna.todos.transfer_bundle.v1"
        ]
      },
      {
        "category": "transfer",
        "description": "Every portable record participates in a complete transitive reference closure; projection predecessors resolve by exact owner, kind, id, version, and digest.",
        "id": "todos.transfer.reference_closure",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "transfer.integrity"
        ],
        "schemaIds": [
          "hasna.todos.transfer_bundle.v1"
        ]
      },
      {
        "category": "transfer",
        "description": "Task dependency closure is complete, deterministic, and acyclic.",
        "id": "todos.transfer.dependency_closure",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "transfer.integrity"
        ],
        "schemaIds": [
          "hasna.todos.transfer_bundle.v1"
        ]
      },
      {
        "category": "transfer",
        "description": "Evidence, command output, file, and artifact payloads are represented only by SHA-256 content references.",
        "id": "todos.transfer.attachment_content_addressing",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "transfer.integrity"
        ],
        "schemaIds": [
          "hasna.todos.transfer_bundle.v1"
        ]
      },
      {
        "category": "transfer",
        "description": "Deletion history contains digest-only full-redaction tombstones and no raw payload.",
        "id": "todos.transfer.deletion_redaction",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "transfer.integrity"
        ],
        "schemaIds": [
          "hasna.todos.transfer_bundle.v1"
        ]
      },
      {
        "category": "transfer",
        "description": "Import plans carry a deterministic id plus a content digest binding source and target authorities, canonical digests, bundle content, conflicts, and counts.",
        "id": "todos.transfer.import_plan",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "transfer.import_plan_digest"
        ],
        "schemaIds": [
          "hasna.todos.transfer_import_preview.v1"
        ]
      },
      {
        "category": "transfer",
        "description": "Checkpoints bind source, target, bundle id and digest, import-plan id and digest, contract and manifest digests, and idempotency.",
        "id": "todos.transfer.checkpoint_binding",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "transfer.checkpoint_record"
        ],
        "schemaIds": [
          "hasna.todos.transfer_checkpoint.v1"
        ]
      },
      {
        "category": "transfer",
        "description": "Checkpoint progress advances one canonical section at a time to one terminal state.",
        "id": "todos.transfer.checkpoint_monotonicity",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "transfer.checkpoint_transition"
        ],
        "schemaIds": [
          "hasna.todos.transfer_checkpoint.v1"
        ]
      },
      {
        "category": "transfer",
        "description": "Execution requests and optional checkpoints bind every source, target, digest, plan, bundle, and idempotency field.",
        "id": "todos.transfer.execution_request_binding",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "transfer.execution_request"
        ],
        "schemaIds": [
          "hasna.todos.transfer_import_execution.v1"
        ]
      },
      {
        "category": "transfer",
        "description": "Execution context is exactly uncommitted or committed with one valid receipt; all unknown states fail closed.",
        "id": "todos.transfer.execution_context_closed",
        "jsonSchemaExpressible": true,
        "runtimeValidatorIds": [
          "transfer.execution_context"
        ],
        "schemaIds": [
          "hasna.todos.transfer_execution_context.v1"
        ]
      },
      {
        "category": "transfer",
        "description": "Receipts bind source, target, bundle id and digest, import-plan id and digest, contract and manifest digests, counts, and one terminal checkpoint.",
        "id": "todos.transfer.receipt_binding",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "transfer.receipt_record"
        ],
        "schemaIds": [
          "hasna.todos.migration_receipt.v1"
        ]
      },
      {
        "category": "transfer",
        "description": "Migration receipts form one strict digest-linked chain where each idempotency key has one canonical import tuple and terminal result; exact receipt replay never appends.",
        "id": "todos.transfer.receipt_chain",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "transfer.receipt_chain",
          "transfer.public_receipt_chain"
        ],
        "schemaIds": [
          "hasna.todos.migration_receipt.v1"
        ]
      },
      {
        "category": "transfer",
        "description": "Every public checkpoint, execution, receipt, transition, receipt-chain, and operation-map boundary rejects historical contract or manifest digests; version-neutral foundation, registry, and generated schemas remain internal structural inputs.",
        "id": "todos.transfer.public_canonical_boundaries",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "operation.public_transfer_import_execute_canonical",
          "transfer.public_checkpoint_canonical",
          "transfer.public_receipt_canonical",
          "transfer.public_execution_request_canonical",
          "transfer.public_checkpoint_transition",
          "transfer.public_receipt_chain"
        ],
        "schemaIds": [
          "hasna.todos.request.transfer_import_execute.v1",
          "hasna.todos.response.migration_receipt.v1",
          "hasna.todos.response.migration_receipt_page.v1",
          "hasna.todos.transfer_checkpoint.v1",
          "hasna.todos.transfer_import_execution.v1",
          "hasna.todos.migration_receipt.v1"
        ]
      },
      {
        "category": "transfer",
        "description": "Only an identical committed import replays; conflicts and unknown context reject.",
        "id": "todos.transfer.replay_binding",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "transfer.execution_replay"
        ],
        "schemaIds": [
          "hasna.todos.transfer_import_execution.v1",
          "hasna.todos.transfer_execution_context.v1"
        ]
      },
      {
        "category": "projection",
        "description": "Projection references are opaque identifiers, never paths or URLs.",
        "id": "todos.projection.opaque_refs",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "projection.record_binding"
        ],
        "schemaIds": [
          "hasna.todos.task_to_pr_projection.v1"
        ]
      },
      {
        "category": "projection",
        "description": "All identity, pull-request, proof, and predecessor refs match the projection owner and required kind.",
        "id": "todos.projection.owner_kind_binding",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "projection.record_binding"
        ],
        "schemaIds": [
          "hasna.todos.task_to_pr_projection.v1"
        ]
      },
      {
        "category": "projection",
        "description": "Published, provider-observed, and equality-proof heads are complete and equal to the branch head.",
        "id": "todos.projection.exact_head",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "projection.head_binding"
        ],
        "schemaIds": [
          "hasna.todos.task_to_pr_projection.v1"
        ]
      },
      {
        "category": "projection",
        "description": "Proof references and digests are unique, owner-bound, kind-bound, and tied to the current head.",
        "id": "todos.projection.proof_identity",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "projection.record_binding"
        ],
        "schemaIds": [
          "hasna.todos.task_to_pr_projection.v1"
        ]
      },
      {
        "category": "projection",
        "description": "Projection digests cover canonical content and successors bind exact immediate predecessors.",
        "id": "todos.projection.digest_predecessor",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "projection.record_binding",
          "projection.transition"
        ],
        "schemaIds": [
          "hasna.todos.task_to_pr_projection.v1"
        ]
      },
      {
        "category": "projection",
        "description": "Full histories reject missing links, ABA heads, repeats, substitutions, owner or kind drift, and stale heads.",
        "id": "todos.projection.full_history",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "projection.history"
        ],
        "schemaIds": [
          "hasna.todos.task_to_pr_projection.v1"
        ]
      },
      {
        "category": "artifacts",
        "description": "Checked-in artifacts match canonical regenerated bytes even when checksums are internally recomputed.",
        "id": "todos.artifacts.canonical_bytes",
        "jsonSchemaExpressible": false,
        "runtimeValidatorIds": [
          "artifacts.canonical_bytes"
        ],
        "schemaIds": [
          "hasna.todos.contract.v1"
        ]
      }
    ],
    "runtimeValidationRequired": true,
    "schema": "hasna.todos.invariant_registry.v1",
    "version": "1"
  },
  "manifestVersion": "1",
  "runtimeValidationRequired": true,
  "schema": "hasna.todos.schema_bundle.v1",
  "schemaDigest": "b76e7fcfc885e994f6b7b26251c6ed89adaa71a1baf3e9f495b893bd823da6e7",
  "schemas": {
    "hasna.todos.activity.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema2": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema3": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.activity.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "action": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9_.:-]*$",
          "type": "string"
        },
        "actorRef": {
          "additionalProperties": false,
          "properties": {
            "digest": {
              "$ref": "#/$defs/__schema3"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "owner": {
              "$ref": "#/$defs/__schema1"
            }
          },
          "required": [
            "owner",
            "id",
            "digest"
          ],
          "type": "object"
        },
        "createdAt": {
          "$ref": "#/$defs/__schema2"
        },
        "id": {
          "$ref": "#/$defs/__schema0"
        },
        "occurredAt": {
          "$ref": "#/$defs/__schema2"
        },
        "owner": {
          "$ref": "#/$defs/__schema1"
        },
        "resourceRef": {
          "additionalProperties": false,
          "properties": {
            "digest": {
              "$ref": "#/$defs/__schema3"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "kind": {
              "maxLength": 64,
              "minLength": 1,
              "pattern": "^[a-z][a-z0-9_]*$",
              "type": "string"
            },
            "owner": {
              "$ref": "#/$defs/__schema1"
            }
          },
          "required": [
            "owner",
            "kind",
            "id",
            "digest"
          ],
          "type": "object"
        },
        "summary": {
          "maxLength": 4096,
          "minLength": 1,
          "type": "string"
        },
        "updatedAt": {
          "$ref": "#/$defs/__schema2"
        },
        "version": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        }
      },
      "required": [
        "id",
        "owner",
        "version",
        "createdAt",
        "updatedAt",
        "actorRef",
        "resourceRef",
        "action",
        "summary",
        "occurredAt"
      ],
      "type": "object"
    },
    "hasna.todos.agent.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.agent.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "activeProjectId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        },
        "activeTaskListId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        },
        "createdAt": {
          "$ref": "#/$defs/__schema1"
        },
        "displayName": {
          "maxLength": 256,
          "minLength": 1,
          "type": "string"
        },
        "id": {
          "$ref": "#/$defs/__schema0"
        },
        "lastHeartbeatAt": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema1"
            },
            {
              "type": "null"
            }
          ]
        },
        "owner": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "releasedAt": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema1"
            },
            {
              "type": "null"
            }
          ]
        },
        "roles": {
          "items": {
            "enum": [
              "customer_member",
              "customer_manager",
              "tenant_admin"
            ],
            "type": "string"
          },
          "maxItems": 32,
          "minItems": 1,
          "type": "array"
        },
        "status": {
          "enum": [
            "active",
            "inactive",
            "released"
          ],
          "type": "string"
        },
        "updatedAt": {
          "$ref": "#/$defs/__schema1"
        },
        "version": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        }
      },
      "required": [
        "id",
        "owner",
        "version",
        "createdAt",
        "updatedAt",
        "displayName",
        "status",
        "roles",
        "activeProjectId",
        "activeTaskListId",
        "lastHeartbeatAt",
        "releasedAt"
      ],
      "type": "object",
      "x-hasna-invariants": [
        "todos.domain.agent_role_uniqueness"
      ]
    },
    "hasna.todos.approval.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema2": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema3": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        },
        "__schema4": {
          "additionalProperties": false,
          "properties": {
            "digest": {
              "$ref": "#/$defs/__schema3"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "owner": {
              "$ref": "#/$defs/__schema1"
            }
          },
          "required": [
            "owner",
            "id",
            "digest"
          ],
          "type": "object"
        }
      },
      "$id": "hasna.todos.approval.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "createdAt": {
          "$ref": "#/$defs/__schema2"
        },
        "decidedAt": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema2"
            },
            {
              "type": "null"
            }
          ]
        },
        "decidedBy": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema4"
            },
            {
              "type": "null"
            }
          ]
        },
        "expiresAt": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema2"
            },
            {
              "type": "null"
            }
          ]
        },
        "id": {
          "$ref": "#/$defs/__schema0"
        },
        "owner": {
          "$ref": "#/$defs/__schema1"
        },
        "reason": {
          "maxLength": 4096,
          "minLength": 1,
          "type": "string"
        },
        "requestedAt": {
          "$ref": "#/$defs/__schema2"
        },
        "requestedBy": {
          "$ref": "#/$defs/__schema4"
        },
        "resourceRef": {
          "additionalProperties": false,
          "properties": {
            "digest": {
              "$ref": "#/$defs/__schema3"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "kind": {
              "maxLength": 64,
              "minLength": 1,
              "pattern": "^[a-z][a-z0-9_]*$",
              "type": "string"
            },
            "owner": {
              "$ref": "#/$defs/__schema1"
            }
          },
          "required": [
            "owner",
            "kind",
            "id",
            "digest"
          ],
          "type": "object"
        },
        "status": {
          "enum": [
            "pending",
            "approved",
            "rejected",
            "expired"
          ],
          "type": "string"
        },
        "updatedAt": {
          "$ref": "#/$defs/__schema2"
        },
        "version": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        }
      },
      "required": [
        "id",
        "owner",
        "version",
        "createdAt",
        "updatedAt",
        "resourceRef",
        "status",
        "reason",
        "requestedBy",
        "decidedBy",
        "requestedAt",
        "decidedAt",
        "expiresAt"
      ],
      "type": "object"
    },
    "hasna.todos.authority_config.v1": {
      "$defs": {
        "__schema0": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.authority_config.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "authority": {
          "additionalProperties": false,
          "properties": {
            "endpoint": {
              "anyOf": [
                {
                  "format": "uri",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "id": {
              "maxLength": 128,
              "minLength": 2,
              "pattern": "^[a-z][a-z0-9.-]*$",
              "type": "string"
            }
          },
          "required": [
            "id",
            "endpoint"
          ],
          "type": "object"
        },
        "capabilityIds": {
          "items": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[a-z][a-z0-9-]*$",
            "type": "string"
          },
          "minItems": 1,
          "type": "array"
        },
        "contractDigest": {
          "$ref": "#/$defs/__schema0"
        },
        "contractVersion": {
          "const": "1.0.0",
          "type": "string"
        },
        "manifestDigest": {
          "$ref": "#/$defs/__schema0"
        },
        "manifestVersion": {
          "const": "1",
          "type": "string"
        }
      },
      "required": [
        "authority",
        "contractVersion",
        "contractDigest",
        "manifestVersion",
        "manifestDigest",
        "capabilityIds"
      ],
      "type": "object",
      "x-hasna-invariants": [
        "todos.authority.capability_uniqueness",
        "todos.authority.endpoint_https_rule"
      ]
    },
    "hasna.todos.authority_handshake.v1": {
      "$defs": {
        "__schema0": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.authority_handshake.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "authority": {
          "additionalProperties": false,
          "properties": {
            "endpoint": {
              "anyOf": [
                {
                  "format": "uri",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "id": {
              "maxLength": 128,
              "minLength": 2,
              "pattern": "^[a-z][a-z0-9.-]*$",
              "type": "string"
            }
          },
          "required": [
            "id",
            "endpoint"
          ],
          "type": "object"
        },
        "capabilityIds": {
          "items": {
            "maxLength": 128,
            "minLength": 1,
            "pattern": "^[a-z][a-z0-9-]*$",
            "type": "string"
          },
          "minItems": 1,
          "type": "array"
        },
        "contractDigest": {
          "$ref": "#/$defs/__schema0"
        },
        "contractVersion": {
          "const": "1.0.0",
          "type": "string"
        },
        "issuedAt": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "manifestDigest": {
          "$ref": "#/$defs/__schema0"
        },
        "manifestVersion": {
          "const": "1",
          "type": "string"
        }
      },
      "required": [
        "authority",
        "contractVersion",
        "contractDigest",
        "manifestVersion",
        "manifestDigest",
        "capabilityIds",
        "issuedAt"
      ],
      "type": "object",
      "x-hasna-invariants": [
        "todos.authority.canonical_binding",
        "todos.authority.capability_uniqueness",
        "todos.authority.endpoint_https_rule"
      ]
    },
    "hasna.todos.capability.v1": {
      "$id": "hasna.todos.capability.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "audiences": {
          "items": {
            "enum": [
              "customer",
              "tenant_admin"
            ],
            "type": "string"
          },
          "minItems": 1,
          "type": "array"
        },
        "availability": {
          "enum": [
            "core",
            "gated"
          ],
          "type": "string"
        },
        "id": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9-]*$",
          "type": "string"
        },
        "operationIds": {
          "items": {
            "pattern": "^todos\\.[a-z0-9_]+(?:\\.[a-z0-9_]+)+$",
            "type": "string"
          },
          "minItems": 1,
          "type": "array"
        }
      },
      "required": [
        "id",
        "availability",
        "operationIds",
        "audiences"
      ],
      "type": "object"
    },
    "hasna.todos.capability_manifest.v1": {
      "$id": "hasna.todos.capability_manifest.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "capabilities": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "audiences": {
                "items": {
                  "enum": [
                    "customer",
                    "tenant_admin"
                  ],
                  "type": "string"
                },
                "minItems": 1,
                "type": "array"
              },
              "availability": {
                "enum": [
                  "core",
                  "gated"
                ],
                "type": "string"
              },
              "id": {
                "maxLength": 128,
                "minLength": 1,
                "pattern": "^[a-z][a-z0-9-]*$",
                "type": "string"
              },
              "operationIds": {
                "items": {
                  "pattern": "^todos\\.[a-z0-9_]+(?:\\.[a-z0-9_]+)+$",
                  "type": "string"
                },
                "minItems": 1,
                "type": "array"
              }
            },
            "required": [
              "id",
              "availability",
              "operationIds",
              "audiences"
            ],
            "type": "object"
          },
          "minItems": 1,
          "type": "array"
        },
        "manifestDigest": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        },
        "schema": {
          "const": "hasna.todos.capability_manifest.v1",
          "type": "string"
        },
        "version": {
          "const": "1",
          "type": "string"
        }
      },
      "required": [
        "schema",
        "version",
        "manifestDigest",
        "capabilities"
      ],
      "type": "object"
    },
    "hasna.todos.comment.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema2": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.comment.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "authorRef": {
          "additionalProperties": false,
          "properties": {
            "digest": {
              "pattern": "^[a-f0-9]{64}$",
              "type": "string"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "owner": {
              "$ref": "#/$defs/__schema1"
            }
          },
          "required": [
            "owner",
            "id",
            "digest"
          ],
          "type": "object"
        },
        "content": {
          "maxLength": 100000,
          "minLength": 1,
          "type": "string"
        },
        "createdAt": {
          "$ref": "#/$defs/__schema2"
        },
        "id": {
          "$ref": "#/$defs/__schema0"
        },
        "kind": {
          "enum": [
            "comment",
            "progress",
            "note"
          ],
          "type": "string"
        },
        "owner": {
          "$ref": "#/$defs/__schema1"
        },
        "progressPercent": {
          "anyOf": [
            {
              "maximum": 100,
              "minimum": 0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "taskId": {
          "$ref": "#/$defs/__schema0"
        },
        "updatedAt": {
          "$ref": "#/$defs/__schema2"
        },
        "version": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        }
      },
      "required": [
        "id",
        "owner",
        "version",
        "createdAt",
        "updatedAt",
        "taskId",
        "authorRef",
        "kind",
        "content",
        "progressPercent"
      ],
      "type": "object"
    },
    "hasna.todos.contract.v1": {
      "$defs": {
        "__schema0": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        },
        "__schema1": {
          "additionalProperties": false,
          "properties": {
            "commitSha": {
              "pattern": "^[a-f0-9]{40}$",
              "type": "string"
            },
            "repository": {
              "maxLength": 160,
              "minLength": 1,
              "type": "string"
            },
            "role": {
              "enum": [
                "contract_base",
                "open_todos_evidence",
                "platform_todos_evidence",
                "e_00115_projection_evidence"
              ],
              "type": "string"
            }
          },
          "required": [
            "repository",
            "commitSha",
            "role"
          ],
          "type": "object"
        }
      },
      "$id": "hasna.todos.contract.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "authorityInvariant": {
          "additionalProperties": false,
          "properties": {
            "count": {
              "const": 1,
              "type": "number"
            }
          },
          "required": [
            "count"
          ],
          "type": "object"
        },
        "capabilityManifestDigest": {
          "$ref": "#/$defs/__schema0"
        },
        "contractVersion": {
          "const": "1.0.0",
          "type": "string"
        },
        "generatorIdentityDigest": {
          "$ref": "#/$defs/__schema0"
        },
        "invariantRegistryDigest": {
          "$ref": "#/$defs/__schema0"
        },
        "manifestDigest": {
          "$ref": "#/$defs/__schema0"
        },
        "manifestVersion": {
          "const": "1",
          "type": "string"
        },
        "namespace": {
          "const": "hasna.todos",
          "type": "string"
        },
        "provenance": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "hasna.todos.contract_provenance.v1",
              "type": "string"
            },
            "sourceFreeze": {
              "additionalProperties": false,
              "properties": {
                "contracts": {
                  "$ref": "#/$defs/__schema1"
                },
                "e00115": {
                  "$ref": "#/$defs/__schema1"
                },
                "openTodos": {
                  "$ref": "#/$defs/__schema1"
                },
                "platformTodos": {
                  "$ref": "#/$defs/__schema1"
                }
              },
              "required": [
                "contracts",
                "openTodos",
                "platformTodos",
                "e00115"
              ],
              "type": "object"
            },
            "surfaceMappings": {
              "additionalProperties": false,
              "properties": {
                "evidenceUse": {
                  "const": "design_input_only",
                  "type": "string"
                },
                "localTopologyHttpSurface": {
                  "type": "null"
                },
                "operatorAudienceIncluded": {
                  "const": false,
                  "type": "boolean"
                },
                "producerImplementationStatus": {
                  "const": "not_attested",
                  "type": "string"
                },
                "sharedHttpPrefix": {
                  "const": "/v1",
                  "type": "string"
                },
                "status": {
                  "const": "required_target",
                  "type": "string"
                }
              },
              "required": [
                "status",
                "producerImplementationStatus",
                "evidenceUse",
                "sharedHttpPrefix",
                "localTopologyHttpSurface",
                "operatorAudienceIncluded"
              ],
              "type": "object"
            }
          },
          "required": [
            "schema",
            "sourceFreeze",
            "surfaceMappings"
          ],
          "type": "object"
        },
        "provenanceDigest": {
          "$ref": "#/$defs/__schema0"
        },
        "publicSubpath": {
          "const": "@hasna/contracts/todos",
          "type": "string"
        },
        "rootExported": {
          "const": false,
          "type": "boolean"
        },
        "schema": {
          "const": "hasna.todos.contract.v1",
          "type": "string"
        },
        "schemaBundleDigest": {
          "$ref": "#/$defs/__schema0"
        }
      },
      "required": [
        "schema",
        "namespace",
        "contractVersion",
        "manifestVersion",
        "manifestDigest",
        "capabilityManifestDigest",
        "schemaBundleDigest",
        "invariantRegistryDigest",
        "provenanceDigest",
        "generatorIdentityDigest",
        "publicSubpath",
        "rootExported",
        "authorityInvariant",
        "provenance"
      ],
      "type": "object",
      "x-hasna-invariants": [
        "todos.artifacts.canonical_bytes",
        "todos.contract.digest_closure"
      ]
    },
    "hasna.todos.contract_provenance.v1": {
      "$defs": {
        "__schema0": {
          "additionalProperties": false,
          "properties": {
            "commitSha": {
              "pattern": "^[a-f0-9]{40}$",
              "type": "string"
            },
            "repository": {
              "maxLength": 160,
              "minLength": 1,
              "type": "string"
            },
            "role": {
              "enum": [
                "contract_base",
                "open_todos_evidence",
                "platform_todos_evidence",
                "e_00115_projection_evidence"
              ],
              "type": "string"
            }
          },
          "required": [
            "repository",
            "commitSha",
            "role"
          ],
          "type": "object"
        }
      },
      "$id": "hasna.todos.contract_provenance.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "schema": {
          "const": "hasna.todos.contract_provenance.v1",
          "type": "string"
        },
        "sourceFreeze": {
          "additionalProperties": false,
          "properties": {
            "contracts": {
              "$ref": "#/$defs/__schema0"
            },
            "e00115": {
              "$ref": "#/$defs/__schema0"
            },
            "openTodos": {
              "$ref": "#/$defs/__schema0"
            },
            "platformTodos": {
              "$ref": "#/$defs/__schema0"
            }
          },
          "required": [
            "contracts",
            "openTodos",
            "platformTodos",
            "e00115"
          ],
          "type": "object"
        },
        "surfaceMappings": {
          "additionalProperties": false,
          "properties": {
            "evidenceUse": {
              "const": "design_input_only",
              "type": "string"
            },
            "localTopologyHttpSurface": {
              "type": "null"
            },
            "operatorAudienceIncluded": {
              "const": false,
              "type": "boolean"
            },
            "producerImplementationStatus": {
              "const": "not_attested",
              "type": "string"
            },
            "sharedHttpPrefix": {
              "const": "/v1",
              "type": "string"
            },
            "status": {
              "const": "required_target",
              "type": "string"
            }
          },
          "required": [
            "status",
            "producerImplementationStatus",
            "evidenceUse",
            "sharedHttpPrefix",
            "localTopologyHttpSurface",
            "operatorAudienceIncluded"
          ],
          "type": "object"
        }
      },
      "required": [
        "schema",
        "sourceFreeze",
        "surfaceMappings"
      ],
      "type": "object"
    },
    "hasna.todos.deletion_record.v1": {
      "$defs": {
        "__schema0": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.deletion_record.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "deletedAt": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "entityIdDigest": {
          "$ref": "#/$defs/__schema0"
        },
        "entityKind": {
          "maxLength": 64,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9_]*$",
          "type": "string"
        },
        "id": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "owner": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "priorRecordDigest": {
          "$ref": "#/$defs/__schema0"
        },
        "reasonCode": {
          "maxLength": 128,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9_]*$",
          "type": "string"
        },
        "redaction": {
          "const": "full",
          "type": "string"
        },
        "tombstoneVersion": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        }
      },
      "required": [
        "id",
        "owner",
        "entityKind",
        "entityIdDigest",
        "priorRecordDigest",
        "tombstoneVersion",
        "redaction",
        "reasonCode",
        "deletedAt"
      ],
      "type": "object"
    },
    "hasna.todos.dependency.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.dependency.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "createdAt": {
          "$ref": "#/$defs/__schema1"
        },
        "id": {
          "$ref": "#/$defs/__schema0"
        },
        "kind": {
          "enum": [
            "requires",
            "blocks"
          ],
          "type": "string"
        },
        "owner": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "sourceTaskId": {
          "$ref": "#/$defs/__schema0"
        },
        "targetTaskId": {
          "$ref": "#/$defs/__schema0"
        },
        "updatedAt": {
          "$ref": "#/$defs/__schema1"
        },
        "version": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        }
      },
      "required": [
        "id",
        "owner",
        "version",
        "createdAt",
        "updatedAt",
        "sourceTaskId",
        "targetTaskId",
        "kind"
      ],
      "type": "object",
      "x-hasna-invariants": [
        "todos.domain.dependency_self_reference"
      ]
    },
    "hasna.todos.error.v1": {
      "$defs": {
        "__schema0": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.error.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "code": {
          "enum": [
            "TODOS_INVALID_INPUT",
            "TODOS_AUTHENTICATION_FAILED",
            "TODOS_SCOPE_REQUIRED",
            "TODOS_TENANT_MISMATCH",
            "TODOS_ACCESS_DENIED",
            "TODOS_NOT_FOUND",
            "TODOS_AMBIGUOUS_REFERENCE",
            "TODOS_VERSION_CONFLICT",
            "TODOS_RESOURCE_CONFLICT",
            "TODOS_LOCK_CONFLICT",
            "TODOS_PRECONDITION_FAILED",
            "TODOS_APPROVAL_REQUIRED",
            "TODOS_CAPABILITY_REQUIRED",
            "TODOS_OPERATION_UNSUPPORTED",
            "TODOS_IDEMPOTENCY_REQUIRED",
            "TODOS_IDEMPOTENCY_CONFLICT",
            "TODOS_RATE_LIMITED",
            "TODOS_QUOTA_EXCEEDED",
            "TODOS_UPGRADE_REQUIRED",
            "TODOS_AUTHORITY_MISMATCH",
            "TODOS_AUTHORITY_UNAVAILABLE",
            "TODOS_INTERNAL",
            "TODOS_TRANSFER_INVALID",
            "TODOS_TRANSFER_CHECKSUM_MISMATCH",
            "TODOS_TRANSFER_REFERENCE_MISSING",
            "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
          ],
          "type": "string"
        },
        "details": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "actual": {
                "$ref": "#/$defs/__schema0"
              },
              "expected": {
                "$ref": "#/$defs/__schema0"
              },
              "field": {
                "anyOf": [
                  {
                    "maxLength": 256,
                    "minLength": 1,
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "reason": {
                "maxLength": 1024,
                "minLength": 1,
                "type": "string"
              }
            },
            "required": [
              "field",
              "reason"
            ],
            "type": "object"
          },
          "maxItems": 100,
          "type": "array"
        },
        "message": {
          "maxLength": 2048,
          "minLength": 1,
          "type": "string"
        },
        "retryable": {
          "type": "boolean"
        }
      },
      "required": [
        "code",
        "message",
        "retryable",
        "details"
      ],
      "type": "object"
    },
    "hasna.todos.external_owner_ref.v1": {
      "$id": "hasna.todos.external_owner_ref.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "digest": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        },
        "id": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "owner": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        }
      },
      "required": [
        "owner",
        "id",
        "digest"
      ],
      "type": "object"
    },
    "hasna.todos.git_commit.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema2": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema3": {
          "additionalProperties": false,
          "properties": {
            "digest": {
              "pattern": "^[a-f0-9]{64}$",
              "type": "string"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "owner": {
              "$ref": "#/$defs/__schema1"
            }
          },
          "required": [
            "owner",
            "id",
            "digest"
          ],
          "type": "object"
        }
      },
      "$id": "hasna.todos.git_commit.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "authorRef": {
          "$ref": "#/$defs/__schema3"
        },
        "changedFiles": {
          "items": {
            "maxLength": 1024,
            "minLength": 1,
            "type": "string"
          },
          "maxItems": 50000,
          "type": "array"
        },
        "committedAt": {
          "$ref": "#/$defs/__schema2"
        },
        "createdAt": {
          "$ref": "#/$defs/__schema2"
        },
        "id": {
          "$ref": "#/$defs/__schema0"
        },
        "message": {
          "maxLength": 20000,
          "minLength": 1,
          "type": "string"
        },
        "objectId": {
          "additionalProperties": false,
          "properties": {
            "algorithm": {
              "enum": [
                "sha1",
                "sha256"
              ],
              "type": "string"
            },
            "value": {
              "pattern": "^[a-f0-9]+$",
              "type": "string"
            }
          },
          "required": [
            "algorithm",
            "value"
          ],
          "type": "object"
        },
        "owner": {
          "$ref": "#/$defs/__schema1"
        },
        "repositoryRef": {
          "$ref": "#/$defs/__schema3"
        },
        "updatedAt": {
          "$ref": "#/$defs/__schema2"
        },
        "version": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        }
      },
      "required": [
        "id",
        "owner",
        "version",
        "createdAt",
        "updatedAt",
        "repositoryRef",
        "objectId",
        "message",
        "authorRef",
        "committedAt",
        "changedFiles"
      ],
      "type": "object",
      "x-hasna-invariants": [
        "todos.common.relative_path"
      ]
    },
    "hasna.todos.git_object_id.v1": {
      "$id": "hasna.todos.git_object_id.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "algorithm": {
          "enum": [
            "sha1",
            "sha256"
          ],
          "type": "string"
        },
        "value": {
          "pattern": "^[a-f0-9]+$",
          "type": "string"
        }
      },
      "required": [
        "algorithm",
        "value"
      ],
      "type": "object",
      "x-hasna-invariants": [
        "todos.domain.git_object_id"
      ]
    },
    "hasna.todos.git_ref.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema2": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.git_ref.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "createdAt": {
          "$ref": "#/$defs/__schema2"
        },
        "id": {
          "$ref": "#/$defs/__schema0"
        },
        "name": {
          "maxLength": 512,
          "minLength": 1,
          "type": "string"
        },
        "owner": {
          "$ref": "#/$defs/__schema1"
        },
        "providerObservedAt": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema2"
            },
            {
              "type": "null"
            }
          ]
        },
        "published": {
          "type": "boolean"
        },
        "repositoryRef": {
          "additionalProperties": false,
          "properties": {
            "digest": {
              "pattern": "^[a-f0-9]{64}$",
              "type": "string"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "owner": {
              "$ref": "#/$defs/__schema1"
            }
          },
          "required": [
            "owner",
            "id",
            "digest"
          ],
          "type": "object"
        },
        "target": {
          "additionalProperties": false,
          "properties": {
            "algorithm": {
              "enum": [
                "sha1",
                "sha256"
              ],
              "type": "string"
            },
            "value": {
              "pattern": "^[a-f0-9]+$",
              "type": "string"
            }
          },
          "required": [
            "algorithm",
            "value"
          ],
          "type": "object"
        },
        "type": {
          "enum": [
            "branch",
            "tag",
            "pull_request"
          ],
          "type": "string"
        },
        "updatedAt": {
          "$ref": "#/$defs/__schema2"
        },
        "version": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        }
      },
      "required": [
        "id",
        "owner",
        "version",
        "createdAt",
        "updatedAt",
        "repositoryRef",
        "type",
        "name",
        "target",
        "published",
        "providerObservedAt"
      ],
      "type": "object"
    },
    "hasna.todos.identity_context.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema1": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.identity_context.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "agentId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema1"
            },
            {
              "type": "null"
            }
          ]
        },
        "audience": {
          "enum": [
            "customer",
            "tenant_admin"
          ],
          "type": "string"
        },
        "idempotencyKey": {
          "anyOf": [
            {
              "maxLength": 160,
              "minLength": 8,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "issuer": {
          "maxLength": 256,
          "minLength": 1,
          "type": "string"
        },
        "keyId": {
          "$ref": "#/$defs/__schema1"
        },
        "organizationId": {
          "$ref": "#/$defs/__schema0"
        },
        "projectId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema1"
            },
            {
              "type": "null"
            }
          ]
        },
        "requestId": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "roles": {
          "items": {
            "enum": [
              "customer_member",
              "customer_manager",
              "tenant_admin"
            ],
            "type": "string"
          },
          "maxItems": 32,
          "minItems": 1,
          "type": "array"
        },
        "scopes": {
          "items": {
            "maxLength": 160,
            "minLength": 1,
            "pattern": "^todos:[a-z0-9_*:-]+$",
            "type": "string"
          },
          "maxItems": 256,
          "minItems": 1,
          "type": "array"
        },
        "sessionId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema1"
            },
            {
              "type": "null"
            }
          ]
        },
        "subject": {
          "maxLength": 256,
          "minLength": 1,
          "type": "string"
        },
        "taskListId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema1"
            },
            {
              "type": "null"
            }
          ]
        },
        "tenantId": {
          "$ref": "#/$defs/__schema0"
        },
        "tokenId": {
          "$ref": "#/$defs/__schema1"
        }
      },
      "required": [
        "issuer",
        "audience",
        "subject",
        "organizationId",
        "tenantId",
        "roles",
        "scopes",
        "keyId",
        "tokenId",
        "requestId",
        "agentId",
        "sessionId",
        "projectId",
        "taskListId",
        "idempotencyKey"
      ],
      "type": "object",
      "x-hasna-invariants": [
        "todos.identity.authorization_binding",
        "todos.identity.context_semantics"
      ]
    },
    "hasna.todos.migration_receipt.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        },
        "__schema2": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema3": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema4": {
          "enum": [
            "projects",
            "task_lists",
            "plans",
            "tasks",
            "comments",
            "dependencies",
            "activities",
            "verification_evidence",
            "task_files",
            "runs",
            "run_events",
            "run_commands",
            "run_files",
            "run_artifacts",
            "git_commits",
            "git_refs",
            "traceability",
            "task_to_pr_projections",
            "saved_views",
            "task_templates",
            "approvals",
            "deletion_records"
          ],
          "type": "string"
        }
      },
      "$id": "hasna.todos.migration_receipt.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "bundleChecksum": {
          "$ref": "#/$defs/__schema1"
        },
        "bundleId": {
          "$ref": "#/$defs/__schema0"
        },
        "checkpoint": {
          "additionalProperties": false,
          "properties": {
            "bundleChecksum": {
              "$ref": "#/$defs/__schema1"
            },
            "bundleId": {
              "$ref": "#/$defs/__schema0"
            },
            "completedSections": {
              "items": {
                "$ref": "#/$defs/__schema4"
              },
              "type": "array"
            },
            "contractDigest": {
              "$ref": "#/$defs/__schema1"
            },
            "digest": {
              "$ref": "#/$defs/__schema1"
            },
            "idempotencyKey": {
              "$ref": "#/$defs/__schema3"
            },
            "importPlanDigest": {
              "$ref": "#/$defs/__schema1"
            },
            "importPlanId": {
              "$ref": "#/$defs/__schema0"
            },
            "manifestDigest": {
              "$ref": "#/$defs/__schema1"
            },
            "nextSection": {
              "anyOf": [
                {
                  "$ref": "#/$defs/__schema4"
                },
                {
                  "type": "null"
                }
              ]
            },
            "schema": {
              "const": "hasna.todos.transfer_checkpoint.v1",
              "type": "string"
            },
            "sequence": {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer"
            },
            "sourceAuthorityId": {
              "$ref": "#/$defs/__schema2"
            },
            "state": {
              "enum": [
                "pending",
                "interrupted",
                "committed"
              ],
              "type": "string"
            },
            "targetAuthorityId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "schema",
            "sourceAuthorityId",
            "bundleId",
            "bundleChecksum",
            "importPlanId",
            "importPlanDigest",
            "contractDigest",
            "manifestDigest",
            "targetAuthorityId",
            "idempotencyKey",
            "sequence",
            "completedSections",
            "nextSection",
            "state",
            "digest"
          ],
          "type": "object"
        },
        "committedAt": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "contractDigest": {
          "$ref": "#/$defs/__schema1"
        },
        "id": {
          "$ref": "#/$defs/__schema0"
        },
        "idempotencyKey": {
          "$ref": "#/$defs/__schema3"
        },
        "importPlanDigest": {
          "$ref": "#/$defs/__schema1"
        },
        "importPlanId": {
          "$ref": "#/$defs/__schema0"
        },
        "importedCounts": {
          "additionalProperties": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "propertyNames": {
            "type": "string"
          },
          "type": "object"
        },
        "manifestDigest": {
          "$ref": "#/$defs/__schema1"
        },
        "previousReceiptDigest": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema1"
            },
            {
              "type": "null"
            }
          ]
        },
        "receiptDigest": {
          "$ref": "#/$defs/__schema1"
        },
        "receiptSequence": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        },
        "schema": {
          "const": "hasna.todos.migration_receipt.v1",
          "type": "string"
        },
        "sourceAuthorityId": {
          "$ref": "#/$defs/__schema2"
        },
        "status": {
          "const": "committed",
          "type": "string"
        },
        "targetAuthorityId": {
          "$ref": "#/$defs/__schema2"
        }
      },
      "required": [
        "schema",
        "id",
        "receiptSequence",
        "previousReceiptDigest",
        "sourceAuthorityId",
        "targetAuthorityId",
        "bundleId",
        "bundleChecksum",
        "importPlanId",
        "importPlanDigest",
        "contractDigest",
        "manifestDigest",
        "idempotencyKey",
        "status",
        "importedCounts",
        "checkpoint",
        "committedAt",
        "receiptDigest"
      ],
      "type": "object",
      "x-hasna-invariants": [
        "todos.transfer.public_canonical_boundaries",
        "todos.transfer.receipt_binding",
        "todos.transfer.receipt_chain"
      ]
    },
    "hasna.todos.mutation_receipt.v1": {
      "$id": "hasna.todos.mutation_receipt.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "changed": {
          "type": "boolean"
        },
        "operationId": {
          "pattern": "^todos\\.[a-z0-9_]+(?:\\.[a-z0-9_]+)+$",
          "type": "string"
        },
        "replayed": {
          "type": "boolean"
        },
        "resourceId": {
          "maxLength": 160,
          "minLength": 1,
          "type": "string"
        },
        "version": {
          "anyOf": [
            {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "operationId",
        "resourceId",
        "changed",
        "replayed",
        "version"
      ],
      "type": "object"
    },
    "hasna.todos.operation_invocation.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema1": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        },
        "__schema2": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.operation_invocation.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "authorityId": {
          "$ref": "#/$defs/__schema0"
        },
        "contractDigest": {
          "$ref": "#/$defs/__schema1"
        },
        "identity": {
          "additionalProperties": false,
          "properties": {
            "agentId": {
              "anyOf": [
                {
                  "$ref": "#/$defs/__schema2"
                },
                {
                  "type": "null"
                }
              ]
            },
            "audience": {
              "enum": [
                "customer",
                "tenant_admin"
              ],
              "type": "string"
            },
            "idempotencyKey": {
              "anyOf": [
                {
                  "maxLength": 160,
                  "minLength": 8,
                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "issuer": {
              "maxLength": 256,
              "minLength": 1,
              "type": "string"
            },
            "keyId": {
              "$ref": "#/$defs/__schema2"
            },
            "organizationId": {
              "$ref": "#/$defs/__schema0"
            },
            "projectId": {
              "anyOf": [
                {
                  "$ref": "#/$defs/__schema2"
                },
                {
                  "type": "null"
                }
              ]
            },
            "requestId": {
              "maxLength": 160,
              "minLength": 8,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
              "type": "string"
            },
            "roles": {
              "items": {
                "enum": [
                  "customer_member",
                  "customer_manager",
                  "tenant_admin"
                ],
                "type": "string"
              },
              "maxItems": 32,
              "minItems": 1,
              "type": "array"
            },
            "scopes": {
              "items": {
                "maxLength": 160,
                "minLength": 1,
                "pattern": "^todos:[a-z0-9_*:-]+$",
                "type": "string"
              },
              "maxItems": 256,
              "minItems": 1,
              "type": "array"
            },
            "sessionId": {
              "anyOf": [
                {
                  "$ref": "#/$defs/__schema2"
                },
                {
                  "type": "null"
                }
              ]
            },
            "subject": {
              "maxLength": 256,
              "minLength": 1,
              "type": "string"
            },
            "taskListId": {
              "anyOf": [
                {
                  "$ref": "#/$defs/__schema2"
                },
                {
                  "type": "null"
                }
              ]
            },
            "tenantId": {
              "$ref": "#/$defs/__schema0"
            },
            "tokenId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "issuer",
            "audience",
            "subject",
            "organizationId",
            "tenantId",
            "roles",
            "scopes",
            "keyId",
            "tokenId",
            "requestId",
            "agentId",
            "sessionId",
            "projectId",
            "taskListId",
            "idempotencyKey"
          ],
          "type": "object"
        },
        "manifestDigest": {
          "$ref": "#/$defs/__schema1"
        },
        "operationId": {
          "pattern": "^todos\\.[a-z0-9_]+(?:\\.[a-z0-9_]+)+$",
          "type": "string"
        },
        "request": {}
      },
      "required": [
        "authorityId",
        "contractDigest",
        "manifestDigest",
        "operationId",
        "identity",
        "request"
      ],
      "type": "object",
      "x-hasna-invariants": [
        "todos.invocation.authority_identity_binding",
        "todos.invocation.canonical_digests",
        "todos.invocation.operation_scope_request"
      ]
    },
    "hasna.todos.operation_manifest.v1": {
      "$defs": {
        "__schema0": {
          "additionalProperties": false,
          "properties": {
            "commitSha": {
              "pattern": "^[a-f0-9]{40}$",
              "type": "string"
            },
            "repository": {
              "maxLength": 160,
              "minLength": 1,
              "type": "string"
            },
            "role": {
              "enum": [
                "contract_base",
                "open_todos_evidence",
                "platform_todos_evidence",
                "e_00115_projection_evidence"
              ],
              "type": "string"
            }
          },
          "required": [
            "repository",
            "commitSha",
            "role"
          ],
          "type": "object"
        },
        "__schema1": {
          "const": "required_target",
          "type": "string"
        },
        "__schema2": {
          "const": "not_attested",
          "type": "string"
        }
      },
      "$id": "hasna.todos.operation_manifest.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "operations": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "action": {
                "maxLength": 96,
                "minLength": 1,
                "pattern": "^[a-z][a-z0-9_]*$",
                "type": "string"
              },
              "audience": {
                "enum": [
                  "customer",
                  "tenant_admin"
                ],
                "type": "string"
              },
              "availability": {
                "enum": [
                  "core",
                  "gated"
                ],
                "type": "string"
              },
              "capabilityId": {
                "enum": [
                  "authority",
                  "tasks",
                  "projects",
                  "task-lists",
                  "plans",
                  "agents",
                  "comments",
                  "dependencies",
                  "activity",
                  "search",
                  "saved-views",
                  "verification-evidence",
                  "task-files",
                  "runs",
                  "git-traceability",
                  "task-to-pr-projection",
                  "transfer",
                  "deletion-history",
                  "cursor-pagination",
                  "idempotency",
                  "optimistic-concurrency",
                  "typed-errors",
                  "approvals",
                  "task-templates",
                  "reports"
                ],
                "type": "string"
              },
              "classification": {
                "enum": [
                  "shared_customer",
                  "local_topology_only"
                ],
                "type": "string"
              },
              "concurrency": {
                "enum": [
                  "none",
                  "version",
                  "lock",
                  "precondition"
                ],
                "type": "string"
              },
              "concurrencyFields": {
                "items": {
                  "pattern": "^[a-z][A-Za-z0-9]*$",
                  "type": "string"
                },
                "maxItems": 8,
                "type": "array"
              },
              "errorSchemaId": {
                "const": "hasna.todos.error.v1",
                "type": "string"
              },
              "id": {
                "pattern": "^todos\\.[a-z0-9_]+(?:\\.[a-z0-9_]+)+$",
                "type": "string"
              },
              "idempotency": {
                "enum": [
                  "none",
                  "optional",
                  "required"
                ],
                "type": "string"
              },
              "mutability": {
                "enum": [
                  "read",
                  "write",
                  "delete",
                  "topology"
                ],
                "type": "string"
              },
              "pagination": {
                "enum": [
                  "none",
                  "cursor"
                ],
                "type": "string"
              },
              "requestSchemaId": {
                "minLength": 1,
                "type": "string"
              },
              "requiredScopes": {
                "items": {
                  "pattern": "^todos:[a-z0-9-]+:(?:read|write|admin)$",
                  "type": "string"
                },
                "minItems": 1,
                "type": "array"
              },
              "resource": {
                "maxLength": 96,
                "minLength": 1,
                "pattern": "^[a-z][a-z0-9_]*$",
                "type": "string"
              },
              "responseSchemaId": {
                "minLength": 1,
                "type": "string"
              },
              "surfaces": {
                "additionalProperties": false,
                "properties": {
                  "cli": {
                    "additionalProperties": false,
                    "properties": {
                      "command": {
                        "maxLength": 256,
                        "minLength": 1,
                        "type": "string"
                      },
                      "producerImplementationStatus": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "status": {
                        "$ref": "#/$defs/__schema1"
                      }
                    },
                    "required": [
                      "command",
                      "status",
                      "producerImplementationStatus"
                    ],
                    "type": "object"
                  },
                  "http": {
                    "anyOf": [
                      {
                        "additionalProperties": false,
                        "properties": {
                          "method": {
                            "enum": [
                              "GET",
                              "POST",
                              "PUT",
                              "PATCH",
                              "DELETE"
                            ],
                            "type": "string"
                          },
                          "path": {
                            "maxLength": 512,
                            "minLength": 1,
                            "type": "string"
                          },
                          "producerImplementationStatus": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "status": {
                            "$ref": "#/$defs/__schema1"
                          }
                        },
                        "required": [
                          "method",
                          "path",
                          "status",
                          "producerImplementationStatus"
                        ],
                        "type": "object"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "mcp": {
                    "additionalProperties": false,
                    "properties": {
                      "producerImplementationStatus": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "status": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "tool": {
                        "maxLength": 256,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9_]*$",
                        "type": "string"
                      }
                    },
                    "required": [
                      "tool",
                      "status",
                      "producerImplementationStatus"
                    ],
                    "type": "object"
                  },
                  "sdk": {
                    "additionalProperties": false,
                    "properties": {
                      "method": {
                        "maxLength": 256,
                        "minLength": 1,
                        "pattern": "^[a-z][A-Za-z0-9.]*$",
                        "type": "string"
                      },
                      "producerImplementationStatus": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "status": {
                        "$ref": "#/$defs/__schema1"
                      }
                    },
                    "required": [
                      "method",
                      "status",
                      "producerImplementationStatus"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "cli",
                  "mcp",
                  "sdk",
                  "http"
                ],
                "type": "object"
              },
              "transition": {
                "anyOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "machine": {
                        "const": "task_status",
                        "type": "string"
                      },
                      "targetStatus": {
                        "enum": [
                          "in_progress",
                          "completed",
                          "failed"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "machine",
                      "targetStatus"
                    ],
                    "type": "object"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "id",
              "resource",
              "action",
              "classification",
              "audience",
              "capabilityId",
              "availability",
              "mutability",
              "idempotency",
              "concurrency",
              "concurrencyFields",
              "transition",
              "pagination",
              "requestSchemaId",
              "responseSchemaId",
              "errorSchemaId",
              "requiredScopes",
              "surfaces"
            ],
            "type": "object"
          },
          "minItems": 1,
          "type": "array"
        },
        "provenance": {
          "additionalProperties": false,
          "properties": {
            "schema": {
              "const": "hasna.todos.contract_provenance.v1",
              "type": "string"
            },
            "sourceFreeze": {
              "additionalProperties": false,
              "properties": {
                "contracts": {
                  "$ref": "#/$defs/__schema0"
                },
                "e00115": {
                  "$ref": "#/$defs/__schema0"
                },
                "openTodos": {
                  "$ref": "#/$defs/__schema0"
                },
                "platformTodos": {
                  "$ref": "#/$defs/__schema0"
                }
              },
              "required": [
                "contracts",
                "openTodos",
                "platformTodos",
                "e00115"
              ],
              "type": "object"
            },
            "surfaceMappings": {
              "additionalProperties": false,
              "properties": {
                "evidenceUse": {
                  "const": "design_input_only",
                  "type": "string"
                },
                "localTopologyHttpSurface": {
                  "type": "null"
                },
                "operatorAudienceIncluded": {
                  "const": false,
                  "type": "boolean"
                },
                "producerImplementationStatus": {
                  "const": "not_attested",
                  "type": "string"
                },
                "sharedHttpPrefix": {
                  "const": "/v1",
                  "type": "string"
                },
                "status": {
                  "const": "required_target",
                  "type": "string"
                }
              },
              "required": [
                "status",
                "producerImplementationStatus",
                "evidenceUse",
                "sharedHttpPrefix",
                "localTopologyHttpSurface",
                "operatorAudienceIncluded"
              ],
              "type": "object"
            }
          },
          "required": [
            "schema",
            "sourceFreeze",
            "surfaceMappings"
          ],
          "type": "object"
        },
        "schema": {
          "const": "hasna.todos.operation_manifest.v1",
          "type": "string"
        },
        "version": {
          "const": "1",
          "type": "string"
        }
      },
      "required": [
        "schema",
        "version",
        "provenance",
        "operations"
      ],
      "type": "object",
      "x-hasna-invariants": [
        "todos.operation.manifest_semantics"
      ]
    },
    "hasna.todos.owner_qualified_ref.v1": {
      "$id": "hasna.todos.owner_qualified_ref.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "digest": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        },
        "id": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "kind": {
          "maxLength": 64,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9_]*$",
          "type": "string"
        },
        "owner": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        }
      },
      "required": [
        "owner",
        "kind",
        "id",
        "digest"
      ],
      "type": "object"
    },
    "hasna.todos.plan.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.plan.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "completedAt": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema1"
            },
            {
              "type": "null"
            }
          ]
        },
        "createdAt": {
          "$ref": "#/$defs/__schema1"
        },
        "description": {
          "anyOf": [
            {
              "maxLength": 40000,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "id": {
          "$ref": "#/$defs/__schema0"
        },
        "name": {
          "maxLength": 256,
          "minLength": 1,
          "type": "string"
        },
        "objective": {
          "maxLength": 20000,
          "minLength": 1,
          "type": "string"
        },
        "owner": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "projectId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        },
        "slug": {
          "maxLength": 96,
          "minLength": 1,
          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
          "type": "string"
        },
        "status": {
          "enum": [
            "draft",
            "active",
            "completed",
            "archived"
          ],
          "type": "string"
        },
        "taskIds": {
          "items": {
            "$ref": "#/$defs/__schema0"
          },
          "maxItems": 10000,
          "type": "array"
        },
        "taskListId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        },
        "updatedAt": {
          "$ref": "#/$defs/__schema1"
        },
        "version": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        }
      },
      "required": [
        "id",
        "owner",
        "version",
        "createdAt",
        "updatedAt",
        "slug",
        "projectId",
        "taskListId",
        "name",
        "description",
        "status",
        "objective",
        "taskIds",
        "completedAt"
      ],
      "type": "object"
    },
    "hasna.todos.project.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema2": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.project.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "archivedAt": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema2"
            },
            {
              "type": "null"
            }
          ]
        },
        "createdAt": {
          "$ref": "#/$defs/__schema2"
        },
        "description": {
          "anyOf": [
            {
              "maxLength": 20000,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "id": {
          "$ref": "#/$defs/__schema0"
        },
        "name": {
          "maxLength": 256,
          "minLength": 1,
          "type": "string"
        },
        "owner": {
          "$ref": "#/$defs/__schema1"
        },
        "repositoryRef": {
          "anyOf": [
            {
              "additionalProperties": false,
              "properties": {
                "digest": {
                  "pattern": "^[a-f0-9]{64}$",
                  "type": "string"
                },
                "id": {
                  "$ref": "#/$defs/__schema0"
                },
                "owner": {
                  "$ref": "#/$defs/__schema1"
                }
              },
              "required": [
                "owner",
                "id",
                "digest"
              ],
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        },
        "slug": {
          "maxLength": 96,
          "minLength": 1,
          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
          "type": "string"
        },
        "updatedAt": {
          "$ref": "#/$defs/__schema2"
        },
        "version": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        }
      },
      "required": [
        "id",
        "owner",
        "version",
        "createdAt",
        "updatedAt",
        "slug",
        "name",
        "description",
        "repositoryRef",
        "archivedAt"
      ],
      "type": "object"
    },
    "hasna.todos.request.agent_heartbeat.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.request.agent_heartbeat.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "activeProjectId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        },
        "activeTaskListId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        },
        "expectedVersion": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        },
        "observedAt": {
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "ref": {
          "$ref": "#/$defs/__schema0"
        }
      },
      "required": [
        "ref",
        "expectedVersion",
        "observedAt",
        "activeProjectId",
        "activeTaskListId"
      ],
      "type": "object"
    },
    "hasna.todos.request.agent_register.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.request.agent_register.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "activeProjectId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        },
        "activeTaskListId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        },
        "displayName": {
          "maxLength": 256,
          "minLength": 1,
          "type": "string"
        },
        "id": {
          "$ref": "#/$defs/__schema0"
        },
        "roles": {
          "items": {
            "enum": [
              "customer_member",
              "customer_manager",
              "tenant_admin"
            ],
            "type": "string"
          },
          "maxItems": 32,
          "minItems": 1,
          "type": "array"
        }
      },
      "required": [
        "id",
        "displayName",
        "roles",
        "activeProjectId",
        "activeTaskListId"
      ],
      "type": "object"
    },
    "hasna.todos.request.agent_release.v1": {
      "$id": "hasna.todos.request.agent_release.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "expectedVersion": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        },
        "ref": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "releasedAt": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        }
      },
      "required": [
        "ref",
        "expectedVersion",
        "releasedAt"
      ],
      "type": "object"
    },
    "hasna.todos.request.approval_decision.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.request.approval_decision.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "decidedBy": {
          "additionalProperties": false,
          "properties": {
            "digest": {
              "pattern": "^[a-f0-9]{64}$",
              "type": "string"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "owner": {
              "maxLength": 128,
              "minLength": 2,
              "pattern": "^[a-z][a-z0-9.-]*$",
              "type": "string"
            }
          },
          "required": [
            "owner",
            "id",
            "digest"
          ],
          "type": "object"
        },
        "expectedVersion": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        },
        "reason": {
          "maxLength": 4096,
          "minLength": 1,
          "type": "string"
        },
        "ref": {
          "$ref": "#/$defs/__schema0"
        }
      },
      "required": [
        "ref",
        "expectedVersion",
        "decidedBy",
        "reason"
      ],
      "type": "object"
    },
    "hasna.todos.request.approval_expire.v1": {
      "$id": "hasna.todos.request.approval_expire.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "expectedVersion": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        },
        "expiredAt": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "ref": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        }
      },
      "required": [
        "ref",
        "expectedVersion",
        "expiredAt"
      ],
      "type": "object"
    },
    "hasna.todos.request.approval_request.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema1": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema2": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.request.approval_request.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "expiresAt": {
          "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|([+-]\\d{2}:\\d{2})))$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "reason": {
          "maxLength": 4096,
          "minLength": 1,
          "type": "string"
        },
        "requestedBy": {
          "additionalProperties": false,
          "properties": {
            "digest": {
              "$ref": "#/$defs/__schema2"
            },
            "id": {
              "$ref": "#/$defs/__schema1"
            },
            "owner": {
              "$ref": "#/$defs/__schema0"
            }
          },
          "required": [
            "owner",
            "id",
            "digest"
          ],
          "type": "object"
        },
        "resourceRef": {
          "additionalProperties": false,
          "properties": {
            "digest": {
              "$ref": "#/$defs/__schema2"
            },
            "id": {
              "$ref": "#/$defs/__schema1"
            },
            "kind": {
              "maxLength": 64,
              "minLength": 1,
              "pattern": "^[a-z][a-z0-9_]*$",
              "type": "string"
            },
            "owner": {
              "$ref": "#/$defs/__schema0"
            }
          },
          "required": [
            "owner",
            "kind",
            "id",
            "digest"
          ],
          "type": "object"
        }
      },
      "required": [
        "resourceRef",
        "reason",
        "requestedBy",
        "expiresAt"
      ],
      "type": "object"
    },
    "hasna.todos.request.comment_create.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.request.comment_create.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "authorRef": {
          "additionalProperties": false,
          "properties": {
            "digest": {
              "pattern": "^[a-f0-9]{64}$",
              "type": "string"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "owner": {
              "maxLength": 128,
              "minLength": 2,
              "pattern": "^[a-z][a-z0-9.-]*$",
              "type": "string"
            }
          },
          "required": [
            "owner",
            "id",
            "digest"
          ],
          "type": "object"
        },
        "content": {
          "maxLength": 100000,
          "minLength": 1,
          "type": "string"
        },
        "kind": {
          "enum": [
            "comment",
            "progress",
            "note"
          ],
          "type": "string"
        },
        "progressPercent": {
          "anyOf": [
            {
              "maximum": 100,
              "minimum": 0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "taskRef": {
          "$ref": "#/$defs/__schema0"
        }
      },
      "required": [
        "taskRef",
        "authorRef",
        "kind",
        "content",
        "progressPercent"
      ],
      "type": "object"
    },
    "hasna.todos.request.database_backup.v1": {
      "$id": "hasna.todos.request.database_backup.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "createdAt": {
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "label": {
          "maxLength": 256,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "label",
        "createdAt"
      ],
      "type": "object"
    },
    "hasna.todos.request.database_check.v1": {
      "$id": "hasna.todos.request.database_check.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "expectedSchemaVersion": {
          "maxLength": 64,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "expectedSchemaVersion"
      ],
      "type": "object"
    },
    "hasna.todos.request.database_compact.v1": {
      "$id": "hasna.todos.request.database_compact.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "expectedCurrentDigest": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        }
      },
      "required": [
        "expectedCurrentDigest"
      ],
      "type": "object"
    },
    "hasna.todos.request.database_restore.v1": {
      "$defs": {
        "__schema0": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.request.database_restore.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "backupContentRef": {
          "additionalProperties": false,
          "properties": {
            "algorithm": {
              "const": "sha256",
              "type": "string"
            },
            "byteLength": {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer"
            },
            "digest": {
              "$ref": "#/$defs/__schema0"
            },
            "mediaType": {
              "maxLength": 160,
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "algorithm",
            "digest",
            "mediaType",
            "byteLength"
          ],
          "type": "object"
        },
        "expectedCurrentDigest": {
          "$ref": "#/$defs/__schema0"
        }
      },
      "required": [
        "backupContentRef",
        "expectedCurrentDigest"
      ],
      "type": "object"
    },
    "hasna.todos.request.dependency_create.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.request.dependency_create.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "kind": {
          "enum": [
            "requires",
            "blocks"
          ],
          "type": "string"
        },
        "sourceTaskRef": {
          "$ref": "#/$defs/__schema0"
        },
        "targetTaskRef": {
          "$ref": "#/$defs/__schema0"
        }
      },
      "required": [
        "sourceTaskRef",
        "targetTaskRef",
        "kind"
      ],
      "type": "object"
    },
    "hasna.todos.request.dependency_delete.v1": {
      "$id": "hasna.todos.request.dependency_delete.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "expectedVersion": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        },
        "ref": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        }
      },
      "required": [
        "ref",
        "expectedVersion"
      ],
      "type": "object"
    },
    "hasna.todos.request.empty.v1": {
      "$id": "hasna.todos.request.empty.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {},
      "type": "object"
    },
    "hasna.todos.request.exists_many.v1": {
      "$id": "hasna.todos.request.exists_many.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "refs": {
          "items": {
            "maxLength": 160,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
            "type": "string"
          },
          "maxItems": 10000,
          "minItems": 1,
          "type": "array"
        }
      },
      "required": [
        "refs"
      ],
      "type": "object"
    },
    "hasna.todos.request.git_commit_find.v1": {
      "$id": "hasna.todos.request.git_commit_find.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "objectId": {
          "additionalProperties": false,
          "properties": {
            "algorithm": {
              "enum": [
                "sha1",
                "sha256"
              ],
              "type": "string"
            },
            "value": {
              "pattern": "^[a-f0-9]+$",
              "type": "string"
            }
          },
          "required": [
            "algorithm",
            "value"
          ],
          "type": "object"
        },
        "repositoryRef": {
          "additionalProperties": false,
          "properties": {
            "digest": {
              "pattern": "^[a-f0-9]{64}$",
              "type": "string"
            },
            "id": {
              "maxLength": 160,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
              "type": "string"
            },
            "owner": {
              "maxLength": 128,
              "minLength": 2,
              "pattern": "^[a-z][a-z0-9.-]*$",
              "type": "string"
            }
          },
          "required": [
            "owner",
            "id",
            "digest"
          ],
          "type": "object"
        }
      },
      "required": [
        "repositoryRef",
        "objectId"
      ],
      "type": "object"
    },
    "hasna.todos.request.git_commit_link.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "additionalProperties": false,
          "properties": {
            "digest": {
              "pattern": "^[a-f0-9]{64}$",
              "type": "string"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "owner": {
              "maxLength": 128,
              "minLength": 2,
              "pattern": "^[a-z][a-z0-9.-]*$",
              "type": "string"
            }
          },
          "required": [
            "owner",
            "id",
            "digest"
          ],
          "type": "object"
        }
      },
      "$id": "hasna.todos.request.git_commit_link.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "authorRef": {
          "$ref": "#/$defs/__schema1"
        },
        "changedFiles": {
          "items": {
            "maxLength": 1024,
            "minLength": 1,
            "type": "string"
          },
          "maxItems": 50000,
          "type": "array"
        },
        "committedAt": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "message": {
          "maxLength": 20000,
          "minLength": 1,
          "type": "string"
        },
        "objectId": {
          "additionalProperties": false,
          "properties": {
            "algorithm": {
              "enum": [
                "sha1",
                "sha256"
              ],
              "type": "string"
            },
            "value": {
              "pattern": "^[a-f0-9]+$",
              "type": "string"
            }
          },
          "required": [
            "algorithm",
            "value"
          ],
          "type": "object"
        },
        "repositoryRef": {
          "$ref": "#/$defs/__schema1"
        },
        "taskId": {
          "$ref": "#/$defs/__schema0"
        }
      },
      "required": [
        "taskId",
        "repositoryRef",
        "objectId",
        "message",
        "authorRef",
        "committedAt",
        "changedFiles"
      ],
      "type": "object",
      "x-hasna-invariants": [
        "todos.common.relative_path"
      ]
    },
    "hasna.todos.request.git_commit_unlink.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.request.git_commit_unlink.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "commitRef": {
          "$ref": "#/$defs/__schema0"
        },
        "expectedVersion": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        },
        "taskId": {
          "$ref": "#/$defs/__schema0"
        }
      },
      "required": [
        "taskId",
        "commitRef",
        "expectedVersion"
      ],
      "type": "object"
    },
    "hasna.todos.request.git_ref_find.v1": {
      "$id": "hasna.todos.request.git_ref_find.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "name": {
          "maxLength": 512,
          "minLength": 1,
          "type": "string"
        },
        "repositoryRef": {
          "additionalProperties": false,
          "properties": {
            "digest": {
              "pattern": "^[a-f0-9]{64}$",
              "type": "string"
            },
            "id": {
              "maxLength": 160,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
              "type": "string"
            },
            "owner": {
              "maxLength": 128,
              "minLength": 2,
              "pattern": "^[a-z][a-z0-9.-]*$",
              "type": "string"
            }
          },
          "required": [
            "owner",
            "id",
            "digest"
          ],
          "type": "object"
        },
        "type": {
          "enum": [
            "branch",
            "tag",
            "pull_request"
          ],
          "type": "string"
        }
      },
      "required": [
        "repositoryRef",
        "type",
        "name"
      ],
      "type": "object"
    },
    "hasna.todos.request.git_ref_link.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.request.git_ref_link.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "name": {
          "maxLength": 512,
          "minLength": 1,
          "type": "string"
        },
        "providerObservedAt": {
          "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|([+-]\\d{2}:\\d{2})))$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "published": {
          "type": "boolean"
        },
        "repositoryRef": {
          "additionalProperties": false,
          "properties": {
            "digest": {
              "pattern": "^[a-f0-9]{64}$",
              "type": "string"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "owner": {
              "maxLength": 128,
              "minLength": 2,
              "pattern": "^[a-z][a-z0-9.-]*$",
              "type": "string"
            }
          },
          "required": [
            "owner",
            "id",
            "digest"
          ],
          "type": "object"
        },
        "target": {
          "additionalProperties": false,
          "properties": {
            "algorithm": {
              "enum": [
                "sha1",
                "sha256"
              ],
              "type": "string"
            },
            "value": {
              "pattern": "^[a-f0-9]+$",
              "type": "string"
            }
          },
          "required": [
            "algorithm",
            "value"
          ],
          "type": "object"
        },
        "taskId": {
          "$ref": "#/$defs/__schema0"
        },
        "type": {
          "enum": [
            "branch",
            "tag",
            "pull_request"
          ],
          "type": "string"
        }
      },
      "required": [
        "taskId",
        "repositoryRef",
        "type",
        "name",
        "target",
        "published",
        "providerObservedAt"
      ],
      "type": "object"
    },
    "hasna.todos.request.list.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.request.list.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "agentId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        },
        "changedAfter": {
          "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|([+-]\\d{2}:\\d{2})))$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "cursor": {
          "anyOf": [
            {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "limit": {
          "exclusiveMinimum": 0,
          "maximum": 500,
          "type": "integer"
        },
        "planId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        },
        "projectId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        },
        "status": {
          "anyOf": [
            {
              "maxLength": 64,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "taskListId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "cursor",
        "limit",
        "projectId",
        "taskListId",
        "planId",
        "agentId",
        "status",
        "changedAfter"
      ],
      "type": "object"
    },
    "hasna.todos.request.plan_create.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.request.plan_create.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "description": {
          "anyOf": [
            {
              "maxLength": 40000,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "name": {
          "maxLength": 256,
          "minLength": 1,
          "type": "string"
        },
        "objective": {
          "maxLength": 20000,
          "minLength": 1,
          "type": "string"
        },
        "projectId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        },
        "slug": {
          "maxLength": 96,
          "minLength": 1,
          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
          "type": "string"
        },
        "taskIds": {
          "items": {
            "$ref": "#/$defs/__schema0"
          },
          "maxItems": 10000,
          "type": "array"
        },
        "taskListId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "slug",
        "projectId",
        "taskListId",
        "name",
        "description",
        "objective",
        "taskIds"
      ],
      "type": "object"
    },
    "hasna.todos.request.plan_update.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.request.plan_update.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "description": {
          "anyOf": [
            {
              "maxLength": 40000,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "expectedVersion": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        },
        "name": {
          "maxLength": 256,
          "minLength": 1,
          "type": "string"
        },
        "objective": {
          "maxLength": 20000,
          "minLength": 1,
          "type": "string"
        },
        "ref": {
          "$ref": "#/$defs/__schema0"
        },
        "status": {
          "enum": [
            "draft",
            "active",
            "completed",
            "archived"
          ],
          "type": "string"
        },
        "taskIds": {
          "items": {
            "$ref": "#/$defs/__schema0"
          },
          "maxItems": 10000,
          "type": "array"
        }
      },
      "required": [
        "ref",
        "expectedVersion"
      ],
      "type": "object"
    },
    "hasna.todos.request.project_create.v1": {
      "$id": "hasna.todos.request.project_create.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "description": {
          "anyOf": [
            {
              "maxLength": 20000,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "name": {
          "maxLength": 256,
          "minLength": 1,
          "type": "string"
        },
        "repositoryRef": {
          "anyOf": [
            {
              "additionalProperties": false,
              "properties": {
                "digest": {
                  "pattern": "^[a-f0-9]{64}$",
                  "type": "string"
                },
                "id": {
                  "maxLength": 160,
                  "minLength": 1,
                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
                  "type": "string"
                },
                "owner": {
                  "maxLength": 128,
                  "minLength": 2,
                  "pattern": "^[a-z][a-z0-9.-]*$",
                  "type": "string"
                }
              },
              "required": [
                "owner",
                "id",
                "digest"
              ],
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        },
        "slug": {
          "maxLength": 96,
          "minLength": 1,
          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
          "type": "string"
        }
      },
      "required": [
        "slug",
        "name",
        "description",
        "repositoryRef"
      ],
      "type": "object"
    },
    "hasna.todos.request.project_rename.v1": {
      "$id": "hasna.todos.request.project_rename.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "expectedVersion": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        },
        "name": {
          "anyOf": [
            {
              "maxLength": 256,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "ref": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "slug": {
          "maxLength": 96,
          "minLength": 1,
          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
          "type": "string"
        }
      },
      "required": [
        "ref",
        "expectedVersion",
        "slug",
        "name"
      ],
      "type": "object"
    },
    "hasna.todos.request.project_update.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.request.project_update.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "description": {
          "anyOf": [
            {
              "maxLength": 20000,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "expectedVersion": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        },
        "name": {
          "maxLength": 256,
          "minLength": 1,
          "type": "string"
        },
        "ref": {
          "$ref": "#/$defs/__schema0"
        },
        "repositoryRef": {
          "anyOf": [
            {
              "additionalProperties": false,
              "properties": {
                "digest": {
                  "pattern": "^[a-f0-9]{64}$",
                  "type": "string"
                },
                "id": {
                  "$ref": "#/$defs/__schema0"
                },
                "owner": {
                  "maxLength": 128,
                  "minLength": 2,
                  "pattern": "^[a-z][a-z0-9.-]*$",
                  "type": "string"
                }
              },
              "required": [
                "owner",
                "id",
                "digest"
              ],
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "ref",
        "expectedVersion"
      ],
      "type": "object"
    },
    "hasna.todos.request.projection_rebuild.v1": {
      "$id": "hasna.todos.request.projection_rebuild.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "expectedManifestDigest": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        },
        "taskRefs": {
          "items": {
            "maxLength": 160,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
            "type": "string"
          },
          "maxItems": 10000,
          "type": "array"
        }
      },
      "required": [
        "taskRefs",
        "expectedManifestDigest"
      ],
      "type": "object"
    },
    "hasna.todos.request.ref.v1": {
      "$id": "hasna.todos.request.ref.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "ref": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        }
      },
      "required": [
        "ref"
      ],
      "type": "object"
    },
    "hasna.todos.request.ref_list.v1": {
      "$id": "hasna.todos.request.ref_list.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "cursor": {
          "anyOf": [
            {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "limit": {
          "exclusiveMinimum": 0,
          "maximum": 500,
          "type": "integer"
        },
        "ref": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        }
      },
      "required": [
        "ref",
        "cursor",
        "limit"
      ],
      "type": "object"
    },
    "hasna.todos.request.report_generate.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.request.report_generate.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "asOf": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "kind": {
          "enum": [
            "task_summary",
            "plan_progress",
            "run_evidence",
            "traceability"
          ],
          "type": "string"
        },
        "planId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        },
        "projectId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        },
        "taskId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        },
        "taskListId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "kind",
        "projectId",
        "taskListId",
        "planId",
        "taskId",
        "asOf"
      ],
      "type": "object"
    },
    "hasna.todos.request.run_artifact_create.v1": {
      "$id": "hasna.todos.request.run_artifact_create.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "contentRef": {
          "additionalProperties": false,
          "properties": {
            "algorithm": {
              "const": "sha256",
              "type": "string"
            },
            "byteLength": {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer"
            },
            "digest": {
              "pattern": "^[a-f0-9]{64}$",
              "type": "string"
            },
            "mediaType": {
              "maxLength": 160,
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "algorithm",
            "digest",
            "mediaType",
            "byteLength"
          ],
          "type": "object"
        },
        "kind": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9_.:-]*$",
          "type": "string"
        },
        "name": {
          "maxLength": 512,
          "minLength": 1,
          "type": "string"
        },
        "runId": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        }
      },
      "required": [
        "runId",
        "name",
        "kind",
        "contentRef"
      ],
      "type": "object"
    },
    "hasna.todos.request.run_artifact_verify.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.request.run_artifact_verify.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "expectedVersion": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        },
        "ref": {
          "$ref": "#/$defs/__schema0"
        },
        "runId": {
          "$ref": "#/$defs/__schema0"
        },
        "verificationEvidenceId": {
          "$ref": "#/$defs/__schema0"
        }
      },
      "required": [
        "runId",
        "ref",
        "expectedVersion",
        "verificationEvidenceId"
      ],
      "type": "object"
    },
    "hasna.todos.request.run_command_create.v1": {
      "$id": "hasna.todos.request.run_command_create.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "command": {
          "maxLength": 16000,
          "minLength": 1,
          "type": "string"
        },
        "completedAt": {
          "anyOf": [
            {
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "durationMs": {
          "anyOf": [
            {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "exitCode": {
          "anyOf": [
            {
              "maximum": 9007199254740991,
              "minimum": -9007199254740991,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "outputRefs": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "algorithm": {
                "const": "sha256",
                "type": "string"
              },
              "byteLength": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "digest": {
                "pattern": "^[a-f0-9]{64}$",
                "type": "string"
              },
              "mediaType": {
                "maxLength": 160,
                "minLength": 1,
                "type": "string"
              }
            },
            "required": [
              "algorithm",
              "digest",
              "mediaType",
              "byteLength"
            ],
            "type": "object"
          },
          "maxItems": 1024,
          "type": "array"
        },
        "runId": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "sequence": {
          "maximum": 9007199254740991,
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "runId",
        "sequence",
        "command",
        "exitCode",
        "durationMs",
        "outputRefs",
        "completedAt"
      ],
      "type": "object"
    },
    "hasna.todos.request.run_event_create.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.request.run_event_create.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "evidenceIds": {
          "items": {
            "$ref": "#/$defs/__schema0"
          },
          "maxItems": 10000,
          "type": "array"
        },
        "occurredAt": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "runId": {
          "$ref": "#/$defs/__schema0"
        },
        "sequence": {
          "maximum": 9007199254740991,
          "minimum": 0,
          "type": "integer"
        },
        "summary": {
          "maxLength": 20000,
          "minLength": 1,
          "type": "string"
        },
        "type": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9_.:-]*$",
          "type": "string"
        }
      },
      "required": [
        "runId",
        "sequence",
        "type",
        "summary",
        "occurredAt",
        "evidenceIds"
      ],
      "type": "object"
    },
    "hasna.todos.request.run_file_create.v1": {
      "$id": "hasna.todos.request.run_file_create.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "contentRef": {
          "additionalProperties": false,
          "properties": {
            "algorithm": {
              "const": "sha256",
              "type": "string"
            },
            "byteLength": {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer"
            },
            "digest": {
              "pattern": "^[a-f0-9]{64}$",
              "type": "string"
            },
            "mediaType": {
              "maxLength": 160,
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "algorithm",
            "digest",
            "mediaType",
            "byteLength"
          ],
          "type": "object"
        },
        "logicalName": {
          "maxLength": 512,
          "minLength": 1,
          "type": "string"
        },
        "relativePath": {
          "anyOf": [
            {
              "maxLength": 1024,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "role": {
          "enum": [
            "input",
            "output",
            "evidence"
          ],
          "type": "string"
        },
        "runId": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        }
      },
      "required": [
        "runId",
        "logicalName",
        "relativePath",
        "contentRef",
        "role"
      ],
      "type": "object",
      "x-hasna-invariants": [
        "todos.common.relative_path"
      ]
    },
    "hasna.todos.request.run_finish.v1": {
      "$id": "hasna.todos.request.run_finish.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "completedAt": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "expectedVersion": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        },
        "ledgerDigest": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        },
        "ref": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "status": {
          "enum": [
            "succeeded",
            "failed",
            "cancelled"
          ],
          "type": "string"
        }
      },
      "required": [
        "ref",
        "expectedVersion",
        "status",
        "completedAt",
        "ledgerDigest"
      ],
      "type": "object"
    },
    "hasna.todos.request.run_start.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.request.run_start.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "agentId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        },
        "objective": {
          "maxLength": 20000,
          "minLength": 1,
          "type": "string"
        },
        "planId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        },
        "taskIds": {
          "items": {
            "$ref": "#/$defs/__schema0"
          },
          "maxItems": 10000,
          "type": "array"
        }
      },
      "required": [
        "objective",
        "taskIds",
        "planId",
        "agentId"
      ],
      "type": "object"
    },
    "hasna.todos.request.saved_view_create.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.request.saved_view_create.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "audience": {
          "enum": [
            "private",
            "organization"
          ],
          "type": "string"
        },
        "description": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "name": {
          "maxLength": 256,
          "minLength": 1,
          "type": "string"
        },
        "query": {
          "additionalProperties": false,
          "properties": {
            "cursor": {
              "anyOf": [
                {
                  "maxLength": 512,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "filters": {
              "additionalProperties": false,
              "properties": {
                "agentIds": {
                  "items": {
                    "$ref": "#/$defs/__schema0"
                  },
                  "maxItems": 256,
                  "type": "array"
                },
                "changedAfter": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema1"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "dueBefore": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema1"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "planIds": {
                  "items": {
                    "$ref": "#/$defs/__schema0"
                  },
                  "maxItems": 256,
                  "type": "array"
                },
                "priorities": {
                  "items": {
                    "enum": [
                      "low",
                      "medium",
                      "high",
                      "critical"
                    ],
                    "type": "string"
                  },
                  "maxItems": 8,
                  "type": "array"
                },
                "projectIds": {
                  "items": {
                    "$ref": "#/$defs/__schema0"
                  },
                  "maxItems": 256,
                  "type": "array"
                },
                "statuses": {
                  "items": {
                    "enum": [
                      "pending",
                      "ready",
                      "in_progress",
                      "blocked",
                      "completed",
                      "failed",
                      "cancelled"
                    ],
                    "type": "string"
                  },
                  "maxItems": 16,
                  "type": "array"
                },
                "tags": {
                  "items": {
                    "maxLength": 96,
                    "minLength": 1,
                    "type": "string"
                  },
                  "maxItems": 128,
                  "type": "array"
                },
                "taskListIds": {
                  "items": {
                    "$ref": "#/$defs/__schema0"
                  },
                  "maxItems": 256,
                  "type": "array"
                }
              },
              "required": [
                "projectIds",
                "taskListIds",
                "planIds",
                "agentIds",
                "statuses",
                "priorities",
                "tags",
                "changedAfter",
                "dueBefore"
              ],
              "type": "object"
            },
            "limit": {
              "exclusiveMinimum": 0,
              "maximum": 500,
              "type": "integer"
            },
            "query": {
              "maxLength": 4096,
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "query",
            "filters",
            "cursor",
            "limit"
          ],
          "type": "object"
        }
      },
      "required": [
        "name",
        "description",
        "query",
        "audience"
      ],
      "type": "object"
    },
    "hasna.todos.request.saved_view_execute.v1": {
      "$id": "hasna.todos.request.saved_view_execute.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "cursor": {
          "anyOf": [
            {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "limit": {
          "exclusiveMinimum": 0,
          "maximum": 500,
          "type": "integer"
        },
        "ref": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        }
      },
      "required": [
        "ref",
        "cursor",
        "limit"
      ],
      "type": "object"
    },
    "hasna.todos.request.saved_view_update.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.request.saved_view_update.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "audience": {
          "enum": [
            "private",
            "organization"
          ],
          "type": "string"
        },
        "description": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "expectedVersion": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        },
        "name": {
          "maxLength": 256,
          "minLength": 1,
          "type": "string"
        },
        "query": {
          "additionalProperties": false,
          "properties": {
            "cursor": {
              "anyOf": [
                {
                  "maxLength": 512,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "filters": {
              "additionalProperties": false,
              "properties": {
                "agentIds": {
                  "items": {
                    "$ref": "#/$defs/__schema0"
                  },
                  "maxItems": 256,
                  "type": "array"
                },
                "changedAfter": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema1"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "dueBefore": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema1"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "planIds": {
                  "items": {
                    "$ref": "#/$defs/__schema0"
                  },
                  "maxItems": 256,
                  "type": "array"
                },
                "priorities": {
                  "items": {
                    "enum": [
                      "low",
                      "medium",
                      "high",
                      "critical"
                    ],
                    "type": "string"
                  },
                  "maxItems": 8,
                  "type": "array"
                },
                "projectIds": {
                  "items": {
                    "$ref": "#/$defs/__schema0"
                  },
                  "maxItems": 256,
                  "type": "array"
                },
                "statuses": {
                  "items": {
                    "enum": [
                      "pending",
                      "ready",
                      "in_progress",
                      "blocked",
                      "completed",
                      "failed",
                      "cancelled"
                    ],
                    "type": "string"
                  },
                  "maxItems": 16,
                  "type": "array"
                },
                "tags": {
                  "items": {
                    "maxLength": 96,
                    "minLength": 1,
                    "type": "string"
                  },
                  "maxItems": 128,
                  "type": "array"
                },
                "taskListIds": {
                  "items": {
                    "$ref": "#/$defs/__schema0"
                  },
                  "maxItems": 256,
                  "type": "array"
                }
              },
              "required": [
                "projectIds",
                "taskListIds",
                "planIds",
                "agentIds",
                "statuses",
                "priorities",
                "tags",
                "changedAfter",
                "dueBefore"
              ],
              "type": "object"
            },
            "limit": {
              "exclusiveMinimum": 0,
              "maximum": 500,
              "type": "integer"
            },
            "query": {
              "maxLength": 4096,
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "query",
            "filters",
            "cursor",
            "limit"
          ],
          "type": "object"
        },
        "ref": {
          "$ref": "#/$defs/__schema0"
        }
      },
      "required": [
        "ref",
        "expectedVersion"
      ],
      "type": "object"
    },
    "hasna.todos.request.search.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.request.search.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "cursor": {
          "anyOf": [
            {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "filters": {
          "additionalProperties": false,
          "properties": {
            "agentIds": {
              "items": {
                "$ref": "#/$defs/__schema0"
              },
              "maxItems": 256,
              "type": "array"
            },
            "changedAfter": {
              "anyOf": [
                {
                  "$ref": "#/$defs/__schema1"
                },
                {
                  "type": "null"
                }
              ]
            },
            "dueBefore": {
              "anyOf": [
                {
                  "$ref": "#/$defs/__schema1"
                },
                {
                  "type": "null"
                }
              ]
            },
            "planIds": {
              "items": {
                "$ref": "#/$defs/__schema0"
              },
              "maxItems": 256,
              "type": "array"
            },
            "priorities": {
              "items": {
                "enum": [
                  "low",
                  "medium",
                  "high",
                  "critical"
                ],
                "type": "string"
              },
              "maxItems": 8,
              "type": "array"
            },
            "projectIds": {
              "items": {
                "$ref": "#/$defs/__schema0"
              },
              "maxItems": 256,
              "type": "array"
            },
            "statuses": {
              "items": {
                "enum": [
                  "pending",
                  "ready",
                  "in_progress",
                  "blocked",
                  "completed",
                  "failed",
                  "cancelled"
                ],
                "type": "string"
              },
              "maxItems": 16,
              "type": "array"
            },
            "tags": {
              "items": {
                "maxLength": 96,
                "minLength": 1,
                "type": "string"
              },
              "maxItems": 128,
              "type": "array"
            },
            "taskListIds": {
              "items": {
                "$ref": "#/$defs/__schema0"
              },
              "maxItems": 256,
              "type": "array"
            }
          },
          "required": [
            "projectIds",
            "taskListIds",
            "planIds",
            "agentIds",
            "statuses",
            "priorities",
            "tags",
            "changedAfter",
            "dueBefore"
          ],
          "type": "object"
        },
        "limit": {
          "exclusiveMinimum": 0,
          "maximum": 500,
          "type": "integer"
        },
        "query": {
          "maxLength": 4096,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "query",
        "filters",
        "cursor",
        "limit"
      ],
      "type": "object"
    },
    "hasna.todos.request.server_start.v1": {
      "$id": "hasna.todos.request.server_start.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "expectedState": {
          "const": "stopped",
          "type": "string"
        },
        "interface": {
          "enum": [
            "loopback",
            "workspace"
          ],
          "type": "string"
        },
        "port": {
          "maximum": 65535,
          "minimum": 1024,
          "type": "integer"
        }
      },
      "required": [
        "interface",
        "port",
        "expectedState"
      ],
      "type": "object"
    },
    "hasna.todos.request.task_batch.v1": {
      "$defs": {
        "__schema0": {
          "enum": [
            "low",
            "medium",
            "high",
            "critical"
          ],
          "type": "string"
        },
        "__schema1": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema2": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.request.task_batch.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "operations": {
          "items": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "action": {
                    "const": "create",
                    "type": "string"
                  },
                  "input": {
                    "additionalProperties": false,
                    "properties": {
                      "acceptanceCriteria": {
                        "items": {
                          "maxLength": 4096,
                          "minLength": 1,
                          "type": "string"
                        },
                        "maxItems": 256,
                        "type": "array"
                      },
                      "assignedAgentId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema1"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "description": {
                        "anyOf": [
                          {
                            "maxLength": 100000,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "dueAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema2"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "externalOwnerRefs": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "digest": {
                              "pattern": "^[a-f0-9]{64}$",
                              "type": "string"
                            },
                            "id": {
                              "$ref": "#/$defs/__schema1"
                            },
                            "owner": {
                              "maxLength": 128,
                              "minLength": 2,
                              "pattern": "^[a-z][a-z0-9.-]*$",
                              "type": "string"
                            }
                          },
                          "required": [
                            "owner",
                            "id",
                            "digest"
                          ],
                          "type": "object"
                        },
                        "maxItems": 64,
                        "type": "array"
                      },
                      "fingerprint": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "parentTaskId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema1"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "planId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema1"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "priority": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "projectId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema1"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "tags": {
                        "items": {
                          "maxLength": 96,
                          "minLength": 1,
                          "type": "string"
                        },
                        "maxItems": 128,
                        "type": "array"
                      },
                      "taskListId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema1"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "title": {
                        "maxLength": 512,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "title",
                      "description",
                      "priority",
                      "projectId",
                      "taskListId",
                      "planId",
                      "parentTaskId",
                      "assignedAgentId",
                      "fingerprint",
                      "tags",
                      "acceptanceCriteria",
                      "dueAt",
                      "externalOwnerRefs"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "action",
                  "input"
                ],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "action": {
                    "const": "update",
                    "type": "string"
                  },
                  "changes": {
                    "additionalProperties": false,
                    "properties": {
                      "acceptanceCriteria": {
                        "items": {
                          "maxLength": 4096,
                          "minLength": 1,
                          "type": "string"
                        },
                        "maxItems": 256,
                        "type": "array"
                      },
                      "assignedAgentId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema1"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "description": {
                        "anyOf": [
                          {
                            "maxLength": 100000,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "dueAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema2"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "parentTaskId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema1"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "planId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema1"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "priority": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "projectId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema1"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "tags": {
                        "items": {
                          "maxLength": 96,
                          "minLength": 1,
                          "type": "string"
                        },
                        "maxItems": 128,
                        "type": "array"
                      },
                      "taskListId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema1"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "title": {
                        "maxLength": 512,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "expectedVersion": {
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991,
                    "type": "integer"
                  },
                  "ref": {
                    "$ref": "#/$defs/__schema1"
                  }
                },
                "required": [
                  "action",
                  "ref",
                  "expectedVersion",
                  "changes"
                ],
                "type": "object"
              },
              {
                "additionalProperties": false,
                "properties": {
                  "action": {
                    "const": "delete",
                    "type": "string"
                  },
                  "expectedVersion": {
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991,
                    "type": "integer"
                  },
                  "ref": {
                    "$ref": "#/$defs/__schema1"
                  }
                },
                "required": [
                  "action",
                  "ref",
                  "expectedVersion"
                ],
                "type": "object"
              }
            ]
          },
          "maxItems": 500,
          "minItems": 1,
          "type": "array"
        }
      },
      "required": [
        "operations"
      ],
      "type": "object"
    },
    "hasna.todos.request.task_changed.v1": {
      "$id": "hasna.todos.request.task_changed.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "changedAfter": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "cursor": {
          "anyOf": [
            {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "limit": {
          "exclusiveMinimum": 0,
          "maximum": 500,
          "type": "integer"
        }
      },
      "required": [
        "changedAfter",
        "cursor",
        "limit"
      ],
      "type": "object"
    },
    "hasna.todos.request.task_claim.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.request.task_claim.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "agentId": {
          "$ref": "#/$defs/__schema0"
        },
        "planId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        },
        "projectId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        },
        "tags": {
          "items": {
            "maxLength": 96,
            "minLength": 1,
            "type": "string"
          },
          "maxItems": 128,
          "type": "array"
        },
        "taskListId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "agentId",
        "projectId",
        "taskListId",
        "planId",
        "tags"
      ],
      "type": "object"
    },
    "hasna.todos.request.task_complete.v1": {
      "$id": "hasna.todos.request.task_complete.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "expectedVersion": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        },
        "ref": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "summary": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "targetStatus": {
          "const": "completed",
          "type": "string"
        }
      },
      "required": [
        "ref",
        "expectedVersion",
        "summary",
        "targetStatus"
      ],
      "type": "object"
    },
    "hasna.todos.request.task_create.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.request.task_create.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "acceptanceCriteria": {
          "items": {
            "maxLength": 4096,
            "minLength": 1,
            "type": "string"
          },
          "maxItems": 256,
          "type": "array"
        },
        "assignedAgentId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        },
        "description": {
          "anyOf": [
            {
              "maxLength": 100000,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "dueAt": {
          "anyOf": [
            {
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "externalOwnerRefs": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "digest": {
                "pattern": "^[a-f0-9]{64}$",
                "type": "string"
              },
              "id": {
                "$ref": "#/$defs/__schema0"
              },
              "owner": {
                "maxLength": 128,
                "minLength": 2,
                "pattern": "^[a-z][a-z0-9.-]*$",
                "type": "string"
              }
            },
            "required": [
              "owner",
              "id",
              "digest"
            ],
            "type": "object"
          },
          "maxItems": 64,
          "type": "array"
        },
        "fingerprint": {
          "anyOf": [
            {
              "maxLength": 256,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "parentTaskId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        },
        "planId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        },
        "priority": {
          "enum": [
            "low",
            "medium",
            "high",
            "critical"
          ],
          "type": "string"
        },
        "projectId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        },
        "tags": {
          "items": {
            "maxLength": 96,
            "minLength": 1,
            "type": "string"
          },
          "maxItems": 128,
          "type": "array"
        },
        "taskListId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        },
        "title": {
          "maxLength": 512,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "title",
        "description",
        "priority",
        "projectId",
        "taskListId",
        "planId",
        "parentTaskId",
        "assignedAgentId",
        "fingerprint",
        "tags",
        "acceptanceCriteria",
        "dueAt",
        "externalOwnerRefs"
      ],
      "type": "object"
    },
    "hasna.todos.request.task_fail.v1": {
      "$id": "hasna.todos.request.task_fail.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "expectedVersion": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        },
        "ref": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "summary": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "targetStatus": {
          "const": "failed",
          "type": "string"
        }
      },
      "required": [
        "ref",
        "expectedVersion",
        "summary",
        "targetStatus"
      ],
      "type": "object"
    },
    "hasna.todos.request.task_file_record.v1": {
      "$id": "hasna.todos.request.task_file_record.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "contentRef": {
          "additionalProperties": false,
          "properties": {
            "algorithm": {
              "const": "sha256",
              "type": "string"
            },
            "byteLength": {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer"
            },
            "digest": {
              "pattern": "^[a-f0-9]{64}$",
              "type": "string"
            },
            "mediaType": {
              "maxLength": 160,
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "algorithm",
            "digest",
            "mediaType",
            "byteLength"
          ],
          "type": "object"
        },
        "logicalName": {
          "maxLength": 512,
          "minLength": 1,
          "type": "string"
        },
        "purpose": {
          "enum": [
            "attachment",
            "evidence",
            "deliverable"
          ],
          "type": "string"
        },
        "relativePath": {
          "anyOf": [
            {
              "maxLength": 1024,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "taskId": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        }
      },
      "required": [
        "taskId",
        "logicalName",
        "relativePath",
        "contentRef",
        "purpose"
      ],
      "type": "object",
      "x-hasna-invariants": [
        "todos.common.relative_path"
      ]
    },
    "hasna.todos.request.task_list_create.v1": {
      "$id": "hasna.todos.request.task_list_create.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "description": {
          "anyOf": [
            {
              "maxLength": 20000,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "name": {
          "maxLength": 256,
          "minLength": 1,
          "type": "string"
        },
        "projectId": {
          "anyOf": [
            {
              "maxLength": 160,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "slug": {
          "maxLength": 96,
          "minLength": 1,
          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
          "type": "string"
        }
      },
      "required": [
        "projectId",
        "slug",
        "name",
        "description"
      ],
      "type": "object"
    },
    "hasna.todos.request.task_list_update.v1": {
      "$id": "hasna.todos.request.task_list_update.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "description": {
          "anyOf": [
            {
              "maxLength": 20000,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "expectedVersion": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        },
        "name": {
          "maxLength": 256,
          "minLength": 1,
          "type": "string"
        },
        "ref": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "slug": {
          "maxLength": 96,
          "minLength": 1,
          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
          "type": "string"
        }
      },
      "required": [
        "ref",
        "expectedVersion"
      ],
      "type": "object"
    },
    "hasna.todos.request.task_lock.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.request.task_lock.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "expectedVersion": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        },
        "expiresAt": {
          "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|([+-]\\d{2}:\\d{2})))$",
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "ownerRef": {
          "additionalProperties": false,
          "properties": {
            "digest": {
              "pattern": "^[a-f0-9]{64}$",
              "type": "string"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "owner": {
              "maxLength": 128,
              "minLength": 2,
              "pattern": "^[a-z][a-z0-9.-]*$",
              "type": "string"
            }
          },
          "required": [
            "owner",
            "id",
            "digest"
          ],
          "type": "object"
        },
        "ref": {
          "$ref": "#/$defs/__schema0"
        }
      },
      "required": [
        "ref",
        "ownerRef",
        "expectedVersion",
        "expiresAt"
      ],
      "type": "object"
    },
    "hasna.todos.request.task_start.v1": {
      "$id": "hasna.todos.request.task_start.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "expectedVersion": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        },
        "ref": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "summary": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "targetStatus": {
          "const": "in_progress",
          "type": "string"
        }
      },
      "required": [
        "ref",
        "expectedVersion",
        "summary",
        "targetStatus"
      ],
      "type": "object"
    },
    "hasna.todos.request.task_template_create.v1": {
      "$id": "hasna.todos.request.task_template_create.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "acceptanceCriteria": {
          "items": {
            "maxLength": 4096,
            "minLength": 1,
            "type": "string"
          },
          "maxItems": 256,
          "type": "array"
        },
        "description": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "descriptionPattern": {
          "anyOf": [
            {
              "maxLength": 20000,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "name": {
          "maxLength": 256,
          "minLength": 1,
          "type": "string"
        },
        "priority": {
          "enum": [
            "low",
            "medium",
            "high",
            "critical"
          ],
          "type": "string"
        },
        "tags": {
          "items": {
            "maxLength": 96,
            "minLength": 1,
            "type": "string"
          },
          "maxItems": 128,
          "type": "array"
        },
        "titlePattern": {
          "maxLength": 512,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "name",
        "description",
        "titlePattern",
        "descriptionPattern",
        "priority",
        "tags",
        "acceptanceCriteria"
      ],
      "type": "object"
    },
    "hasna.todos.request.task_template_instantiate.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.request.task_template_instantiate.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "planId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        },
        "projectId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        },
        "ref": {
          "$ref": "#/$defs/__schema0"
        },
        "taskListId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        },
        "variables": {
          "additionalProperties": {
            "maxLength": 4096,
            "type": "string"
          },
          "propertyNames": {
            "type": "string"
          },
          "type": "object"
        }
      },
      "required": [
        "ref",
        "projectId",
        "taskListId",
        "planId",
        "variables"
      ],
      "type": "object"
    },
    "hasna.todos.request.task_template_update.v1": {
      "$id": "hasna.todos.request.task_template_update.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "acceptanceCriteria": {
          "items": {
            "maxLength": 4096,
            "minLength": 1,
            "type": "string"
          },
          "maxItems": 256,
          "type": "array"
        },
        "description": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "descriptionPattern": {
          "anyOf": [
            {
              "maxLength": 20000,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "expectedVersion": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        },
        "name": {
          "maxLength": 256,
          "minLength": 1,
          "type": "string"
        },
        "priority": {
          "enum": [
            "low",
            "medium",
            "high",
            "critical"
          ],
          "type": "string"
        },
        "ref": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "tags": {
          "items": {
            "maxLength": 96,
            "minLength": 1,
            "type": "string"
          },
          "maxItems": 128,
          "type": "array"
        },
        "titlePattern": {
          "maxLength": 512,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "ref",
        "expectedVersion"
      ],
      "type": "object"
    },
    "hasna.todos.request.task_update.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.request.task_update.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "changes": {
          "additionalProperties": false,
          "properties": {
            "acceptanceCriteria": {
              "items": {
                "maxLength": 4096,
                "minLength": 1,
                "type": "string"
              },
              "maxItems": 256,
              "type": "array"
            },
            "assignedAgentId": {
              "anyOf": [
                {
                  "$ref": "#/$defs/__schema0"
                },
                {
                  "type": "null"
                }
              ]
            },
            "description": {
              "anyOf": [
                {
                  "maxLength": 100000,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "dueAt": {
              "anyOf": [
                {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "parentTaskId": {
              "anyOf": [
                {
                  "$ref": "#/$defs/__schema0"
                },
                {
                  "type": "null"
                }
              ]
            },
            "planId": {
              "anyOf": [
                {
                  "$ref": "#/$defs/__schema0"
                },
                {
                  "type": "null"
                }
              ]
            },
            "priority": {
              "enum": [
                "low",
                "medium",
                "high",
                "critical"
              ],
              "type": "string"
            },
            "projectId": {
              "anyOf": [
                {
                  "$ref": "#/$defs/__schema0"
                },
                {
                  "type": "null"
                }
              ]
            },
            "tags": {
              "items": {
                "maxLength": 96,
                "minLength": 1,
                "type": "string"
              },
              "maxItems": 128,
              "type": "array"
            },
            "taskListId": {
              "anyOf": [
                {
                  "$ref": "#/$defs/__schema0"
                },
                {
                  "type": "null"
                }
              ]
            },
            "title": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          },
          "type": "object"
        },
        "expectedVersion": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        },
        "ref": {
          "$ref": "#/$defs/__schema0"
        }
      },
      "required": [
        "ref",
        "expectedVersion",
        "changes"
      ],
      "type": "object",
      "x-hasna-invariants": [
        "todos.operation.task_update_nonempty"
      ]
    },
    "hasna.todos.request.task_upsert.v1": {
      "$defs": {
        "__schema0": {
          "enum": [
            "low",
            "medium",
            "high",
            "critical"
          ],
          "type": "string"
        },
        "__schema1": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema2": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.request.task_upsert.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "create": {
          "additionalProperties": false,
          "properties": {
            "acceptanceCriteria": {
              "items": {
                "maxLength": 4096,
                "minLength": 1,
                "type": "string"
              },
              "maxItems": 256,
              "type": "array"
            },
            "assignedAgentId": {
              "anyOf": [
                {
                  "$ref": "#/$defs/__schema1"
                },
                {
                  "type": "null"
                }
              ]
            },
            "description": {
              "anyOf": [
                {
                  "maxLength": 100000,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "dueAt": {
              "anyOf": [
                {
                  "$ref": "#/$defs/__schema2"
                },
                {
                  "type": "null"
                }
              ]
            },
            "externalOwnerRefs": {
              "items": {
                "additionalProperties": false,
                "properties": {
                  "digest": {
                    "pattern": "^[a-f0-9]{64}$",
                    "type": "string"
                  },
                  "id": {
                    "$ref": "#/$defs/__schema1"
                  },
                  "owner": {
                    "maxLength": 128,
                    "minLength": 2,
                    "pattern": "^[a-z][a-z0-9.-]*$",
                    "type": "string"
                  }
                },
                "required": [
                  "owner",
                  "id",
                  "digest"
                ],
                "type": "object"
              },
              "maxItems": 64,
              "type": "array"
            },
            "fingerprint": {
              "anyOf": [
                {
                  "maxLength": 256,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "parentTaskId": {
              "anyOf": [
                {
                  "$ref": "#/$defs/__schema1"
                },
                {
                  "type": "null"
                }
              ]
            },
            "planId": {
              "anyOf": [
                {
                  "$ref": "#/$defs/__schema1"
                },
                {
                  "type": "null"
                }
              ]
            },
            "priority": {
              "$ref": "#/$defs/__schema0"
            },
            "projectId": {
              "anyOf": [
                {
                  "$ref": "#/$defs/__schema1"
                },
                {
                  "type": "null"
                }
              ]
            },
            "tags": {
              "items": {
                "maxLength": 96,
                "minLength": 1,
                "type": "string"
              },
              "maxItems": 128,
              "type": "array"
            },
            "taskListId": {
              "anyOf": [
                {
                  "$ref": "#/$defs/__schema1"
                },
                {
                  "type": "null"
                }
              ]
            },
            "title": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "title",
            "description",
            "priority",
            "projectId",
            "taskListId",
            "planId",
            "parentTaskId",
            "assignedAgentId",
            "fingerprint",
            "tags",
            "acceptanceCriteria",
            "dueAt",
            "externalOwnerRefs"
          ],
          "type": "object"
        },
        "expectedVersion": {
          "anyOf": [
            {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "fingerprint": {
          "maxLength": 256,
          "minLength": 1,
          "type": "string"
        },
        "update": {
          "additionalProperties": false,
          "properties": {
            "acceptanceCriteria": {
              "items": {
                "maxLength": 4096,
                "minLength": 1,
                "type": "string"
              },
              "maxItems": 256,
              "type": "array"
            },
            "assignedAgentId": {
              "anyOf": [
                {
                  "$ref": "#/$defs/__schema1"
                },
                {
                  "type": "null"
                }
              ]
            },
            "description": {
              "anyOf": [
                {
                  "maxLength": 100000,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "dueAt": {
              "anyOf": [
                {
                  "$ref": "#/$defs/__schema2"
                },
                {
                  "type": "null"
                }
              ]
            },
            "parentTaskId": {
              "anyOf": [
                {
                  "$ref": "#/$defs/__schema1"
                },
                {
                  "type": "null"
                }
              ]
            },
            "planId": {
              "anyOf": [
                {
                  "$ref": "#/$defs/__schema1"
                },
                {
                  "type": "null"
                }
              ]
            },
            "priority": {
              "$ref": "#/$defs/__schema0"
            },
            "projectId": {
              "anyOf": [
                {
                  "$ref": "#/$defs/__schema1"
                },
                {
                  "type": "null"
                }
              ]
            },
            "tags": {
              "items": {
                "maxLength": 96,
                "minLength": 1,
                "type": "string"
              },
              "maxItems": 128,
              "type": "array"
            },
            "taskListId": {
              "anyOf": [
                {
                  "$ref": "#/$defs/__schema1"
                },
                {
                  "type": "null"
                }
              ]
            },
            "title": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "required": [
        "fingerprint",
        "create",
        "update",
        "expectedVersion"
      ],
      "type": "object"
    },
    "hasna.todos.request.transfer_export.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.request.transfer_export.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "bundleId": {
          "$ref": "#/$defs/__schema0"
        },
        "createdAt": {
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "projectIds": {
          "items": {
            "$ref": "#/$defs/__schema0"
          },
          "maxItems": 10000,
          "type": "array"
        },
        "sectionNames": {
          "items": {
            "enum": [
              "projects",
              "task_lists",
              "plans",
              "tasks",
              "comments",
              "dependencies",
              "activities",
              "verification_evidence",
              "task_files",
              "runs",
              "run_events",
              "run_commands",
              "run_files",
              "run_artifacts",
              "git_commits",
              "git_refs",
              "traceability",
              "task_to_pr_projections",
              "saved_views",
              "task_templates",
              "approvals",
              "deletion_records"
            ],
            "type": "string"
          },
          "minItems": 1,
          "type": "array"
        }
      },
      "required": [
        "bundleId",
        "createdAt",
        "projectIds",
        "sectionNames"
      ],
      "type": "object"
    },
    "hasna.todos.request.transfer_import_execute.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema10": {
          "additionalProperties": false,
          "properties": {
            "algorithm": {
              "const": "sha256",
              "type": "string"
            },
            "byteLength": {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer"
            },
            "digest": {
              "$ref": "#/$defs/__schema3"
            },
            "mediaType": {
              "maxLength": 160,
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "algorithm",
            "digest",
            "mediaType",
            "byteLength"
          ],
          "type": "object"
        },
        "__schema11": {
          "maxLength": 512,
          "minLength": 1,
          "type": "string"
        },
        "__schema12": {
          "additionalProperties": false,
          "properties": {
            "algorithm": {
              "enum": [
                "sha1",
                "sha256"
              ],
              "type": "string"
            },
            "value": {
              "pattern": "^[a-f0-9]+$",
              "type": "string"
            }
          },
          "required": [
            "algorithm",
            "value"
          ],
          "type": "object"
        },
        "__schema13": {
          "additionalProperties": false,
          "properties": {
            "head": {
              "$ref": "#/$defs/__schema12"
            },
            "kind": {
              "enum": [
                "head_equality",
                "ci",
                "review"
              ],
              "type": "string"
            },
            "observedAt": {
              "$ref": "#/$defs/__schema1"
            },
            "ref": {
              "additionalProperties": false,
              "properties": {
                "digest": {
                  "$ref": "#/$defs/__schema3"
                },
                "id": {
                  "$ref": "#/$defs/__schema0"
                },
                "kind": {
                  "const": "proof_bundle",
                  "type": "string"
                },
                "owner": {
                  "$ref": "#/$defs/__schema2"
                }
              },
              "required": [
                "owner",
                "kind",
                "id",
                "digest"
              ],
              "type": "object"
            }
          },
          "required": [
            "ref",
            "kind",
            "head",
            "observedAt"
          ],
          "type": "object"
        },
        "__schema14": {
          "additionalProperties": false,
          "properties": {
            "digest": {
              "$ref": "#/$defs/__schema3"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "kind": {
              "const": "task_to_pr_projection",
              "type": "string"
            },
            "owner": {
              "$ref": "#/$defs/__schema2"
            },
            "section": {
              "$ref": "#/$defs/__schema15"
            },
            "version": {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            }
          },
          "required": [
            "owner",
            "section",
            "id"
          ],
          "type": "object"
        },
        "__schema15": {
          "enum": [
            "projects",
            "task_lists",
            "plans",
            "tasks",
            "comments",
            "dependencies",
            "activities",
            "verification_evidence",
            "task_files",
            "runs",
            "run_events",
            "run_commands",
            "run_files",
            "run_artifacts",
            "git_commits",
            "git_refs",
            "traceability",
            "task_to_pr_projections",
            "saved_views",
            "task_templates",
            "approvals",
            "deletion_records"
          ],
          "type": "string"
        },
        "__schema2": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema3": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        },
        "__schema4": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        },
        "__schema5": {
          "maxLength": 96,
          "minLength": 1,
          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
          "type": "string"
        },
        "__schema6": {
          "additionalProperties": false,
          "properties": {
            "digest": {
              "$ref": "#/$defs/__schema3"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "owner": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "owner",
            "id",
            "digest"
          ],
          "type": "object"
        },
        "__schema7": {
          "enum": [
            "pending",
            "ready",
            "in_progress",
            "blocked",
            "completed",
            "failed",
            "cancelled"
          ],
          "type": "string"
        },
        "__schema8": {
          "enum": [
            "low",
            "medium",
            "high",
            "critical"
          ],
          "type": "string"
        },
        "__schema9": {
          "additionalProperties": false,
          "properties": {
            "digest": {
              "$ref": "#/$defs/__schema3"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "kind": {
              "maxLength": 64,
              "minLength": 1,
              "pattern": "^[a-z][a-z0-9_]*$",
              "type": "string"
            },
            "owner": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "owner",
            "kind",
            "id",
            "digest"
          ],
          "type": "object"
        }
      },
      "$id": "hasna.todos.request.transfer_import_execute.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "bundle": {
          "additionalProperties": false,
          "properties": {
            "attachmentContentReferences": {
              "items": {
                "additionalProperties": false,
                "properties": {
                  "contentRef": {
                    "$ref": "#/$defs/__schema10"
                  },
                  "index": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "owner": {
                    "$ref": "#/$defs/__schema2"
                  },
                  "source": {
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "section": {
                        "enum": [
                          "verification_evidence",
                          "task_files",
                          "run_commands",
                          "run_files",
                          "run_artifacts"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "section",
                      "id"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "owner",
                  "source",
                  "index",
                  "contentRef"
                ],
                "type": "object"
              },
              "type": "array"
            },
            "bundleChecksum": {
              "$ref": "#/$defs/__schema3"
            },
            "bundleId": {
              "$ref": "#/$defs/__schema0"
            },
            "contractDigest": {
              "$ref": "#/$defs/__schema3"
            },
            "contractVersion": {
              "const": "1.0.0",
              "type": "string"
            },
            "createdAt": {
              "$ref": "#/$defs/__schema1"
            },
            "dependencyClosure": {
              "items": {
                "additionalProperties": false,
                "properties": {
                  "dependencyTaskIds": {
                    "items": {
                      "$ref": "#/$defs/__schema0"
                    },
                    "type": "array"
                  },
                  "owner": {
                    "$ref": "#/$defs/__schema2"
                  },
                  "taskId": {
                    "$ref": "#/$defs/__schema0"
                  }
                },
                "required": [
                  "owner",
                  "taskId",
                  "dependencyTaskIds"
                ],
                "type": "object"
              },
              "type": "array"
            },
            "manifestDigest": {
              "$ref": "#/$defs/__schema3"
            },
            "manifestVersion": {
              "const": "1",
              "type": "string"
            },
            "referenceClosure": {
              "items": {
                "additionalProperties": false,
                "properties": {
                  "references": {
                    "items": {
                      "$ref": "#/$defs/__schema14"
                    },
                    "type": "array"
                  },
                  "source": {
                    "$ref": "#/$defs/__schema14"
                  }
                },
                "required": [
                  "source",
                  "references"
                ],
                "type": "object"
              },
              "type": "array"
            },
            "referenceOnly": {
              "additionalProperties": false,
              "properties": {
                "agentIds": {
                  "items": {
                    "$ref": "#/$defs/__schema0"
                  },
                  "type": "array"
                },
                "externalOwnerRefs": {
                  "items": {
                    "$ref": "#/$defs/__schema6"
                  },
                  "type": "array"
                },
                "owner": {
                  "$ref": "#/$defs/__schema2"
                },
                "ownerQualifiedRefs": {
                  "items": {
                    "$ref": "#/$defs/__schema9"
                  },
                  "type": "array"
                }
              },
              "required": [
                "owner",
                "agentIds",
                "externalOwnerRefs",
                "ownerQualifiedRefs"
              ],
              "type": "object"
            },
            "schema": {
              "const": "hasna.todos.transfer_bundle.v1",
              "type": "string"
            },
            "sections": {
              "additionalProperties": false,
              "properties": {
                "activities": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "action": {
                            "maxLength": 160,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_.:-]*$",
                            "type": "string"
                          },
                          "actorRef": {
                            "$ref": "#/$defs/__schema6"
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "occurredAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "resourceRef": {
                            "$ref": "#/$defs/__schema9"
                          },
                          "summary": {
                            "maxLength": 4096,
                            "minLength": 1,
                            "type": "string"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "actorRef",
                          "resourceRef",
                          "action",
                          "summary",
                          "occurredAt"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "approvals": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "decidedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema1"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "decidedBy": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema6"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "expiresAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema1"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "reason": {
                            "maxLength": 4096,
                            "minLength": 1,
                            "type": "string"
                          },
                          "requestedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "requestedBy": {
                            "$ref": "#/$defs/__schema6"
                          },
                          "resourceRef": {
                            "$ref": "#/$defs/__schema9"
                          },
                          "status": {
                            "enum": [
                              "pending",
                              "approved",
                              "rejected",
                              "expired"
                            ],
                            "type": "string"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "resourceRef",
                          "status",
                          "reason",
                          "requestedBy",
                          "decidedBy",
                          "requestedAt",
                          "decidedAt",
                          "expiresAt"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "comments": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "authorRef": {
                            "$ref": "#/$defs/__schema6"
                          },
                          "content": {
                            "maxLength": 100000,
                            "minLength": 1,
                            "type": "string"
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "kind": {
                            "enum": [
                              "comment",
                              "progress",
                              "note"
                            ],
                            "type": "string"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "progressPercent": {
                            "anyOf": [
                              {
                                "maximum": 100,
                                "minimum": 0,
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "taskId": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "taskId",
                          "authorRef",
                          "kind",
                          "content",
                          "progressPercent"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "deletion_records": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "deletedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "entityIdDigest": {
                            "$ref": "#/$defs/__schema3"
                          },
                          "entityKind": {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_]*$",
                            "type": "string"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "priorRecordDigest": {
                            "$ref": "#/$defs/__schema3"
                          },
                          "reasonCode": {
                            "maxLength": 128,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_]*$",
                            "type": "string"
                          },
                          "redaction": {
                            "const": "full",
                            "type": "string"
                          },
                          "tombstoneVersion": {
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991,
                            "type": "integer"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "entityKind",
                          "entityIdDigest",
                          "priorRecordDigest",
                          "tombstoneVersion",
                          "redaction",
                          "reasonCode",
                          "deletedAt"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "dependencies": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "kind": {
                            "enum": [
                              "requires",
                              "blocks"
                            ],
                            "type": "string"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "sourceTaskId": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "targetTaskId": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "sourceTaskId",
                          "targetTaskId",
                          "kind"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "git_commits": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "authorRef": {
                            "$ref": "#/$defs/__schema6"
                          },
                          "changedFileDigests": {
                            "items": {
                              "$ref": "#/$defs/__schema3"
                            },
                            "maxItems": 50000,
                            "type": "array"
                          },
                          "committedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "message": {
                            "maxLength": 20000,
                            "minLength": 1,
                            "type": "string"
                          },
                          "objectId": {
                            "$ref": "#/$defs/__schema12"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "repositoryRef": {
                            "$ref": "#/$defs/__schema6"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991,
                            "type": "integer"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "repositoryRef",
                          "objectId",
                          "message",
                          "authorRef",
                          "committedAt",
                          "changedFileDigests"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "git_refs": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "name": {
                            "maxLength": 512,
                            "minLength": 1,
                            "type": "string"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "providerObservedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema1"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "published": {
                            "type": "boolean"
                          },
                          "repositoryRef": {
                            "$ref": "#/$defs/__schema6"
                          },
                          "target": {
                            "$ref": "#/$defs/__schema12"
                          },
                          "type": {
                            "enum": [
                              "branch",
                              "tag",
                              "pull_request"
                            ],
                            "type": "string"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "repositoryRef",
                          "type",
                          "name",
                          "target",
                          "published",
                          "providerObservedAt"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "plans": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "completedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema1"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "maxLength": 40000,
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "name": {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          "objective": {
                            "maxLength": 20000,
                            "minLength": 1,
                            "type": "string"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "projectId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema0"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "slug": {
                            "$ref": "#/$defs/__schema5"
                          },
                          "status": {
                            "enum": [
                              "draft",
                              "active",
                              "completed",
                              "archived"
                            ],
                            "type": "string"
                          },
                          "taskIds": {
                            "items": {
                              "$ref": "#/$defs/__schema0"
                            },
                            "maxItems": 10000,
                            "type": "array"
                          },
                          "taskListId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema0"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "slug",
                          "projectId",
                          "taskListId",
                          "name",
                          "description",
                          "status",
                          "objective",
                          "taskIds",
                          "completedAt"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "projects": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "archivedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema1"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "maxLength": 20000,
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "name": {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "repositoryRef": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema6"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "slug": {
                            "$ref": "#/$defs/__schema5"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "slug",
                          "name",
                          "description",
                          "repositoryRef",
                          "archivedAt"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "run_artifacts": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "contentRef": {
                            "$ref": "#/$defs/__schema10"
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "kind": {
                            "maxLength": 160,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_.:-]*$",
                            "type": "string"
                          },
                          "logicalName": {
                            "$ref": "#/$defs/__schema11"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "runId": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "verificationEvidenceId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema0"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "verified": {
                            "type": "boolean"
                          },
                          "version": {
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991,
                            "type": "integer"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "runId",
                          "logicalName",
                          "kind",
                          "contentRef",
                          "verified",
                          "verificationEvidenceId"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "run_commands": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "argumentsDigest": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema3"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "commandDigest": {
                            "$ref": "#/$defs/__schema3"
                          },
                          "completedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema1"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "durationMs": {
                            "anyOf": [
                              {
                                "maximum": 9007199254740991,
                                "minimum": 0,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "exitCode": {
                            "anyOf": [
                              {
                                "maximum": 9007199254740991,
                                "minimum": -9007199254740991,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "outputRefs": {
                            "items": {
                              "$ref": "#/$defs/__schema10"
                            },
                            "maxItems": 1024,
                            "type": "array"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "runId": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "sequence": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991,
                            "type": "integer"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "runId",
                          "sequence",
                          "commandDigest",
                          "argumentsDigest",
                          "exitCode",
                          "durationMs",
                          "outputRefs",
                          "completedAt"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "run_events": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "evidenceIds": {
                            "items": {
                              "$ref": "#/$defs/__schema0"
                            },
                            "maxItems": 10000,
                            "type": "array"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "occurredAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "runId": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "sequence": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "summary": {
                            "maxLength": 20000,
                            "minLength": 1,
                            "type": "string"
                          },
                          "type": {
                            "maxLength": 160,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_.:-]*$",
                            "type": "string"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "runId",
                          "sequence",
                          "type",
                          "summary",
                          "occurredAt",
                          "evidenceIds"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "run_files": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "contentRef": {
                            "$ref": "#/$defs/__schema10"
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "logicalName": {
                            "$ref": "#/$defs/__schema11"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "role": {
                            "enum": [
                              "input",
                              "output",
                              "evidence"
                            ],
                            "type": "string"
                          },
                          "runId": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991,
                            "type": "integer"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "runId",
                          "logicalName",
                          "contentRef",
                          "role"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "runs": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "agentId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema0"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "completedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema1"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "ledgerDigest": {
                            "$ref": "#/$defs/__schema3"
                          },
                          "objective": {
                            "maxLength": 20000,
                            "minLength": 1,
                            "type": "string"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "planId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema0"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "startedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema1"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "status": {
                            "enum": [
                              "queued",
                              "running",
                              "succeeded",
                              "failed",
                              "cancelled"
                            ],
                            "type": "string"
                          },
                          "taskIds": {
                            "items": {
                              "$ref": "#/$defs/__schema0"
                            },
                            "maxItems": 10000,
                            "type": "array"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "objective",
                          "status",
                          "taskIds",
                          "planId",
                          "agentId",
                          "startedAt",
                          "completedAt",
                          "ledgerDigest"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "saved_views": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "audience": {
                            "enum": [
                              "private",
                              "organization"
                            ],
                            "type": "string"
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "maxLength": 4096,
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "name": {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "query": {
                            "additionalProperties": false,
                            "properties": {
                              "cursor": {
                                "anyOf": [
                                  {
                                    "maxLength": 512,
                                    "minLength": 1,
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "filters": {
                                "additionalProperties": false,
                                "properties": {
                                  "agentIds": {
                                    "items": {
                                      "$ref": "#/$defs/__schema0"
                                    },
                                    "maxItems": 256,
                                    "type": "array"
                                  },
                                  "changedAfter": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/__schema1"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "dueBefore": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/__schema1"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "planIds": {
                                    "items": {
                                      "$ref": "#/$defs/__schema0"
                                    },
                                    "maxItems": 256,
                                    "type": "array"
                                  },
                                  "priorities": {
                                    "items": {
                                      "$ref": "#/$defs/__schema8"
                                    },
                                    "maxItems": 8,
                                    "type": "array"
                                  },
                                  "projectIds": {
                                    "items": {
                                      "$ref": "#/$defs/__schema0"
                                    },
                                    "maxItems": 256,
                                    "type": "array"
                                  },
                                  "statuses": {
                                    "items": {
                                      "$ref": "#/$defs/__schema7"
                                    },
                                    "maxItems": 16,
                                    "type": "array"
                                  },
                                  "tags": {
                                    "items": {
                                      "maxLength": 96,
                                      "minLength": 1,
                                      "type": "string"
                                    },
                                    "maxItems": 128,
                                    "type": "array"
                                  },
                                  "taskListIds": {
                                    "items": {
                                      "$ref": "#/$defs/__schema0"
                                    },
                                    "maxItems": 256,
                                    "type": "array"
                                  }
                                },
                                "required": [
                                  "projectIds",
                                  "taskListIds",
                                  "planIds",
                                  "agentIds",
                                  "statuses",
                                  "priorities",
                                  "tags",
                                  "changedAfter",
                                  "dueBefore"
                                ],
                                "type": "object"
                              },
                              "limit": {
                                "exclusiveMinimum": 0,
                                "maximum": 500,
                                "type": "integer"
                              },
                              "query": {
                                "maxLength": 4096,
                                "minLength": 1,
                                "type": "string"
                              }
                            },
                            "required": [
                              "query",
                              "filters",
                              "cursor",
                              "limit"
                            ],
                            "type": "object"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "name",
                          "description",
                          "query",
                          "audience"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "task_files": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "contentRef": {
                            "$ref": "#/$defs/__schema10"
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "logicalName": {
                            "$ref": "#/$defs/__schema11"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "purpose": {
                            "enum": [
                              "attachment",
                              "evidence",
                              "deliverable"
                            ],
                            "type": "string"
                          },
                          "taskId": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991,
                            "type": "integer"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "taskId",
                          "logicalName",
                          "contentRef",
                          "purpose"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "task_lists": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "archivedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema1"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "maxLength": 20000,
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "name": {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "projectId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema0"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "slug": {
                            "$ref": "#/$defs/__schema5"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "projectId",
                          "slug",
                          "name",
                          "description",
                          "archivedAt"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "task_templates": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "acceptanceCriteria": {
                            "items": {
                              "maxLength": 4096,
                              "minLength": 1,
                              "type": "string"
                            },
                            "maxItems": 256,
                            "type": "array"
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "maxLength": 4096,
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "descriptionPattern": {
                            "anyOf": [
                              {
                                "maxLength": 20000,
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "name": {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "priority": {
                            "$ref": "#/$defs/__schema8"
                          },
                          "tags": {
                            "items": {
                              "maxLength": 96,
                              "minLength": 1,
                              "type": "string"
                            },
                            "maxItems": 128,
                            "type": "array"
                          },
                          "titlePattern": {
                            "maxLength": 512,
                            "minLength": 1,
                            "type": "string"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "name",
                          "description",
                          "titlePattern",
                          "descriptionPattern",
                          "priority",
                          "tags",
                          "acceptanceCriteria"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "task_to_pr_projections": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "derivedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "digest": {
                            "$ref": "#/$defs/__schema3"
                          },
                          "head": {
                            "additionalProperties": false,
                            "properties": {
                              "branchHead": {
                                "$ref": "#/$defs/__schema12"
                              },
                              "equalityProof": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/__schema13"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "providerObservedHead": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/__schema12"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "publishedHead": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/__schema12"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "branchHead",
                              "publishedHead",
                              "providerObservedHead",
                              "equalityProof"
                            ],
                            "type": "object"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "identity": {
                            "additionalProperties": false,
                            "properties": {
                              "baseHead": {
                                "$ref": "#/$defs/__schema12"
                              },
                              "branchRef": {
                                "additionalProperties": false,
                                "properties": {
                                  "digest": {
                                    "$ref": "#/$defs/__schema3"
                                  },
                                  "id": {
                                    "$ref": "#/$defs/__schema0"
                                  },
                                  "kind": {
                                    "const": "branch",
                                    "type": "string"
                                  },
                                  "owner": {
                                    "$ref": "#/$defs/__schema2"
                                  }
                                },
                                "required": [
                                  "owner",
                                  "kind",
                                  "id",
                                  "digest"
                                ],
                                "type": "object"
                              },
                              "repositoryRef": {
                                "additionalProperties": false,
                                "properties": {
                                  "digest": {
                                    "$ref": "#/$defs/__schema3"
                                  },
                                  "id": {
                                    "$ref": "#/$defs/__schema0"
                                  },
                                  "kind": {
                                    "const": "repository",
                                    "type": "string"
                                  },
                                  "owner": {
                                    "$ref": "#/$defs/__schema2"
                                  }
                                },
                                "required": [
                                  "owner",
                                  "kind",
                                  "id",
                                  "digest"
                                ],
                                "type": "object"
                              },
                              "taskRef": {
                                "additionalProperties": false,
                                "properties": {
                                  "digest": {
                                    "$ref": "#/$defs/__schema3"
                                  },
                                  "id": {
                                    "$ref": "#/$defs/__schema0"
                                  },
                                  "kind": {
                                    "const": "task",
                                    "type": "string"
                                  },
                                  "owner": {
                                    "$ref": "#/$defs/__schema2"
                                  }
                                },
                                "required": [
                                  "owner",
                                  "kind",
                                  "id",
                                  "digest"
                                ],
                                "type": "object"
                              },
                              "worktreeRef": {
                                "additionalProperties": false,
                                "properties": {
                                  "digest": {
                                    "$ref": "#/$defs/__schema3"
                                  },
                                  "id": {
                                    "$ref": "#/$defs/__schema0"
                                  },
                                  "kind": {
                                    "const": "worktree",
                                    "type": "string"
                                  },
                                  "owner": {
                                    "$ref": "#/$defs/__schema2"
                                  }
                                },
                                "required": [
                                  "owner",
                                  "kind",
                                  "id",
                                  "digest"
                                ],
                                "type": "object"
                              }
                            },
                            "required": [
                              "taskRef",
                              "repositoryRef",
                              "worktreeRef",
                              "branchRef",
                              "baseHead"
                            ],
                            "type": "object"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "predecessor": {
                            "anyOf": [
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "digest": {
                                    "$ref": "#/$defs/__schema3"
                                  },
                                  "kind": {
                                    "const": "task_to_pr_projection",
                                    "type": "string"
                                  },
                                  "owner": {
                                    "$ref": "#/$defs/__schema2"
                                  },
                                  "projectionId": {
                                    "$ref": "#/$defs/__schema0"
                                  },
                                  "version": {
                                    "exclusiveMinimum": 0,
                                    "maximum": 9007199254740991,
                                    "type": "integer"
                                  }
                                },
                                "required": [
                                  "kind",
                                  "projectionId",
                                  "owner",
                                  "version",
                                  "digest"
                                ],
                                "type": "object"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "proofs": {
                            "items": {
                              "$ref": "#/$defs/__schema13"
                            },
                            "maxItems": 10000,
                            "type": "array"
                          },
                          "pullRequestRef": {
                            "anyOf": [
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "digest": {
                                    "$ref": "#/$defs/__schema3"
                                  },
                                  "id": {
                                    "$ref": "#/$defs/__schema0"
                                  },
                                  "kind": {
                                    "const": "pull_request",
                                    "type": "string"
                                  },
                                  "owner": {
                                    "$ref": "#/$defs/__schema2"
                                  }
                                },
                                "required": [
                                  "owner",
                                  "kind",
                                  "id",
                                  "digest"
                                ],
                                "type": "object"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "schema": {
                            "const": "hasna.todos.task_to_pr_projection.v1",
                            "type": "string"
                          },
                          "sequence": {
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991,
                            "type": "integer"
                          },
                          "version": {
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991,
                            "type": "integer"
                          }
                        },
                        "required": [
                          "schema",
                          "id",
                          "owner",
                          "version",
                          "sequence",
                          "predecessor",
                          "identity",
                          "pullRequestRef",
                          "head",
                          "proofs",
                          "derivedAt",
                          "digest"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "tasks": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "acceptanceCriteria": {
                            "items": {
                              "maxLength": 4096,
                              "minLength": 1,
                              "type": "string"
                            },
                            "maxItems": 256,
                            "type": "array"
                          },
                          "assignedAgentId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema0"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "completedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema1"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "maxLength": 100000,
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "dueAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema1"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "externalOwnerRefs": {
                            "items": {
                              "$ref": "#/$defs/__schema6"
                            },
                            "maxItems": 64,
                            "type": "array"
                          },
                          "fingerprint": {
                            "anyOf": [
                              {
                                "maxLength": 256,
                                "minLength": 1,
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "parentTaskId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema0"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "planId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema0"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "priority": {
                            "$ref": "#/$defs/__schema8"
                          },
                          "projectId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema0"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "shortId": {
                            "anyOf": [
                              {
                                "maxLength": 40,
                                "minLength": 1,
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "status": {
                            "$ref": "#/$defs/__schema7"
                          },
                          "tags": {
                            "items": {
                              "maxLength": 96,
                              "minLength": 1,
                              "type": "string"
                            },
                            "maxItems": 128,
                            "type": "array"
                          },
                          "taskListId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema0"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "title": {
                            "maxLength": 512,
                            "minLength": 1,
                            "type": "string"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "shortId",
                          "title",
                          "description",
                          "status",
                          "priority",
                          "projectId",
                          "taskListId",
                          "planId",
                          "parentTaskId",
                          "assignedAgentId",
                          "fingerprint",
                          "tags",
                          "acceptanceCriteria",
                          "dueAt",
                          "completedAt",
                          "externalOwnerRefs"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "traceability": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "commitIds": {
                            "items": {
                              "$ref": "#/$defs/__schema0"
                            },
                            "maxItems": 10000,
                            "type": "array"
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "gitRefIds": {
                            "items": {
                              "$ref": "#/$defs/__schema0"
                            },
                            "maxItems": 10000,
                            "type": "array"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "projectionIds": {
                            "items": {
                              "$ref": "#/$defs/__schema0"
                            },
                            "maxItems": 10000,
                            "type": "array"
                          },
                          "taskId": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "verificationEvidenceIds": {
                            "items": {
                              "$ref": "#/$defs/__schema0"
                            },
                            "maxItems": 10000,
                            "type": "array"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "taskId",
                          "commitIds",
                          "gitRefIds",
                          "verificationEvidenceIds",
                          "projectionIds"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "verification_evidence": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "checks": {
                            "items": {
                              "additionalProperties": false,
                              "properties": {
                                "durationMs": {
                                  "anyOf": [
                                    {
                                      "maximum": 9007199254740991,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "name": {
                                  "maxLength": 512,
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "status": {
                                  "enum": [
                                    "passed",
                                    "failed",
                                    "skipped"
                                  ],
                                  "type": "string"
                                },
                                "summary": {
                                  "anyOf": [
                                    {
                                      "maxLength": 4096,
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "name",
                                "status",
                                "summary",
                                "durationMs"
                              ],
                              "type": "object"
                            },
                            "maxItems": 10000,
                            "type": "array"
                          },
                          "commandReceipts": {
                            "items": {
                              "additionalProperties": false,
                              "properties": {
                                "argumentsDigest": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/__schema3"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "commandDigest": {
                                  "$ref": "#/$defs/__schema3"
                                },
                                "durationMs": {
                                  "anyOf": [
                                    {
                                      "maximum": 9007199254740991,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "exitCode": {
                                  "anyOf": [
                                    {
                                      "maximum": 9007199254740991,
                                      "minimum": -9007199254740991,
                                      "type": "integer"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "outputRefs": {
                                  "items": {
                                    "$ref": "#/$defs/__schema10"
                                  },
                                  "maxItems": 1024,
                                  "type": "array"
                                }
                              },
                              "required": [
                                "commandDigest",
                                "argumentsDigest",
                                "exitCode",
                                "durationMs",
                                "outputRefs"
                              ],
                              "type": "object"
                            },
                            "maxItems": 256,
                            "type": "array"
                          },
                          "completedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema1"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "confidence": {
                            "anyOf": [
                              {
                                "maximum": 1,
                                "minimum": 0,
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "contentRefs": {
                            "items": {
                              "$ref": "#/$defs/__schema10"
                            },
                            "maxItems": 10000,
                            "type": "array"
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "runId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema0"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "startedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "status": {
                            "enum": [
                              "passed",
                              "failed",
                              "inconclusive"
                            ],
                            "type": "string"
                          },
                          "summary": {
                            "maxLength": 20000,
                            "minLength": 1,
                            "type": "string"
                          },
                          "taskId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema0"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "verifierRef": {
                            "$ref": "#/$defs/__schema6"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "taskId",
                          "runId",
                          "verifierRef",
                          "status",
                          "summary",
                          "confidence",
                          "checks",
                          "contentRefs",
                          "startedAt",
                          "completedAt",
                          "commandReceipts"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                }
              },
              "required": [
                "projects",
                "task_lists",
                "plans",
                "tasks",
                "comments",
                "dependencies",
                "activities",
                "verification_evidence",
                "task_files",
                "runs",
                "run_events",
                "run_commands",
                "run_files",
                "run_artifacts",
                "git_commits",
                "git_refs",
                "traceability",
                "task_to_pr_projections",
                "saved_views",
                "task_templates",
                "approvals",
                "deletion_records"
              ],
              "type": "object"
            },
            "source": {
              "additionalProperties": false,
              "properties": {
                "authorityId": {
                  "$ref": "#/$defs/__schema2"
                }
              },
              "required": [
                "authorityId"
              ],
              "type": "object"
            },
            "version": {
              "const": "1",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "version",
            "bundleId",
            "createdAt",
            "source",
            "contractVersion",
            "contractDigest",
            "manifestVersion",
            "manifestDigest",
            "sections",
            "dependencyClosure",
            "referenceClosure",
            "attachmentContentReferences",
            "referenceOnly",
            "bundleChecksum"
          ],
          "type": "object"
        },
        "checkpoint": {
          "anyOf": [
            {
              "additionalProperties": false,
              "properties": {
                "bundleChecksum": {
                  "$ref": "#/$defs/__schema3"
                },
                "bundleId": {
                  "$ref": "#/$defs/__schema0"
                },
                "completedSections": {
                  "items": {
                    "$ref": "#/$defs/__schema15"
                  },
                  "type": "array"
                },
                "contractDigest": {
                  "$ref": "#/$defs/__schema3"
                },
                "digest": {
                  "$ref": "#/$defs/__schema3"
                },
                "idempotencyKey": {
                  "maxLength": 160,
                  "minLength": 8,
                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
                  "type": "string"
                },
                "importPlanDigest": {
                  "$ref": "#/$defs/__schema3"
                },
                "importPlanId": {
                  "$ref": "#/$defs/__schema0"
                },
                "manifestDigest": {
                  "$ref": "#/$defs/__schema3"
                },
                "nextSection": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema15"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "schema": {
                  "const": "hasna.todos.transfer_checkpoint.v1",
                  "type": "string"
                },
                "sequence": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "sourceAuthorityId": {
                  "$ref": "#/$defs/__schema2"
                },
                "state": {
                  "enum": [
                    "pending",
                    "interrupted",
                    "committed"
                  ],
                  "type": "string"
                },
                "targetAuthorityId": {
                  "$ref": "#/$defs/__schema2"
                }
              },
              "required": [
                "schema",
                "sourceAuthorityId",
                "bundleId",
                "bundleChecksum",
                "importPlanId",
                "importPlanDigest",
                "contractDigest",
                "manifestDigest",
                "targetAuthorityId",
                "idempotencyKey",
                "sequence",
                "completedSections",
                "nextSection",
                "state",
                "digest"
              ],
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        },
        "importPlanDigest": {
          "$ref": "#/$defs/__schema3"
        },
        "importPlanId": {
          "$ref": "#/$defs/__schema0"
        },
        "targetAuthorityId": {
          "$ref": "#/$defs/__schema2"
        }
      },
      "required": [
        "bundle",
        "targetAuthorityId",
        "importPlanId",
        "importPlanDigest",
        "checkpoint"
      ],
      "type": "object",
      "x-hasna-invariants": [
        "todos.operation.transfer_checkpoint_binding",
        "todos.transfer.public_canonical_boundaries"
      ]
    },
    "hasna.todos.request.transfer_import_preview.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema10": {
          "additionalProperties": false,
          "properties": {
            "algorithm": {
              "const": "sha256",
              "type": "string"
            },
            "byteLength": {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer"
            },
            "digest": {
              "$ref": "#/$defs/__schema3"
            },
            "mediaType": {
              "maxLength": 160,
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "algorithm",
            "digest",
            "mediaType",
            "byteLength"
          ],
          "type": "object"
        },
        "__schema11": {
          "maxLength": 512,
          "minLength": 1,
          "type": "string"
        },
        "__schema12": {
          "additionalProperties": false,
          "properties": {
            "algorithm": {
              "enum": [
                "sha1",
                "sha256"
              ],
              "type": "string"
            },
            "value": {
              "pattern": "^[a-f0-9]+$",
              "type": "string"
            }
          },
          "required": [
            "algorithm",
            "value"
          ],
          "type": "object"
        },
        "__schema13": {
          "additionalProperties": false,
          "properties": {
            "head": {
              "$ref": "#/$defs/__schema12"
            },
            "kind": {
              "enum": [
                "head_equality",
                "ci",
                "review"
              ],
              "type": "string"
            },
            "observedAt": {
              "$ref": "#/$defs/__schema1"
            },
            "ref": {
              "additionalProperties": false,
              "properties": {
                "digest": {
                  "$ref": "#/$defs/__schema3"
                },
                "id": {
                  "$ref": "#/$defs/__schema0"
                },
                "kind": {
                  "const": "proof_bundle",
                  "type": "string"
                },
                "owner": {
                  "$ref": "#/$defs/__schema2"
                }
              },
              "required": [
                "owner",
                "kind",
                "id",
                "digest"
              ],
              "type": "object"
            }
          },
          "required": [
            "ref",
            "kind",
            "head",
            "observedAt"
          ],
          "type": "object"
        },
        "__schema14": {
          "additionalProperties": false,
          "properties": {
            "digest": {
              "$ref": "#/$defs/__schema3"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "kind": {
              "const": "task_to_pr_projection",
              "type": "string"
            },
            "owner": {
              "$ref": "#/$defs/__schema2"
            },
            "section": {
              "enum": [
                "projects",
                "task_lists",
                "plans",
                "tasks",
                "comments",
                "dependencies",
                "activities",
                "verification_evidence",
                "task_files",
                "runs",
                "run_events",
                "run_commands",
                "run_files",
                "run_artifacts",
                "git_commits",
                "git_refs",
                "traceability",
                "task_to_pr_projections",
                "saved_views",
                "task_templates",
                "approvals",
                "deletion_records"
              ],
              "type": "string"
            },
            "version": {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            }
          },
          "required": [
            "owner",
            "section",
            "id"
          ],
          "type": "object"
        },
        "__schema2": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema3": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        },
        "__schema4": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        },
        "__schema5": {
          "maxLength": 96,
          "minLength": 1,
          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
          "type": "string"
        },
        "__schema6": {
          "additionalProperties": false,
          "properties": {
            "digest": {
              "$ref": "#/$defs/__schema3"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "owner": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "owner",
            "id",
            "digest"
          ],
          "type": "object"
        },
        "__schema7": {
          "enum": [
            "pending",
            "ready",
            "in_progress",
            "blocked",
            "completed",
            "failed",
            "cancelled"
          ],
          "type": "string"
        },
        "__schema8": {
          "enum": [
            "low",
            "medium",
            "high",
            "critical"
          ],
          "type": "string"
        },
        "__schema9": {
          "additionalProperties": false,
          "properties": {
            "digest": {
              "$ref": "#/$defs/__schema3"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "kind": {
              "maxLength": 64,
              "minLength": 1,
              "pattern": "^[a-z][a-z0-9_]*$",
              "type": "string"
            },
            "owner": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "owner",
            "kind",
            "id",
            "digest"
          ],
          "type": "object"
        }
      },
      "$id": "hasna.todos.request.transfer_import_preview.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "bundle": {
          "additionalProperties": false,
          "properties": {
            "attachmentContentReferences": {
              "items": {
                "additionalProperties": false,
                "properties": {
                  "contentRef": {
                    "$ref": "#/$defs/__schema10"
                  },
                  "index": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "owner": {
                    "$ref": "#/$defs/__schema2"
                  },
                  "source": {
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "section": {
                        "enum": [
                          "verification_evidence",
                          "task_files",
                          "run_commands",
                          "run_files",
                          "run_artifacts"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "section",
                      "id"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "owner",
                  "source",
                  "index",
                  "contentRef"
                ],
                "type": "object"
              },
              "type": "array"
            },
            "bundleChecksum": {
              "$ref": "#/$defs/__schema3"
            },
            "bundleId": {
              "$ref": "#/$defs/__schema0"
            },
            "contractDigest": {
              "$ref": "#/$defs/__schema3"
            },
            "contractVersion": {
              "const": "1.0.0",
              "type": "string"
            },
            "createdAt": {
              "$ref": "#/$defs/__schema1"
            },
            "dependencyClosure": {
              "items": {
                "additionalProperties": false,
                "properties": {
                  "dependencyTaskIds": {
                    "items": {
                      "$ref": "#/$defs/__schema0"
                    },
                    "type": "array"
                  },
                  "owner": {
                    "$ref": "#/$defs/__schema2"
                  },
                  "taskId": {
                    "$ref": "#/$defs/__schema0"
                  }
                },
                "required": [
                  "owner",
                  "taskId",
                  "dependencyTaskIds"
                ],
                "type": "object"
              },
              "type": "array"
            },
            "manifestDigest": {
              "$ref": "#/$defs/__schema3"
            },
            "manifestVersion": {
              "const": "1",
              "type": "string"
            },
            "referenceClosure": {
              "items": {
                "additionalProperties": false,
                "properties": {
                  "references": {
                    "items": {
                      "$ref": "#/$defs/__schema14"
                    },
                    "type": "array"
                  },
                  "source": {
                    "$ref": "#/$defs/__schema14"
                  }
                },
                "required": [
                  "source",
                  "references"
                ],
                "type": "object"
              },
              "type": "array"
            },
            "referenceOnly": {
              "additionalProperties": false,
              "properties": {
                "agentIds": {
                  "items": {
                    "$ref": "#/$defs/__schema0"
                  },
                  "type": "array"
                },
                "externalOwnerRefs": {
                  "items": {
                    "$ref": "#/$defs/__schema6"
                  },
                  "type": "array"
                },
                "owner": {
                  "$ref": "#/$defs/__schema2"
                },
                "ownerQualifiedRefs": {
                  "items": {
                    "$ref": "#/$defs/__schema9"
                  },
                  "type": "array"
                }
              },
              "required": [
                "owner",
                "agentIds",
                "externalOwnerRefs",
                "ownerQualifiedRefs"
              ],
              "type": "object"
            },
            "schema": {
              "const": "hasna.todos.transfer_bundle.v1",
              "type": "string"
            },
            "sections": {
              "additionalProperties": false,
              "properties": {
                "activities": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "action": {
                            "maxLength": 160,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_.:-]*$",
                            "type": "string"
                          },
                          "actorRef": {
                            "$ref": "#/$defs/__schema6"
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "occurredAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "resourceRef": {
                            "$ref": "#/$defs/__schema9"
                          },
                          "summary": {
                            "maxLength": 4096,
                            "minLength": 1,
                            "type": "string"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "actorRef",
                          "resourceRef",
                          "action",
                          "summary",
                          "occurredAt"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "approvals": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "decidedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema1"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "decidedBy": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema6"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "expiresAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema1"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "reason": {
                            "maxLength": 4096,
                            "minLength": 1,
                            "type": "string"
                          },
                          "requestedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "requestedBy": {
                            "$ref": "#/$defs/__schema6"
                          },
                          "resourceRef": {
                            "$ref": "#/$defs/__schema9"
                          },
                          "status": {
                            "enum": [
                              "pending",
                              "approved",
                              "rejected",
                              "expired"
                            ],
                            "type": "string"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "resourceRef",
                          "status",
                          "reason",
                          "requestedBy",
                          "decidedBy",
                          "requestedAt",
                          "decidedAt",
                          "expiresAt"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "comments": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "authorRef": {
                            "$ref": "#/$defs/__schema6"
                          },
                          "content": {
                            "maxLength": 100000,
                            "minLength": 1,
                            "type": "string"
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "kind": {
                            "enum": [
                              "comment",
                              "progress",
                              "note"
                            ],
                            "type": "string"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "progressPercent": {
                            "anyOf": [
                              {
                                "maximum": 100,
                                "minimum": 0,
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "taskId": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "taskId",
                          "authorRef",
                          "kind",
                          "content",
                          "progressPercent"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "deletion_records": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "deletedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "entityIdDigest": {
                            "$ref": "#/$defs/__schema3"
                          },
                          "entityKind": {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_]*$",
                            "type": "string"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "priorRecordDigest": {
                            "$ref": "#/$defs/__schema3"
                          },
                          "reasonCode": {
                            "maxLength": 128,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_]*$",
                            "type": "string"
                          },
                          "redaction": {
                            "const": "full",
                            "type": "string"
                          },
                          "tombstoneVersion": {
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991,
                            "type": "integer"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "entityKind",
                          "entityIdDigest",
                          "priorRecordDigest",
                          "tombstoneVersion",
                          "redaction",
                          "reasonCode",
                          "deletedAt"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "dependencies": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "kind": {
                            "enum": [
                              "requires",
                              "blocks"
                            ],
                            "type": "string"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "sourceTaskId": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "targetTaskId": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "sourceTaskId",
                          "targetTaskId",
                          "kind"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "git_commits": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "authorRef": {
                            "$ref": "#/$defs/__schema6"
                          },
                          "changedFileDigests": {
                            "items": {
                              "$ref": "#/$defs/__schema3"
                            },
                            "maxItems": 50000,
                            "type": "array"
                          },
                          "committedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "message": {
                            "maxLength": 20000,
                            "minLength": 1,
                            "type": "string"
                          },
                          "objectId": {
                            "$ref": "#/$defs/__schema12"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "repositoryRef": {
                            "$ref": "#/$defs/__schema6"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991,
                            "type": "integer"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "repositoryRef",
                          "objectId",
                          "message",
                          "authorRef",
                          "committedAt",
                          "changedFileDigests"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "git_refs": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "name": {
                            "maxLength": 512,
                            "minLength": 1,
                            "type": "string"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "providerObservedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema1"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "published": {
                            "type": "boolean"
                          },
                          "repositoryRef": {
                            "$ref": "#/$defs/__schema6"
                          },
                          "target": {
                            "$ref": "#/$defs/__schema12"
                          },
                          "type": {
                            "enum": [
                              "branch",
                              "tag",
                              "pull_request"
                            ],
                            "type": "string"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "repositoryRef",
                          "type",
                          "name",
                          "target",
                          "published",
                          "providerObservedAt"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "plans": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "completedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema1"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "maxLength": 40000,
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "name": {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          "objective": {
                            "maxLength": 20000,
                            "minLength": 1,
                            "type": "string"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "projectId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema0"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "slug": {
                            "$ref": "#/$defs/__schema5"
                          },
                          "status": {
                            "enum": [
                              "draft",
                              "active",
                              "completed",
                              "archived"
                            ],
                            "type": "string"
                          },
                          "taskIds": {
                            "items": {
                              "$ref": "#/$defs/__schema0"
                            },
                            "maxItems": 10000,
                            "type": "array"
                          },
                          "taskListId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema0"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "slug",
                          "projectId",
                          "taskListId",
                          "name",
                          "description",
                          "status",
                          "objective",
                          "taskIds",
                          "completedAt"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "projects": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "archivedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema1"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "maxLength": 20000,
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "name": {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "repositoryRef": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema6"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "slug": {
                            "$ref": "#/$defs/__schema5"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "slug",
                          "name",
                          "description",
                          "repositoryRef",
                          "archivedAt"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "run_artifacts": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "contentRef": {
                            "$ref": "#/$defs/__schema10"
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "kind": {
                            "maxLength": 160,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_.:-]*$",
                            "type": "string"
                          },
                          "logicalName": {
                            "$ref": "#/$defs/__schema11"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "runId": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "verificationEvidenceId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema0"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "verified": {
                            "type": "boolean"
                          },
                          "version": {
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991,
                            "type": "integer"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "runId",
                          "logicalName",
                          "kind",
                          "contentRef",
                          "verified",
                          "verificationEvidenceId"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "run_commands": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "argumentsDigest": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema3"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "commandDigest": {
                            "$ref": "#/$defs/__schema3"
                          },
                          "completedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema1"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "durationMs": {
                            "anyOf": [
                              {
                                "maximum": 9007199254740991,
                                "minimum": 0,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "exitCode": {
                            "anyOf": [
                              {
                                "maximum": 9007199254740991,
                                "minimum": -9007199254740991,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "outputRefs": {
                            "items": {
                              "$ref": "#/$defs/__schema10"
                            },
                            "maxItems": 1024,
                            "type": "array"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "runId": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "sequence": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991,
                            "type": "integer"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "runId",
                          "sequence",
                          "commandDigest",
                          "argumentsDigest",
                          "exitCode",
                          "durationMs",
                          "outputRefs",
                          "completedAt"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "run_events": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "evidenceIds": {
                            "items": {
                              "$ref": "#/$defs/__schema0"
                            },
                            "maxItems": 10000,
                            "type": "array"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "occurredAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "runId": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "sequence": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "summary": {
                            "maxLength": 20000,
                            "minLength": 1,
                            "type": "string"
                          },
                          "type": {
                            "maxLength": 160,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_.:-]*$",
                            "type": "string"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "runId",
                          "sequence",
                          "type",
                          "summary",
                          "occurredAt",
                          "evidenceIds"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "run_files": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "contentRef": {
                            "$ref": "#/$defs/__schema10"
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "logicalName": {
                            "$ref": "#/$defs/__schema11"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "role": {
                            "enum": [
                              "input",
                              "output",
                              "evidence"
                            ],
                            "type": "string"
                          },
                          "runId": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991,
                            "type": "integer"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "runId",
                          "logicalName",
                          "contentRef",
                          "role"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "runs": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "agentId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema0"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "completedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema1"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "ledgerDigest": {
                            "$ref": "#/$defs/__schema3"
                          },
                          "objective": {
                            "maxLength": 20000,
                            "minLength": 1,
                            "type": "string"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "planId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema0"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "startedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema1"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "status": {
                            "enum": [
                              "queued",
                              "running",
                              "succeeded",
                              "failed",
                              "cancelled"
                            ],
                            "type": "string"
                          },
                          "taskIds": {
                            "items": {
                              "$ref": "#/$defs/__schema0"
                            },
                            "maxItems": 10000,
                            "type": "array"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "objective",
                          "status",
                          "taskIds",
                          "planId",
                          "agentId",
                          "startedAt",
                          "completedAt",
                          "ledgerDigest"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "saved_views": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "audience": {
                            "enum": [
                              "private",
                              "organization"
                            ],
                            "type": "string"
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "maxLength": 4096,
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "name": {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "query": {
                            "additionalProperties": false,
                            "properties": {
                              "cursor": {
                                "anyOf": [
                                  {
                                    "maxLength": 512,
                                    "minLength": 1,
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "filters": {
                                "additionalProperties": false,
                                "properties": {
                                  "agentIds": {
                                    "items": {
                                      "$ref": "#/$defs/__schema0"
                                    },
                                    "maxItems": 256,
                                    "type": "array"
                                  },
                                  "changedAfter": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/__schema1"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "dueBefore": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/__schema1"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "planIds": {
                                    "items": {
                                      "$ref": "#/$defs/__schema0"
                                    },
                                    "maxItems": 256,
                                    "type": "array"
                                  },
                                  "priorities": {
                                    "items": {
                                      "$ref": "#/$defs/__schema8"
                                    },
                                    "maxItems": 8,
                                    "type": "array"
                                  },
                                  "projectIds": {
                                    "items": {
                                      "$ref": "#/$defs/__schema0"
                                    },
                                    "maxItems": 256,
                                    "type": "array"
                                  },
                                  "statuses": {
                                    "items": {
                                      "$ref": "#/$defs/__schema7"
                                    },
                                    "maxItems": 16,
                                    "type": "array"
                                  },
                                  "tags": {
                                    "items": {
                                      "maxLength": 96,
                                      "minLength": 1,
                                      "type": "string"
                                    },
                                    "maxItems": 128,
                                    "type": "array"
                                  },
                                  "taskListIds": {
                                    "items": {
                                      "$ref": "#/$defs/__schema0"
                                    },
                                    "maxItems": 256,
                                    "type": "array"
                                  }
                                },
                                "required": [
                                  "projectIds",
                                  "taskListIds",
                                  "planIds",
                                  "agentIds",
                                  "statuses",
                                  "priorities",
                                  "tags",
                                  "changedAfter",
                                  "dueBefore"
                                ],
                                "type": "object"
                              },
                              "limit": {
                                "exclusiveMinimum": 0,
                                "maximum": 500,
                                "type": "integer"
                              },
                              "query": {
                                "maxLength": 4096,
                                "minLength": 1,
                                "type": "string"
                              }
                            },
                            "required": [
                              "query",
                              "filters",
                              "cursor",
                              "limit"
                            ],
                            "type": "object"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "name",
                          "description",
                          "query",
                          "audience"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "task_files": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "contentRef": {
                            "$ref": "#/$defs/__schema10"
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "logicalName": {
                            "$ref": "#/$defs/__schema11"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "purpose": {
                            "enum": [
                              "attachment",
                              "evidence",
                              "deliverable"
                            ],
                            "type": "string"
                          },
                          "taskId": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991,
                            "type": "integer"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "taskId",
                          "logicalName",
                          "contentRef",
                          "purpose"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "task_lists": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "archivedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema1"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "maxLength": 20000,
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "name": {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "projectId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema0"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "slug": {
                            "$ref": "#/$defs/__schema5"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "projectId",
                          "slug",
                          "name",
                          "description",
                          "archivedAt"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "task_templates": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "acceptanceCriteria": {
                            "items": {
                              "maxLength": 4096,
                              "minLength": 1,
                              "type": "string"
                            },
                            "maxItems": 256,
                            "type": "array"
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "maxLength": 4096,
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "descriptionPattern": {
                            "anyOf": [
                              {
                                "maxLength": 20000,
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "name": {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "priority": {
                            "$ref": "#/$defs/__schema8"
                          },
                          "tags": {
                            "items": {
                              "maxLength": 96,
                              "minLength": 1,
                              "type": "string"
                            },
                            "maxItems": 128,
                            "type": "array"
                          },
                          "titlePattern": {
                            "maxLength": 512,
                            "minLength": 1,
                            "type": "string"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "name",
                          "description",
                          "titlePattern",
                          "descriptionPattern",
                          "priority",
                          "tags",
                          "acceptanceCriteria"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "task_to_pr_projections": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "derivedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "digest": {
                            "$ref": "#/$defs/__schema3"
                          },
                          "head": {
                            "additionalProperties": false,
                            "properties": {
                              "branchHead": {
                                "$ref": "#/$defs/__schema12"
                              },
                              "equalityProof": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/__schema13"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "providerObservedHead": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/__schema12"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "publishedHead": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/__schema12"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "branchHead",
                              "publishedHead",
                              "providerObservedHead",
                              "equalityProof"
                            ],
                            "type": "object"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "identity": {
                            "additionalProperties": false,
                            "properties": {
                              "baseHead": {
                                "$ref": "#/$defs/__schema12"
                              },
                              "branchRef": {
                                "additionalProperties": false,
                                "properties": {
                                  "digest": {
                                    "$ref": "#/$defs/__schema3"
                                  },
                                  "id": {
                                    "$ref": "#/$defs/__schema0"
                                  },
                                  "kind": {
                                    "const": "branch",
                                    "type": "string"
                                  },
                                  "owner": {
                                    "$ref": "#/$defs/__schema2"
                                  }
                                },
                                "required": [
                                  "owner",
                                  "kind",
                                  "id",
                                  "digest"
                                ],
                                "type": "object"
                              },
                              "repositoryRef": {
                                "additionalProperties": false,
                                "properties": {
                                  "digest": {
                                    "$ref": "#/$defs/__schema3"
                                  },
                                  "id": {
                                    "$ref": "#/$defs/__schema0"
                                  },
                                  "kind": {
                                    "const": "repository",
                                    "type": "string"
                                  },
                                  "owner": {
                                    "$ref": "#/$defs/__schema2"
                                  }
                                },
                                "required": [
                                  "owner",
                                  "kind",
                                  "id",
                                  "digest"
                                ],
                                "type": "object"
                              },
                              "taskRef": {
                                "additionalProperties": false,
                                "properties": {
                                  "digest": {
                                    "$ref": "#/$defs/__schema3"
                                  },
                                  "id": {
                                    "$ref": "#/$defs/__schema0"
                                  },
                                  "kind": {
                                    "const": "task",
                                    "type": "string"
                                  },
                                  "owner": {
                                    "$ref": "#/$defs/__schema2"
                                  }
                                },
                                "required": [
                                  "owner",
                                  "kind",
                                  "id",
                                  "digest"
                                ],
                                "type": "object"
                              },
                              "worktreeRef": {
                                "additionalProperties": false,
                                "properties": {
                                  "digest": {
                                    "$ref": "#/$defs/__schema3"
                                  },
                                  "id": {
                                    "$ref": "#/$defs/__schema0"
                                  },
                                  "kind": {
                                    "const": "worktree",
                                    "type": "string"
                                  },
                                  "owner": {
                                    "$ref": "#/$defs/__schema2"
                                  }
                                },
                                "required": [
                                  "owner",
                                  "kind",
                                  "id",
                                  "digest"
                                ],
                                "type": "object"
                              }
                            },
                            "required": [
                              "taskRef",
                              "repositoryRef",
                              "worktreeRef",
                              "branchRef",
                              "baseHead"
                            ],
                            "type": "object"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "predecessor": {
                            "anyOf": [
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "digest": {
                                    "$ref": "#/$defs/__schema3"
                                  },
                                  "kind": {
                                    "const": "task_to_pr_projection",
                                    "type": "string"
                                  },
                                  "owner": {
                                    "$ref": "#/$defs/__schema2"
                                  },
                                  "projectionId": {
                                    "$ref": "#/$defs/__schema0"
                                  },
                                  "version": {
                                    "exclusiveMinimum": 0,
                                    "maximum": 9007199254740991,
                                    "type": "integer"
                                  }
                                },
                                "required": [
                                  "kind",
                                  "projectionId",
                                  "owner",
                                  "version",
                                  "digest"
                                ],
                                "type": "object"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "proofs": {
                            "items": {
                              "$ref": "#/$defs/__schema13"
                            },
                            "maxItems": 10000,
                            "type": "array"
                          },
                          "pullRequestRef": {
                            "anyOf": [
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "digest": {
                                    "$ref": "#/$defs/__schema3"
                                  },
                                  "id": {
                                    "$ref": "#/$defs/__schema0"
                                  },
                                  "kind": {
                                    "const": "pull_request",
                                    "type": "string"
                                  },
                                  "owner": {
                                    "$ref": "#/$defs/__schema2"
                                  }
                                },
                                "required": [
                                  "owner",
                                  "kind",
                                  "id",
                                  "digest"
                                ],
                                "type": "object"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "schema": {
                            "const": "hasna.todos.task_to_pr_projection.v1",
                            "type": "string"
                          },
                          "sequence": {
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991,
                            "type": "integer"
                          },
                          "version": {
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991,
                            "type": "integer"
                          }
                        },
                        "required": [
                          "schema",
                          "id",
                          "owner",
                          "version",
                          "sequence",
                          "predecessor",
                          "identity",
                          "pullRequestRef",
                          "head",
                          "proofs",
                          "derivedAt",
                          "digest"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "tasks": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "acceptanceCriteria": {
                            "items": {
                              "maxLength": 4096,
                              "minLength": 1,
                              "type": "string"
                            },
                            "maxItems": 256,
                            "type": "array"
                          },
                          "assignedAgentId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema0"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "completedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema1"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "maxLength": 100000,
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "dueAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema1"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "externalOwnerRefs": {
                            "items": {
                              "$ref": "#/$defs/__schema6"
                            },
                            "maxItems": 64,
                            "type": "array"
                          },
                          "fingerprint": {
                            "anyOf": [
                              {
                                "maxLength": 256,
                                "minLength": 1,
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "parentTaskId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema0"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "planId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema0"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "priority": {
                            "$ref": "#/$defs/__schema8"
                          },
                          "projectId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema0"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "shortId": {
                            "anyOf": [
                              {
                                "maxLength": 40,
                                "minLength": 1,
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "status": {
                            "$ref": "#/$defs/__schema7"
                          },
                          "tags": {
                            "items": {
                              "maxLength": 96,
                              "minLength": 1,
                              "type": "string"
                            },
                            "maxItems": 128,
                            "type": "array"
                          },
                          "taskListId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema0"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "title": {
                            "maxLength": 512,
                            "minLength": 1,
                            "type": "string"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "shortId",
                          "title",
                          "description",
                          "status",
                          "priority",
                          "projectId",
                          "taskListId",
                          "planId",
                          "parentTaskId",
                          "assignedAgentId",
                          "fingerprint",
                          "tags",
                          "acceptanceCriteria",
                          "dueAt",
                          "completedAt",
                          "externalOwnerRefs"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "traceability": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "commitIds": {
                            "items": {
                              "$ref": "#/$defs/__schema0"
                            },
                            "maxItems": 10000,
                            "type": "array"
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "gitRefIds": {
                            "items": {
                              "$ref": "#/$defs/__schema0"
                            },
                            "maxItems": 10000,
                            "type": "array"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "projectionIds": {
                            "items": {
                              "$ref": "#/$defs/__schema0"
                            },
                            "maxItems": 10000,
                            "type": "array"
                          },
                          "taskId": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "verificationEvidenceIds": {
                            "items": {
                              "$ref": "#/$defs/__schema0"
                            },
                            "maxItems": 10000,
                            "type": "array"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "taskId",
                          "commitIds",
                          "gitRefIds",
                          "verificationEvidenceIds",
                          "projectionIds"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "verification_evidence": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "checks": {
                            "items": {
                              "additionalProperties": false,
                              "properties": {
                                "durationMs": {
                                  "anyOf": [
                                    {
                                      "maximum": 9007199254740991,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "name": {
                                  "maxLength": 512,
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "status": {
                                  "enum": [
                                    "passed",
                                    "failed",
                                    "skipped"
                                  ],
                                  "type": "string"
                                },
                                "summary": {
                                  "anyOf": [
                                    {
                                      "maxLength": 4096,
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "name",
                                "status",
                                "summary",
                                "durationMs"
                              ],
                              "type": "object"
                            },
                            "maxItems": 10000,
                            "type": "array"
                          },
                          "commandReceipts": {
                            "items": {
                              "additionalProperties": false,
                              "properties": {
                                "argumentsDigest": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/__schema3"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "commandDigest": {
                                  "$ref": "#/$defs/__schema3"
                                },
                                "durationMs": {
                                  "anyOf": [
                                    {
                                      "maximum": 9007199254740991,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "exitCode": {
                                  "anyOf": [
                                    {
                                      "maximum": 9007199254740991,
                                      "minimum": -9007199254740991,
                                      "type": "integer"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "outputRefs": {
                                  "items": {
                                    "$ref": "#/$defs/__schema10"
                                  },
                                  "maxItems": 1024,
                                  "type": "array"
                                }
                              },
                              "required": [
                                "commandDigest",
                                "argumentsDigest",
                                "exitCode",
                                "durationMs",
                                "outputRefs"
                              ],
                              "type": "object"
                            },
                            "maxItems": 256,
                            "type": "array"
                          },
                          "completedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema1"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "confidence": {
                            "anyOf": [
                              {
                                "maximum": 1,
                                "minimum": 0,
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "contentRefs": {
                            "items": {
                              "$ref": "#/$defs/__schema10"
                            },
                            "maxItems": 10000,
                            "type": "array"
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "runId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema0"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "startedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "status": {
                            "enum": [
                              "passed",
                              "failed",
                              "inconclusive"
                            ],
                            "type": "string"
                          },
                          "summary": {
                            "maxLength": 20000,
                            "minLength": 1,
                            "type": "string"
                          },
                          "taskId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema0"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "verifierRef": {
                            "$ref": "#/$defs/__schema6"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "taskId",
                          "runId",
                          "verifierRef",
                          "status",
                          "summary",
                          "confidence",
                          "checks",
                          "contentRefs",
                          "startedAt",
                          "completedAt",
                          "commandReceipts"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                }
              },
              "required": [
                "projects",
                "task_lists",
                "plans",
                "tasks",
                "comments",
                "dependencies",
                "activities",
                "verification_evidence",
                "task_files",
                "runs",
                "run_events",
                "run_commands",
                "run_files",
                "run_artifacts",
                "git_commits",
                "git_refs",
                "traceability",
                "task_to_pr_projections",
                "saved_views",
                "task_templates",
                "approvals",
                "deletion_records"
              ],
              "type": "object"
            },
            "source": {
              "additionalProperties": false,
              "properties": {
                "authorityId": {
                  "$ref": "#/$defs/__schema2"
                }
              },
              "required": [
                "authorityId"
              ],
              "type": "object"
            },
            "version": {
              "const": "1",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "version",
            "bundleId",
            "createdAt",
            "source",
            "contractVersion",
            "contractDigest",
            "manifestVersion",
            "manifestDigest",
            "sections",
            "dependencyClosure",
            "referenceClosure",
            "attachmentContentReferences",
            "referenceOnly",
            "bundleChecksum"
          ],
          "type": "object"
        },
        "dryRun": {
          "const": true,
          "type": "boolean"
        },
        "targetAuthorityId": {
          "$ref": "#/$defs/__schema2"
        }
      },
      "required": [
        "bundle",
        "targetAuthorityId",
        "dryRun"
      ],
      "type": "object"
    },
    "hasna.todos.request.transfer_validate.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema10": {
          "additionalProperties": false,
          "properties": {
            "algorithm": {
              "const": "sha256",
              "type": "string"
            },
            "byteLength": {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer"
            },
            "digest": {
              "$ref": "#/$defs/__schema3"
            },
            "mediaType": {
              "maxLength": 160,
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "algorithm",
            "digest",
            "mediaType",
            "byteLength"
          ],
          "type": "object"
        },
        "__schema11": {
          "maxLength": 512,
          "minLength": 1,
          "type": "string"
        },
        "__schema12": {
          "additionalProperties": false,
          "properties": {
            "algorithm": {
              "enum": [
                "sha1",
                "sha256"
              ],
              "type": "string"
            },
            "value": {
              "pattern": "^[a-f0-9]+$",
              "type": "string"
            }
          },
          "required": [
            "algorithm",
            "value"
          ],
          "type": "object"
        },
        "__schema13": {
          "additionalProperties": false,
          "properties": {
            "head": {
              "$ref": "#/$defs/__schema12"
            },
            "kind": {
              "enum": [
                "head_equality",
                "ci",
                "review"
              ],
              "type": "string"
            },
            "observedAt": {
              "$ref": "#/$defs/__schema1"
            },
            "ref": {
              "additionalProperties": false,
              "properties": {
                "digest": {
                  "$ref": "#/$defs/__schema3"
                },
                "id": {
                  "$ref": "#/$defs/__schema0"
                },
                "kind": {
                  "const": "proof_bundle",
                  "type": "string"
                },
                "owner": {
                  "$ref": "#/$defs/__schema2"
                }
              },
              "required": [
                "owner",
                "kind",
                "id",
                "digest"
              ],
              "type": "object"
            }
          },
          "required": [
            "ref",
            "kind",
            "head",
            "observedAt"
          ],
          "type": "object"
        },
        "__schema14": {
          "additionalProperties": false,
          "properties": {
            "digest": {
              "$ref": "#/$defs/__schema3"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "kind": {
              "const": "task_to_pr_projection",
              "type": "string"
            },
            "owner": {
              "$ref": "#/$defs/__schema2"
            },
            "section": {
              "enum": [
                "projects",
                "task_lists",
                "plans",
                "tasks",
                "comments",
                "dependencies",
                "activities",
                "verification_evidence",
                "task_files",
                "runs",
                "run_events",
                "run_commands",
                "run_files",
                "run_artifacts",
                "git_commits",
                "git_refs",
                "traceability",
                "task_to_pr_projections",
                "saved_views",
                "task_templates",
                "approvals",
                "deletion_records"
              ],
              "type": "string"
            },
            "version": {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            }
          },
          "required": [
            "owner",
            "section",
            "id"
          ],
          "type": "object"
        },
        "__schema2": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema3": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        },
        "__schema4": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        },
        "__schema5": {
          "maxLength": 96,
          "minLength": 1,
          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
          "type": "string"
        },
        "__schema6": {
          "additionalProperties": false,
          "properties": {
            "digest": {
              "$ref": "#/$defs/__schema3"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "owner": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "owner",
            "id",
            "digest"
          ],
          "type": "object"
        },
        "__schema7": {
          "enum": [
            "pending",
            "ready",
            "in_progress",
            "blocked",
            "completed",
            "failed",
            "cancelled"
          ],
          "type": "string"
        },
        "__schema8": {
          "enum": [
            "low",
            "medium",
            "high",
            "critical"
          ],
          "type": "string"
        },
        "__schema9": {
          "additionalProperties": false,
          "properties": {
            "digest": {
              "$ref": "#/$defs/__schema3"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "kind": {
              "maxLength": 64,
              "minLength": 1,
              "pattern": "^[a-z][a-z0-9_]*$",
              "type": "string"
            },
            "owner": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "owner",
            "kind",
            "id",
            "digest"
          ],
          "type": "object"
        }
      },
      "$id": "hasna.todos.request.transfer_validate.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "bundle": {
          "additionalProperties": false,
          "properties": {
            "attachmentContentReferences": {
              "items": {
                "additionalProperties": false,
                "properties": {
                  "contentRef": {
                    "$ref": "#/$defs/__schema10"
                  },
                  "index": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "owner": {
                    "$ref": "#/$defs/__schema2"
                  },
                  "source": {
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "section": {
                        "enum": [
                          "verification_evidence",
                          "task_files",
                          "run_commands",
                          "run_files",
                          "run_artifacts"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "section",
                      "id"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "owner",
                  "source",
                  "index",
                  "contentRef"
                ],
                "type": "object"
              },
              "type": "array"
            },
            "bundleChecksum": {
              "$ref": "#/$defs/__schema3"
            },
            "bundleId": {
              "$ref": "#/$defs/__schema0"
            },
            "contractDigest": {
              "$ref": "#/$defs/__schema3"
            },
            "contractVersion": {
              "const": "1.0.0",
              "type": "string"
            },
            "createdAt": {
              "$ref": "#/$defs/__schema1"
            },
            "dependencyClosure": {
              "items": {
                "additionalProperties": false,
                "properties": {
                  "dependencyTaskIds": {
                    "items": {
                      "$ref": "#/$defs/__schema0"
                    },
                    "type": "array"
                  },
                  "owner": {
                    "$ref": "#/$defs/__schema2"
                  },
                  "taskId": {
                    "$ref": "#/$defs/__schema0"
                  }
                },
                "required": [
                  "owner",
                  "taskId",
                  "dependencyTaskIds"
                ],
                "type": "object"
              },
              "type": "array"
            },
            "manifestDigest": {
              "$ref": "#/$defs/__schema3"
            },
            "manifestVersion": {
              "const": "1",
              "type": "string"
            },
            "referenceClosure": {
              "items": {
                "additionalProperties": false,
                "properties": {
                  "references": {
                    "items": {
                      "$ref": "#/$defs/__schema14"
                    },
                    "type": "array"
                  },
                  "source": {
                    "$ref": "#/$defs/__schema14"
                  }
                },
                "required": [
                  "source",
                  "references"
                ],
                "type": "object"
              },
              "type": "array"
            },
            "referenceOnly": {
              "additionalProperties": false,
              "properties": {
                "agentIds": {
                  "items": {
                    "$ref": "#/$defs/__schema0"
                  },
                  "type": "array"
                },
                "externalOwnerRefs": {
                  "items": {
                    "$ref": "#/$defs/__schema6"
                  },
                  "type": "array"
                },
                "owner": {
                  "$ref": "#/$defs/__schema2"
                },
                "ownerQualifiedRefs": {
                  "items": {
                    "$ref": "#/$defs/__schema9"
                  },
                  "type": "array"
                }
              },
              "required": [
                "owner",
                "agentIds",
                "externalOwnerRefs",
                "ownerQualifiedRefs"
              ],
              "type": "object"
            },
            "schema": {
              "const": "hasna.todos.transfer_bundle.v1",
              "type": "string"
            },
            "sections": {
              "additionalProperties": false,
              "properties": {
                "activities": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "action": {
                            "maxLength": 160,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_.:-]*$",
                            "type": "string"
                          },
                          "actorRef": {
                            "$ref": "#/$defs/__schema6"
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "occurredAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "resourceRef": {
                            "$ref": "#/$defs/__schema9"
                          },
                          "summary": {
                            "maxLength": 4096,
                            "minLength": 1,
                            "type": "string"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "actorRef",
                          "resourceRef",
                          "action",
                          "summary",
                          "occurredAt"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "approvals": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "decidedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema1"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "decidedBy": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema6"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "expiresAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema1"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "reason": {
                            "maxLength": 4096,
                            "minLength": 1,
                            "type": "string"
                          },
                          "requestedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "requestedBy": {
                            "$ref": "#/$defs/__schema6"
                          },
                          "resourceRef": {
                            "$ref": "#/$defs/__schema9"
                          },
                          "status": {
                            "enum": [
                              "pending",
                              "approved",
                              "rejected",
                              "expired"
                            ],
                            "type": "string"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "resourceRef",
                          "status",
                          "reason",
                          "requestedBy",
                          "decidedBy",
                          "requestedAt",
                          "decidedAt",
                          "expiresAt"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "comments": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "authorRef": {
                            "$ref": "#/$defs/__schema6"
                          },
                          "content": {
                            "maxLength": 100000,
                            "minLength": 1,
                            "type": "string"
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "kind": {
                            "enum": [
                              "comment",
                              "progress",
                              "note"
                            ],
                            "type": "string"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "progressPercent": {
                            "anyOf": [
                              {
                                "maximum": 100,
                                "minimum": 0,
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "taskId": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "taskId",
                          "authorRef",
                          "kind",
                          "content",
                          "progressPercent"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "deletion_records": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "deletedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "entityIdDigest": {
                            "$ref": "#/$defs/__schema3"
                          },
                          "entityKind": {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_]*$",
                            "type": "string"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "priorRecordDigest": {
                            "$ref": "#/$defs/__schema3"
                          },
                          "reasonCode": {
                            "maxLength": 128,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_]*$",
                            "type": "string"
                          },
                          "redaction": {
                            "const": "full",
                            "type": "string"
                          },
                          "tombstoneVersion": {
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991,
                            "type": "integer"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "entityKind",
                          "entityIdDigest",
                          "priorRecordDigest",
                          "tombstoneVersion",
                          "redaction",
                          "reasonCode",
                          "deletedAt"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "dependencies": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "kind": {
                            "enum": [
                              "requires",
                              "blocks"
                            ],
                            "type": "string"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "sourceTaskId": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "targetTaskId": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "sourceTaskId",
                          "targetTaskId",
                          "kind"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "git_commits": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "authorRef": {
                            "$ref": "#/$defs/__schema6"
                          },
                          "changedFileDigests": {
                            "items": {
                              "$ref": "#/$defs/__schema3"
                            },
                            "maxItems": 50000,
                            "type": "array"
                          },
                          "committedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "message": {
                            "maxLength": 20000,
                            "minLength": 1,
                            "type": "string"
                          },
                          "objectId": {
                            "$ref": "#/$defs/__schema12"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "repositoryRef": {
                            "$ref": "#/$defs/__schema6"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991,
                            "type": "integer"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "repositoryRef",
                          "objectId",
                          "message",
                          "authorRef",
                          "committedAt",
                          "changedFileDigests"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "git_refs": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "name": {
                            "maxLength": 512,
                            "minLength": 1,
                            "type": "string"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "providerObservedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema1"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "published": {
                            "type": "boolean"
                          },
                          "repositoryRef": {
                            "$ref": "#/$defs/__schema6"
                          },
                          "target": {
                            "$ref": "#/$defs/__schema12"
                          },
                          "type": {
                            "enum": [
                              "branch",
                              "tag",
                              "pull_request"
                            ],
                            "type": "string"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "repositoryRef",
                          "type",
                          "name",
                          "target",
                          "published",
                          "providerObservedAt"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "plans": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "completedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema1"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "maxLength": 40000,
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "name": {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          "objective": {
                            "maxLength": 20000,
                            "minLength": 1,
                            "type": "string"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "projectId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema0"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "slug": {
                            "$ref": "#/$defs/__schema5"
                          },
                          "status": {
                            "enum": [
                              "draft",
                              "active",
                              "completed",
                              "archived"
                            ],
                            "type": "string"
                          },
                          "taskIds": {
                            "items": {
                              "$ref": "#/$defs/__schema0"
                            },
                            "maxItems": 10000,
                            "type": "array"
                          },
                          "taskListId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema0"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "slug",
                          "projectId",
                          "taskListId",
                          "name",
                          "description",
                          "status",
                          "objective",
                          "taskIds",
                          "completedAt"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "projects": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "archivedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema1"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "maxLength": 20000,
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "name": {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "repositoryRef": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema6"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "slug": {
                            "$ref": "#/$defs/__schema5"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "slug",
                          "name",
                          "description",
                          "repositoryRef",
                          "archivedAt"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "run_artifacts": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "contentRef": {
                            "$ref": "#/$defs/__schema10"
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "kind": {
                            "maxLength": 160,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_.:-]*$",
                            "type": "string"
                          },
                          "logicalName": {
                            "$ref": "#/$defs/__schema11"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "runId": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "verificationEvidenceId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema0"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "verified": {
                            "type": "boolean"
                          },
                          "version": {
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991,
                            "type": "integer"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "runId",
                          "logicalName",
                          "kind",
                          "contentRef",
                          "verified",
                          "verificationEvidenceId"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "run_commands": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "argumentsDigest": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema3"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "commandDigest": {
                            "$ref": "#/$defs/__schema3"
                          },
                          "completedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema1"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "durationMs": {
                            "anyOf": [
                              {
                                "maximum": 9007199254740991,
                                "minimum": 0,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "exitCode": {
                            "anyOf": [
                              {
                                "maximum": 9007199254740991,
                                "minimum": -9007199254740991,
                                "type": "integer"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "outputRefs": {
                            "items": {
                              "$ref": "#/$defs/__schema10"
                            },
                            "maxItems": 1024,
                            "type": "array"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "runId": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "sequence": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991,
                            "type": "integer"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "runId",
                          "sequence",
                          "commandDigest",
                          "argumentsDigest",
                          "exitCode",
                          "durationMs",
                          "outputRefs",
                          "completedAt"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "run_events": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "evidenceIds": {
                            "items": {
                              "$ref": "#/$defs/__schema0"
                            },
                            "maxItems": 10000,
                            "type": "array"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "occurredAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "runId": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "sequence": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "summary": {
                            "maxLength": 20000,
                            "minLength": 1,
                            "type": "string"
                          },
                          "type": {
                            "maxLength": 160,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_.:-]*$",
                            "type": "string"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "runId",
                          "sequence",
                          "type",
                          "summary",
                          "occurredAt",
                          "evidenceIds"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "run_files": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "contentRef": {
                            "$ref": "#/$defs/__schema10"
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "logicalName": {
                            "$ref": "#/$defs/__schema11"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "role": {
                            "enum": [
                              "input",
                              "output",
                              "evidence"
                            ],
                            "type": "string"
                          },
                          "runId": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991,
                            "type": "integer"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "runId",
                          "logicalName",
                          "contentRef",
                          "role"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "runs": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "agentId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema0"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "completedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema1"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "ledgerDigest": {
                            "$ref": "#/$defs/__schema3"
                          },
                          "objective": {
                            "maxLength": 20000,
                            "minLength": 1,
                            "type": "string"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "planId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema0"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "startedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema1"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "status": {
                            "enum": [
                              "queued",
                              "running",
                              "succeeded",
                              "failed",
                              "cancelled"
                            ],
                            "type": "string"
                          },
                          "taskIds": {
                            "items": {
                              "$ref": "#/$defs/__schema0"
                            },
                            "maxItems": 10000,
                            "type": "array"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "objective",
                          "status",
                          "taskIds",
                          "planId",
                          "agentId",
                          "startedAt",
                          "completedAt",
                          "ledgerDigest"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "saved_views": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "audience": {
                            "enum": [
                              "private",
                              "organization"
                            ],
                            "type": "string"
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "maxLength": 4096,
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "name": {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "query": {
                            "additionalProperties": false,
                            "properties": {
                              "cursor": {
                                "anyOf": [
                                  {
                                    "maxLength": 512,
                                    "minLength": 1,
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "filters": {
                                "additionalProperties": false,
                                "properties": {
                                  "agentIds": {
                                    "items": {
                                      "$ref": "#/$defs/__schema0"
                                    },
                                    "maxItems": 256,
                                    "type": "array"
                                  },
                                  "changedAfter": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/__schema1"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "dueBefore": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/__schema1"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "planIds": {
                                    "items": {
                                      "$ref": "#/$defs/__schema0"
                                    },
                                    "maxItems": 256,
                                    "type": "array"
                                  },
                                  "priorities": {
                                    "items": {
                                      "$ref": "#/$defs/__schema8"
                                    },
                                    "maxItems": 8,
                                    "type": "array"
                                  },
                                  "projectIds": {
                                    "items": {
                                      "$ref": "#/$defs/__schema0"
                                    },
                                    "maxItems": 256,
                                    "type": "array"
                                  },
                                  "statuses": {
                                    "items": {
                                      "$ref": "#/$defs/__schema7"
                                    },
                                    "maxItems": 16,
                                    "type": "array"
                                  },
                                  "tags": {
                                    "items": {
                                      "maxLength": 96,
                                      "minLength": 1,
                                      "type": "string"
                                    },
                                    "maxItems": 128,
                                    "type": "array"
                                  },
                                  "taskListIds": {
                                    "items": {
                                      "$ref": "#/$defs/__schema0"
                                    },
                                    "maxItems": 256,
                                    "type": "array"
                                  }
                                },
                                "required": [
                                  "projectIds",
                                  "taskListIds",
                                  "planIds",
                                  "agentIds",
                                  "statuses",
                                  "priorities",
                                  "tags",
                                  "changedAfter",
                                  "dueBefore"
                                ],
                                "type": "object"
                              },
                              "limit": {
                                "exclusiveMinimum": 0,
                                "maximum": 500,
                                "type": "integer"
                              },
                              "query": {
                                "maxLength": 4096,
                                "minLength": 1,
                                "type": "string"
                              }
                            },
                            "required": [
                              "query",
                              "filters",
                              "cursor",
                              "limit"
                            ],
                            "type": "object"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "name",
                          "description",
                          "query",
                          "audience"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "task_files": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "contentRef": {
                            "$ref": "#/$defs/__schema10"
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "logicalName": {
                            "$ref": "#/$defs/__schema11"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "purpose": {
                            "enum": [
                              "attachment",
                              "evidence",
                              "deliverable"
                            ],
                            "type": "string"
                          },
                          "taskId": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991,
                            "type": "integer"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "taskId",
                          "logicalName",
                          "contentRef",
                          "purpose"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "task_lists": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "archivedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema1"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "maxLength": 20000,
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "name": {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "projectId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema0"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "slug": {
                            "$ref": "#/$defs/__schema5"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "projectId",
                          "slug",
                          "name",
                          "description",
                          "archivedAt"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "task_templates": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "acceptanceCriteria": {
                            "items": {
                              "maxLength": 4096,
                              "minLength": 1,
                              "type": "string"
                            },
                            "maxItems": 256,
                            "type": "array"
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "maxLength": 4096,
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "descriptionPattern": {
                            "anyOf": [
                              {
                                "maxLength": 20000,
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "name": {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "priority": {
                            "$ref": "#/$defs/__schema8"
                          },
                          "tags": {
                            "items": {
                              "maxLength": 96,
                              "minLength": 1,
                              "type": "string"
                            },
                            "maxItems": 128,
                            "type": "array"
                          },
                          "titlePattern": {
                            "maxLength": 512,
                            "minLength": 1,
                            "type": "string"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "name",
                          "description",
                          "titlePattern",
                          "descriptionPattern",
                          "priority",
                          "tags",
                          "acceptanceCriteria"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "task_to_pr_projections": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "derivedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "digest": {
                            "$ref": "#/$defs/__schema3"
                          },
                          "head": {
                            "additionalProperties": false,
                            "properties": {
                              "branchHead": {
                                "$ref": "#/$defs/__schema12"
                              },
                              "equalityProof": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/__schema13"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "providerObservedHead": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/__schema12"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "publishedHead": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/__schema12"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "branchHead",
                              "publishedHead",
                              "providerObservedHead",
                              "equalityProof"
                            ],
                            "type": "object"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "identity": {
                            "additionalProperties": false,
                            "properties": {
                              "baseHead": {
                                "$ref": "#/$defs/__schema12"
                              },
                              "branchRef": {
                                "additionalProperties": false,
                                "properties": {
                                  "digest": {
                                    "$ref": "#/$defs/__schema3"
                                  },
                                  "id": {
                                    "$ref": "#/$defs/__schema0"
                                  },
                                  "kind": {
                                    "const": "branch",
                                    "type": "string"
                                  },
                                  "owner": {
                                    "$ref": "#/$defs/__schema2"
                                  }
                                },
                                "required": [
                                  "owner",
                                  "kind",
                                  "id",
                                  "digest"
                                ],
                                "type": "object"
                              },
                              "repositoryRef": {
                                "additionalProperties": false,
                                "properties": {
                                  "digest": {
                                    "$ref": "#/$defs/__schema3"
                                  },
                                  "id": {
                                    "$ref": "#/$defs/__schema0"
                                  },
                                  "kind": {
                                    "const": "repository",
                                    "type": "string"
                                  },
                                  "owner": {
                                    "$ref": "#/$defs/__schema2"
                                  }
                                },
                                "required": [
                                  "owner",
                                  "kind",
                                  "id",
                                  "digest"
                                ],
                                "type": "object"
                              },
                              "taskRef": {
                                "additionalProperties": false,
                                "properties": {
                                  "digest": {
                                    "$ref": "#/$defs/__schema3"
                                  },
                                  "id": {
                                    "$ref": "#/$defs/__schema0"
                                  },
                                  "kind": {
                                    "const": "task",
                                    "type": "string"
                                  },
                                  "owner": {
                                    "$ref": "#/$defs/__schema2"
                                  }
                                },
                                "required": [
                                  "owner",
                                  "kind",
                                  "id",
                                  "digest"
                                ],
                                "type": "object"
                              },
                              "worktreeRef": {
                                "additionalProperties": false,
                                "properties": {
                                  "digest": {
                                    "$ref": "#/$defs/__schema3"
                                  },
                                  "id": {
                                    "$ref": "#/$defs/__schema0"
                                  },
                                  "kind": {
                                    "const": "worktree",
                                    "type": "string"
                                  },
                                  "owner": {
                                    "$ref": "#/$defs/__schema2"
                                  }
                                },
                                "required": [
                                  "owner",
                                  "kind",
                                  "id",
                                  "digest"
                                ],
                                "type": "object"
                              }
                            },
                            "required": [
                              "taskRef",
                              "repositoryRef",
                              "worktreeRef",
                              "branchRef",
                              "baseHead"
                            ],
                            "type": "object"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "predecessor": {
                            "anyOf": [
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "digest": {
                                    "$ref": "#/$defs/__schema3"
                                  },
                                  "kind": {
                                    "const": "task_to_pr_projection",
                                    "type": "string"
                                  },
                                  "owner": {
                                    "$ref": "#/$defs/__schema2"
                                  },
                                  "projectionId": {
                                    "$ref": "#/$defs/__schema0"
                                  },
                                  "version": {
                                    "exclusiveMinimum": 0,
                                    "maximum": 9007199254740991,
                                    "type": "integer"
                                  }
                                },
                                "required": [
                                  "kind",
                                  "projectionId",
                                  "owner",
                                  "version",
                                  "digest"
                                ],
                                "type": "object"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "proofs": {
                            "items": {
                              "$ref": "#/$defs/__schema13"
                            },
                            "maxItems": 10000,
                            "type": "array"
                          },
                          "pullRequestRef": {
                            "anyOf": [
                              {
                                "additionalProperties": false,
                                "properties": {
                                  "digest": {
                                    "$ref": "#/$defs/__schema3"
                                  },
                                  "id": {
                                    "$ref": "#/$defs/__schema0"
                                  },
                                  "kind": {
                                    "const": "pull_request",
                                    "type": "string"
                                  },
                                  "owner": {
                                    "$ref": "#/$defs/__schema2"
                                  }
                                },
                                "required": [
                                  "owner",
                                  "kind",
                                  "id",
                                  "digest"
                                ],
                                "type": "object"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "schema": {
                            "const": "hasna.todos.task_to_pr_projection.v1",
                            "type": "string"
                          },
                          "sequence": {
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991,
                            "type": "integer"
                          },
                          "version": {
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991,
                            "type": "integer"
                          }
                        },
                        "required": [
                          "schema",
                          "id",
                          "owner",
                          "version",
                          "sequence",
                          "predecessor",
                          "identity",
                          "pullRequestRef",
                          "head",
                          "proofs",
                          "derivedAt",
                          "digest"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "tasks": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "acceptanceCriteria": {
                            "items": {
                              "maxLength": 4096,
                              "minLength": 1,
                              "type": "string"
                            },
                            "maxItems": 256,
                            "type": "array"
                          },
                          "assignedAgentId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema0"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "completedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema1"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "description": {
                            "anyOf": [
                              {
                                "maxLength": 100000,
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "dueAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema1"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "externalOwnerRefs": {
                            "items": {
                              "$ref": "#/$defs/__schema6"
                            },
                            "maxItems": 64,
                            "type": "array"
                          },
                          "fingerprint": {
                            "anyOf": [
                              {
                                "maxLength": 256,
                                "minLength": 1,
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "parentTaskId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema0"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "planId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema0"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "priority": {
                            "$ref": "#/$defs/__schema8"
                          },
                          "projectId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema0"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "shortId": {
                            "anyOf": [
                              {
                                "maxLength": 40,
                                "minLength": 1,
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "status": {
                            "$ref": "#/$defs/__schema7"
                          },
                          "tags": {
                            "items": {
                              "maxLength": 96,
                              "minLength": 1,
                              "type": "string"
                            },
                            "maxItems": 128,
                            "type": "array"
                          },
                          "taskListId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema0"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "title": {
                            "maxLength": 512,
                            "minLength": 1,
                            "type": "string"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "shortId",
                          "title",
                          "description",
                          "status",
                          "priority",
                          "projectId",
                          "taskListId",
                          "planId",
                          "parentTaskId",
                          "assignedAgentId",
                          "fingerprint",
                          "tags",
                          "acceptanceCriteria",
                          "dueAt",
                          "completedAt",
                          "externalOwnerRefs"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "traceability": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "commitIds": {
                            "items": {
                              "$ref": "#/$defs/__schema0"
                            },
                            "maxItems": 10000,
                            "type": "array"
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "gitRefIds": {
                            "items": {
                              "$ref": "#/$defs/__schema0"
                            },
                            "maxItems": 10000,
                            "type": "array"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "projectionIds": {
                            "items": {
                              "$ref": "#/$defs/__schema0"
                            },
                            "maxItems": 10000,
                            "type": "array"
                          },
                          "taskId": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "verificationEvidenceIds": {
                            "items": {
                              "$ref": "#/$defs/__schema0"
                            },
                            "maxItems": 10000,
                            "type": "array"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "taskId",
                          "commitIds",
                          "gitRefIds",
                          "verificationEvidenceIds",
                          "projectionIds"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                },
                "verification_evidence": {
                  "additionalProperties": false,
                  "properties": {
                    "count": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "records": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "checks": {
                            "items": {
                              "additionalProperties": false,
                              "properties": {
                                "durationMs": {
                                  "anyOf": [
                                    {
                                      "maximum": 9007199254740991,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "name": {
                                  "maxLength": 512,
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "status": {
                                  "enum": [
                                    "passed",
                                    "failed",
                                    "skipped"
                                  ],
                                  "type": "string"
                                },
                                "summary": {
                                  "anyOf": [
                                    {
                                      "maxLength": 4096,
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "name",
                                "status",
                                "summary",
                                "durationMs"
                              ],
                              "type": "object"
                            },
                            "maxItems": 10000,
                            "type": "array"
                          },
                          "commandReceipts": {
                            "items": {
                              "additionalProperties": false,
                              "properties": {
                                "argumentsDigest": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/$defs/__schema3"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "commandDigest": {
                                  "$ref": "#/$defs/__schema3"
                                },
                                "durationMs": {
                                  "anyOf": [
                                    {
                                      "maximum": 9007199254740991,
                                      "minimum": 0,
                                      "type": "integer"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "exitCode": {
                                  "anyOf": [
                                    {
                                      "maximum": 9007199254740991,
                                      "minimum": -9007199254740991,
                                      "type": "integer"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "outputRefs": {
                                  "items": {
                                    "$ref": "#/$defs/__schema10"
                                  },
                                  "maxItems": 1024,
                                  "type": "array"
                                }
                              },
                              "required": [
                                "commandDigest",
                                "argumentsDigest",
                                "exitCode",
                                "durationMs",
                                "outputRefs"
                              ],
                              "type": "object"
                            },
                            "maxItems": 256,
                            "type": "array"
                          },
                          "completedAt": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema1"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "confidence": {
                            "anyOf": [
                              {
                                "maximum": 1,
                                "minimum": 0,
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "contentRefs": {
                            "items": {
                              "$ref": "#/$defs/__schema10"
                            },
                            "maxItems": 10000,
                            "type": "array"
                          },
                          "createdAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "runId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema0"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "startedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "status": {
                            "enum": [
                              "passed",
                              "failed",
                              "inconclusive"
                            ],
                            "type": "string"
                          },
                          "summary": {
                            "maxLength": 20000,
                            "minLength": 1,
                            "type": "string"
                          },
                          "taskId": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema0"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "updatedAt": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "verifierRef": {
                            "$ref": "#/$defs/__schema6"
                          },
                          "version": {
                            "$ref": "#/$defs/__schema4"
                          }
                        },
                        "required": [
                          "id",
                          "owner",
                          "version",
                          "createdAt",
                          "updatedAt",
                          "taskId",
                          "runId",
                          "verifierRef",
                          "status",
                          "summary",
                          "confidence",
                          "checks",
                          "contentRefs",
                          "startedAt",
                          "completedAt",
                          "commandReceipts"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "count",
                    "digest",
                    "records"
                  ],
                  "type": "object"
                }
              },
              "required": [
                "projects",
                "task_lists",
                "plans",
                "tasks",
                "comments",
                "dependencies",
                "activities",
                "verification_evidence",
                "task_files",
                "runs",
                "run_events",
                "run_commands",
                "run_files",
                "run_artifacts",
                "git_commits",
                "git_refs",
                "traceability",
                "task_to_pr_projections",
                "saved_views",
                "task_templates",
                "approvals",
                "deletion_records"
              ],
              "type": "object"
            },
            "source": {
              "additionalProperties": false,
              "properties": {
                "authorityId": {
                  "$ref": "#/$defs/__schema2"
                }
              },
              "required": [
                "authorityId"
              ],
              "type": "object"
            },
            "version": {
              "const": "1",
              "type": "string"
            }
          },
          "required": [
            "schema",
            "version",
            "bundleId",
            "createdAt",
            "source",
            "contractVersion",
            "contractDigest",
            "manifestVersion",
            "manifestDigest",
            "sections",
            "dependencyClosure",
            "referenceClosure",
            "attachmentContentReferences",
            "referenceOnly",
            "bundleChecksum"
          ],
          "type": "object"
        },
        "dryRun": {
          "const": true,
          "type": "boolean"
        }
      },
      "required": [
        "bundle",
        "dryRun"
      ],
      "type": "object"
    },
    "hasna.todos.request.upgrade_execute.v1": {
      "$defs": {
        "__schema0": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.request.upgrade_execute.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "packageContentRef": {
          "additionalProperties": false,
          "properties": {
            "algorithm": {
              "const": "sha256",
              "type": "string"
            },
            "byteLength": {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer"
            },
            "digest": {
              "$ref": "#/$defs/__schema0"
            },
            "mediaType": {
              "maxLength": 160,
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "algorithm",
            "digest",
            "mediaType",
            "byteLength"
          ],
          "type": "object"
        },
        "targetVersion": {
          "maxLength": 64,
          "minLength": 1,
          "type": "string"
        },
        "validationDigest": {
          "$ref": "#/$defs/__schema0"
        }
      },
      "required": [
        "targetVersion",
        "packageContentRef",
        "validationDigest"
      ],
      "type": "object"
    },
    "hasna.todos.request.upgrade_validate.v1": {
      "$id": "hasna.todos.request.upgrade_validate.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "expectedContractVersion": {
          "const": "1.0.0",
          "type": "string"
        },
        "packageContentRef": {
          "additionalProperties": false,
          "properties": {
            "algorithm": {
              "const": "sha256",
              "type": "string"
            },
            "byteLength": {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer"
            },
            "digest": {
              "pattern": "^[a-f0-9]{64}$",
              "type": "string"
            },
            "mediaType": {
              "maxLength": 160,
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "algorithm",
            "digest",
            "mediaType",
            "byteLength"
          ],
          "type": "object"
        },
        "targetVersion": {
          "maxLength": 64,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "targetVersion",
        "packageContentRef",
        "expectedContractVersion"
      ],
      "type": "object"
    },
    "hasna.todos.request.verification_create.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        },
        "__schema2": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.request.verification_create.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "checks": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "durationMs": {
                "anyOf": [
                  {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "maxLength": 512,
                "minLength": 1,
                "type": "string"
              },
              "status": {
                "enum": [
                  "passed",
                  "failed",
                  "skipped"
                ],
                "type": "string"
              },
              "summary": {
                "anyOf": [
                  {
                    "maxLength": 4096,
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "name",
              "status",
              "summary",
              "durationMs"
            ],
            "type": "object"
          },
          "maxItems": 10000,
          "type": "array"
        },
        "commands": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "command": {
                "maxLength": 16000,
                "minLength": 1,
                "type": "string"
              },
              "durationMs": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "exitCode": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              }
            },
            "required": [
              "command",
              "exitCode",
              "durationMs"
            ],
            "type": "object"
          },
          "maxItems": 256,
          "type": "array"
        },
        "completedAt": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema2"
            },
            {
              "type": "null"
            }
          ]
        },
        "confidence": {
          "anyOf": [
            {
              "maximum": 1,
              "minimum": 0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "contentRefs": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "algorithm": {
                "const": "sha256",
                "type": "string"
              },
              "byteLength": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "digest": {
                "$ref": "#/$defs/__schema1"
              },
              "mediaType": {
                "maxLength": 160,
                "minLength": 1,
                "type": "string"
              }
            },
            "required": [
              "algorithm",
              "digest",
              "mediaType",
              "byteLength"
            ],
            "type": "object"
          },
          "maxItems": 10000,
          "type": "array"
        },
        "runId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        },
        "startedAt": {
          "$ref": "#/$defs/__schema2"
        },
        "status": {
          "enum": [
            "passed",
            "failed",
            "inconclusive"
          ],
          "type": "string"
        },
        "summary": {
          "maxLength": 20000,
          "minLength": 1,
          "type": "string"
        },
        "taskId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        },
        "verifierRef": {
          "additionalProperties": false,
          "properties": {
            "digest": {
              "$ref": "#/$defs/__schema1"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "owner": {
              "maxLength": 128,
              "minLength": 2,
              "pattern": "^[a-z][a-z0-9.-]*$",
              "type": "string"
            }
          },
          "required": [
            "owner",
            "id",
            "digest"
          ],
          "type": "object"
        }
      },
      "required": [
        "taskId",
        "runId",
        "verifierRef",
        "status",
        "summary",
        "confidence",
        "commands",
        "checks",
        "contentRefs",
        "startedAt",
        "completedAt"
      ],
      "type": "object"
    },
    "hasna.todos.request.verification_export.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.request.verification_export.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "contentType": {
          "const": "application/json",
          "type": "string"
        },
        "runId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        },
        "taskId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "taskId",
        "runId",
        "contentType"
      ],
      "type": "object"
    },
    "hasna.todos.request.versioned_ref.v1": {
      "$id": "hasna.todos.request.versioned_ref.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "expectedVersion": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        },
        "ref": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        }
      },
      "required": [
        "ref",
        "expectedVersion"
      ],
      "type": "object"
    },
    "hasna.todos.request.workspace_bootstrap.v1": {
      "$id": "hasna.todos.request.workspace_bootstrap.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "createDefaultTaskList": {
          "type": "boolean"
        },
        "projectName": {
          "maxLength": 256,
          "minLength": 1,
          "type": "string"
        },
        "projectSlug": {
          "maxLength": 96,
          "minLength": 1,
          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
          "type": "string"
        },
        "repositoryRef": {
          "additionalProperties": false,
          "properties": {
            "digest": {
              "pattern": "^[a-f0-9]{64}$",
              "type": "string"
            },
            "id": {
              "maxLength": 160,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
              "type": "string"
            },
            "owner": {
              "maxLength": 128,
              "minLength": 2,
              "pattern": "^[a-z][a-z0-9.-]*$",
              "type": "string"
            }
          },
          "required": [
            "owner",
            "id",
            "digest"
          ],
          "type": "object"
        }
      },
      "required": [
        "projectSlug",
        "projectName",
        "repositoryRef",
        "createDefaultTaskList"
      ],
      "type": "object"
    },
    "hasna.todos.response.activity_page.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema2": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema3": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        },
        "__schema4": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema5": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.activity_page.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "items": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "action": {
                        "maxLength": 160,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9_.:-]*$",
                        "type": "string"
                      },
                      "actorRef": {
                        "additionalProperties": false,
                        "properties": {
                          "digest": {
                            "$ref": "#/$defs/__schema3"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema1"
                          }
                        },
                        "required": [
                          "owner",
                          "id",
                          "digest"
                        ],
                        "type": "object"
                      },
                      "createdAt": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "occurredAt": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "resourceRef": {
                        "additionalProperties": false,
                        "properties": {
                          "digest": {
                            "$ref": "#/$defs/__schema3"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "kind": {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_]*$",
                            "type": "string"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema1"
                          }
                        },
                        "required": [
                          "owner",
                          "kind",
                          "id",
                          "digest"
                        ],
                        "type": "object"
                      },
                      "summary": {
                        "maxLength": 4096,
                        "minLength": 1,
                        "type": "string"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "version": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "actorRef",
                      "resourceRef",
                      "action",
                      "summary",
                      "occurredAt"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "nextCursor": {
                  "anyOf": [
                    {
                      "maxLength": 512,
                      "minLength": 1,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "items",
                "count",
                "nextCursor"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema4"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema5"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema5"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema4"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ],
      "x-hasna-invariants": [
        "todos.response.page_count"
      ]
    },
    "hasna.todos.response.agent.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema2": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema3": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.agent.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "activeProjectId": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema0"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "activeTaskListId": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema0"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "createdAt": {
                  "$ref": "#/$defs/__schema1"
                },
                "displayName": {
                  "maxLength": 256,
                  "minLength": 1,
                  "type": "string"
                },
                "id": {
                  "$ref": "#/$defs/__schema0"
                },
                "lastHeartbeatAt": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema1"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "owner": {
                  "maxLength": 128,
                  "minLength": 2,
                  "pattern": "^[a-z][a-z0-9.-]*$",
                  "type": "string"
                },
                "releasedAt": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema1"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "roles": {
                  "items": {
                    "enum": [
                      "customer_member",
                      "customer_manager",
                      "tenant_admin"
                    ],
                    "type": "string"
                  },
                  "maxItems": 32,
                  "minItems": 1,
                  "type": "array"
                },
                "status": {
                  "enum": [
                    "active",
                    "inactive",
                    "released"
                  ],
                  "type": "string"
                },
                "updatedAt": {
                  "$ref": "#/$defs/__schema1"
                },
                "version": {
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                }
              },
              "required": [
                "id",
                "owner",
                "version",
                "createdAt",
                "updatedAt",
                "displayName",
                "status",
                "roles",
                "activeProjectId",
                "activeTaskListId",
                "lastHeartbeatAt",
                "releasedAt"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ]
    },
    "hasna.todos.response.agent_page.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema2": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema3": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.agent_page.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "items": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "activeProjectId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema0"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "activeTaskListId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema0"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "createdAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "displayName": {
                        "maxLength": 256,
                        "minLength": 1,
                        "type": "string"
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "lastHeartbeatAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema1"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "owner": {
                        "maxLength": 128,
                        "minLength": 2,
                        "pattern": "^[a-z][a-z0-9.-]*$",
                        "type": "string"
                      },
                      "releasedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema1"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "roles": {
                        "items": {
                          "enum": [
                            "customer_member",
                            "customer_manager",
                            "tenant_admin"
                          ],
                          "type": "string"
                        },
                        "maxItems": 32,
                        "minItems": 1,
                        "type": "array"
                      },
                      "status": {
                        "enum": [
                          "active",
                          "inactive",
                          "released"
                        ],
                        "type": "string"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "version": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "displayName",
                      "status",
                      "roles",
                      "activeProjectId",
                      "activeTaskListId",
                      "lastHeartbeatAt",
                      "releasedAt"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "nextCursor": {
                  "anyOf": [
                    {
                      "maxLength": 512,
                      "minLength": 1,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "items",
                "count",
                "nextCursor"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ],
      "x-hasna-invariants": [
        "todos.response.page_count"
      ]
    },
    "hasna.todos.response.approval.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema2": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema3": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        },
        "__schema4": {
          "additionalProperties": false,
          "properties": {
            "digest": {
              "$ref": "#/$defs/__schema3"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "owner": {
              "$ref": "#/$defs/__schema1"
            }
          },
          "required": [
            "owner",
            "id",
            "digest"
          ],
          "type": "object"
        },
        "__schema5": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema6": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.approval.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "createdAt": {
                  "$ref": "#/$defs/__schema2"
                },
                "decidedAt": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema2"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "decidedBy": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema4"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "expiresAt": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema2"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "id": {
                  "$ref": "#/$defs/__schema0"
                },
                "owner": {
                  "$ref": "#/$defs/__schema1"
                },
                "reason": {
                  "maxLength": 4096,
                  "minLength": 1,
                  "type": "string"
                },
                "requestedAt": {
                  "$ref": "#/$defs/__schema2"
                },
                "requestedBy": {
                  "$ref": "#/$defs/__schema4"
                },
                "resourceRef": {
                  "additionalProperties": false,
                  "properties": {
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "id": {
                      "$ref": "#/$defs/__schema0"
                    },
                    "kind": {
                      "maxLength": 64,
                      "minLength": 1,
                      "pattern": "^[a-z][a-z0-9_]*$",
                      "type": "string"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema1"
                    }
                  },
                  "required": [
                    "owner",
                    "kind",
                    "id",
                    "digest"
                  ],
                  "type": "object"
                },
                "status": {
                  "enum": [
                    "pending",
                    "approved",
                    "rejected",
                    "expired"
                  ],
                  "type": "string"
                },
                "updatedAt": {
                  "$ref": "#/$defs/__schema2"
                },
                "version": {
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                }
              },
              "required": [
                "id",
                "owner",
                "version",
                "createdAt",
                "updatedAt",
                "resourceRef",
                "status",
                "reason",
                "requestedBy",
                "decidedBy",
                "requestedAt",
                "decidedAt",
                "expiresAt"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema5"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema6"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema6"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema5"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ]
    },
    "hasna.todos.response.approval_page.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema2": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema3": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        },
        "__schema4": {
          "additionalProperties": false,
          "properties": {
            "digest": {
              "$ref": "#/$defs/__schema3"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "owner": {
              "$ref": "#/$defs/__schema1"
            }
          },
          "required": [
            "owner",
            "id",
            "digest"
          ],
          "type": "object"
        },
        "__schema5": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema6": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.approval_page.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "items": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "createdAt": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "decidedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema2"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "decidedBy": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema4"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "expiresAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema2"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "reason": {
                        "maxLength": 4096,
                        "minLength": 1,
                        "type": "string"
                      },
                      "requestedAt": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "requestedBy": {
                        "$ref": "#/$defs/__schema4"
                      },
                      "resourceRef": {
                        "additionalProperties": false,
                        "properties": {
                          "digest": {
                            "$ref": "#/$defs/__schema3"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "kind": {
                            "maxLength": 64,
                            "minLength": 1,
                            "pattern": "^[a-z][a-z0-9_]*$",
                            "type": "string"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema1"
                          }
                        },
                        "required": [
                          "owner",
                          "kind",
                          "id",
                          "digest"
                        ],
                        "type": "object"
                      },
                      "status": {
                        "enum": [
                          "pending",
                          "approved",
                          "rejected",
                          "expired"
                        ],
                        "type": "string"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "version": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "resourceRef",
                      "status",
                      "reason",
                      "requestedBy",
                      "decidedBy",
                      "requestedAt",
                      "decidedAt",
                      "expiresAt"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "nextCursor": {
                  "anyOf": [
                    {
                      "maxLength": 512,
                      "minLength": 1,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "items",
                "count",
                "nextCursor"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema5"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema6"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema6"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema5"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ],
      "x-hasna-invariants": [
        "todos.response.page_count"
      ]
    },
    "hasna.todos.response.artifact_document.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.artifact_document.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "digest": {
                  "pattern": "^[a-f0-9]{64}$",
                  "type": "string"
                },
                "document": {
                  "additionalProperties": {},
                  "propertyNames": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "mediaType": {
                  "const": "application/json",
                  "type": "string"
                }
              },
              "required": [
                "mediaType",
                "digest",
                "document"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema0"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema0"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ]
    },
    "hasna.todos.response.authority.v1": {
      "$defs": {
        "__schema0": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        },
        "__schema1": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema2": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.authority.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "authority": {
                  "additionalProperties": false,
                  "properties": {
                    "endpoint": {
                      "anyOf": [
                        {
                          "format": "uri",
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "id": {
                      "maxLength": 128,
                      "minLength": 2,
                      "pattern": "^[a-z][a-z0-9.-]*$",
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "endpoint"
                  ],
                  "type": "object"
                },
                "capabilityIds": {
                  "items": {
                    "maxLength": 128,
                    "minLength": 1,
                    "pattern": "^[a-z][a-z0-9-]*$",
                    "type": "string"
                  },
                  "minItems": 1,
                  "type": "array"
                },
                "contractDigest": {
                  "$ref": "#/$defs/__schema0"
                },
                "contractVersion": {
                  "const": "1.0.0",
                  "type": "string"
                },
                "issuedAt": {
                  "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|([+-]\\d{2}:\\d{2})))$",
                  "type": "string"
                },
                "manifestDigest": {
                  "$ref": "#/$defs/__schema0"
                },
                "manifestVersion": {
                  "const": "1",
                  "type": "string"
                }
              },
              "required": [
                "authority",
                "contractVersion",
                "contractDigest",
                "manifestVersion",
                "manifestDigest",
                "capabilityIds",
                "issuedAt"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema1"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema1"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ]
    },
    "hasna.todos.response.batch.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.batch.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "receipts": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "changed": {
                        "type": "boolean"
                      },
                      "operationId": {
                        "pattern": "^todos\\.[a-z0-9_]+(?:\\.[a-z0-9_]+)+$",
                        "type": "string"
                      },
                      "replayed": {
                        "type": "boolean"
                      },
                      "resourceId": {
                        "maxLength": 160,
                        "minLength": 1,
                        "type": "string"
                      },
                      "version": {
                        "anyOf": [
                          {
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991,
                            "type": "integer"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "operationId",
                      "resourceId",
                      "changed",
                      "replayed",
                      "version"
                    ],
                    "type": "object"
                  },
                  "minItems": 1,
                  "type": "array"
                }
              },
              "required": [
                "receipts"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema0"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema0"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ]
    },
    "hasna.todos.response.capability.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.capability.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "audiences": {
                  "items": {
                    "enum": [
                      "customer",
                      "tenant_admin"
                    ],
                    "type": "string"
                  },
                  "minItems": 1,
                  "type": "array"
                },
                "availability": {
                  "enum": [
                    "core",
                    "gated"
                  ],
                  "type": "string"
                },
                "id": {
                  "maxLength": 128,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9-]*$",
                  "type": "string"
                },
                "operationIds": {
                  "items": {
                    "pattern": "^todos\\.[a-z0-9_]+(?:\\.[a-z0-9_]+)+$",
                    "type": "string"
                  },
                  "minItems": 1,
                  "type": "array"
                }
              },
              "required": [
                "id",
                "availability",
                "operationIds",
                "audiences"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema0"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema0"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ]
    },
    "hasna.todos.response.capability_page.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.capability_page.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "items": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "audiences": {
                        "items": {
                          "enum": [
                            "customer",
                            "tenant_admin"
                          ],
                          "type": "string"
                        },
                        "minItems": 1,
                        "type": "array"
                      },
                      "availability": {
                        "enum": [
                          "core",
                          "gated"
                        ],
                        "type": "string"
                      },
                      "id": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9-]*$",
                        "type": "string"
                      },
                      "operationIds": {
                        "items": {
                          "pattern": "^todos\\.[a-z0-9_]+(?:\\.[a-z0-9_]+)+$",
                          "type": "string"
                        },
                        "minItems": 1,
                        "type": "array"
                      }
                    },
                    "required": [
                      "id",
                      "availability",
                      "operationIds",
                      "audiences"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "nextCursor": {
                  "anyOf": [
                    {
                      "maxLength": 512,
                      "minLength": 1,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "items",
                "count",
                "nextCursor"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema0"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema0"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ],
      "x-hasna-invariants": [
        "todos.response.page_count"
      ]
    },
    "hasna.todos.response.comment.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema2": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema3": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema4": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.comment.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "authorRef": {
                  "additionalProperties": false,
                  "properties": {
                    "digest": {
                      "pattern": "^[a-f0-9]{64}$",
                      "type": "string"
                    },
                    "id": {
                      "$ref": "#/$defs/__schema0"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema1"
                    }
                  },
                  "required": [
                    "owner",
                    "id",
                    "digest"
                  ],
                  "type": "object"
                },
                "content": {
                  "maxLength": 100000,
                  "minLength": 1,
                  "type": "string"
                },
                "createdAt": {
                  "$ref": "#/$defs/__schema2"
                },
                "id": {
                  "$ref": "#/$defs/__schema0"
                },
                "kind": {
                  "enum": [
                    "comment",
                    "progress",
                    "note"
                  ],
                  "type": "string"
                },
                "owner": {
                  "$ref": "#/$defs/__schema1"
                },
                "progressPercent": {
                  "anyOf": [
                    {
                      "maximum": 100,
                      "minimum": 0,
                      "type": "number"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "taskId": {
                  "$ref": "#/$defs/__schema0"
                },
                "updatedAt": {
                  "$ref": "#/$defs/__schema2"
                },
                "version": {
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                }
              },
              "required": [
                "id",
                "owner",
                "version",
                "createdAt",
                "updatedAt",
                "taskId",
                "authorRef",
                "kind",
                "content",
                "progressPercent"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema3"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema4"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema4"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema3"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ]
    },
    "hasna.todos.response.comment_page.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema2": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema3": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema4": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.comment_page.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "items": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "authorRef": {
                        "additionalProperties": false,
                        "properties": {
                          "digest": {
                            "pattern": "^[a-f0-9]{64}$",
                            "type": "string"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema1"
                          }
                        },
                        "required": [
                          "owner",
                          "id",
                          "digest"
                        ],
                        "type": "object"
                      },
                      "content": {
                        "maxLength": 100000,
                        "minLength": 1,
                        "type": "string"
                      },
                      "createdAt": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "kind": {
                        "enum": [
                          "comment",
                          "progress",
                          "note"
                        ],
                        "type": "string"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "progressPercent": {
                        "anyOf": [
                          {
                            "maximum": 100,
                            "minimum": 0,
                            "type": "number"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "taskId": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "version": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "taskId",
                      "authorRef",
                      "kind",
                      "content",
                      "progressPercent"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "nextCursor": {
                  "anyOf": [
                    {
                      "maxLength": 512,
                      "minLength": 1,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "items",
                "count",
                "nextCursor"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema3"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema4"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema4"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema3"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ],
      "x-hasna-invariants": [
        "todos.response.page_count"
      ]
    },
    "hasna.todos.response.count.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.count.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                }
              },
              "required": [
                "count"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema0"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema0"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ]
    },
    "hasna.todos.response.deletion_record.v1": {
      "$defs": {
        "__schema0": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        },
        "__schema1": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema2": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.deletion_record.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "deletedAt": {
                  "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|([+-]\\d{2}:\\d{2})))$",
                  "type": "string"
                },
                "entityIdDigest": {
                  "$ref": "#/$defs/__schema0"
                },
                "entityKind": {
                  "maxLength": 64,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "type": "string"
                },
                "id": {
                  "maxLength": 160,
                  "minLength": 1,
                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
                  "type": "string"
                },
                "owner": {
                  "maxLength": 128,
                  "minLength": 2,
                  "pattern": "^[a-z][a-z0-9.-]*$",
                  "type": "string"
                },
                "priorRecordDigest": {
                  "$ref": "#/$defs/__schema0"
                },
                "reasonCode": {
                  "maxLength": 128,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_]*$",
                  "type": "string"
                },
                "redaction": {
                  "const": "full",
                  "type": "string"
                },
                "tombstoneVersion": {
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                }
              },
              "required": [
                "id",
                "owner",
                "entityKind",
                "entityIdDigest",
                "priorRecordDigest",
                "tombstoneVersion",
                "redaction",
                "reasonCode",
                "deletedAt"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema1"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema1"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ]
    },
    "hasna.todos.response.deletion_record_page.v1": {
      "$defs": {
        "__schema0": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        },
        "__schema1": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema2": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.deletion_record_page.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "items": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "deletedAt": {
                        "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|([+-]\\d{2}:\\d{2})))$",
                        "type": "string"
                      },
                      "entityIdDigest": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "entityKind": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9_]*$",
                        "type": "string"
                      },
                      "id": {
                        "maxLength": 160,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
                        "type": "string"
                      },
                      "owner": {
                        "maxLength": 128,
                        "minLength": 2,
                        "pattern": "^[a-z][a-z0-9.-]*$",
                        "type": "string"
                      },
                      "priorRecordDigest": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "reasonCode": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9_]*$",
                        "type": "string"
                      },
                      "redaction": {
                        "const": "full",
                        "type": "string"
                      },
                      "tombstoneVersion": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "entityKind",
                      "entityIdDigest",
                      "priorRecordDigest",
                      "tombstoneVersion",
                      "redaction",
                      "reasonCode",
                      "deletedAt"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "nextCursor": {
                  "anyOf": [
                    {
                      "maxLength": 512,
                      "minLength": 1,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "items",
                "count",
                "nextCursor"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema1"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema1"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ],
      "x-hasna-invariants": [
        "todos.response.page_count"
      ]
    },
    "hasna.todos.response.dependency.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema2": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema3": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.dependency.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "createdAt": {
                  "$ref": "#/$defs/__schema1"
                },
                "id": {
                  "$ref": "#/$defs/__schema0"
                },
                "kind": {
                  "enum": [
                    "requires",
                    "blocks"
                  ],
                  "type": "string"
                },
                "owner": {
                  "maxLength": 128,
                  "minLength": 2,
                  "pattern": "^[a-z][a-z0-9.-]*$",
                  "type": "string"
                },
                "sourceTaskId": {
                  "$ref": "#/$defs/__schema0"
                },
                "targetTaskId": {
                  "$ref": "#/$defs/__schema0"
                },
                "updatedAt": {
                  "$ref": "#/$defs/__schema1"
                },
                "version": {
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                }
              },
              "required": [
                "id",
                "owner",
                "version",
                "createdAt",
                "updatedAt",
                "sourceTaskId",
                "targetTaskId",
                "kind"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ]
    },
    "hasna.todos.response.dependency_page.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema2": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema3": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.dependency_page.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "items": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "createdAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "kind": {
                        "enum": [
                          "requires",
                          "blocks"
                        ],
                        "type": "string"
                      },
                      "owner": {
                        "maxLength": 128,
                        "minLength": 2,
                        "pattern": "^[a-z][a-z0-9.-]*$",
                        "type": "string"
                      },
                      "sourceTaskId": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "targetTaskId": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "version": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "sourceTaskId",
                      "targetTaskId",
                      "kind"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "nextCursor": {
                  "anyOf": [
                    {
                      "maxLength": 512,
                      "minLength": 1,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "items",
                "count",
                "nextCursor"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ],
      "x-hasna-invariants": [
        "todos.response.page_count"
      ]
    },
    "hasna.todos.response.exists_many.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.exists_many.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "results": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "exists": {
                        "type": "boolean"
                      },
                      "ref": {
                        "maxLength": 160,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
                        "type": "string"
                      }
                    },
                    "required": [
                      "ref",
                      "exists"
                    ],
                    "type": "object"
                  },
                  "minItems": 1,
                  "type": "array"
                }
              },
              "required": [
                "results"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema0"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema0"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ]
    },
    "hasna.todos.response.git_commit.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema2": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema3": {
          "additionalProperties": false,
          "properties": {
            "digest": {
              "pattern": "^[a-f0-9]{64}$",
              "type": "string"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "owner": {
              "$ref": "#/$defs/__schema1"
            }
          },
          "required": [
            "owner",
            "id",
            "digest"
          ],
          "type": "object"
        },
        "__schema4": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema5": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.git_commit.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "authorRef": {
                  "$ref": "#/$defs/__schema3"
                },
                "changedFiles": {
                  "items": {
                    "maxLength": 1024,
                    "minLength": 1,
                    "type": "string"
                  },
                  "maxItems": 50000,
                  "type": "array"
                },
                "committedAt": {
                  "$ref": "#/$defs/__schema2"
                },
                "createdAt": {
                  "$ref": "#/$defs/__schema2"
                },
                "id": {
                  "$ref": "#/$defs/__schema0"
                },
                "message": {
                  "maxLength": 20000,
                  "minLength": 1,
                  "type": "string"
                },
                "objectId": {
                  "additionalProperties": false,
                  "properties": {
                    "algorithm": {
                      "enum": [
                        "sha1",
                        "sha256"
                      ],
                      "type": "string"
                    },
                    "value": {
                      "pattern": "^[a-f0-9]+$",
                      "type": "string"
                    }
                  },
                  "required": [
                    "algorithm",
                    "value"
                  ],
                  "type": "object"
                },
                "owner": {
                  "$ref": "#/$defs/__schema1"
                },
                "repositoryRef": {
                  "$ref": "#/$defs/__schema3"
                },
                "updatedAt": {
                  "$ref": "#/$defs/__schema2"
                },
                "version": {
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                }
              },
              "required": [
                "id",
                "owner",
                "version",
                "createdAt",
                "updatedAt",
                "repositoryRef",
                "objectId",
                "message",
                "authorRef",
                "committedAt",
                "changedFiles"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema4"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema5"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema5"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema4"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ]
    },
    "hasna.todos.response.git_commit_page.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema2": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema3": {
          "additionalProperties": false,
          "properties": {
            "digest": {
              "pattern": "^[a-f0-9]{64}$",
              "type": "string"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "owner": {
              "$ref": "#/$defs/__schema1"
            }
          },
          "required": [
            "owner",
            "id",
            "digest"
          ],
          "type": "object"
        },
        "__schema4": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema5": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.git_commit_page.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "items": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "authorRef": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "changedFiles": {
                        "items": {
                          "maxLength": 1024,
                          "minLength": 1,
                          "type": "string"
                        },
                        "maxItems": 50000,
                        "type": "array"
                      },
                      "committedAt": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "createdAt": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "message": {
                        "maxLength": 20000,
                        "minLength": 1,
                        "type": "string"
                      },
                      "objectId": {
                        "additionalProperties": false,
                        "properties": {
                          "algorithm": {
                            "enum": [
                              "sha1",
                              "sha256"
                            ],
                            "type": "string"
                          },
                          "value": {
                            "pattern": "^[a-f0-9]+$",
                            "type": "string"
                          }
                        },
                        "required": [
                          "algorithm",
                          "value"
                        ],
                        "type": "object"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "repositoryRef": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "version": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "repositoryRef",
                      "objectId",
                      "message",
                      "authorRef",
                      "committedAt",
                      "changedFiles"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "nextCursor": {
                  "anyOf": [
                    {
                      "maxLength": 512,
                      "minLength": 1,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "items",
                "count",
                "nextCursor"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema4"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema5"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema5"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema4"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ],
      "x-hasna-invariants": [
        "todos.response.page_count"
      ]
    },
    "hasna.todos.response.git_ref.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema2": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema3": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema4": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.git_ref.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "createdAt": {
                  "$ref": "#/$defs/__schema2"
                },
                "id": {
                  "$ref": "#/$defs/__schema0"
                },
                "name": {
                  "maxLength": 512,
                  "minLength": 1,
                  "type": "string"
                },
                "owner": {
                  "$ref": "#/$defs/__schema1"
                },
                "providerObservedAt": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema2"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "published": {
                  "type": "boolean"
                },
                "repositoryRef": {
                  "additionalProperties": false,
                  "properties": {
                    "digest": {
                      "pattern": "^[a-f0-9]{64}$",
                      "type": "string"
                    },
                    "id": {
                      "$ref": "#/$defs/__schema0"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema1"
                    }
                  },
                  "required": [
                    "owner",
                    "id",
                    "digest"
                  ],
                  "type": "object"
                },
                "target": {
                  "additionalProperties": false,
                  "properties": {
                    "algorithm": {
                      "enum": [
                        "sha1",
                        "sha256"
                      ],
                      "type": "string"
                    },
                    "value": {
                      "pattern": "^[a-f0-9]+$",
                      "type": "string"
                    }
                  },
                  "required": [
                    "algorithm",
                    "value"
                  ],
                  "type": "object"
                },
                "type": {
                  "enum": [
                    "branch",
                    "tag",
                    "pull_request"
                  ],
                  "type": "string"
                },
                "updatedAt": {
                  "$ref": "#/$defs/__schema2"
                },
                "version": {
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                }
              },
              "required": [
                "id",
                "owner",
                "version",
                "createdAt",
                "updatedAt",
                "repositoryRef",
                "type",
                "name",
                "target",
                "published",
                "providerObservedAt"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema3"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema4"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema4"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema3"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ]
    },
    "hasna.todos.response.git_ref_page.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema2": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema3": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema4": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.git_ref_page.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "items": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "createdAt": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "name": {
                        "maxLength": 512,
                        "minLength": 1,
                        "type": "string"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "providerObservedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema2"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "published": {
                        "type": "boolean"
                      },
                      "repositoryRef": {
                        "additionalProperties": false,
                        "properties": {
                          "digest": {
                            "pattern": "^[a-f0-9]{64}$",
                            "type": "string"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema1"
                          }
                        },
                        "required": [
                          "owner",
                          "id",
                          "digest"
                        ],
                        "type": "object"
                      },
                      "target": {
                        "additionalProperties": false,
                        "properties": {
                          "algorithm": {
                            "enum": [
                              "sha1",
                              "sha256"
                            ],
                            "type": "string"
                          },
                          "value": {
                            "pattern": "^[a-f0-9]+$",
                            "type": "string"
                          }
                        },
                        "required": [
                          "algorithm",
                          "value"
                        ],
                        "type": "object"
                      },
                      "type": {
                        "enum": [
                          "branch",
                          "tag",
                          "pull_request"
                        ],
                        "type": "string"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "version": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "repositoryRef",
                      "type",
                      "name",
                      "target",
                      "published",
                      "providerObservedAt"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "nextCursor": {
                  "anyOf": [
                    {
                      "maxLength": 512,
                      "minLength": 1,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "items",
                "count",
                "nextCursor"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema3"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema4"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema4"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema3"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ],
      "x-hasna-invariants": [
        "todos.response.page_count"
      ]
    },
    "hasna.todos.response.migration_receipt.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        },
        "__schema2": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema3": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema4": {
          "enum": [
            "projects",
            "task_lists",
            "plans",
            "tasks",
            "comments",
            "dependencies",
            "activities",
            "verification_evidence",
            "task_files",
            "runs",
            "run_events",
            "run_commands",
            "run_files",
            "run_artifacts",
            "git_commits",
            "git_refs",
            "traceability",
            "task_to_pr_projections",
            "saved_views",
            "task_templates",
            "approvals",
            "deletion_records"
          ],
          "type": "string"
        },
        "__schema5": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema6": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.migration_receipt.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "bundleChecksum": {
                  "$ref": "#/$defs/__schema1"
                },
                "bundleId": {
                  "$ref": "#/$defs/__schema0"
                },
                "checkpoint": {
                  "additionalProperties": false,
                  "properties": {
                    "bundleChecksum": {
                      "$ref": "#/$defs/__schema1"
                    },
                    "bundleId": {
                      "$ref": "#/$defs/__schema0"
                    },
                    "completedSections": {
                      "items": {
                        "$ref": "#/$defs/__schema4"
                      },
                      "type": "array"
                    },
                    "contractDigest": {
                      "$ref": "#/$defs/__schema1"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema1"
                    },
                    "idempotencyKey": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "importPlanDigest": {
                      "$ref": "#/$defs/__schema1"
                    },
                    "importPlanId": {
                      "$ref": "#/$defs/__schema0"
                    },
                    "manifestDigest": {
                      "$ref": "#/$defs/__schema1"
                    },
                    "nextSection": {
                      "anyOf": [
                        {
                          "$ref": "#/$defs/__schema4"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "schema": {
                      "const": "hasna.todos.transfer_checkpoint.v1",
                      "type": "string"
                    },
                    "sequence": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "sourceAuthorityId": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "state": {
                      "enum": [
                        "pending",
                        "interrupted",
                        "committed"
                      ],
                      "type": "string"
                    },
                    "targetAuthorityId": {
                      "$ref": "#/$defs/__schema2"
                    }
                  },
                  "required": [
                    "schema",
                    "sourceAuthorityId",
                    "bundleId",
                    "bundleChecksum",
                    "importPlanId",
                    "importPlanDigest",
                    "contractDigest",
                    "manifestDigest",
                    "targetAuthorityId",
                    "idempotencyKey",
                    "sequence",
                    "completedSections",
                    "nextSection",
                    "state",
                    "digest"
                  ],
                  "type": "object"
                },
                "committedAt": {
                  "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|([+-]\\d{2}:\\d{2})))$",
                  "type": "string"
                },
                "contractDigest": {
                  "$ref": "#/$defs/__schema1"
                },
                "id": {
                  "$ref": "#/$defs/__schema0"
                },
                "idempotencyKey": {
                  "$ref": "#/$defs/__schema3"
                },
                "importPlanDigest": {
                  "$ref": "#/$defs/__schema1"
                },
                "importPlanId": {
                  "$ref": "#/$defs/__schema0"
                },
                "importedCounts": {
                  "additionalProperties": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "propertyNames": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "manifestDigest": {
                  "$ref": "#/$defs/__schema1"
                },
                "previousReceiptDigest": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema1"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "receiptDigest": {
                  "$ref": "#/$defs/__schema1"
                },
                "receiptSequence": {
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                },
                "schema": {
                  "const": "hasna.todos.migration_receipt.v1",
                  "type": "string"
                },
                "sourceAuthorityId": {
                  "$ref": "#/$defs/__schema2"
                },
                "status": {
                  "const": "committed",
                  "type": "string"
                },
                "targetAuthorityId": {
                  "$ref": "#/$defs/__schema2"
                }
              },
              "required": [
                "schema",
                "id",
                "receiptSequence",
                "previousReceiptDigest",
                "sourceAuthorityId",
                "targetAuthorityId",
                "bundleId",
                "bundleChecksum",
                "importPlanId",
                "importPlanDigest",
                "contractDigest",
                "manifestDigest",
                "idempotencyKey",
                "status",
                "importedCounts",
                "checkpoint",
                "committedAt",
                "receiptDigest"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema5"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema6"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema6"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema5"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ],
      "x-hasna-invariants": [
        "todos.transfer.public_canonical_boundaries"
      ]
    },
    "hasna.todos.response.migration_receipt_page.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        },
        "__schema2": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema3": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema4": {
          "enum": [
            "projects",
            "task_lists",
            "plans",
            "tasks",
            "comments",
            "dependencies",
            "activities",
            "verification_evidence",
            "task_files",
            "runs",
            "run_events",
            "run_commands",
            "run_files",
            "run_artifacts",
            "git_commits",
            "git_refs",
            "traceability",
            "task_to_pr_projections",
            "saved_views",
            "task_templates",
            "approvals",
            "deletion_records"
          ],
          "type": "string"
        },
        "__schema5": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema6": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.migration_receipt_page.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "items": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "bundleChecksum": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "bundleId": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "checkpoint": {
                        "additionalProperties": false,
                        "properties": {
                          "bundleChecksum": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "bundleId": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "completedSections": {
                            "items": {
                              "$ref": "#/$defs/__schema4"
                            },
                            "type": "array"
                          },
                          "contractDigest": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "digest": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "idempotencyKey": {
                            "$ref": "#/$defs/__schema3"
                          },
                          "importPlanDigest": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "importPlanId": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "manifestDigest": {
                            "$ref": "#/$defs/__schema1"
                          },
                          "nextSection": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema4"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "schema": {
                            "const": "hasna.todos.transfer_checkpoint.v1",
                            "type": "string"
                          },
                          "sequence": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "sourceAuthorityId": {
                            "$ref": "#/$defs/__schema2"
                          },
                          "state": {
                            "enum": [
                              "pending",
                              "interrupted",
                              "committed"
                            ],
                            "type": "string"
                          },
                          "targetAuthorityId": {
                            "$ref": "#/$defs/__schema2"
                          }
                        },
                        "required": [
                          "schema",
                          "sourceAuthorityId",
                          "bundleId",
                          "bundleChecksum",
                          "importPlanId",
                          "importPlanDigest",
                          "contractDigest",
                          "manifestDigest",
                          "targetAuthorityId",
                          "idempotencyKey",
                          "sequence",
                          "completedSections",
                          "nextSection",
                          "state",
                          "digest"
                        ],
                        "type": "object"
                      },
                      "committedAt": {
                        "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|([+-]\\d{2}:\\d{2})))$",
                        "type": "string"
                      },
                      "contractDigest": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "idempotencyKey": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "importPlanDigest": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "importPlanId": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "importedCounts": {
                        "additionalProperties": {
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "propertyNames": {
                          "type": "string"
                        },
                        "type": "object"
                      },
                      "manifestDigest": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "previousReceiptDigest": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema1"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "receiptDigest": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "receiptSequence": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      },
                      "schema": {
                        "const": "hasna.todos.migration_receipt.v1",
                        "type": "string"
                      },
                      "sourceAuthorityId": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "status": {
                        "const": "committed",
                        "type": "string"
                      },
                      "targetAuthorityId": {
                        "$ref": "#/$defs/__schema2"
                      }
                    },
                    "required": [
                      "schema",
                      "id",
                      "receiptSequence",
                      "previousReceiptDigest",
                      "sourceAuthorityId",
                      "targetAuthorityId",
                      "bundleId",
                      "bundleChecksum",
                      "importPlanId",
                      "importPlanDigest",
                      "contractDigest",
                      "manifestDigest",
                      "idempotencyKey",
                      "status",
                      "importedCounts",
                      "checkpoint",
                      "committedAt",
                      "receiptDigest"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "nextCursor": {
                  "anyOf": [
                    {
                      "maxLength": 512,
                      "minLength": 1,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "items",
                "count",
                "nextCursor"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema5"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema6"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema6"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema5"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ],
      "x-hasna-invariants": [
        "todos.response.page_count",
        "todos.transfer.public_canonical_boundaries"
      ]
    },
    "hasna.todos.response.mutation.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.mutation.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "changed": {
                  "type": "boolean"
                },
                "operationId": {
                  "pattern": "^todos\\.[a-z0-9_]+(?:\\.[a-z0-9_]+)+$",
                  "type": "string"
                },
                "replayed": {
                  "type": "boolean"
                },
                "resourceId": {
                  "maxLength": 160,
                  "minLength": 1,
                  "type": "string"
                },
                "version": {
                  "anyOf": [
                    {
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991,
                      "type": "integer"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "operationId",
                "resourceId",
                "changed",
                "replayed",
                "version"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema0"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema0"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ]
    },
    "hasna.todos.response.plan.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema2": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema3": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.plan.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "completedAt": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema1"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "createdAt": {
                  "$ref": "#/$defs/__schema1"
                },
                "description": {
                  "anyOf": [
                    {
                      "maxLength": 40000,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "id": {
                  "$ref": "#/$defs/__schema0"
                },
                "name": {
                  "maxLength": 256,
                  "minLength": 1,
                  "type": "string"
                },
                "objective": {
                  "maxLength": 20000,
                  "minLength": 1,
                  "type": "string"
                },
                "owner": {
                  "maxLength": 128,
                  "minLength": 2,
                  "pattern": "^[a-z][a-z0-9.-]*$",
                  "type": "string"
                },
                "projectId": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema0"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "slug": {
                  "maxLength": 96,
                  "minLength": 1,
                  "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                  "type": "string"
                },
                "status": {
                  "enum": [
                    "draft",
                    "active",
                    "completed",
                    "archived"
                  ],
                  "type": "string"
                },
                "taskIds": {
                  "items": {
                    "$ref": "#/$defs/__schema0"
                  },
                  "maxItems": 10000,
                  "type": "array"
                },
                "taskListId": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema0"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "updatedAt": {
                  "$ref": "#/$defs/__schema1"
                },
                "version": {
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                }
              },
              "required": [
                "id",
                "owner",
                "version",
                "createdAt",
                "updatedAt",
                "slug",
                "projectId",
                "taskListId",
                "name",
                "description",
                "status",
                "objective",
                "taskIds",
                "completedAt"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ]
    },
    "hasna.todos.response.plan_page.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema2": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema3": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.plan_page.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "items": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "completedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema1"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "createdAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "description": {
                        "anyOf": [
                          {
                            "maxLength": 40000,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "name": {
                        "maxLength": 256,
                        "minLength": 1,
                        "type": "string"
                      },
                      "objective": {
                        "maxLength": 20000,
                        "minLength": 1,
                        "type": "string"
                      },
                      "owner": {
                        "maxLength": 128,
                        "minLength": 2,
                        "pattern": "^[a-z][a-z0-9.-]*$",
                        "type": "string"
                      },
                      "projectId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema0"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "slug": {
                        "maxLength": 96,
                        "minLength": 1,
                        "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                        "type": "string"
                      },
                      "status": {
                        "enum": [
                          "draft",
                          "active",
                          "completed",
                          "archived"
                        ],
                        "type": "string"
                      },
                      "taskIds": {
                        "items": {
                          "$ref": "#/$defs/__schema0"
                        },
                        "maxItems": 10000,
                        "type": "array"
                      },
                      "taskListId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema0"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "version": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "slug",
                      "projectId",
                      "taskListId",
                      "name",
                      "description",
                      "status",
                      "objective",
                      "taskIds",
                      "completedAt"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "nextCursor": {
                  "anyOf": [
                    {
                      "maxLength": 512,
                      "minLength": 1,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "items",
                "count",
                "nextCursor"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ],
      "x-hasna-invariants": [
        "todos.response.page_count"
      ]
    },
    "hasna.todos.response.project.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema2": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema3": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema4": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.project.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "archivedAt": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema2"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "createdAt": {
                  "$ref": "#/$defs/__schema2"
                },
                "description": {
                  "anyOf": [
                    {
                      "maxLength": 20000,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "id": {
                  "$ref": "#/$defs/__schema0"
                },
                "name": {
                  "maxLength": 256,
                  "minLength": 1,
                  "type": "string"
                },
                "owner": {
                  "$ref": "#/$defs/__schema1"
                },
                "repositoryRef": {
                  "anyOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "digest": {
                          "pattern": "^[a-f0-9]{64}$",
                          "type": "string"
                        },
                        "id": {
                          "$ref": "#/$defs/__schema0"
                        },
                        "owner": {
                          "$ref": "#/$defs/__schema1"
                        }
                      },
                      "required": [
                        "owner",
                        "id",
                        "digest"
                      ],
                      "type": "object"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "slug": {
                  "maxLength": 96,
                  "minLength": 1,
                  "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                  "type": "string"
                },
                "updatedAt": {
                  "$ref": "#/$defs/__schema2"
                },
                "version": {
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                }
              },
              "required": [
                "id",
                "owner",
                "version",
                "createdAt",
                "updatedAt",
                "slug",
                "name",
                "description",
                "repositoryRef",
                "archivedAt"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema3"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema4"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema4"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema3"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ]
    },
    "hasna.todos.response.project_page.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema2": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema3": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema4": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.project_page.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "items": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "archivedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema2"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "createdAt": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "description": {
                        "anyOf": [
                          {
                            "maxLength": 20000,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "name": {
                        "maxLength": 256,
                        "minLength": 1,
                        "type": "string"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "repositoryRef": {
                        "anyOf": [
                          {
                            "additionalProperties": false,
                            "properties": {
                              "digest": {
                                "pattern": "^[a-f0-9]{64}$",
                                "type": "string"
                              },
                              "id": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "owner": {
                                "$ref": "#/$defs/__schema1"
                              }
                            },
                            "required": [
                              "owner",
                              "id",
                              "digest"
                            ],
                            "type": "object"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "slug": {
                        "maxLength": 96,
                        "minLength": 1,
                        "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                        "type": "string"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "version": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "slug",
                      "name",
                      "description",
                      "repositoryRef",
                      "archivedAt"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "nextCursor": {
                  "anyOf": [
                    {
                      "maxLength": 512,
                      "minLength": 1,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "items",
                "count",
                "nextCursor"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema3"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema4"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema4"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema3"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ],
      "x-hasna-invariants": [
        "todos.response.page_count"
      ]
    },
    "hasna.todos.response.projection.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema2": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        },
        "__schema3": {
          "additionalProperties": false,
          "properties": {
            "algorithm": {
              "enum": [
                "sha1",
                "sha256"
              ],
              "type": "string"
            },
            "value": {
              "pattern": "^[a-f0-9]+$",
              "type": "string"
            }
          },
          "required": [
            "algorithm",
            "value"
          ],
          "type": "object"
        },
        "__schema4": {
          "additionalProperties": false,
          "properties": {
            "head": {
              "$ref": "#/$defs/__schema3"
            },
            "kind": {
              "enum": [
                "head_equality",
                "ci",
                "review"
              ],
              "type": "string"
            },
            "observedAt": {
              "$ref": "#/$defs/__schema5"
            },
            "ref": {
              "additionalProperties": false,
              "properties": {
                "digest": {
                  "$ref": "#/$defs/__schema2"
                },
                "id": {
                  "$ref": "#/$defs/__schema0"
                },
                "kind": {
                  "const": "proof_bundle",
                  "type": "string"
                },
                "owner": {
                  "$ref": "#/$defs/__schema1"
                }
              },
              "required": [
                "owner",
                "kind",
                "id",
                "digest"
              ],
              "type": "object"
            }
          },
          "required": [
            "ref",
            "kind",
            "head",
            "observedAt"
          ],
          "type": "object"
        },
        "__schema5": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema6": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema7": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.projection.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "derivedAt": {
                  "$ref": "#/$defs/__schema5"
                },
                "digest": {
                  "$ref": "#/$defs/__schema2"
                },
                "head": {
                  "additionalProperties": false,
                  "properties": {
                    "branchHead": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "equalityProof": {
                      "anyOf": [
                        {
                          "$ref": "#/$defs/__schema4"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "providerObservedHead": {
                      "anyOf": [
                        {
                          "$ref": "#/$defs/__schema3"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "publishedHead": {
                      "anyOf": [
                        {
                          "$ref": "#/$defs/__schema3"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "branchHead",
                    "publishedHead",
                    "providerObservedHead",
                    "equalityProof"
                  ],
                  "type": "object"
                },
                "id": {
                  "$ref": "#/$defs/__schema0"
                },
                "identity": {
                  "additionalProperties": false,
                  "properties": {
                    "baseHead": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "branchRef": {
                      "additionalProperties": false,
                      "properties": {
                        "digest": {
                          "$ref": "#/$defs/__schema2"
                        },
                        "id": {
                          "$ref": "#/$defs/__schema0"
                        },
                        "kind": {
                          "const": "branch",
                          "type": "string"
                        },
                        "owner": {
                          "$ref": "#/$defs/__schema1"
                        }
                      },
                      "required": [
                        "owner",
                        "kind",
                        "id",
                        "digest"
                      ],
                      "type": "object"
                    },
                    "repositoryRef": {
                      "additionalProperties": false,
                      "properties": {
                        "digest": {
                          "$ref": "#/$defs/__schema2"
                        },
                        "id": {
                          "$ref": "#/$defs/__schema0"
                        },
                        "kind": {
                          "const": "repository",
                          "type": "string"
                        },
                        "owner": {
                          "$ref": "#/$defs/__schema1"
                        }
                      },
                      "required": [
                        "owner",
                        "kind",
                        "id",
                        "digest"
                      ],
                      "type": "object"
                    },
                    "taskRef": {
                      "additionalProperties": false,
                      "properties": {
                        "digest": {
                          "$ref": "#/$defs/__schema2"
                        },
                        "id": {
                          "$ref": "#/$defs/__schema0"
                        },
                        "kind": {
                          "const": "task",
                          "type": "string"
                        },
                        "owner": {
                          "$ref": "#/$defs/__schema1"
                        }
                      },
                      "required": [
                        "owner",
                        "kind",
                        "id",
                        "digest"
                      ],
                      "type": "object"
                    },
                    "worktreeRef": {
                      "additionalProperties": false,
                      "properties": {
                        "digest": {
                          "$ref": "#/$defs/__schema2"
                        },
                        "id": {
                          "$ref": "#/$defs/__schema0"
                        },
                        "kind": {
                          "const": "worktree",
                          "type": "string"
                        },
                        "owner": {
                          "$ref": "#/$defs/__schema1"
                        }
                      },
                      "required": [
                        "owner",
                        "kind",
                        "id",
                        "digest"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "taskRef",
                    "repositoryRef",
                    "worktreeRef",
                    "branchRef",
                    "baseHead"
                  ],
                  "type": "object"
                },
                "owner": {
                  "$ref": "#/$defs/__schema1"
                },
                "predecessor": {
                  "anyOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "digest": {
                          "$ref": "#/$defs/__schema2"
                        },
                        "kind": {
                          "const": "task_to_pr_projection",
                          "type": "string"
                        },
                        "owner": {
                          "$ref": "#/$defs/__schema1"
                        },
                        "projectionId": {
                          "$ref": "#/$defs/__schema0"
                        },
                        "version": {
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "kind",
                        "projectionId",
                        "owner",
                        "version",
                        "digest"
                      ],
                      "type": "object"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "proofs": {
                  "items": {
                    "$ref": "#/$defs/__schema4"
                  },
                  "maxItems": 10000,
                  "type": "array"
                },
                "pullRequestRef": {
                  "anyOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "digest": {
                          "$ref": "#/$defs/__schema2"
                        },
                        "id": {
                          "$ref": "#/$defs/__schema0"
                        },
                        "kind": {
                          "const": "pull_request",
                          "type": "string"
                        },
                        "owner": {
                          "$ref": "#/$defs/__schema1"
                        }
                      },
                      "required": [
                        "owner",
                        "kind",
                        "id",
                        "digest"
                      ],
                      "type": "object"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "schema": {
                  "const": "hasna.todos.task_to_pr_projection.v1",
                  "type": "string"
                },
                "sequence": {
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                },
                "version": {
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                }
              },
              "required": [
                "schema",
                "id",
                "owner",
                "version",
                "sequence",
                "predecessor",
                "identity",
                "pullRequestRef",
                "head",
                "proofs",
                "derivedAt",
                "digest"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema6"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema7"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema7"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema6"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ]
    },
    "hasna.todos.response.projection_page.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema2": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        },
        "__schema3": {
          "additionalProperties": false,
          "properties": {
            "algorithm": {
              "enum": [
                "sha1",
                "sha256"
              ],
              "type": "string"
            },
            "value": {
              "pattern": "^[a-f0-9]+$",
              "type": "string"
            }
          },
          "required": [
            "algorithm",
            "value"
          ],
          "type": "object"
        },
        "__schema4": {
          "additionalProperties": false,
          "properties": {
            "head": {
              "$ref": "#/$defs/__schema3"
            },
            "kind": {
              "enum": [
                "head_equality",
                "ci",
                "review"
              ],
              "type": "string"
            },
            "observedAt": {
              "$ref": "#/$defs/__schema5"
            },
            "ref": {
              "additionalProperties": false,
              "properties": {
                "digest": {
                  "$ref": "#/$defs/__schema2"
                },
                "id": {
                  "$ref": "#/$defs/__schema0"
                },
                "kind": {
                  "const": "proof_bundle",
                  "type": "string"
                },
                "owner": {
                  "$ref": "#/$defs/__schema1"
                }
              },
              "required": [
                "owner",
                "kind",
                "id",
                "digest"
              ],
              "type": "object"
            }
          },
          "required": [
            "ref",
            "kind",
            "head",
            "observedAt"
          ],
          "type": "object"
        },
        "__schema5": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema6": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema7": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.projection_page.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "items": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "derivedAt": {
                        "$ref": "#/$defs/__schema5"
                      },
                      "digest": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "head": {
                        "additionalProperties": false,
                        "properties": {
                          "branchHead": {
                            "$ref": "#/$defs/__schema3"
                          },
                          "equalityProof": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema4"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "providerObservedHead": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema3"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "publishedHead": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema3"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "branchHead",
                          "publishedHead",
                          "providerObservedHead",
                          "equalityProof"
                        ],
                        "type": "object"
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "identity": {
                        "additionalProperties": false,
                        "properties": {
                          "baseHead": {
                            "$ref": "#/$defs/__schema3"
                          },
                          "branchRef": {
                            "additionalProperties": false,
                            "properties": {
                              "digest": {
                                "$ref": "#/$defs/__schema2"
                              },
                              "id": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "kind": {
                                "const": "branch",
                                "type": "string"
                              },
                              "owner": {
                                "$ref": "#/$defs/__schema1"
                              }
                            },
                            "required": [
                              "owner",
                              "kind",
                              "id",
                              "digest"
                            ],
                            "type": "object"
                          },
                          "repositoryRef": {
                            "additionalProperties": false,
                            "properties": {
                              "digest": {
                                "$ref": "#/$defs/__schema2"
                              },
                              "id": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "kind": {
                                "const": "repository",
                                "type": "string"
                              },
                              "owner": {
                                "$ref": "#/$defs/__schema1"
                              }
                            },
                            "required": [
                              "owner",
                              "kind",
                              "id",
                              "digest"
                            ],
                            "type": "object"
                          },
                          "taskRef": {
                            "additionalProperties": false,
                            "properties": {
                              "digest": {
                                "$ref": "#/$defs/__schema2"
                              },
                              "id": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "kind": {
                                "const": "task",
                                "type": "string"
                              },
                              "owner": {
                                "$ref": "#/$defs/__schema1"
                              }
                            },
                            "required": [
                              "owner",
                              "kind",
                              "id",
                              "digest"
                            ],
                            "type": "object"
                          },
                          "worktreeRef": {
                            "additionalProperties": false,
                            "properties": {
                              "digest": {
                                "$ref": "#/$defs/__schema2"
                              },
                              "id": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "kind": {
                                "const": "worktree",
                                "type": "string"
                              },
                              "owner": {
                                "$ref": "#/$defs/__schema1"
                              }
                            },
                            "required": [
                              "owner",
                              "kind",
                              "id",
                              "digest"
                            ],
                            "type": "object"
                          }
                        },
                        "required": [
                          "taskRef",
                          "repositoryRef",
                          "worktreeRef",
                          "branchRef",
                          "baseHead"
                        ],
                        "type": "object"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "predecessor": {
                        "anyOf": [
                          {
                            "additionalProperties": false,
                            "properties": {
                              "digest": {
                                "$ref": "#/$defs/__schema2"
                              },
                              "kind": {
                                "const": "task_to_pr_projection",
                                "type": "string"
                              },
                              "owner": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "projectionId": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "version": {
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991,
                                "type": "integer"
                              }
                            },
                            "required": [
                              "kind",
                              "projectionId",
                              "owner",
                              "version",
                              "digest"
                            ],
                            "type": "object"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "proofs": {
                        "items": {
                          "$ref": "#/$defs/__schema4"
                        },
                        "maxItems": 10000,
                        "type": "array"
                      },
                      "pullRequestRef": {
                        "anyOf": [
                          {
                            "additionalProperties": false,
                            "properties": {
                              "digest": {
                                "$ref": "#/$defs/__schema2"
                              },
                              "id": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "kind": {
                                "const": "pull_request",
                                "type": "string"
                              },
                              "owner": {
                                "$ref": "#/$defs/__schema1"
                              }
                            },
                            "required": [
                              "owner",
                              "kind",
                              "id",
                              "digest"
                            ],
                            "type": "object"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "schema": {
                        "const": "hasna.todos.task_to_pr_projection.v1",
                        "type": "string"
                      },
                      "sequence": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      },
                      "version": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "schema",
                      "id",
                      "owner",
                      "version",
                      "sequence",
                      "predecessor",
                      "identity",
                      "pullRequestRef",
                      "head",
                      "proofs",
                      "derivedAt",
                      "digest"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "nextCursor": {
                  "anyOf": [
                    {
                      "maxLength": 512,
                      "minLength": 1,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "items",
                "count",
                "nextCursor"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema6"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema7"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema7"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema6"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ],
      "x-hasna-invariants": [
        "todos.response.page_count"
      ]
    },
    "hasna.todos.response.report.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.report.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "contentRef": {
                  "additionalProperties": false,
                  "properties": {
                    "algorithm": {
                      "const": "sha256",
                      "type": "string"
                    },
                    "byteLength": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "pattern": "^[a-f0-9]{64}$",
                      "type": "string"
                    },
                    "mediaType": {
                      "maxLength": 160,
                      "minLength": 1,
                      "type": "string"
                    }
                  },
                  "required": [
                    "algorithm",
                    "digest",
                    "mediaType",
                    "byteLength"
                  ],
                  "type": "object"
                },
                "generatedAt": {
                  "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|([+-]\\d{2}:\\d{2})))$",
                  "type": "string"
                },
                "kind": {
                  "enum": [
                    "task_summary",
                    "plan_progress",
                    "run_evidence",
                    "traceability"
                  ],
                  "type": "string"
                },
                "reportId": {
                  "maxLength": 160,
                  "minLength": 1,
                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
                  "type": "string"
                }
              },
              "required": [
                "reportId",
                "kind",
                "contentRef",
                "generatedAt"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema0"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema0"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ]
    },
    "hasna.todos.response.run.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema2": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema3": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.run.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "agentId": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema0"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "completedAt": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema1"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "createdAt": {
                  "$ref": "#/$defs/__schema1"
                },
                "id": {
                  "$ref": "#/$defs/__schema0"
                },
                "ledgerDigest": {
                  "pattern": "^[a-f0-9]{64}$",
                  "type": "string"
                },
                "objective": {
                  "maxLength": 20000,
                  "minLength": 1,
                  "type": "string"
                },
                "owner": {
                  "maxLength": 128,
                  "minLength": 2,
                  "pattern": "^[a-z][a-z0-9.-]*$",
                  "type": "string"
                },
                "planId": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema0"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "startedAt": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema1"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "status": {
                  "enum": [
                    "queued",
                    "running",
                    "succeeded",
                    "failed",
                    "cancelled"
                  ],
                  "type": "string"
                },
                "taskIds": {
                  "items": {
                    "$ref": "#/$defs/__schema0"
                  },
                  "maxItems": 10000,
                  "type": "array"
                },
                "updatedAt": {
                  "$ref": "#/$defs/__schema1"
                },
                "version": {
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                }
              },
              "required": [
                "id",
                "owner",
                "version",
                "createdAt",
                "updatedAt",
                "objective",
                "status",
                "taskIds",
                "planId",
                "agentId",
                "startedAt",
                "completedAt",
                "ledgerDigest"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ]
    },
    "hasna.todos.response.run_artifact.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema2": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema3": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.run_artifact.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "contentRef": {
                  "additionalProperties": false,
                  "properties": {
                    "algorithm": {
                      "const": "sha256",
                      "type": "string"
                    },
                    "byteLength": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "pattern": "^[a-f0-9]{64}$",
                      "type": "string"
                    },
                    "mediaType": {
                      "maxLength": 160,
                      "minLength": 1,
                      "type": "string"
                    }
                  },
                  "required": [
                    "algorithm",
                    "digest",
                    "mediaType",
                    "byteLength"
                  ],
                  "type": "object"
                },
                "createdAt": {
                  "$ref": "#/$defs/__schema1"
                },
                "id": {
                  "$ref": "#/$defs/__schema0"
                },
                "kind": {
                  "maxLength": 160,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_.:-]*$",
                  "type": "string"
                },
                "name": {
                  "maxLength": 512,
                  "minLength": 1,
                  "type": "string"
                },
                "owner": {
                  "maxLength": 128,
                  "minLength": 2,
                  "pattern": "^[a-z][a-z0-9.-]*$",
                  "type": "string"
                },
                "runId": {
                  "$ref": "#/$defs/__schema0"
                },
                "updatedAt": {
                  "$ref": "#/$defs/__schema1"
                },
                "verificationEvidenceId": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema0"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "verified": {
                  "type": "boolean"
                },
                "version": {
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                }
              },
              "required": [
                "id",
                "owner",
                "version",
                "createdAt",
                "updatedAt",
                "runId",
                "name",
                "kind",
                "contentRef",
                "verified",
                "verificationEvidenceId"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ]
    },
    "hasna.todos.response.run_artifact_page.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema2": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema3": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.run_artifact_page.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "items": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "contentRef": {
                        "additionalProperties": false,
                        "properties": {
                          "algorithm": {
                            "const": "sha256",
                            "type": "string"
                          },
                          "byteLength": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "digest": {
                            "pattern": "^[a-f0-9]{64}$",
                            "type": "string"
                          },
                          "mediaType": {
                            "maxLength": 160,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "algorithm",
                          "digest",
                          "mediaType",
                          "byteLength"
                        ],
                        "type": "object"
                      },
                      "createdAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "kind": {
                        "maxLength": 160,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9_.:-]*$",
                        "type": "string"
                      },
                      "name": {
                        "maxLength": 512,
                        "minLength": 1,
                        "type": "string"
                      },
                      "owner": {
                        "maxLength": 128,
                        "minLength": 2,
                        "pattern": "^[a-z][a-z0-9.-]*$",
                        "type": "string"
                      },
                      "runId": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "verificationEvidenceId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema0"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "verified": {
                        "type": "boolean"
                      },
                      "version": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "runId",
                      "name",
                      "kind",
                      "contentRef",
                      "verified",
                      "verificationEvidenceId"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "nextCursor": {
                  "anyOf": [
                    {
                      "maxLength": 512,
                      "minLength": 1,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "items",
                "count",
                "nextCursor"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ],
      "x-hasna-invariants": [
        "todos.response.page_count"
      ]
    },
    "hasna.todos.response.run_command.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema2": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema3": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.run_command.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "command": {
                  "maxLength": 16000,
                  "minLength": 1,
                  "type": "string"
                },
                "completedAt": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema1"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "createdAt": {
                  "$ref": "#/$defs/__schema1"
                },
                "durationMs": {
                  "anyOf": [
                    {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "exitCode": {
                  "anyOf": [
                    {
                      "maximum": 9007199254740991,
                      "minimum": -9007199254740991,
                      "type": "integer"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "id": {
                  "$ref": "#/$defs/__schema0"
                },
                "outputRefs": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "algorithm": {
                        "const": "sha256",
                        "type": "string"
                      },
                      "byteLength": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "digest": {
                        "pattern": "^[a-f0-9]{64}$",
                        "type": "string"
                      },
                      "mediaType": {
                        "maxLength": 160,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "algorithm",
                      "digest",
                      "mediaType",
                      "byteLength"
                    ],
                    "type": "object"
                  },
                  "maxItems": 1024,
                  "type": "array"
                },
                "owner": {
                  "maxLength": 128,
                  "minLength": 2,
                  "pattern": "^[a-z][a-z0-9.-]*$",
                  "type": "string"
                },
                "runId": {
                  "$ref": "#/$defs/__schema0"
                },
                "sequence": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "updatedAt": {
                  "$ref": "#/$defs/__schema1"
                },
                "version": {
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                }
              },
              "required": [
                "id",
                "owner",
                "version",
                "createdAt",
                "updatedAt",
                "runId",
                "sequence",
                "command",
                "exitCode",
                "durationMs",
                "outputRefs",
                "completedAt"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ]
    },
    "hasna.todos.response.run_command_page.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema2": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema3": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.run_command_page.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "items": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "command": {
                        "maxLength": 16000,
                        "minLength": 1,
                        "type": "string"
                      },
                      "completedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema1"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "createdAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "durationMs": {
                        "anyOf": [
                          {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "exitCode": {
                        "anyOf": [
                          {
                            "maximum": 9007199254740991,
                            "minimum": -9007199254740991,
                            "type": "integer"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "outputRefs": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "algorithm": {
                              "const": "sha256",
                              "type": "string"
                            },
                            "byteLength": {
                              "maximum": 9007199254740991,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "digest": {
                              "pattern": "^[a-f0-9]{64}$",
                              "type": "string"
                            },
                            "mediaType": {
                              "maxLength": 160,
                              "minLength": 1,
                              "type": "string"
                            }
                          },
                          "required": [
                            "algorithm",
                            "digest",
                            "mediaType",
                            "byteLength"
                          ],
                          "type": "object"
                        },
                        "maxItems": 1024,
                        "type": "array"
                      },
                      "owner": {
                        "maxLength": 128,
                        "minLength": 2,
                        "pattern": "^[a-z][a-z0-9.-]*$",
                        "type": "string"
                      },
                      "runId": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "sequence": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "version": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "runId",
                      "sequence",
                      "command",
                      "exitCode",
                      "durationMs",
                      "outputRefs",
                      "completedAt"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "nextCursor": {
                  "anyOf": [
                    {
                      "maxLength": 512,
                      "minLength": 1,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "items",
                "count",
                "nextCursor"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ],
      "x-hasna-invariants": [
        "todos.response.page_count"
      ]
    },
    "hasna.todos.response.run_event.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema2": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema3": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.run_event.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "createdAt": {
                  "$ref": "#/$defs/__schema1"
                },
                "evidenceIds": {
                  "items": {
                    "$ref": "#/$defs/__schema0"
                  },
                  "maxItems": 10000,
                  "type": "array"
                },
                "id": {
                  "$ref": "#/$defs/__schema0"
                },
                "occurredAt": {
                  "$ref": "#/$defs/__schema1"
                },
                "owner": {
                  "maxLength": 128,
                  "minLength": 2,
                  "pattern": "^[a-z][a-z0-9.-]*$",
                  "type": "string"
                },
                "runId": {
                  "$ref": "#/$defs/__schema0"
                },
                "sequence": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "summary": {
                  "maxLength": 20000,
                  "minLength": 1,
                  "type": "string"
                },
                "type": {
                  "maxLength": 160,
                  "minLength": 1,
                  "pattern": "^[a-z][a-z0-9_.:-]*$",
                  "type": "string"
                },
                "updatedAt": {
                  "$ref": "#/$defs/__schema1"
                },
                "version": {
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                }
              },
              "required": [
                "id",
                "owner",
                "version",
                "createdAt",
                "updatedAt",
                "runId",
                "sequence",
                "type",
                "summary",
                "occurredAt",
                "evidenceIds"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ]
    },
    "hasna.todos.response.run_event_page.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema2": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema3": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.run_event_page.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "items": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "createdAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "evidenceIds": {
                        "items": {
                          "$ref": "#/$defs/__schema0"
                        },
                        "maxItems": 10000,
                        "type": "array"
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "occurredAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "owner": {
                        "maxLength": 128,
                        "minLength": 2,
                        "pattern": "^[a-z][a-z0-9.-]*$",
                        "type": "string"
                      },
                      "runId": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "sequence": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "summary": {
                        "maxLength": 20000,
                        "minLength": 1,
                        "type": "string"
                      },
                      "type": {
                        "maxLength": 160,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9_.:-]*$",
                        "type": "string"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "version": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "runId",
                      "sequence",
                      "type",
                      "summary",
                      "occurredAt",
                      "evidenceIds"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "nextCursor": {
                  "anyOf": [
                    {
                      "maxLength": 512,
                      "minLength": 1,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "items",
                "count",
                "nextCursor"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ],
      "x-hasna-invariants": [
        "todos.response.page_count"
      ]
    },
    "hasna.todos.response.run_file.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema2": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema3": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.run_file.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "contentRef": {
                  "additionalProperties": false,
                  "properties": {
                    "algorithm": {
                      "const": "sha256",
                      "type": "string"
                    },
                    "byteLength": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "pattern": "^[a-f0-9]{64}$",
                      "type": "string"
                    },
                    "mediaType": {
                      "maxLength": 160,
                      "minLength": 1,
                      "type": "string"
                    }
                  },
                  "required": [
                    "algorithm",
                    "digest",
                    "mediaType",
                    "byteLength"
                  ],
                  "type": "object"
                },
                "createdAt": {
                  "$ref": "#/$defs/__schema1"
                },
                "id": {
                  "$ref": "#/$defs/__schema0"
                },
                "logicalName": {
                  "maxLength": 512,
                  "minLength": 1,
                  "type": "string"
                },
                "owner": {
                  "maxLength": 128,
                  "minLength": 2,
                  "pattern": "^[a-z][a-z0-9.-]*$",
                  "type": "string"
                },
                "relativePath": {
                  "anyOf": [
                    {
                      "maxLength": 1024,
                      "minLength": 1,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "role": {
                  "enum": [
                    "input",
                    "output",
                    "evidence"
                  ],
                  "type": "string"
                },
                "runId": {
                  "$ref": "#/$defs/__schema0"
                },
                "updatedAt": {
                  "$ref": "#/$defs/__schema1"
                },
                "version": {
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                }
              },
              "required": [
                "id",
                "owner",
                "version",
                "createdAt",
                "updatedAt",
                "runId",
                "logicalName",
                "relativePath",
                "contentRef",
                "role"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ]
    },
    "hasna.todos.response.run_file_page.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema2": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema3": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.run_file_page.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "items": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "contentRef": {
                        "additionalProperties": false,
                        "properties": {
                          "algorithm": {
                            "const": "sha256",
                            "type": "string"
                          },
                          "byteLength": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "digest": {
                            "pattern": "^[a-f0-9]{64}$",
                            "type": "string"
                          },
                          "mediaType": {
                            "maxLength": 160,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "algorithm",
                          "digest",
                          "mediaType",
                          "byteLength"
                        ],
                        "type": "object"
                      },
                      "createdAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "logicalName": {
                        "maxLength": 512,
                        "minLength": 1,
                        "type": "string"
                      },
                      "owner": {
                        "maxLength": 128,
                        "minLength": 2,
                        "pattern": "^[a-z][a-z0-9.-]*$",
                        "type": "string"
                      },
                      "relativePath": {
                        "anyOf": [
                          {
                            "maxLength": 1024,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "role": {
                        "enum": [
                          "input",
                          "output",
                          "evidence"
                        ],
                        "type": "string"
                      },
                      "runId": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "version": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "runId",
                      "logicalName",
                      "relativePath",
                      "contentRef",
                      "role"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "nextCursor": {
                  "anyOf": [
                    {
                      "maxLength": 512,
                      "minLength": 1,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "items",
                "count",
                "nextCursor"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ],
      "x-hasna-invariants": [
        "todos.response.page_count"
      ]
    },
    "hasna.todos.response.run_ledger.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema2": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        },
        "__schema3": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema4": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        },
        "__schema5": {
          "additionalProperties": false,
          "properties": {
            "algorithm": {
              "const": "sha256",
              "type": "string"
            },
            "byteLength": {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer"
            },
            "digest": {
              "$ref": "#/$defs/__schema4"
            },
            "mediaType": {
              "maxLength": 160,
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "algorithm",
            "digest",
            "mediaType",
            "byteLength"
          ],
          "type": "object"
        },
        "__schema6": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema7": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.run_ledger.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "artifacts": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "contentRef": {
                        "$ref": "#/$defs/__schema5"
                      },
                      "createdAt": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "kind": {
                        "maxLength": 160,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9_.:-]*$",
                        "type": "string"
                      },
                      "name": {
                        "maxLength": 512,
                        "minLength": 1,
                        "type": "string"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "runId": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "verificationEvidenceId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema0"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "verified": {
                        "type": "boolean"
                      },
                      "version": {
                        "$ref": "#/$defs/__schema2"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "runId",
                      "name",
                      "kind",
                      "contentRef",
                      "verified",
                      "verificationEvidenceId"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "commands": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "command": {
                        "maxLength": 16000,
                        "minLength": 1,
                        "type": "string"
                      },
                      "completedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema3"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "createdAt": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "durationMs": {
                        "anyOf": [
                          {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "exitCode": {
                        "anyOf": [
                          {
                            "maximum": 9007199254740991,
                            "minimum": -9007199254740991,
                            "type": "integer"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "outputRefs": {
                        "items": {
                          "$ref": "#/$defs/__schema5"
                        },
                        "maxItems": 1024,
                        "type": "array"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "runId": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "sequence": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "version": {
                        "$ref": "#/$defs/__schema2"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "runId",
                      "sequence",
                      "command",
                      "exitCode",
                      "durationMs",
                      "outputRefs",
                      "completedAt"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "digest": {
                  "$ref": "#/$defs/__schema4"
                },
                "events": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "createdAt": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "evidenceIds": {
                        "items": {
                          "$ref": "#/$defs/__schema0"
                        },
                        "maxItems": 10000,
                        "type": "array"
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "occurredAt": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "runId": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "sequence": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "summary": {
                        "maxLength": 20000,
                        "minLength": 1,
                        "type": "string"
                      },
                      "type": {
                        "maxLength": 160,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9_.:-]*$",
                        "type": "string"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "version": {
                        "$ref": "#/$defs/__schema2"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "runId",
                      "sequence",
                      "type",
                      "summary",
                      "occurredAt",
                      "evidenceIds"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "files": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "contentRef": {
                        "$ref": "#/$defs/__schema5"
                      },
                      "createdAt": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "logicalName": {
                        "maxLength": 512,
                        "minLength": 1,
                        "type": "string"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "relativePath": {
                        "anyOf": [
                          {
                            "maxLength": 1024,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "role": {
                        "enum": [
                          "input",
                          "output",
                          "evidence"
                        ],
                        "type": "string"
                      },
                      "runId": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "version": {
                        "$ref": "#/$defs/__schema2"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "runId",
                      "logicalName",
                      "relativePath",
                      "contentRef",
                      "role"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "run": {
                  "additionalProperties": false,
                  "properties": {
                    "agentId": {
                      "anyOf": [
                        {
                          "$ref": "#/$defs/__schema0"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "completedAt": {
                      "anyOf": [
                        {
                          "$ref": "#/$defs/__schema3"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "id": {
                      "$ref": "#/$defs/__schema0"
                    },
                    "ledgerDigest": {
                      "$ref": "#/$defs/__schema4"
                    },
                    "objective": {
                      "maxLength": 20000,
                      "minLength": 1,
                      "type": "string"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema1"
                    },
                    "planId": {
                      "anyOf": [
                        {
                          "$ref": "#/$defs/__schema0"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "startedAt": {
                      "anyOf": [
                        {
                          "$ref": "#/$defs/__schema3"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "enum": [
                        "queued",
                        "running",
                        "succeeded",
                        "failed",
                        "cancelled"
                      ],
                      "type": "string"
                    },
                    "taskIds": {
                      "items": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "maxItems": 10000,
                      "type": "array"
                    },
                    "updatedAt": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "version": {
                      "$ref": "#/$defs/__schema2"
                    }
                  },
                  "required": [
                    "id",
                    "owner",
                    "version",
                    "createdAt",
                    "updatedAt",
                    "objective",
                    "status",
                    "taskIds",
                    "planId",
                    "agentId",
                    "startedAt",
                    "completedAt",
                    "ledgerDigest"
                  ],
                  "type": "object"
                }
              },
              "required": [
                "run",
                "events",
                "commands",
                "files",
                "artifacts",
                "digest"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema6"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema7"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema7"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema6"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ]
    },
    "hasna.todos.response.run_page.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema2": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema3": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.run_page.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "items": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "agentId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema0"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "completedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema1"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "createdAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "ledgerDigest": {
                        "pattern": "^[a-f0-9]{64}$",
                        "type": "string"
                      },
                      "objective": {
                        "maxLength": 20000,
                        "minLength": 1,
                        "type": "string"
                      },
                      "owner": {
                        "maxLength": 128,
                        "minLength": 2,
                        "pattern": "^[a-z][a-z0-9.-]*$",
                        "type": "string"
                      },
                      "planId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema0"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "startedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema1"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "status": {
                        "enum": [
                          "queued",
                          "running",
                          "succeeded",
                          "failed",
                          "cancelled"
                        ],
                        "type": "string"
                      },
                      "taskIds": {
                        "items": {
                          "$ref": "#/$defs/__schema0"
                        },
                        "maxItems": 10000,
                        "type": "array"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "version": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "objective",
                      "status",
                      "taskIds",
                      "planId",
                      "agentId",
                      "startedAt",
                      "completedAt",
                      "ledgerDigest"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "nextCursor": {
                  "anyOf": [
                    {
                      "maxLength": 512,
                      "minLength": 1,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "items",
                "count",
                "nextCursor"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ],
      "x-hasna-invariants": [
        "todos.response.page_count"
      ]
    },
    "hasna.todos.response.saved_view.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema2": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema3": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.saved_view.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "audience": {
                  "enum": [
                    "private",
                    "organization"
                  ],
                  "type": "string"
                },
                "createdAt": {
                  "$ref": "#/$defs/__schema1"
                },
                "description": {
                  "anyOf": [
                    {
                      "maxLength": 4096,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "id": {
                  "$ref": "#/$defs/__schema0"
                },
                "name": {
                  "maxLength": 256,
                  "minLength": 1,
                  "type": "string"
                },
                "owner": {
                  "maxLength": 128,
                  "minLength": 2,
                  "pattern": "^[a-z][a-z0-9.-]*$",
                  "type": "string"
                },
                "query": {
                  "additionalProperties": false,
                  "properties": {
                    "cursor": {
                      "anyOf": [
                        {
                          "maxLength": 512,
                          "minLength": 1,
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "filters": {
                      "additionalProperties": false,
                      "properties": {
                        "agentIds": {
                          "items": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "maxItems": 256,
                          "type": "array"
                        },
                        "changedAfter": {
                          "anyOf": [
                            {
                              "$ref": "#/$defs/__schema1"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "dueBefore": {
                          "anyOf": [
                            {
                              "$ref": "#/$defs/__schema1"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "planIds": {
                          "items": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "maxItems": 256,
                          "type": "array"
                        },
                        "priorities": {
                          "items": {
                            "enum": [
                              "low",
                              "medium",
                              "high",
                              "critical"
                            ],
                            "type": "string"
                          },
                          "maxItems": 8,
                          "type": "array"
                        },
                        "projectIds": {
                          "items": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "maxItems": 256,
                          "type": "array"
                        },
                        "statuses": {
                          "items": {
                            "enum": [
                              "pending",
                              "ready",
                              "in_progress",
                              "blocked",
                              "completed",
                              "failed",
                              "cancelled"
                            ],
                            "type": "string"
                          },
                          "maxItems": 16,
                          "type": "array"
                        },
                        "tags": {
                          "items": {
                            "maxLength": 96,
                            "minLength": 1,
                            "type": "string"
                          },
                          "maxItems": 128,
                          "type": "array"
                        },
                        "taskListIds": {
                          "items": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "maxItems": 256,
                          "type": "array"
                        }
                      },
                      "required": [
                        "projectIds",
                        "taskListIds",
                        "planIds",
                        "agentIds",
                        "statuses",
                        "priorities",
                        "tags",
                        "changedAfter",
                        "dueBefore"
                      ],
                      "type": "object"
                    },
                    "limit": {
                      "exclusiveMinimum": 0,
                      "maximum": 500,
                      "type": "integer"
                    },
                    "query": {
                      "maxLength": 4096,
                      "minLength": 1,
                      "type": "string"
                    }
                  },
                  "required": [
                    "query",
                    "filters",
                    "cursor",
                    "limit"
                  ],
                  "type": "object"
                },
                "updatedAt": {
                  "$ref": "#/$defs/__schema1"
                },
                "version": {
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                }
              },
              "required": [
                "id",
                "owner",
                "version",
                "createdAt",
                "updatedAt",
                "name",
                "description",
                "query",
                "audience"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ]
    },
    "hasna.todos.response.saved_view_page.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema2": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema3": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.saved_view_page.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "items": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "audience": {
                        "enum": [
                          "private",
                          "organization"
                        ],
                        "type": "string"
                      },
                      "createdAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "description": {
                        "anyOf": [
                          {
                            "maxLength": 4096,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "name": {
                        "maxLength": 256,
                        "minLength": 1,
                        "type": "string"
                      },
                      "owner": {
                        "maxLength": 128,
                        "minLength": 2,
                        "pattern": "^[a-z][a-z0-9.-]*$",
                        "type": "string"
                      },
                      "query": {
                        "additionalProperties": false,
                        "properties": {
                          "cursor": {
                            "anyOf": [
                              {
                                "maxLength": 512,
                                "minLength": 1,
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "filters": {
                            "additionalProperties": false,
                            "properties": {
                              "agentIds": {
                                "items": {
                                  "$ref": "#/$defs/__schema0"
                                },
                                "maxItems": 256,
                                "type": "array"
                              },
                              "changedAfter": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/__schema1"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "dueBefore": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/__schema1"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "planIds": {
                                "items": {
                                  "$ref": "#/$defs/__schema0"
                                },
                                "maxItems": 256,
                                "type": "array"
                              },
                              "priorities": {
                                "items": {
                                  "enum": [
                                    "low",
                                    "medium",
                                    "high",
                                    "critical"
                                  ],
                                  "type": "string"
                                },
                                "maxItems": 8,
                                "type": "array"
                              },
                              "projectIds": {
                                "items": {
                                  "$ref": "#/$defs/__schema0"
                                },
                                "maxItems": 256,
                                "type": "array"
                              },
                              "statuses": {
                                "items": {
                                  "enum": [
                                    "pending",
                                    "ready",
                                    "in_progress",
                                    "blocked",
                                    "completed",
                                    "failed",
                                    "cancelled"
                                  ],
                                  "type": "string"
                                },
                                "maxItems": 16,
                                "type": "array"
                              },
                              "tags": {
                                "items": {
                                  "maxLength": 96,
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "maxItems": 128,
                                "type": "array"
                              },
                              "taskListIds": {
                                "items": {
                                  "$ref": "#/$defs/__schema0"
                                },
                                "maxItems": 256,
                                "type": "array"
                              }
                            },
                            "required": [
                              "projectIds",
                              "taskListIds",
                              "planIds",
                              "agentIds",
                              "statuses",
                              "priorities",
                              "tags",
                              "changedAfter",
                              "dueBefore"
                            ],
                            "type": "object"
                          },
                          "limit": {
                            "exclusiveMinimum": 0,
                            "maximum": 500,
                            "type": "integer"
                          },
                          "query": {
                            "maxLength": 4096,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "query",
                          "filters",
                          "cursor",
                          "limit"
                        ],
                        "type": "object"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "version": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "name",
                      "description",
                      "query",
                      "audience"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "nextCursor": {
                  "anyOf": [
                    {
                      "maxLength": 512,
                      "minLength": 1,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "items",
                "count",
                "nextCursor"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ],
      "x-hasna-invariants": [
        "todos.response.page_count"
      ]
    },
    "hasna.todos.response.server_start.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.server_start.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "authorityId": {
                  "maxLength": 128,
                  "minLength": 2,
                  "pattern": "^[a-z][a-z0-9.-]*$",
                  "type": "string"
                },
                "interface": {
                  "enum": [
                    "loopback",
                    "workspace"
                  ],
                  "type": "string"
                },
                "port": {
                  "maximum": 65535,
                  "minimum": 1024,
                  "type": "integer"
                },
                "startedAt": {
                  "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|([+-]\\d{2}:\\d{2})))$",
                  "type": "string"
                },
                "state": {
                  "const": "started",
                  "type": "string"
                }
              },
              "required": [
                "authorityId",
                "interface",
                "port",
                "state",
                "startedAt"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema0"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema0"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ]
    },
    "hasna.todos.response.service_status.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.service_status.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "authorityId": {
                  "maxLength": 128,
                  "minLength": 2,
                  "pattern": "^[a-z][a-z0-9.-]*$",
                  "type": "string"
                },
                "contractVersion": {
                  "const": "1.0.0",
                  "type": "string"
                },
                "manifestVersion": {
                  "const": "1",
                  "type": "string"
                },
                "observedAt": {
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$",
                  "type": "string"
                },
                "status": {
                  "enum": [
                    "healthy",
                    "ready",
                    "unavailable"
                  ],
                  "type": "string"
                }
              },
              "required": [
                "status",
                "authorityId",
                "contractVersion",
                "manifestVersion",
                "observedAt"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema0"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema0"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ]
    },
    "hasna.todos.response.stats.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.stats.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "activeAgents": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "activeRuns": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "asOfDate": {
                  "format": "date",
                  "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])))$",
                  "type": "string"
                },
                "plans": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "projects": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "tasks": {
                  "additionalProperties": false,
                  "properties": {
                    "blocked": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "cancelled": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "completed": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "failed": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "inProgress": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "pending": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "ready": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "total": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "total",
                    "pending",
                    "ready",
                    "inProgress",
                    "blocked",
                    "completed",
                    "failed",
                    "cancelled"
                  ],
                  "type": "object"
                }
              },
              "required": [
                "asOfDate",
                "tasks",
                "projects",
                "plans",
                "activeAgents",
                "activeRuns"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema0"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema0"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ]
    },
    "hasna.todos.response.task.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema2": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema3": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema4": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.task.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "acceptanceCriteria": {
                  "items": {
                    "maxLength": 4096,
                    "minLength": 1,
                    "type": "string"
                  },
                  "maxItems": 256,
                  "type": "array"
                },
                "assignedAgentId": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema0"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "completedAt": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema2"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "createdAt": {
                  "$ref": "#/$defs/__schema2"
                },
                "description": {
                  "anyOf": [
                    {
                      "maxLength": 100000,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "dueAt": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema2"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "externalOwnerRefs": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "digest": {
                        "pattern": "^[a-f0-9]{64}$",
                        "type": "string"
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema1"
                      }
                    },
                    "required": [
                      "owner",
                      "id",
                      "digest"
                    ],
                    "type": "object"
                  },
                  "maxItems": 64,
                  "type": "array"
                },
                "fingerprint": {
                  "anyOf": [
                    {
                      "maxLength": 256,
                      "minLength": 1,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "id": {
                  "$ref": "#/$defs/__schema0"
                },
                "owner": {
                  "$ref": "#/$defs/__schema1"
                },
                "parentTaskId": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema0"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "planId": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema0"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "priority": {
                  "enum": [
                    "low",
                    "medium",
                    "high",
                    "critical"
                  ],
                  "type": "string"
                },
                "projectId": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema0"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "shortId": {
                  "anyOf": [
                    {
                      "maxLength": 40,
                      "minLength": 1,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "status": {
                  "enum": [
                    "pending",
                    "ready",
                    "in_progress",
                    "blocked",
                    "completed",
                    "failed",
                    "cancelled"
                  ],
                  "type": "string"
                },
                "tags": {
                  "items": {
                    "maxLength": 96,
                    "minLength": 1,
                    "type": "string"
                  },
                  "maxItems": 128,
                  "type": "array"
                },
                "taskListId": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema0"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "title": {
                  "maxLength": 512,
                  "minLength": 1,
                  "type": "string"
                },
                "updatedAt": {
                  "$ref": "#/$defs/__schema2"
                },
                "version": {
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                }
              },
              "required": [
                "id",
                "owner",
                "version",
                "createdAt",
                "updatedAt",
                "shortId",
                "title",
                "description",
                "status",
                "priority",
                "projectId",
                "taskListId",
                "planId",
                "parentTaskId",
                "assignedAgentId",
                "fingerprint",
                "tags",
                "acceptanceCriteria",
                "dueAt",
                "completedAt",
                "externalOwnerRefs"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema3"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema4"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema4"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema3"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ]
    },
    "hasna.todos.response.task_context.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema2": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        },
        "__schema3": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema4": {
          "additionalProperties": false,
          "properties": {
            "digest": {
              "$ref": "#/$defs/__schema5"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "owner": {
              "$ref": "#/$defs/__schema1"
            }
          },
          "required": [
            "owner",
            "id",
            "digest"
          ],
          "type": "object"
        },
        "__schema5": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        },
        "__schema6": {
          "maxLength": 96,
          "minLength": 1,
          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
          "type": "string"
        },
        "__schema7": {
          "additionalProperties": false,
          "properties": {
            "algorithm": {
              "const": "sha256",
              "type": "string"
            },
            "byteLength": {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer"
            },
            "digest": {
              "$ref": "#/$defs/__schema5"
            },
            "mediaType": {
              "maxLength": 160,
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "algorithm",
            "digest",
            "mediaType",
            "byteLength"
          ],
          "type": "object"
        },
        "__schema8": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema9": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.task_context.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "comments": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "authorRef": {
                        "$ref": "#/$defs/__schema4"
                      },
                      "content": {
                        "maxLength": 100000,
                        "minLength": 1,
                        "type": "string"
                      },
                      "createdAt": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "kind": {
                        "enum": [
                          "comment",
                          "progress",
                          "note"
                        ],
                        "type": "string"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "progressPercent": {
                        "anyOf": [
                          {
                            "maximum": 100,
                            "minimum": 0,
                            "type": "number"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "taskId": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "version": {
                        "$ref": "#/$defs/__schema2"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "taskId",
                      "authorRef",
                      "kind",
                      "content",
                      "progressPercent"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "dependencies": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "createdAt": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "kind": {
                        "enum": [
                          "requires",
                          "blocks"
                        ],
                        "type": "string"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "sourceTaskId": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "targetTaskId": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "version": {
                        "$ref": "#/$defs/__schema2"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "sourceTaskId",
                      "targetTaskId",
                      "kind"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "files": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "contentRef": {
                        "$ref": "#/$defs/__schema7"
                      },
                      "createdAt": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "logicalName": {
                        "maxLength": 512,
                        "minLength": 1,
                        "type": "string"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "purpose": {
                        "enum": [
                          "attachment",
                          "evidence",
                          "deliverable"
                        ],
                        "type": "string"
                      },
                      "relativePath": {
                        "anyOf": [
                          {
                            "maxLength": 1024,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "taskId": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "version": {
                        "$ref": "#/$defs/__schema2"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "taskId",
                      "logicalName",
                      "relativePath",
                      "contentRef",
                      "purpose"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "plan": {
                  "anyOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "completedAt": {
                          "anyOf": [
                            {
                              "$ref": "#/$defs/__schema3"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "createdAt": {
                          "$ref": "#/$defs/__schema3"
                        },
                        "description": {
                          "anyOf": [
                            {
                              "maxLength": 40000,
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "id": {
                          "$ref": "#/$defs/__schema0"
                        },
                        "name": {
                          "maxLength": 256,
                          "minLength": 1,
                          "type": "string"
                        },
                        "objective": {
                          "maxLength": 20000,
                          "minLength": 1,
                          "type": "string"
                        },
                        "owner": {
                          "$ref": "#/$defs/__schema1"
                        },
                        "projectId": {
                          "anyOf": [
                            {
                              "$ref": "#/$defs/__schema0"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "slug": {
                          "$ref": "#/$defs/__schema6"
                        },
                        "status": {
                          "enum": [
                            "draft",
                            "active",
                            "completed",
                            "archived"
                          ],
                          "type": "string"
                        },
                        "taskIds": {
                          "items": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "maxItems": 10000,
                          "type": "array"
                        },
                        "taskListId": {
                          "anyOf": [
                            {
                              "$ref": "#/$defs/__schema0"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "updatedAt": {
                          "$ref": "#/$defs/__schema3"
                        },
                        "version": {
                          "$ref": "#/$defs/__schema2"
                        }
                      },
                      "required": [
                        "id",
                        "owner",
                        "version",
                        "createdAt",
                        "updatedAt",
                        "slug",
                        "projectId",
                        "taskListId",
                        "name",
                        "description",
                        "status",
                        "objective",
                        "taskIds",
                        "completedAt"
                      ],
                      "type": "object"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "project": {
                  "anyOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "archivedAt": {
                          "anyOf": [
                            {
                              "$ref": "#/$defs/__schema3"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "createdAt": {
                          "$ref": "#/$defs/__schema3"
                        },
                        "description": {
                          "anyOf": [
                            {
                              "maxLength": 20000,
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "id": {
                          "$ref": "#/$defs/__schema0"
                        },
                        "name": {
                          "maxLength": 256,
                          "minLength": 1,
                          "type": "string"
                        },
                        "owner": {
                          "$ref": "#/$defs/__schema1"
                        },
                        "repositoryRef": {
                          "anyOf": [
                            {
                              "$ref": "#/$defs/__schema4"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "slug": {
                          "$ref": "#/$defs/__schema6"
                        },
                        "updatedAt": {
                          "$ref": "#/$defs/__schema3"
                        },
                        "version": {
                          "$ref": "#/$defs/__schema2"
                        }
                      },
                      "required": [
                        "id",
                        "owner",
                        "version",
                        "createdAt",
                        "updatedAt",
                        "slug",
                        "name",
                        "description",
                        "repositoryRef",
                        "archivedAt"
                      ],
                      "type": "object"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "task": {
                  "additionalProperties": false,
                  "properties": {
                    "acceptanceCriteria": {
                      "items": {
                        "maxLength": 4096,
                        "minLength": 1,
                        "type": "string"
                      },
                      "maxItems": 256,
                      "type": "array"
                    },
                    "assignedAgentId": {
                      "anyOf": [
                        {
                          "$ref": "#/$defs/__schema0"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "completedAt": {
                      "anyOf": [
                        {
                          "$ref": "#/$defs/__schema3"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "description": {
                      "anyOf": [
                        {
                          "maxLength": 100000,
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "dueAt": {
                      "anyOf": [
                        {
                          "$ref": "#/$defs/__schema3"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "externalOwnerRefs": {
                      "items": {
                        "$ref": "#/$defs/__schema4"
                      },
                      "maxItems": 64,
                      "type": "array"
                    },
                    "fingerprint": {
                      "anyOf": [
                        {
                          "maxLength": 256,
                          "minLength": 1,
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "id": {
                      "$ref": "#/$defs/__schema0"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema1"
                    },
                    "parentTaskId": {
                      "anyOf": [
                        {
                          "$ref": "#/$defs/__schema0"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "planId": {
                      "anyOf": [
                        {
                          "$ref": "#/$defs/__schema0"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "priority": {
                      "enum": [
                        "low",
                        "medium",
                        "high",
                        "critical"
                      ],
                      "type": "string"
                    },
                    "projectId": {
                      "anyOf": [
                        {
                          "$ref": "#/$defs/__schema0"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "shortId": {
                      "anyOf": [
                        {
                          "maxLength": 40,
                          "minLength": 1,
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "enum": [
                        "pending",
                        "ready",
                        "in_progress",
                        "blocked",
                        "completed",
                        "failed",
                        "cancelled"
                      ],
                      "type": "string"
                    },
                    "tags": {
                      "items": {
                        "maxLength": 96,
                        "minLength": 1,
                        "type": "string"
                      },
                      "maxItems": 128,
                      "type": "array"
                    },
                    "taskListId": {
                      "anyOf": [
                        {
                          "$ref": "#/$defs/__schema0"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "title": {
                      "maxLength": 512,
                      "minLength": 1,
                      "type": "string"
                    },
                    "updatedAt": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "version": {
                      "$ref": "#/$defs/__schema2"
                    }
                  },
                  "required": [
                    "id",
                    "owner",
                    "version",
                    "createdAt",
                    "updatedAt",
                    "shortId",
                    "title",
                    "description",
                    "status",
                    "priority",
                    "projectId",
                    "taskListId",
                    "planId",
                    "parentTaskId",
                    "assignedAgentId",
                    "fingerprint",
                    "tags",
                    "acceptanceCriteria",
                    "dueAt",
                    "completedAt",
                    "externalOwnerRefs"
                  ],
                  "type": "object"
                },
                "taskList": {
                  "anyOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "archivedAt": {
                          "anyOf": [
                            {
                              "$ref": "#/$defs/__schema3"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "createdAt": {
                          "$ref": "#/$defs/__schema3"
                        },
                        "description": {
                          "anyOf": [
                            {
                              "maxLength": 20000,
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "id": {
                          "$ref": "#/$defs/__schema0"
                        },
                        "name": {
                          "maxLength": 256,
                          "minLength": 1,
                          "type": "string"
                        },
                        "owner": {
                          "$ref": "#/$defs/__schema1"
                        },
                        "projectId": {
                          "anyOf": [
                            {
                              "$ref": "#/$defs/__schema0"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "slug": {
                          "$ref": "#/$defs/__schema6"
                        },
                        "updatedAt": {
                          "$ref": "#/$defs/__schema3"
                        },
                        "version": {
                          "$ref": "#/$defs/__schema2"
                        }
                      },
                      "required": [
                        "id",
                        "owner",
                        "version",
                        "createdAt",
                        "updatedAt",
                        "projectId",
                        "slug",
                        "name",
                        "description",
                        "archivedAt"
                      ],
                      "type": "object"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "traceability": {
                  "anyOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "commitIds": {
                          "items": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "maxItems": 10000,
                          "type": "array"
                        },
                        "createdAt": {
                          "$ref": "#/$defs/__schema3"
                        },
                        "gitRefIds": {
                          "items": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "maxItems": 10000,
                          "type": "array"
                        },
                        "id": {
                          "$ref": "#/$defs/__schema0"
                        },
                        "owner": {
                          "$ref": "#/$defs/__schema1"
                        },
                        "projectionIds": {
                          "items": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "maxItems": 10000,
                          "type": "array"
                        },
                        "taskId": {
                          "$ref": "#/$defs/__schema0"
                        },
                        "updatedAt": {
                          "$ref": "#/$defs/__schema3"
                        },
                        "verificationEvidenceIds": {
                          "items": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "maxItems": 10000,
                          "type": "array"
                        },
                        "version": {
                          "$ref": "#/$defs/__schema2"
                        }
                      },
                      "required": [
                        "id",
                        "owner",
                        "version",
                        "createdAt",
                        "updatedAt",
                        "taskId",
                        "commitIds",
                        "gitRefIds",
                        "verificationEvidenceIds",
                        "projectionIds"
                      ],
                      "type": "object"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "verificationEvidence": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "checks": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "durationMs": {
                              "anyOf": [
                                {
                                  "maximum": 9007199254740991,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "name": {
                              "maxLength": 512,
                              "minLength": 1,
                              "type": "string"
                            },
                            "status": {
                              "enum": [
                                "passed",
                                "failed",
                                "skipped"
                              ],
                              "type": "string"
                            },
                            "summary": {
                              "anyOf": [
                                {
                                  "maxLength": 4096,
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "name",
                            "status",
                            "summary",
                            "durationMs"
                          ],
                          "type": "object"
                        },
                        "maxItems": 10000,
                        "type": "array"
                      },
                      "commands": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "command": {
                              "maxLength": 16000,
                              "minLength": 1,
                              "type": "string"
                            },
                            "durationMs": {
                              "maximum": 9007199254740991,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "exitCode": {
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "command",
                            "exitCode",
                            "durationMs"
                          ],
                          "type": "object"
                        },
                        "maxItems": 256,
                        "type": "array"
                      },
                      "completedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema3"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "confidence": {
                        "anyOf": [
                          {
                            "maximum": 1,
                            "minimum": 0,
                            "type": "number"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "contentRefs": {
                        "items": {
                          "$ref": "#/$defs/__schema7"
                        },
                        "maxItems": 10000,
                        "type": "array"
                      },
                      "createdAt": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "runId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema0"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "startedAt": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "status": {
                        "enum": [
                          "passed",
                          "failed",
                          "inconclusive"
                        ],
                        "type": "string"
                      },
                      "summary": {
                        "maxLength": 20000,
                        "minLength": 1,
                        "type": "string"
                      },
                      "taskId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema0"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "verifierRef": {
                        "$ref": "#/$defs/__schema4"
                      },
                      "version": {
                        "$ref": "#/$defs/__schema2"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "taskId",
                      "runId",
                      "verifierRef",
                      "status",
                      "summary",
                      "confidence",
                      "commands",
                      "checks",
                      "contentRefs",
                      "startedAt",
                      "completedAt"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "required": [
                "task",
                "project",
                "taskList",
                "plan",
                "comments",
                "dependencies",
                "verificationEvidence",
                "files",
                "traceability"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema8"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema9"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema9"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema8"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ]
    },
    "hasna.todos.response.task_file.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema2": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema3": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.task_file.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "contentRef": {
                  "additionalProperties": false,
                  "properties": {
                    "algorithm": {
                      "const": "sha256",
                      "type": "string"
                    },
                    "byteLength": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "digest": {
                      "pattern": "^[a-f0-9]{64}$",
                      "type": "string"
                    },
                    "mediaType": {
                      "maxLength": 160,
                      "minLength": 1,
                      "type": "string"
                    }
                  },
                  "required": [
                    "algorithm",
                    "digest",
                    "mediaType",
                    "byteLength"
                  ],
                  "type": "object"
                },
                "createdAt": {
                  "$ref": "#/$defs/__schema1"
                },
                "id": {
                  "$ref": "#/$defs/__schema0"
                },
                "logicalName": {
                  "maxLength": 512,
                  "minLength": 1,
                  "type": "string"
                },
                "owner": {
                  "maxLength": 128,
                  "minLength": 2,
                  "pattern": "^[a-z][a-z0-9.-]*$",
                  "type": "string"
                },
                "purpose": {
                  "enum": [
                    "attachment",
                    "evidence",
                    "deliverable"
                  ],
                  "type": "string"
                },
                "relativePath": {
                  "anyOf": [
                    {
                      "maxLength": 1024,
                      "minLength": 1,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "taskId": {
                  "$ref": "#/$defs/__schema0"
                },
                "updatedAt": {
                  "$ref": "#/$defs/__schema1"
                },
                "version": {
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                }
              },
              "required": [
                "id",
                "owner",
                "version",
                "createdAt",
                "updatedAt",
                "taskId",
                "logicalName",
                "relativePath",
                "contentRef",
                "purpose"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ]
    },
    "hasna.todos.response.task_file_page.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema2": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema3": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.task_file_page.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "items": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "contentRef": {
                        "additionalProperties": false,
                        "properties": {
                          "algorithm": {
                            "const": "sha256",
                            "type": "string"
                          },
                          "byteLength": {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          "digest": {
                            "pattern": "^[a-f0-9]{64}$",
                            "type": "string"
                          },
                          "mediaType": {
                            "maxLength": 160,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "algorithm",
                          "digest",
                          "mediaType",
                          "byteLength"
                        ],
                        "type": "object"
                      },
                      "createdAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "logicalName": {
                        "maxLength": 512,
                        "minLength": 1,
                        "type": "string"
                      },
                      "owner": {
                        "maxLength": 128,
                        "minLength": 2,
                        "pattern": "^[a-z][a-z0-9.-]*$",
                        "type": "string"
                      },
                      "purpose": {
                        "enum": [
                          "attachment",
                          "evidence",
                          "deliverable"
                        ],
                        "type": "string"
                      },
                      "relativePath": {
                        "anyOf": [
                          {
                            "maxLength": 1024,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "taskId": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "version": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "taskId",
                      "logicalName",
                      "relativePath",
                      "contentRef",
                      "purpose"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "nextCursor": {
                  "anyOf": [
                    {
                      "maxLength": 512,
                      "minLength": 1,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "items",
                "count",
                "nextCursor"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ],
      "x-hasna-invariants": [
        "todos.response.page_count"
      ]
    },
    "hasna.todos.response.task_list.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema2": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema3": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.task_list.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "archivedAt": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema1"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "createdAt": {
                  "$ref": "#/$defs/__schema1"
                },
                "description": {
                  "anyOf": [
                    {
                      "maxLength": 20000,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "id": {
                  "$ref": "#/$defs/__schema0"
                },
                "name": {
                  "maxLength": 256,
                  "minLength": 1,
                  "type": "string"
                },
                "owner": {
                  "maxLength": 128,
                  "minLength": 2,
                  "pattern": "^[a-z][a-z0-9.-]*$",
                  "type": "string"
                },
                "projectId": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema0"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "slug": {
                  "maxLength": 96,
                  "minLength": 1,
                  "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                  "type": "string"
                },
                "updatedAt": {
                  "$ref": "#/$defs/__schema1"
                },
                "version": {
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                }
              },
              "required": [
                "id",
                "owner",
                "version",
                "createdAt",
                "updatedAt",
                "projectId",
                "slug",
                "name",
                "description",
                "archivedAt"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ]
    },
    "hasna.todos.response.task_list_page.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema2": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema3": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.task_list_page.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "items": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "archivedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema1"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "createdAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "description": {
                        "anyOf": [
                          {
                            "maxLength": 20000,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "name": {
                        "maxLength": 256,
                        "minLength": 1,
                        "type": "string"
                      },
                      "owner": {
                        "maxLength": 128,
                        "minLength": 2,
                        "pattern": "^[a-z][a-z0-9.-]*$",
                        "type": "string"
                      },
                      "projectId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema0"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "slug": {
                        "maxLength": 96,
                        "minLength": 1,
                        "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
                        "type": "string"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "version": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "projectId",
                      "slug",
                      "name",
                      "description",
                      "archivedAt"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "nextCursor": {
                  "anyOf": [
                    {
                      "maxLength": 512,
                      "minLength": 1,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "items",
                "count",
                "nextCursor"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ],
      "x-hasna-invariants": [
        "todos.response.page_count"
      ]
    },
    "hasna.todos.response.task_page.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema2": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema3": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema4": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.task_page.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "items": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "acceptanceCriteria": {
                        "items": {
                          "maxLength": 4096,
                          "minLength": 1,
                          "type": "string"
                        },
                        "maxItems": 256,
                        "type": "array"
                      },
                      "assignedAgentId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema0"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "completedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema2"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "createdAt": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "description": {
                        "anyOf": [
                          {
                            "maxLength": 100000,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "dueAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema2"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "externalOwnerRefs": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "digest": {
                              "pattern": "^[a-f0-9]{64}$",
                              "type": "string"
                            },
                            "id": {
                              "$ref": "#/$defs/__schema0"
                            },
                            "owner": {
                              "$ref": "#/$defs/__schema1"
                            }
                          },
                          "required": [
                            "owner",
                            "id",
                            "digest"
                          ],
                          "type": "object"
                        },
                        "maxItems": 64,
                        "type": "array"
                      },
                      "fingerprint": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "parentTaskId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema0"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "planId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema0"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "priority": {
                        "enum": [
                          "low",
                          "medium",
                          "high",
                          "critical"
                        ],
                        "type": "string"
                      },
                      "projectId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema0"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "shortId": {
                        "anyOf": [
                          {
                            "maxLength": 40,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "status": {
                        "enum": [
                          "pending",
                          "ready",
                          "in_progress",
                          "blocked",
                          "completed",
                          "failed",
                          "cancelled"
                        ],
                        "type": "string"
                      },
                      "tags": {
                        "items": {
                          "maxLength": 96,
                          "minLength": 1,
                          "type": "string"
                        },
                        "maxItems": 128,
                        "type": "array"
                      },
                      "taskListId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema0"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "title": {
                        "maxLength": 512,
                        "minLength": 1,
                        "type": "string"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "version": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "shortId",
                      "title",
                      "description",
                      "status",
                      "priority",
                      "projectId",
                      "taskListId",
                      "planId",
                      "parentTaskId",
                      "assignedAgentId",
                      "fingerprint",
                      "tags",
                      "acceptanceCriteria",
                      "dueAt",
                      "completedAt",
                      "externalOwnerRefs"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "nextCursor": {
                  "anyOf": [
                    {
                      "maxLength": 512,
                      "minLength": 1,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "items",
                "count",
                "nextCursor"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema3"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema4"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema4"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema3"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ],
      "x-hasna-invariants": [
        "todos.response.page_count"
      ]
    },
    "hasna.todos.response.task_template.v1": {
      "$defs": {
        "__schema0": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema1": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema2": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.task_template.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "acceptanceCriteria": {
                  "items": {
                    "maxLength": 4096,
                    "minLength": 1,
                    "type": "string"
                  },
                  "maxItems": 256,
                  "type": "array"
                },
                "createdAt": {
                  "$ref": "#/$defs/__schema0"
                },
                "description": {
                  "anyOf": [
                    {
                      "maxLength": 4096,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "descriptionPattern": {
                  "anyOf": [
                    {
                      "maxLength": 20000,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "id": {
                  "maxLength": 160,
                  "minLength": 1,
                  "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
                  "type": "string"
                },
                "name": {
                  "maxLength": 256,
                  "minLength": 1,
                  "type": "string"
                },
                "owner": {
                  "maxLength": 128,
                  "minLength": 2,
                  "pattern": "^[a-z][a-z0-9.-]*$",
                  "type": "string"
                },
                "priority": {
                  "enum": [
                    "low",
                    "medium",
                    "high",
                    "critical"
                  ],
                  "type": "string"
                },
                "tags": {
                  "items": {
                    "maxLength": 96,
                    "minLength": 1,
                    "type": "string"
                  },
                  "maxItems": 128,
                  "type": "array"
                },
                "titlePattern": {
                  "maxLength": 512,
                  "minLength": 1,
                  "type": "string"
                },
                "updatedAt": {
                  "$ref": "#/$defs/__schema0"
                },
                "version": {
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                }
              },
              "required": [
                "id",
                "owner",
                "version",
                "createdAt",
                "updatedAt",
                "name",
                "description",
                "titlePattern",
                "descriptionPattern",
                "priority",
                "tags",
                "acceptanceCriteria"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema1"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema1"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ]
    },
    "hasna.todos.response.task_template_page.v1": {
      "$defs": {
        "__schema0": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema1": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema2": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.task_template_page.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "items": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "acceptanceCriteria": {
                        "items": {
                          "maxLength": 4096,
                          "minLength": 1,
                          "type": "string"
                        },
                        "maxItems": 256,
                        "type": "array"
                      },
                      "createdAt": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "description": {
                        "anyOf": [
                          {
                            "maxLength": 4096,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "descriptionPattern": {
                        "anyOf": [
                          {
                            "maxLength": 20000,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "id": {
                        "maxLength": 160,
                        "minLength": 1,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
                        "type": "string"
                      },
                      "name": {
                        "maxLength": 256,
                        "minLength": 1,
                        "type": "string"
                      },
                      "owner": {
                        "maxLength": 128,
                        "minLength": 2,
                        "pattern": "^[a-z][a-z0-9.-]*$",
                        "type": "string"
                      },
                      "priority": {
                        "enum": [
                          "low",
                          "medium",
                          "high",
                          "critical"
                        ],
                        "type": "string"
                      },
                      "tags": {
                        "items": {
                          "maxLength": 96,
                          "minLength": 1,
                          "type": "string"
                        },
                        "maxItems": 128,
                        "type": "array"
                      },
                      "titlePattern": {
                        "maxLength": 512,
                        "minLength": 1,
                        "type": "string"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "version": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "name",
                      "description",
                      "titlePattern",
                      "descriptionPattern",
                      "priority",
                      "tags",
                      "acceptanceCriteria"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "nextCursor": {
                  "anyOf": [
                    {
                      "maxLength": 512,
                      "minLength": 1,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "items",
                "count",
                "nextCursor"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema1"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema1"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ],
      "x-hasna-invariants": [
        "todos.response.page_count"
      ]
    },
    "hasna.todos.response.traceability.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema2": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema3": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.traceability.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "commitIds": {
                  "items": {
                    "$ref": "#/$defs/__schema0"
                  },
                  "maxItems": 10000,
                  "type": "array"
                },
                "createdAt": {
                  "$ref": "#/$defs/__schema1"
                },
                "gitRefIds": {
                  "items": {
                    "$ref": "#/$defs/__schema0"
                  },
                  "maxItems": 10000,
                  "type": "array"
                },
                "id": {
                  "$ref": "#/$defs/__schema0"
                },
                "owner": {
                  "maxLength": 128,
                  "minLength": 2,
                  "pattern": "^[a-z][a-z0-9.-]*$",
                  "type": "string"
                },
                "projectionIds": {
                  "items": {
                    "$ref": "#/$defs/__schema0"
                  },
                  "maxItems": 10000,
                  "type": "array"
                },
                "taskId": {
                  "$ref": "#/$defs/__schema0"
                },
                "updatedAt": {
                  "$ref": "#/$defs/__schema1"
                },
                "verificationEvidenceIds": {
                  "items": {
                    "$ref": "#/$defs/__schema0"
                  },
                  "maxItems": 10000,
                  "type": "array"
                },
                "version": {
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                }
              },
              "required": [
                "id",
                "owner",
                "version",
                "createdAt",
                "updatedAt",
                "taskId",
                "commitIds",
                "gitRefIds",
                "verificationEvidenceIds",
                "projectionIds"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ]
    },
    "hasna.todos.response.transfer_bundle.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema10": {
          "additionalProperties": false,
          "properties": {
            "algorithm": {
              "const": "sha256",
              "type": "string"
            },
            "byteLength": {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer"
            },
            "digest": {
              "$ref": "#/$defs/__schema3"
            },
            "mediaType": {
              "maxLength": 160,
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "algorithm",
            "digest",
            "mediaType",
            "byteLength"
          ],
          "type": "object"
        },
        "__schema11": {
          "maxLength": 512,
          "minLength": 1,
          "type": "string"
        },
        "__schema12": {
          "additionalProperties": false,
          "properties": {
            "algorithm": {
              "enum": [
                "sha1",
                "sha256"
              ],
              "type": "string"
            },
            "value": {
              "pattern": "^[a-f0-9]+$",
              "type": "string"
            }
          },
          "required": [
            "algorithm",
            "value"
          ],
          "type": "object"
        },
        "__schema13": {
          "additionalProperties": false,
          "properties": {
            "head": {
              "$ref": "#/$defs/__schema12"
            },
            "kind": {
              "enum": [
                "head_equality",
                "ci",
                "review"
              ],
              "type": "string"
            },
            "observedAt": {
              "$ref": "#/$defs/__schema1"
            },
            "ref": {
              "additionalProperties": false,
              "properties": {
                "digest": {
                  "$ref": "#/$defs/__schema3"
                },
                "id": {
                  "$ref": "#/$defs/__schema0"
                },
                "kind": {
                  "const": "proof_bundle",
                  "type": "string"
                },
                "owner": {
                  "$ref": "#/$defs/__schema2"
                }
              },
              "required": [
                "owner",
                "kind",
                "id",
                "digest"
              ],
              "type": "object"
            }
          },
          "required": [
            "ref",
            "kind",
            "head",
            "observedAt"
          ],
          "type": "object"
        },
        "__schema14": {
          "additionalProperties": false,
          "properties": {
            "digest": {
              "$ref": "#/$defs/__schema3"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "kind": {
              "const": "task_to_pr_projection",
              "type": "string"
            },
            "owner": {
              "$ref": "#/$defs/__schema2"
            },
            "section": {
              "enum": [
                "projects",
                "task_lists",
                "plans",
                "tasks",
                "comments",
                "dependencies",
                "activities",
                "verification_evidence",
                "task_files",
                "runs",
                "run_events",
                "run_commands",
                "run_files",
                "run_artifacts",
                "git_commits",
                "git_refs",
                "traceability",
                "task_to_pr_projections",
                "saved_views",
                "task_templates",
                "approvals",
                "deletion_records"
              ],
              "type": "string"
            },
            "version": {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            }
          },
          "required": [
            "owner",
            "section",
            "id"
          ],
          "type": "object"
        },
        "__schema15": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema16": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        },
        "__schema2": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema3": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        },
        "__schema4": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        },
        "__schema5": {
          "maxLength": 96,
          "minLength": 1,
          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
          "type": "string"
        },
        "__schema6": {
          "additionalProperties": false,
          "properties": {
            "digest": {
              "$ref": "#/$defs/__schema3"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "owner": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "owner",
            "id",
            "digest"
          ],
          "type": "object"
        },
        "__schema7": {
          "enum": [
            "pending",
            "ready",
            "in_progress",
            "blocked",
            "completed",
            "failed",
            "cancelled"
          ],
          "type": "string"
        },
        "__schema8": {
          "enum": [
            "low",
            "medium",
            "high",
            "critical"
          ],
          "type": "string"
        },
        "__schema9": {
          "additionalProperties": false,
          "properties": {
            "digest": {
              "$ref": "#/$defs/__schema3"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "kind": {
              "maxLength": 64,
              "minLength": 1,
              "pattern": "^[a-z][a-z0-9_]*$",
              "type": "string"
            },
            "owner": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "owner",
            "kind",
            "id",
            "digest"
          ],
          "type": "object"
        }
      },
      "$id": "hasna.todos.response.transfer_bundle.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "attachmentContentReferences": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "contentRef": {
                        "$ref": "#/$defs/__schema10"
                      },
                      "index": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "source": {
                        "additionalProperties": false,
                        "properties": {
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "section": {
                            "enum": [
                              "verification_evidence",
                              "task_files",
                              "run_commands",
                              "run_files",
                              "run_artifacts"
                            ],
                            "type": "string"
                          }
                        },
                        "required": [
                          "section",
                          "id"
                        ],
                        "type": "object"
                      }
                    },
                    "required": [
                      "owner",
                      "source",
                      "index",
                      "contentRef"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "bundleChecksum": {
                  "$ref": "#/$defs/__schema3"
                },
                "bundleId": {
                  "$ref": "#/$defs/__schema0"
                },
                "contractDigest": {
                  "$ref": "#/$defs/__schema3"
                },
                "contractVersion": {
                  "const": "1.0.0",
                  "type": "string"
                },
                "createdAt": {
                  "$ref": "#/$defs/__schema1"
                },
                "dependencyClosure": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "dependencyTaskIds": {
                        "items": {
                          "$ref": "#/$defs/__schema0"
                        },
                        "type": "array"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "taskId": {
                        "$ref": "#/$defs/__schema0"
                      }
                    },
                    "required": [
                      "owner",
                      "taskId",
                      "dependencyTaskIds"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "manifestDigest": {
                  "$ref": "#/$defs/__schema3"
                },
                "manifestVersion": {
                  "const": "1",
                  "type": "string"
                },
                "referenceClosure": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "references": {
                        "items": {
                          "$ref": "#/$defs/__schema14"
                        },
                        "type": "array"
                      },
                      "source": {
                        "$ref": "#/$defs/__schema14"
                      }
                    },
                    "required": [
                      "source",
                      "references"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "referenceOnly": {
                  "additionalProperties": false,
                  "properties": {
                    "agentIds": {
                      "items": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "type": "array"
                    },
                    "externalOwnerRefs": {
                      "items": {
                        "$ref": "#/$defs/__schema6"
                      },
                      "type": "array"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "ownerQualifiedRefs": {
                      "items": {
                        "$ref": "#/$defs/__schema9"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "owner",
                    "agentIds",
                    "externalOwnerRefs",
                    "ownerQualifiedRefs"
                  ],
                  "type": "object"
                },
                "schema": {
                  "const": "hasna.todos.transfer_bundle.v1",
                  "type": "string"
                },
                "sections": {
                  "additionalProperties": false,
                  "properties": {
                    "activities": {
                      "additionalProperties": false,
                      "properties": {
                        "count": {
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "digest": {
                          "$ref": "#/$defs/__schema3"
                        },
                        "owner": {
                          "$ref": "#/$defs/__schema2"
                        },
                        "records": {
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "action": {
                                "maxLength": 160,
                                "minLength": 1,
                                "pattern": "^[a-z][a-z0-9_.:-]*$",
                                "type": "string"
                              },
                              "actorRef": {
                                "$ref": "#/$defs/__schema6"
                              },
                              "createdAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "id": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "occurredAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "owner": {
                                "$ref": "#/$defs/__schema2"
                              },
                              "resourceRef": {
                                "$ref": "#/$defs/__schema9"
                              },
                              "summary": {
                                "maxLength": 4096,
                                "minLength": 1,
                                "type": "string"
                              },
                              "updatedAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "version": {
                                "$ref": "#/$defs/__schema4"
                              }
                            },
                            "required": [
                              "id",
                              "owner",
                              "version",
                              "createdAt",
                              "updatedAt",
                              "actorRef",
                              "resourceRef",
                              "action",
                              "summary",
                              "occurredAt"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "owner",
                        "count",
                        "digest",
                        "records"
                      ],
                      "type": "object"
                    },
                    "approvals": {
                      "additionalProperties": false,
                      "properties": {
                        "count": {
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "digest": {
                          "$ref": "#/$defs/__schema3"
                        },
                        "owner": {
                          "$ref": "#/$defs/__schema2"
                        },
                        "records": {
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "createdAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "decidedAt": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/__schema1"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "decidedBy": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/__schema6"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "expiresAt": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/__schema1"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "id": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "owner": {
                                "$ref": "#/$defs/__schema2"
                              },
                              "reason": {
                                "maxLength": 4096,
                                "minLength": 1,
                                "type": "string"
                              },
                              "requestedAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "requestedBy": {
                                "$ref": "#/$defs/__schema6"
                              },
                              "resourceRef": {
                                "$ref": "#/$defs/__schema9"
                              },
                              "status": {
                                "enum": [
                                  "pending",
                                  "approved",
                                  "rejected",
                                  "expired"
                                ],
                                "type": "string"
                              },
                              "updatedAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "version": {
                                "$ref": "#/$defs/__schema4"
                              }
                            },
                            "required": [
                              "id",
                              "owner",
                              "version",
                              "createdAt",
                              "updatedAt",
                              "resourceRef",
                              "status",
                              "reason",
                              "requestedBy",
                              "decidedBy",
                              "requestedAt",
                              "decidedAt",
                              "expiresAt"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "owner",
                        "count",
                        "digest",
                        "records"
                      ],
                      "type": "object"
                    },
                    "comments": {
                      "additionalProperties": false,
                      "properties": {
                        "count": {
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "digest": {
                          "$ref": "#/$defs/__schema3"
                        },
                        "owner": {
                          "$ref": "#/$defs/__schema2"
                        },
                        "records": {
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "authorRef": {
                                "$ref": "#/$defs/__schema6"
                              },
                              "content": {
                                "maxLength": 100000,
                                "minLength": 1,
                                "type": "string"
                              },
                              "createdAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "id": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "kind": {
                                "enum": [
                                  "comment",
                                  "progress",
                                  "note"
                                ],
                                "type": "string"
                              },
                              "owner": {
                                "$ref": "#/$defs/__schema2"
                              },
                              "progressPercent": {
                                "anyOf": [
                                  {
                                    "maximum": 100,
                                    "minimum": 0,
                                    "type": "number"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "taskId": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "updatedAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "version": {
                                "$ref": "#/$defs/__schema4"
                              }
                            },
                            "required": [
                              "id",
                              "owner",
                              "version",
                              "createdAt",
                              "updatedAt",
                              "taskId",
                              "authorRef",
                              "kind",
                              "content",
                              "progressPercent"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "owner",
                        "count",
                        "digest",
                        "records"
                      ],
                      "type": "object"
                    },
                    "deletion_records": {
                      "additionalProperties": false,
                      "properties": {
                        "count": {
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "digest": {
                          "$ref": "#/$defs/__schema3"
                        },
                        "owner": {
                          "$ref": "#/$defs/__schema2"
                        },
                        "records": {
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "deletedAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "entityIdDigest": {
                                "$ref": "#/$defs/__schema3"
                              },
                              "entityKind": {
                                "maxLength": 64,
                                "minLength": 1,
                                "pattern": "^[a-z][a-z0-9_]*$",
                                "type": "string"
                              },
                              "id": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "owner": {
                                "$ref": "#/$defs/__schema2"
                              },
                              "priorRecordDigest": {
                                "$ref": "#/$defs/__schema3"
                              },
                              "reasonCode": {
                                "maxLength": 128,
                                "minLength": 1,
                                "pattern": "^[a-z][a-z0-9_]*$",
                                "type": "string"
                              },
                              "redaction": {
                                "const": "full",
                                "type": "string"
                              },
                              "tombstoneVersion": {
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991,
                                "type": "integer"
                              }
                            },
                            "required": [
                              "id",
                              "owner",
                              "entityKind",
                              "entityIdDigest",
                              "priorRecordDigest",
                              "tombstoneVersion",
                              "redaction",
                              "reasonCode",
                              "deletedAt"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "owner",
                        "count",
                        "digest",
                        "records"
                      ],
                      "type": "object"
                    },
                    "dependencies": {
                      "additionalProperties": false,
                      "properties": {
                        "count": {
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "digest": {
                          "$ref": "#/$defs/__schema3"
                        },
                        "owner": {
                          "$ref": "#/$defs/__schema2"
                        },
                        "records": {
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "createdAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "id": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "kind": {
                                "enum": [
                                  "requires",
                                  "blocks"
                                ],
                                "type": "string"
                              },
                              "owner": {
                                "$ref": "#/$defs/__schema2"
                              },
                              "sourceTaskId": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "targetTaskId": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "updatedAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "version": {
                                "$ref": "#/$defs/__schema4"
                              }
                            },
                            "required": [
                              "id",
                              "owner",
                              "version",
                              "createdAt",
                              "updatedAt",
                              "sourceTaskId",
                              "targetTaskId",
                              "kind"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "owner",
                        "count",
                        "digest",
                        "records"
                      ],
                      "type": "object"
                    },
                    "git_commits": {
                      "additionalProperties": false,
                      "properties": {
                        "count": {
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "digest": {
                          "$ref": "#/$defs/__schema3"
                        },
                        "owner": {
                          "$ref": "#/$defs/__schema2"
                        },
                        "records": {
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "authorRef": {
                                "$ref": "#/$defs/__schema6"
                              },
                              "changedFileDigests": {
                                "items": {
                                  "$ref": "#/$defs/__schema3"
                                },
                                "maxItems": 50000,
                                "type": "array"
                              },
                              "committedAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "createdAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "id": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "message": {
                                "maxLength": 20000,
                                "minLength": 1,
                                "type": "string"
                              },
                              "objectId": {
                                "$ref": "#/$defs/__schema12"
                              },
                              "owner": {
                                "$ref": "#/$defs/__schema2"
                              },
                              "repositoryRef": {
                                "$ref": "#/$defs/__schema6"
                              },
                              "updatedAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "version": {
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991,
                                "type": "integer"
                              }
                            },
                            "required": [
                              "id",
                              "owner",
                              "version",
                              "createdAt",
                              "updatedAt",
                              "repositoryRef",
                              "objectId",
                              "message",
                              "authorRef",
                              "committedAt",
                              "changedFileDigests"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "owner",
                        "count",
                        "digest",
                        "records"
                      ],
                      "type": "object"
                    },
                    "git_refs": {
                      "additionalProperties": false,
                      "properties": {
                        "count": {
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "digest": {
                          "$ref": "#/$defs/__schema3"
                        },
                        "owner": {
                          "$ref": "#/$defs/__schema2"
                        },
                        "records": {
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "createdAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "id": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "name": {
                                "maxLength": 512,
                                "minLength": 1,
                                "type": "string"
                              },
                              "owner": {
                                "$ref": "#/$defs/__schema2"
                              },
                              "providerObservedAt": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/__schema1"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "published": {
                                "type": "boolean"
                              },
                              "repositoryRef": {
                                "$ref": "#/$defs/__schema6"
                              },
                              "target": {
                                "$ref": "#/$defs/__schema12"
                              },
                              "type": {
                                "enum": [
                                  "branch",
                                  "tag",
                                  "pull_request"
                                ],
                                "type": "string"
                              },
                              "updatedAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "version": {
                                "$ref": "#/$defs/__schema4"
                              }
                            },
                            "required": [
                              "id",
                              "owner",
                              "version",
                              "createdAt",
                              "updatedAt",
                              "repositoryRef",
                              "type",
                              "name",
                              "target",
                              "published",
                              "providerObservedAt"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "owner",
                        "count",
                        "digest",
                        "records"
                      ],
                      "type": "object"
                    },
                    "plans": {
                      "additionalProperties": false,
                      "properties": {
                        "count": {
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "digest": {
                          "$ref": "#/$defs/__schema3"
                        },
                        "owner": {
                          "$ref": "#/$defs/__schema2"
                        },
                        "records": {
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "completedAt": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/__schema1"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "createdAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "description": {
                                "anyOf": [
                                  {
                                    "maxLength": 40000,
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "id": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "name": {
                                "maxLength": 256,
                                "minLength": 1,
                                "type": "string"
                              },
                              "objective": {
                                "maxLength": 20000,
                                "minLength": 1,
                                "type": "string"
                              },
                              "owner": {
                                "$ref": "#/$defs/__schema2"
                              },
                              "projectId": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/__schema0"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "slug": {
                                "$ref": "#/$defs/__schema5"
                              },
                              "status": {
                                "enum": [
                                  "draft",
                                  "active",
                                  "completed",
                                  "archived"
                                ],
                                "type": "string"
                              },
                              "taskIds": {
                                "items": {
                                  "$ref": "#/$defs/__schema0"
                                },
                                "maxItems": 10000,
                                "type": "array"
                              },
                              "taskListId": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/__schema0"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "updatedAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "version": {
                                "$ref": "#/$defs/__schema4"
                              }
                            },
                            "required": [
                              "id",
                              "owner",
                              "version",
                              "createdAt",
                              "updatedAt",
                              "slug",
                              "projectId",
                              "taskListId",
                              "name",
                              "description",
                              "status",
                              "objective",
                              "taskIds",
                              "completedAt"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "owner",
                        "count",
                        "digest",
                        "records"
                      ],
                      "type": "object"
                    },
                    "projects": {
                      "additionalProperties": false,
                      "properties": {
                        "count": {
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "digest": {
                          "$ref": "#/$defs/__schema3"
                        },
                        "owner": {
                          "$ref": "#/$defs/__schema2"
                        },
                        "records": {
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "archivedAt": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/__schema1"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "createdAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "description": {
                                "anyOf": [
                                  {
                                    "maxLength": 20000,
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "id": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "name": {
                                "maxLength": 256,
                                "minLength": 1,
                                "type": "string"
                              },
                              "owner": {
                                "$ref": "#/$defs/__schema2"
                              },
                              "repositoryRef": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/__schema6"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "slug": {
                                "$ref": "#/$defs/__schema5"
                              },
                              "updatedAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "version": {
                                "$ref": "#/$defs/__schema4"
                              }
                            },
                            "required": [
                              "id",
                              "owner",
                              "version",
                              "createdAt",
                              "updatedAt",
                              "slug",
                              "name",
                              "description",
                              "repositoryRef",
                              "archivedAt"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "owner",
                        "count",
                        "digest",
                        "records"
                      ],
                      "type": "object"
                    },
                    "run_artifacts": {
                      "additionalProperties": false,
                      "properties": {
                        "count": {
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "digest": {
                          "$ref": "#/$defs/__schema3"
                        },
                        "owner": {
                          "$ref": "#/$defs/__schema2"
                        },
                        "records": {
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "contentRef": {
                                "$ref": "#/$defs/__schema10"
                              },
                              "createdAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "id": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "kind": {
                                "maxLength": 160,
                                "minLength": 1,
                                "pattern": "^[a-z][a-z0-9_.:-]*$",
                                "type": "string"
                              },
                              "logicalName": {
                                "$ref": "#/$defs/__schema11"
                              },
                              "owner": {
                                "$ref": "#/$defs/__schema2"
                              },
                              "runId": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "updatedAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "verificationEvidenceId": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/__schema0"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "verified": {
                                "type": "boolean"
                              },
                              "version": {
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991,
                                "type": "integer"
                              }
                            },
                            "required": [
                              "id",
                              "owner",
                              "version",
                              "createdAt",
                              "updatedAt",
                              "runId",
                              "logicalName",
                              "kind",
                              "contentRef",
                              "verified",
                              "verificationEvidenceId"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "owner",
                        "count",
                        "digest",
                        "records"
                      ],
                      "type": "object"
                    },
                    "run_commands": {
                      "additionalProperties": false,
                      "properties": {
                        "count": {
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "digest": {
                          "$ref": "#/$defs/__schema3"
                        },
                        "owner": {
                          "$ref": "#/$defs/__schema2"
                        },
                        "records": {
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "argumentsDigest": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/__schema3"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "commandDigest": {
                                "$ref": "#/$defs/__schema3"
                              },
                              "completedAt": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/__schema1"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "createdAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "durationMs": {
                                "anyOf": [
                                  {
                                    "maximum": 9007199254740991,
                                    "minimum": 0,
                                    "type": "integer"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "exitCode": {
                                "anyOf": [
                                  {
                                    "maximum": 9007199254740991,
                                    "minimum": -9007199254740991,
                                    "type": "integer"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "id": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "outputRefs": {
                                "items": {
                                  "$ref": "#/$defs/__schema10"
                                },
                                "maxItems": 1024,
                                "type": "array"
                              },
                              "owner": {
                                "$ref": "#/$defs/__schema2"
                              },
                              "runId": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "sequence": {
                                "maximum": 9007199254740991,
                                "minimum": 0,
                                "type": "integer"
                              },
                              "updatedAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "version": {
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991,
                                "type": "integer"
                              }
                            },
                            "required": [
                              "id",
                              "owner",
                              "version",
                              "createdAt",
                              "updatedAt",
                              "runId",
                              "sequence",
                              "commandDigest",
                              "argumentsDigest",
                              "exitCode",
                              "durationMs",
                              "outputRefs",
                              "completedAt"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "owner",
                        "count",
                        "digest",
                        "records"
                      ],
                      "type": "object"
                    },
                    "run_events": {
                      "additionalProperties": false,
                      "properties": {
                        "count": {
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "digest": {
                          "$ref": "#/$defs/__schema3"
                        },
                        "owner": {
                          "$ref": "#/$defs/__schema2"
                        },
                        "records": {
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "createdAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "evidenceIds": {
                                "items": {
                                  "$ref": "#/$defs/__schema0"
                                },
                                "maxItems": 10000,
                                "type": "array"
                              },
                              "id": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "occurredAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "owner": {
                                "$ref": "#/$defs/__schema2"
                              },
                              "runId": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "sequence": {
                                "maximum": 9007199254740991,
                                "minimum": 0,
                                "type": "integer"
                              },
                              "summary": {
                                "maxLength": 20000,
                                "minLength": 1,
                                "type": "string"
                              },
                              "type": {
                                "maxLength": 160,
                                "minLength": 1,
                                "pattern": "^[a-z][a-z0-9_.:-]*$",
                                "type": "string"
                              },
                              "updatedAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "version": {
                                "$ref": "#/$defs/__schema4"
                              }
                            },
                            "required": [
                              "id",
                              "owner",
                              "version",
                              "createdAt",
                              "updatedAt",
                              "runId",
                              "sequence",
                              "type",
                              "summary",
                              "occurredAt",
                              "evidenceIds"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "owner",
                        "count",
                        "digest",
                        "records"
                      ],
                      "type": "object"
                    },
                    "run_files": {
                      "additionalProperties": false,
                      "properties": {
                        "count": {
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "digest": {
                          "$ref": "#/$defs/__schema3"
                        },
                        "owner": {
                          "$ref": "#/$defs/__schema2"
                        },
                        "records": {
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "contentRef": {
                                "$ref": "#/$defs/__schema10"
                              },
                              "createdAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "id": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "logicalName": {
                                "$ref": "#/$defs/__schema11"
                              },
                              "owner": {
                                "$ref": "#/$defs/__schema2"
                              },
                              "role": {
                                "enum": [
                                  "input",
                                  "output",
                                  "evidence"
                                ],
                                "type": "string"
                              },
                              "runId": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "updatedAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "version": {
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991,
                                "type": "integer"
                              }
                            },
                            "required": [
                              "id",
                              "owner",
                              "version",
                              "createdAt",
                              "updatedAt",
                              "runId",
                              "logicalName",
                              "contentRef",
                              "role"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "owner",
                        "count",
                        "digest",
                        "records"
                      ],
                      "type": "object"
                    },
                    "runs": {
                      "additionalProperties": false,
                      "properties": {
                        "count": {
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "digest": {
                          "$ref": "#/$defs/__schema3"
                        },
                        "owner": {
                          "$ref": "#/$defs/__schema2"
                        },
                        "records": {
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "agentId": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/__schema0"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "completedAt": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/__schema1"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "createdAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "id": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "ledgerDigest": {
                                "$ref": "#/$defs/__schema3"
                              },
                              "objective": {
                                "maxLength": 20000,
                                "minLength": 1,
                                "type": "string"
                              },
                              "owner": {
                                "$ref": "#/$defs/__schema2"
                              },
                              "planId": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/__schema0"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "startedAt": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/__schema1"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "status": {
                                "enum": [
                                  "queued",
                                  "running",
                                  "succeeded",
                                  "failed",
                                  "cancelled"
                                ],
                                "type": "string"
                              },
                              "taskIds": {
                                "items": {
                                  "$ref": "#/$defs/__schema0"
                                },
                                "maxItems": 10000,
                                "type": "array"
                              },
                              "updatedAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "version": {
                                "$ref": "#/$defs/__schema4"
                              }
                            },
                            "required": [
                              "id",
                              "owner",
                              "version",
                              "createdAt",
                              "updatedAt",
                              "objective",
                              "status",
                              "taskIds",
                              "planId",
                              "agentId",
                              "startedAt",
                              "completedAt",
                              "ledgerDigest"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "owner",
                        "count",
                        "digest",
                        "records"
                      ],
                      "type": "object"
                    },
                    "saved_views": {
                      "additionalProperties": false,
                      "properties": {
                        "count": {
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "digest": {
                          "$ref": "#/$defs/__schema3"
                        },
                        "owner": {
                          "$ref": "#/$defs/__schema2"
                        },
                        "records": {
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "audience": {
                                "enum": [
                                  "private",
                                  "organization"
                                ],
                                "type": "string"
                              },
                              "createdAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "description": {
                                "anyOf": [
                                  {
                                    "maxLength": 4096,
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "id": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "name": {
                                "maxLength": 256,
                                "minLength": 1,
                                "type": "string"
                              },
                              "owner": {
                                "$ref": "#/$defs/__schema2"
                              },
                              "query": {
                                "additionalProperties": false,
                                "properties": {
                                  "cursor": {
                                    "anyOf": [
                                      {
                                        "maxLength": 512,
                                        "minLength": 1,
                                        "type": "string"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "filters": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "agentIds": {
                                        "items": {
                                          "$ref": "#/$defs/__schema0"
                                        },
                                        "maxItems": 256,
                                        "type": "array"
                                      },
                                      "changedAfter": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/$defs/__schema1"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "dueBefore": {
                                        "anyOf": [
                                          {
                                            "$ref": "#/$defs/__schema1"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "planIds": {
                                        "items": {
                                          "$ref": "#/$defs/__schema0"
                                        },
                                        "maxItems": 256,
                                        "type": "array"
                                      },
                                      "priorities": {
                                        "items": {
                                          "$ref": "#/$defs/__schema8"
                                        },
                                        "maxItems": 8,
                                        "type": "array"
                                      },
                                      "projectIds": {
                                        "items": {
                                          "$ref": "#/$defs/__schema0"
                                        },
                                        "maxItems": 256,
                                        "type": "array"
                                      },
                                      "statuses": {
                                        "items": {
                                          "$ref": "#/$defs/__schema7"
                                        },
                                        "maxItems": 16,
                                        "type": "array"
                                      },
                                      "tags": {
                                        "items": {
                                          "maxLength": 96,
                                          "minLength": 1,
                                          "type": "string"
                                        },
                                        "maxItems": 128,
                                        "type": "array"
                                      },
                                      "taskListIds": {
                                        "items": {
                                          "$ref": "#/$defs/__schema0"
                                        },
                                        "maxItems": 256,
                                        "type": "array"
                                      }
                                    },
                                    "required": [
                                      "projectIds",
                                      "taskListIds",
                                      "planIds",
                                      "agentIds",
                                      "statuses",
                                      "priorities",
                                      "tags",
                                      "changedAfter",
                                      "dueBefore"
                                    ],
                                    "type": "object"
                                  },
                                  "limit": {
                                    "exclusiveMinimum": 0,
                                    "maximum": 500,
                                    "type": "integer"
                                  },
                                  "query": {
                                    "maxLength": 4096,
                                    "minLength": 1,
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "query",
                                  "filters",
                                  "cursor",
                                  "limit"
                                ],
                                "type": "object"
                              },
                              "updatedAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "version": {
                                "$ref": "#/$defs/__schema4"
                              }
                            },
                            "required": [
                              "id",
                              "owner",
                              "version",
                              "createdAt",
                              "updatedAt",
                              "name",
                              "description",
                              "query",
                              "audience"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "owner",
                        "count",
                        "digest",
                        "records"
                      ],
                      "type": "object"
                    },
                    "task_files": {
                      "additionalProperties": false,
                      "properties": {
                        "count": {
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "digest": {
                          "$ref": "#/$defs/__schema3"
                        },
                        "owner": {
                          "$ref": "#/$defs/__schema2"
                        },
                        "records": {
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "contentRef": {
                                "$ref": "#/$defs/__schema10"
                              },
                              "createdAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "id": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "logicalName": {
                                "$ref": "#/$defs/__schema11"
                              },
                              "owner": {
                                "$ref": "#/$defs/__schema2"
                              },
                              "purpose": {
                                "enum": [
                                  "attachment",
                                  "evidence",
                                  "deliverable"
                                ],
                                "type": "string"
                              },
                              "taskId": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "updatedAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "version": {
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991,
                                "type": "integer"
                              }
                            },
                            "required": [
                              "id",
                              "owner",
                              "version",
                              "createdAt",
                              "updatedAt",
                              "taskId",
                              "logicalName",
                              "contentRef",
                              "purpose"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "owner",
                        "count",
                        "digest",
                        "records"
                      ],
                      "type": "object"
                    },
                    "task_lists": {
                      "additionalProperties": false,
                      "properties": {
                        "count": {
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "digest": {
                          "$ref": "#/$defs/__schema3"
                        },
                        "owner": {
                          "$ref": "#/$defs/__schema2"
                        },
                        "records": {
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "archivedAt": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/__schema1"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "createdAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "description": {
                                "anyOf": [
                                  {
                                    "maxLength": 20000,
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "id": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "name": {
                                "maxLength": 256,
                                "minLength": 1,
                                "type": "string"
                              },
                              "owner": {
                                "$ref": "#/$defs/__schema2"
                              },
                              "projectId": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/__schema0"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "slug": {
                                "$ref": "#/$defs/__schema5"
                              },
                              "updatedAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "version": {
                                "$ref": "#/$defs/__schema4"
                              }
                            },
                            "required": [
                              "id",
                              "owner",
                              "version",
                              "createdAt",
                              "updatedAt",
                              "projectId",
                              "slug",
                              "name",
                              "description",
                              "archivedAt"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "owner",
                        "count",
                        "digest",
                        "records"
                      ],
                      "type": "object"
                    },
                    "task_templates": {
                      "additionalProperties": false,
                      "properties": {
                        "count": {
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "digest": {
                          "$ref": "#/$defs/__schema3"
                        },
                        "owner": {
                          "$ref": "#/$defs/__schema2"
                        },
                        "records": {
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "acceptanceCriteria": {
                                "items": {
                                  "maxLength": 4096,
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "maxItems": 256,
                                "type": "array"
                              },
                              "createdAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "description": {
                                "anyOf": [
                                  {
                                    "maxLength": 4096,
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "descriptionPattern": {
                                "anyOf": [
                                  {
                                    "maxLength": 20000,
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "id": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "name": {
                                "maxLength": 256,
                                "minLength": 1,
                                "type": "string"
                              },
                              "owner": {
                                "$ref": "#/$defs/__schema2"
                              },
                              "priority": {
                                "$ref": "#/$defs/__schema8"
                              },
                              "tags": {
                                "items": {
                                  "maxLength": 96,
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "maxItems": 128,
                                "type": "array"
                              },
                              "titlePattern": {
                                "maxLength": 512,
                                "minLength": 1,
                                "type": "string"
                              },
                              "updatedAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "version": {
                                "$ref": "#/$defs/__schema4"
                              }
                            },
                            "required": [
                              "id",
                              "owner",
                              "version",
                              "createdAt",
                              "updatedAt",
                              "name",
                              "description",
                              "titlePattern",
                              "descriptionPattern",
                              "priority",
                              "tags",
                              "acceptanceCriteria"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "owner",
                        "count",
                        "digest",
                        "records"
                      ],
                      "type": "object"
                    },
                    "task_to_pr_projections": {
                      "additionalProperties": false,
                      "properties": {
                        "count": {
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "digest": {
                          "$ref": "#/$defs/__schema3"
                        },
                        "owner": {
                          "$ref": "#/$defs/__schema2"
                        },
                        "records": {
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "derivedAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "digest": {
                                "$ref": "#/$defs/__schema3"
                              },
                              "head": {
                                "additionalProperties": false,
                                "properties": {
                                  "branchHead": {
                                    "$ref": "#/$defs/__schema12"
                                  },
                                  "equalityProof": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/__schema13"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "providerObservedHead": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/__schema12"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "publishedHead": {
                                    "anyOf": [
                                      {
                                        "$ref": "#/$defs/__schema12"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "branchHead",
                                  "publishedHead",
                                  "providerObservedHead",
                                  "equalityProof"
                                ],
                                "type": "object"
                              },
                              "id": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "identity": {
                                "additionalProperties": false,
                                "properties": {
                                  "baseHead": {
                                    "$ref": "#/$defs/__schema12"
                                  },
                                  "branchRef": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "digest": {
                                        "$ref": "#/$defs/__schema3"
                                      },
                                      "id": {
                                        "$ref": "#/$defs/__schema0"
                                      },
                                      "kind": {
                                        "const": "branch",
                                        "type": "string"
                                      },
                                      "owner": {
                                        "$ref": "#/$defs/__schema2"
                                      }
                                    },
                                    "required": [
                                      "owner",
                                      "kind",
                                      "id",
                                      "digest"
                                    ],
                                    "type": "object"
                                  },
                                  "repositoryRef": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "digest": {
                                        "$ref": "#/$defs/__schema3"
                                      },
                                      "id": {
                                        "$ref": "#/$defs/__schema0"
                                      },
                                      "kind": {
                                        "const": "repository",
                                        "type": "string"
                                      },
                                      "owner": {
                                        "$ref": "#/$defs/__schema2"
                                      }
                                    },
                                    "required": [
                                      "owner",
                                      "kind",
                                      "id",
                                      "digest"
                                    ],
                                    "type": "object"
                                  },
                                  "taskRef": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "digest": {
                                        "$ref": "#/$defs/__schema3"
                                      },
                                      "id": {
                                        "$ref": "#/$defs/__schema0"
                                      },
                                      "kind": {
                                        "const": "task",
                                        "type": "string"
                                      },
                                      "owner": {
                                        "$ref": "#/$defs/__schema2"
                                      }
                                    },
                                    "required": [
                                      "owner",
                                      "kind",
                                      "id",
                                      "digest"
                                    ],
                                    "type": "object"
                                  },
                                  "worktreeRef": {
                                    "additionalProperties": false,
                                    "properties": {
                                      "digest": {
                                        "$ref": "#/$defs/__schema3"
                                      },
                                      "id": {
                                        "$ref": "#/$defs/__schema0"
                                      },
                                      "kind": {
                                        "const": "worktree",
                                        "type": "string"
                                      },
                                      "owner": {
                                        "$ref": "#/$defs/__schema2"
                                      }
                                    },
                                    "required": [
                                      "owner",
                                      "kind",
                                      "id",
                                      "digest"
                                    ],
                                    "type": "object"
                                  }
                                },
                                "required": [
                                  "taskRef",
                                  "repositoryRef",
                                  "worktreeRef",
                                  "branchRef",
                                  "baseHead"
                                ],
                                "type": "object"
                              },
                              "owner": {
                                "$ref": "#/$defs/__schema2"
                              },
                              "predecessor": {
                                "anyOf": [
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "digest": {
                                        "$ref": "#/$defs/__schema3"
                                      },
                                      "kind": {
                                        "const": "task_to_pr_projection",
                                        "type": "string"
                                      },
                                      "owner": {
                                        "$ref": "#/$defs/__schema2"
                                      },
                                      "projectionId": {
                                        "$ref": "#/$defs/__schema0"
                                      },
                                      "version": {
                                        "exclusiveMinimum": 0,
                                        "maximum": 9007199254740991,
                                        "type": "integer"
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "projectionId",
                                      "owner",
                                      "version",
                                      "digest"
                                    ],
                                    "type": "object"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "proofs": {
                                "items": {
                                  "$ref": "#/$defs/__schema13"
                                },
                                "maxItems": 10000,
                                "type": "array"
                              },
                              "pullRequestRef": {
                                "anyOf": [
                                  {
                                    "additionalProperties": false,
                                    "properties": {
                                      "digest": {
                                        "$ref": "#/$defs/__schema3"
                                      },
                                      "id": {
                                        "$ref": "#/$defs/__schema0"
                                      },
                                      "kind": {
                                        "const": "pull_request",
                                        "type": "string"
                                      },
                                      "owner": {
                                        "$ref": "#/$defs/__schema2"
                                      }
                                    },
                                    "required": [
                                      "owner",
                                      "kind",
                                      "id",
                                      "digest"
                                    ],
                                    "type": "object"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "schema": {
                                "const": "hasna.todos.task_to_pr_projection.v1",
                                "type": "string"
                              },
                              "sequence": {
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991,
                                "type": "integer"
                              },
                              "version": {
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991,
                                "type": "integer"
                              }
                            },
                            "required": [
                              "schema",
                              "id",
                              "owner",
                              "version",
                              "sequence",
                              "predecessor",
                              "identity",
                              "pullRequestRef",
                              "head",
                              "proofs",
                              "derivedAt",
                              "digest"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "owner",
                        "count",
                        "digest",
                        "records"
                      ],
                      "type": "object"
                    },
                    "tasks": {
                      "additionalProperties": false,
                      "properties": {
                        "count": {
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "digest": {
                          "$ref": "#/$defs/__schema3"
                        },
                        "owner": {
                          "$ref": "#/$defs/__schema2"
                        },
                        "records": {
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "acceptanceCriteria": {
                                "items": {
                                  "maxLength": 4096,
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "maxItems": 256,
                                "type": "array"
                              },
                              "assignedAgentId": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/__schema0"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "completedAt": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/__schema1"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "createdAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "description": {
                                "anyOf": [
                                  {
                                    "maxLength": 100000,
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "dueAt": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/__schema1"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "externalOwnerRefs": {
                                "items": {
                                  "$ref": "#/$defs/__schema6"
                                },
                                "maxItems": 64,
                                "type": "array"
                              },
                              "fingerprint": {
                                "anyOf": [
                                  {
                                    "maxLength": 256,
                                    "minLength": 1,
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "id": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "owner": {
                                "$ref": "#/$defs/__schema2"
                              },
                              "parentTaskId": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/__schema0"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "planId": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/__schema0"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "priority": {
                                "$ref": "#/$defs/__schema8"
                              },
                              "projectId": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/__schema0"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "shortId": {
                                "anyOf": [
                                  {
                                    "maxLength": 40,
                                    "minLength": 1,
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "status": {
                                "$ref": "#/$defs/__schema7"
                              },
                              "tags": {
                                "items": {
                                  "maxLength": 96,
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "maxItems": 128,
                                "type": "array"
                              },
                              "taskListId": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/__schema0"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "title": {
                                "maxLength": 512,
                                "minLength": 1,
                                "type": "string"
                              },
                              "updatedAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "version": {
                                "$ref": "#/$defs/__schema4"
                              }
                            },
                            "required": [
                              "id",
                              "owner",
                              "version",
                              "createdAt",
                              "updatedAt",
                              "shortId",
                              "title",
                              "description",
                              "status",
                              "priority",
                              "projectId",
                              "taskListId",
                              "planId",
                              "parentTaskId",
                              "assignedAgentId",
                              "fingerprint",
                              "tags",
                              "acceptanceCriteria",
                              "dueAt",
                              "completedAt",
                              "externalOwnerRefs"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "owner",
                        "count",
                        "digest",
                        "records"
                      ],
                      "type": "object"
                    },
                    "traceability": {
                      "additionalProperties": false,
                      "properties": {
                        "count": {
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "digest": {
                          "$ref": "#/$defs/__schema3"
                        },
                        "owner": {
                          "$ref": "#/$defs/__schema2"
                        },
                        "records": {
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "commitIds": {
                                "items": {
                                  "$ref": "#/$defs/__schema0"
                                },
                                "maxItems": 10000,
                                "type": "array"
                              },
                              "createdAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "gitRefIds": {
                                "items": {
                                  "$ref": "#/$defs/__schema0"
                                },
                                "maxItems": 10000,
                                "type": "array"
                              },
                              "id": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "owner": {
                                "$ref": "#/$defs/__schema2"
                              },
                              "projectionIds": {
                                "items": {
                                  "$ref": "#/$defs/__schema0"
                                },
                                "maxItems": 10000,
                                "type": "array"
                              },
                              "taskId": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "updatedAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "verificationEvidenceIds": {
                                "items": {
                                  "$ref": "#/$defs/__schema0"
                                },
                                "maxItems": 10000,
                                "type": "array"
                              },
                              "version": {
                                "$ref": "#/$defs/__schema4"
                              }
                            },
                            "required": [
                              "id",
                              "owner",
                              "version",
                              "createdAt",
                              "updatedAt",
                              "taskId",
                              "commitIds",
                              "gitRefIds",
                              "verificationEvidenceIds",
                              "projectionIds"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "owner",
                        "count",
                        "digest",
                        "records"
                      ],
                      "type": "object"
                    },
                    "verification_evidence": {
                      "additionalProperties": false,
                      "properties": {
                        "count": {
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "digest": {
                          "$ref": "#/$defs/__schema3"
                        },
                        "owner": {
                          "$ref": "#/$defs/__schema2"
                        },
                        "records": {
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "checks": {
                                "items": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "durationMs": {
                                      "anyOf": [
                                        {
                                          "maximum": 9007199254740991,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "name": {
                                      "maxLength": 512,
                                      "minLength": 1,
                                      "type": "string"
                                    },
                                    "status": {
                                      "enum": [
                                        "passed",
                                        "failed",
                                        "skipped"
                                      ],
                                      "type": "string"
                                    },
                                    "summary": {
                                      "anyOf": [
                                        {
                                          "maxLength": 4096,
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "status",
                                    "summary",
                                    "durationMs"
                                  ],
                                  "type": "object"
                                },
                                "maxItems": 10000,
                                "type": "array"
                              },
                              "commandReceipts": {
                                "items": {
                                  "additionalProperties": false,
                                  "properties": {
                                    "argumentsDigest": {
                                      "anyOf": [
                                        {
                                          "$ref": "#/$defs/__schema3"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "commandDigest": {
                                      "$ref": "#/$defs/__schema3"
                                    },
                                    "durationMs": {
                                      "anyOf": [
                                        {
                                          "maximum": 9007199254740991,
                                          "minimum": 0,
                                          "type": "integer"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "exitCode": {
                                      "anyOf": [
                                        {
                                          "maximum": 9007199254740991,
                                          "minimum": -9007199254740991,
                                          "type": "integer"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "outputRefs": {
                                      "items": {
                                        "$ref": "#/$defs/__schema10"
                                      },
                                      "maxItems": 1024,
                                      "type": "array"
                                    }
                                  },
                                  "required": [
                                    "commandDigest",
                                    "argumentsDigest",
                                    "exitCode",
                                    "durationMs",
                                    "outputRefs"
                                  ],
                                  "type": "object"
                                },
                                "maxItems": 256,
                                "type": "array"
                              },
                              "completedAt": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/__schema1"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "confidence": {
                                "anyOf": [
                                  {
                                    "maximum": 1,
                                    "minimum": 0,
                                    "type": "number"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "contentRefs": {
                                "items": {
                                  "$ref": "#/$defs/__schema10"
                                },
                                "maxItems": 10000,
                                "type": "array"
                              },
                              "createdAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "id": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "owner": {
                                "$ref": "#/$defs/__schema2"
                              },
                              "runId": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/__schema0"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "startedAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "status": {
                                "enum": [
                                  "passed",
                                  "failed",
                                  "inconclusive"
                                ],
                                "type": "string"
                              },
                              "summary": {
                                "maxLength": 20000,
                                "minLength": 1,
                                "type": "string"
                              },
                              "taskId": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/__schema0"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "updatedAt": {
                                "$ref": "#/$defs/__schema1"
                              },
                              "verifierRef": {
                                "$ref": "#/$defs/__schema6"
                              },
                              "version": {
                                "$ref": "#/$defs/__schema4"
                              }
                            },
                            "required": [
                              "id",
                              "owner",
                              "version",
                              "createdAt",
                              "updatedAt",
                              "taskId",
                              "runId",
                              "verifierRef",
                              "status",
                              "summary",
                              "confidence",
                              "checks",
                              "contentRefs",
                              "startedAt",
                              "completedAt",
                              "commandReceipts"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "owner",
                        "count",
                        "digest",
                        "records"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "projects",
                    "task_lists",
                    "plans",
                    "tasks",
                    "comments",
                    "dependencies",
                    "activities",
                    "verification_evidence",
                    "task_files",
                    "runs",
                    "run_events",
                    "run_commands",
                    "run_files",
                    "run_artifacts",
                    "git_commits",
                    "git_refs",
                    "traceability",
                    "task_to_pr_projections",
                    "saved_views",
                    "task_templates",
                    "approvals",
                    "deletion_records"
                  ],
                  "type": "object"
                },
                "source": {
                  "additionalProperties": false,
                  "properties": {
                    "authorityId": {
                      "$ref": "#/$defs/__schema2"
                    }
                  },
                  "required": [
                    "authorityId"
                  ],
                  "type": "object"
                },
                "version": {
                  "const": "1",
                  "type": "string"
                }
              },
              "required": [
                "schema",
                "version",
                "bundleId",
                "createdAt",
                "source",
                "contractVersion",
                "contractDigest",
                "manifestVersion",
                "manifestDigest",
                "sections",
                "dependencyClosure",
                "referenceClosure",
                "attachmentContentReferences",
                "referenceOnly",
                "bundleChecksum"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema15"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema16"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema16"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema15"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ]
    },
    "hasna.todos.response.transfer_import_preview.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema1": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema2": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        },
        "__schema3": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema4": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.transfer_import_preview.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "bundleChecksum": {
                  "$ref": "#/$defs/__schema2"
                },
                "bundleId": {
                  "$ref": "#/$defs/__schema1"
                },
                "conflicts": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "reason": {
                        "maxLength": 2048,
                        "minLength": 1,
                        "type": "string"
                      },
                      "resourceId": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "resourceKind": {
                        "maxLength": 64,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "resourceKind",
                      "resourceId",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "contractDigest": {
                  "$ref": "#/$defs/__schema2"
                },
                "dryRun": {
                  "const": true,
                  "type": "boolean"
                },
                "importPlanDigest": {
                  "$ref": "#/$defs/__schema2"
                },
                "importPlanId": {
                  "$ref": "#/$defs/__schema1"
                },
                "manifestDigest": {
                  "$ref": "#/$defs/__schema2"
                },
                "repairIssues": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "action": {
                        "enum": [
                          "supply_reference",
                          "remove_cycle",
                          "regenerate_digest",
                          "regenerate_closure",
                          "regenerate_reference_closure",
                          "regenerate_classification"
                        ],
                        "type": "string"
                      },
                      "reason": {
                        "maxLength": 2048,
                        "minLength": 1,
                        "type": "string"
                      },
                      "resourceId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema1"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "section": {
                        "enum": [
                          "projects",
                          "task_lists",
                          "plans",
                          "tasks",
                          "comments",
                          "dependencies",
                          "activities",
                          "verification_evidence",
                          "task_files",
                          "runs",
                          "run_events",
                          "run_commands",
                          "run_files",
                          "run_artifacts",
                          "git_commits",
                          "git_refs",
                          "traceability",
                          "task_to_pr_projections",
                          "saved_views",
                          "task_templates",
                          "approvals",
                          "deletion_records"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "section",
                      "resourceId",
                      "action",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "schema": {
                  "const": "hasna.todos.transfer_import_preview.v1",
                  "type": "string"
                },
                "sectionCounts": {
                  "additionalProperties": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "propertyNames": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "sourceAuthorityId": {
                  "$ref": "#/$defs/__schema0"
                },
                "targetAuthorityId": {
                  "$ref": "#/$defs/__schema0"
                },
                "valid": {
                  "type": "boolean"
                }
              },
              "required": [
                "schema",
                "dryRun",
                "sourceAuthorityId",
                "bundleId",
                "bundleChecksum",
                "contractDigest",
                "manifestDigest",
                "targetAuthorityId",
                "importPlanId",
                "valid",
                "conflicts",
                "repairIssues",
                "sectionCounts",
                "importPlanDigest"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema3"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema4"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema4"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema3"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ]
    },
    "hasna.todos.response.transfer_validation.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema2": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.transfer_validation.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "conflicts": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "reason": {
                        "maxLength": 2048,
                        "minLength": 1,
                        "type": "string"
                      },
                      "resourceId": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "resourceKind": {
                        "maxLength": 64,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "resourceKind",
                      "resourceId",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "dryRun": {
                  "const": true,
                  "type": "boolean"
                },
                "issues": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "code": {
                        "enum": [
                          "invalid_bundle",
                          "canonical_digest_mismatch",
                          "count_mismatch",
                          "section_digest_mismatch",
                          "bundle_checksum_mismatch",
                          "duplicate_record",
                          "classification_mismatch",
                          "missing_reference",
                          "projection_history_mismatch",
                          "dependency_cycle",
                          "closure_mismatch",
                          "reference_closure_mismatch",
                          "attachment_reference_mismatch",
                          "deletion_redaction_failure"
                        ],
                        "type": "string"
                      },
                      "message": {
                        "maxLength": 2048,
                        "minLength": 1,
                        "type": "string"
                      },
                      "path": {
                        "maxLength": 512,
                        "minLength": 1,
                        "type": "string"
                      },
                      "repairable": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "code",
                      "path",
                      "message",
                      "repairable"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "repairIssues": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "action": {
                        "enum": [
                          "supply_reference",
                          "remove_cycle",
                          "regenerate_digest",
                          "regenerate_closure",
                          "regenerate_reference_closure",
                          "regenerate_classification"
                        ],
                        "type": "string"
                      },
                      "reason": {
                        "maxLength": 2048,
                        "minLength": 1,
                        "type": "string"
                      },
                      "resourceId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema0"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "section": {
                        "enum": [
                          "projects",
                          "task_lists",
                          "plans",
                          "tasks",
                          "comments",
                          "dependencies",
                          "activities",
                          "verification_evidence",
                          "task_files",
                          "runs",
                          "run_events",
                          "run_commands",
                          "run_files",
                          "run_artifacts",
                          "git_commits",
                          "git_refs",
                          "traceability",
                          "task_to_pr_projections",
                          "saved_views",
                          "task_templates",
                          "approvals",
                          "deletion_records"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "section",
                      "resourceId",
                      "action",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "schema": {
                  "const": "hasna.todos.transfer_validation.v1",
                  "type": "string"
                },
                "valid": {
                  "type": "boolean"
                },
                "verifiedCounts": {
                  "additionalProperties": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "propertyNames": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "verifiedDigests": {
                  "additionalProperties": {
                    "pattern": "^[a-f0-9]{64}$",
                    "type": "string"
                  },
                  "propertyNames": {
                    "type": "string"
                  },
                  "type": "object"
                }
              },
              "required": [
                "schema",
                "dryRun",
                "valid",
                "issues",
                "conflicts",
                "repairIssues",
                "verifiedCounts",
                "verifiedDigests"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema1"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema1"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ]
    },
    "hasna.todos.response.verification.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema2": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema3": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        },
        "__schema4": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema5": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.verification.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "checks": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "durationMs": {
                        "anyOf": [
                          {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "name": {
                        "maxLength": 512,
                        "minLength": 1,
                        "type": "string"
                      },
                      "status": {
                        "enum": [
                          "passed",
                          "failed",
                          "skipped"
                        ],
                        "type": "string"
                      },
                      "summary": {
                        "anyOf": [
                          {
                            "maxLength": 4096,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "name",
                      "status",
                      "summary",
                      "durationMs"
                    ],
                    "type": "object"
                  },
                  "maxItems": 10000,
                  "type": "array"
                },
                "commands": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "command": {
                        "maxLength": 16000,
                        "minLength": 1,
                        "type": "string"
                      },
                      "durationMs": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "exitCode": {
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "command",
                      "exitCode",
                      "durationMs"
                    ],
                    "type": "object"
                  },
                  "maxItems": 256,
                  "type": "array"
                },
                "completedAt": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema2"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "confidence": {
                  "anyOf": [
                    {
                      "maximum": 1,
                      "minimum": 0,
                      "type": "number"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "contentRefs": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "algorithm": {
                        "const": "sha256",
                        "type": "string"
                      },
                      "byteLength": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "digest": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "mediaType": {
                        "maxLength": 160,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "algorithm",
                      "digest",
                      "mediaType",
                      "byteLength"
                    ],
                    "type": "object"
                  },
                  "maxItems": 10000,
                  "type": "array"
                },
                "createdAt": {
                  "$ref": "#/$defs/__schema2"
                },
                "id": {
                  "$ref": "#/$defs/__schema0"
                },
                "owner": {
                  "$ref": "#/$defs/__schema1"
                },
                "runId": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema0"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "startedAt": {
                  "$ref": "#/$defs/__schema2"
                },
                "status": {
                  "enum": [
                    "passed",
                    "failed",
                    "inconclusive"
                  ],
                  "type": "string"
                },
                "summary": {
                  "maxLength": 20000,
                  "minLength": 1,
                  "type": "string"
                },
                "taskId": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema0"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "updatedAt": {
                  "$ref": "#/$defs/__schema2"
                },
                "verifierRef": {
                  "additionalProperties": false,
                  "properties": {
                    "digest": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "id": {
                      "$ref": "#/$defs/__schema0"
                    },
                    "owner": {
                      "$ref": "#/$defs/__schema1"
                    }
                  },
                  "required": [
                    "owner",
                    "id",
                    "digest"
                  ],
                  "type": "object"
                },
                "version": {
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                }
              },
              "required": [
                "id",
                "owner",
                "version",
                "createdAt",
                "updatedAt",
                "taskId",
                "runId",
                "verifierRef",
                "status",
                "summary",
                "confidence",
                "commands",
                "checks",
                "contentRefs",
                "startedAt",
                "completedAt"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema4"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema5"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema5"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema4"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ]
    },
    "hasna.todos.response.verification_export.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema2": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema3": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        },
        "__schema4": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema5": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.verification_export.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "digest": {
                  "$ref": "#/$defs/__schema3"
                },
                "records": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "checks": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "durationMs": {
                              "anyOf": [
                                {
                                  "maximum": 9007199254740991,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "name": {
                              "maxLength": 512,
                              "minLength": 1,
                              "type": "string"
                            },
                            "status": {
                              "enum": [
                                "passed",
                                "failed",
                                "skipped"
                              ],
                              "type": "string"
                            },
                            "summary": {
                              "anyOf": [
                                {
                                  "maxLength": 4096,
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "name",
                            "status",
                            "summary",
                            "durationMs"
                          ],
                          "type": "object"
                        },
                        "maxItems": 10000,
                        "type": "array"
                      },
                      "commands": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "command": {
                              "maxLength": 16000,
                              "minLength": 1,
                              "type": "string"
                            },
                            "durationMs": {
                              "maximum": 9007199254740991,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "exitCode": {
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "command",
                            "exitCode",
                            "durationMs"
                          ],
                          "type": "object"
                        },
                        "maxItems": 256,
                        "type": "array"
                      },
                      "completedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema2"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "confidence": {
                        "anyOf": [
                          {
                            "maximum": 1,
                            "minimum": 0,
                            "type": "number"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "contentRefs": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "algorithm": {
                              "const": "sha256",
                              "type": "string"
                            },
                            "byteLength": {
                              "maximum": 9007199254740991,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "digest": {
                              "$ref": "#/$defs/__schema3"
                            },
                            "mediaType": {
                              "maxLength": 160,
                              "minLength": 1,
                              "type": "string"
                            }
                          },
                          "required": [
                            "algorithm",
                            "digest",
                            "mediaType",
                            "byteLength"
                          ],
                          "type": "object"
                        },
                        "maxItems": 10000,
                        "type": "array"
                      },
                      "createdAt": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "runId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema0"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "startedAt": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "status": {
                        "enum": [
                          "passed",
                          "failed",
                          "inconclusive"
                        ],
                        "type": "string"
                      },
                      "summary": {
                        "maxLength": 20000,
                        "minLength": 1,
                        "type": "string"
                      },
                      "taskId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema0"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "verifierRef": {
                        "additionalProperties": false,
                        "properties": {
                          "digest": {
                            "$ref": "#/$defs/__schema3"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema1"
                          }
                        },
                        "required": [
                          "owner",
                          "id",
                          "digest"
                        ],
                        "type": "object"
                      },
                      "version": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "taskId",
                      "runId",
                      "verifierRef",
                      "status",
                      "summary",
                      "confidence",
                      "commands",
                      "checks",
                      "contentRefs",
                      "startedAt",
                      "completedAt"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "required": [
                "records",
                "digest"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema4"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema5"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema5"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema4"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ]
    },
    "hasna.todos.response.verification_page.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema2": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema3": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        },
        "__schema4": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema5": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "number"
            },
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "$id": "hasna.todos.response.verification_page.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "items": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "checks": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "durationMs": {
                              "anyOf": [
                                {
                                  "maximum": 9007199254740991,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "name": {
                              "maxLength": 512,
                              "minLength": 1,
                              "type": "string"
                            },
                            "status": {
                              "enum": [
                                "passed",
                                "failed",
                                "skipped"
                              ],
                              "type": "string"
                            },
                            "summary": {
                              "anyOf": [
                                {
                                  "maxLength": 4096,
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "name",
                            "status",
                            "summary",
                            "durationMs"
                          ],
                          "type": "object"
                        },
                        "maxItems": 10000,
                        "type": "array"
                      },
                      "commands": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "command": {
                              "maxLength": 16000,
                              "minLength": 1,
                              "type": "string"
                            },
                            "durationMs": {
                              "maximum": 9007199254740991,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "exitCode": {
                              "maximum": 9007199254740991,
                              "minimum": -9007199254740991,
                              "type": "integer"
                            }
                          },
                          "required": [
                            "command",
                            "exitCode",
                            "durationMs"
                          ],
                          "type": "object"
                        },
                        "maxItems": 256,
                        "type": "array"
                      },
                      "completedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema2"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "confidence": {
                        "anyOf": [
                          {
                            "maximum": 1,
                            "minimum": 0,
                            "type": "number"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "contentRefs": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "algorithm": {
                              "const": "sha256",
                              "type": "string"
                            },
                            "byteLength": {
                              "maximum": 9007199254740991,
                              "minimum": 0,
                              "type": "integer"
                            },
                            "digest": {
                              "$ref": "#/$defs/__schema3"
                            },
                            "mediaType": {
                              "maxLength": 160,
                              "minLength": 1,
                              "type": "string"
                            }
                          },
                          "required": [
                            "algorithm",
                            "digest",
                            "mediaType",
                            "byteLength"
                          ],
                          "type": "object"
                        },
                        "maxItems": 10000,
                        "type": "array"
                      },
                      "createdAt": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "runId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema0"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "startedAt": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "status": {
                        "enum": [
                          "passed",
                          "failed",
                          "inconclusive"
                        ],
                        "type": "string"
                      },
                      "summary": {
                        "maxLength": 20000,
                        "minLength": 1,
                        "type": "string"
                      },
                      "taskId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema0"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "verifierRef": {
                        "additionalProperties": false,
                        "properties": {
                          "digest": {
                            "$ref": "#/$defs/__schema3"
                          },
                          "id": {
                            "$ref": "#/$defs/__schema0"
                          },
                          "owner": {
                            "$ref": "#/$defs/__schema1"
                          }
                        },
                        "required": [
                          "owner",
                          "id",
                          "digest"
                        ],
                        "type": "object"
                      },
                      "version": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "taskId",
                      "runId",
                      "verifierRef",
                      "status",
                      "summary",
                      "confidence",
                      "commands",
                      "checks",
                      "contentRefs",
                      "startedAt",
                      "completedAt"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "nextCursor": {
                  "anyOf": [
                    {
                      "maxLength": 512,
                      "minLength": 1,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "items",
                "count",
                "nextCursor"
              ],
              "type": "object"
            },
            "ok": {
              "const": true,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema4"
            }
          },
          "required": [
            "ok",
            "data",
            "requestId"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "error": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "enum": [
                    "TODOS_INVALID_INPUT",
                    "TODOS_AUTHENTICATION_FAILED",
                    "TODOS_SCOPE_REQUIRED",
                    "TODOS_TENANT_MISMATCH",
                    "TODOS_ACCESS_DENIED",
                    "TODOS_NOT_FOUND",
                    "TODOS_AMBIGUOUS_REFERENCE",
                    "TODOS_VERSION_CONFLICT",
                    "TODOS_RESOURCE_CONFLICT",
                    "TODOS_LOCK_CONFLICT",
                    "TODOS_PRECONDITION_FAILED",
                    "TODOS_APPROVAL_REQUIRED",
                    "TODOS_CAPABILITY_REQUIRED",
                    "TODOS_OPERATION_UNSUPPORTED",
                    "TODOS_IDEMPOTENCY_REQUIRED",
                    "TODOS_IDEMPOTENCY_CONFLICT",
                    "TODOS_RATE_LIMITED",
                    "TODOS_QUOTA_EXCEEDED",
                    "TODOS_UPGRADE_REQUIRED",
                    "TODOS_AUTHORITY_MISMATCH",
                    "TODOS_AUTHORITY_UNAVAILABLE",
                    "TODOS_INTERNAL",
                    "TODOS_TRANSFER_INVALID",
                    "TODOS_TRANSFER_CHECKSUM_MISMATCH",
                    "TODOS_TRANSFER_REFERENCE_MISSING",
                    "TODOS_PROJECTION_PREDECESSOR_CONFLICT"
                  ],
                  "type": "string"
                },
                "details": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "actual": {
                        "$ref": "#/$defs/__schema5"
                      },
                      "expected": {
                        "$ref": "#/$defs/__schema5"
                      },
                      "field": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reason": {
                        "maxLength": 1024,
                        "minLength": 1,
                        "type": "string"
                      }
                    },
                    "required": [
                      "field",
                      "reason"
                    ],
                    "type": "object"
                  },
                  "maxItems": 100,
                  "type": "array"
                },
                "message": {
                  "maxLength": 2048,
                  "minLength": 1,
                  "type": "string"
                },
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "code",
                "message",
                "retryable",
                "details"
              ],
              "type": "object"
            },
            "ok": {
              "const": false,
              "type": "boolean"
            },
            "requestId": {
              "$ref": "#/$defs/__schema4"
            }
          },
          "required": [
            "ok",
            "error",
            "requestId"
          ],
          "type": "object"
        }
      ],
      "x-hasna-invariants": [
        "todos.response.page_count"
      ]
    },
    "hasna.todos.run.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.run.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "agentId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        },
        "completedAt": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema1"
            },
            {
              "type": "null"
            }
          ]
        },
        "createdAt": {
          "$ref": "#/$defs/__schema1"
        },
        "id": {
          "$ref": "#/$defs/__schema0"
        },
        "ledgerDigest": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        },
        "objective": {
          "maxLength": 20000,
          "minLength": 1,
          "type": "string"
        },
        "owner": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "planId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        },
        "startedAt": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema1"
            },
            {
              "type": "null"
            }
          ]
        },
        "status": {
          "enum": [
            "queued",
            "running",
            "succeeded",
            "failed",
            "cancelled"
          ],
          "type": "string"
        },
        "taskIds": {
          "items": {
            "$ref": "#/$defs/__schema0"
          },
          "maxItems": 10000,
          "type": "array"
        },
        "updatedAt": {
          "$ref": "#/$defs/__schema1"
        },
        "version": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        }
      },
      "required": [
        "id",
        "owner",
        "version",
        "createdAt",
        "updatedAt",
        "objective",
        "status",
        "taskIds",
        "planId",
        "agentId",
        "startedAt",
        "completedAt",
        "ledgerDigest"
      ],
      "type": "object"
    },
    "hasna.todos.run_artifact.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.run_artifact.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "contentRef": {
          "additionalProperties": false,
          "properties": {
            "algorithm": {
              "const": "sha256",
              "type": "string"
            },
            "byteLength": {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer"
            },
            "digest": {
              "pattern": "^[a-f0-9]{64}$",
              "type": "string"
            },
            "mediaType": {
              "maxLength": 160,
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "algorithm",
            "digest",
            "mediaType",
            "byteLength"
          ],
          "type": "object"
        },
        "createdAt": {
          "$ref": "#/$defs/__schema1"
        },
        "id": {
          "$ref": "#/$defs/__schema0"
        },
        "kind": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9_.:-]*$",
          "type": "string"
        },
        "name": {
          "maxLength": 512,
          "minLength": 1,
          "type": "string"
        },
        "owner": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "runId": {
          "$ref": "#/$defs/__schema0"
        },
        "updatedAt": {
          "$ref": "#/$defs/__schema1"
        },
        "verificationEvidenceId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        },
        "verified": {
          "type": "boolean"
        },
        "version": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        }
      },
      "required": [
        "id",
        "owner",
        "version",
        "createdAt",
        "updatedAt",
        "runId",
        "name",
        "kind",
        "contentRef",
        "verified",
        "verificationEvidenceId"
      ],
      "type": "object"
    },
    "hasna.todos.run_command.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.run_command.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "command": {
          "maxLength": 16000,
          "minLength": 1,
          "type": "string"
        },
        "completedAt": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema1"
            },
            {
              "type": "null"
            }
          ]
        },
        "createdAt": {
          "$ref": "#/$defs/__schema1"
        },
        "durationMs": {
          "anyOf": [
            {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "exitCode": {
          "anyOf": [
            {
              "maximum": 9007199254740991,
              "minimum": -9007199254740991,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ]
        },
        "id": {
          "$ref": "#/$defs/__schema0"
        },
        "outputRefs": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "algorithm": {
                "const": "sha256",
                "type": "string"
              },
              "byteLength": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "digest": {
                "pattern": "^[a-f0-9]{64}$",
                "type": "string"
              },
              "mediaType": {
                "maxLength": 160,
                "minLength": 1,
                "type": "string"
              }
            },
            "required": [
              "algorithm",
              "digest",
              "mediaType",
              "byteLength"
            ],
            "type": "object"
          },
          "maxItems": 1024,
          "type": "array"
        },
        "owner": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "runId": {
          "$ref": "#/$defs/__schema0"
        },
        "sequence": {
          "maximum": 9007199254740991,
          "minimum": 0,
          "type": "integer"
        },
        "updatedAt": {
          "$ref": "#/$defs/__schema1"
        },
        "version": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        }
      },
      "required": [
        "id",
        "owner",
        "version",
        "createdAt",
        "updatedAt",
        "runId",
        "sequence",
        "command",
        "exitCode",
        "durationMs",
        "outputRefs",
        "completedAt"
      ],
      "type": "object"
    },
    "hasna.todos.run_event.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.run_event.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "createdAt": {
          "$ref": "#/$defs/__schema1"
        },
        "evidenceIds": {
          "items": {
            "$ref": "#/$defs/__schema0"
          },
          "maxItems": 10000,
          "type": "array"
        },
        "id": {
          "$ref": "#/$defs/__schema0"
        },
        "occurredAt": {
          "$ref": "#/$defs/__schema1"
        },
        "owner": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "runId": {
          "$ref": "#/$defs/__schema0"
        },
        "sequence": {
          "maximum": 9007199254740991,
          "minimum": 0,
          "type": "integer"
        },
        "summary": {
          "maxLength": 20000,
          "minLength": 1,
          "type": "string"
        },
        "type": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9_.:-]*$",
          "type": "string"
        },
        "updatedAt": {
          "$ref": "#/$defs/__schema1"
        },
        "version": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        }
      },
      "required": [
        "id",
        "owner",
        "version",
        "createdAt",
        "updatedAt",
        "runId",
        "sequence",
        "type",
        "summary",
        "occurredAt",
        "evidenceIds"
      ],
      "type": "object"
    },
    "hasna.todos.run_file.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.run_file.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "contentRef": {
          "additionalProperties": false,
          "properties": {
            "algorithm": {
              "const": "sha256",
              "type": "string"
            },
            "byteLength": {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer"
            },
            "digest": {
              "pattern": "^[a-f0-9]{64}$",
              "type": "string"
            },
            "mediaType": {
              "maxLength": 160,
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "algorithm",
            "digest",
            "mediaType",
            "byteLength"
          ],
          "type": "object"
        },
        "createdAt": {
          "$ref": "#/$defs/__schema1"
        },
        "id": {
          "$ref": "#/$defs/__schema0"
        },
        "logicalName": {
          "maxLength": 512,
          "minLength": 1,
          "type": "string"
        },
        "owner": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "relativePath": {
          "anyOf": [
            {
              "maxLength": 1024,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "role": {
          "enum": [
            "input",
            "output",
            "evidence"
          ],
          "type": "string"
        },
        "runId": {
          "$ref": "#/$defs/__schema0"
        },
        "updatedAt": {
          "$ref": "#/$defs/__schema1"
        },
        "version": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        }
      },
      "required": [
        "id",
        "owner",
        "version",
        "createdAt",
        "updatedAt",
        "runId",
        "logicalName",
        "relativePath",
        "contentRef",
        "role"
      ],
      "type": "object",
      "x-hasna-invariants": [
        "todos.common.relative_path"
      ]
    },
    "hasna.todos.saved_view.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.saved_view.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "audience": {
          "enum": [
            "private",
            "organization"
          ],
          "type": "string"
        },
        "createdAt": {
          "$ref": "#/$defs/__schema1"
        },
        "description": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "id": {
          "$ref": "#/$defs/__schema0"
        },
        "name": {
          "maxLength": 256,
          "minLength": 1,
          "type": "string"
        },
        "owner": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "query": {
          "additionalProperties": false,
          "properties": {
            "cursor": {
              "anyOf": [
                {
                  "maxLength": 512,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "filters": {
              "additionalProperties": false,
              "properties": {
                "agentIds": {
                  "items": {
                    "$ref": "#/$defs/__schema0"
                  },
                  "maxItems": 256,
                  "type": "array"
                },
                "changedAfter": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema1"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "dueBefore": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema1"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "planIds": {
                  "items": {
                    "$ref": "#/$defs/__schema0"
                  },
                  "maxItems": 256,
                  "type": "array"
                },
                "priorities": {
                  "items": {
                    "enum": [
                      "low",
                      "medium",
                      "high",
                      "critical"
                    ],
                    "type": "string"
                  },
                  "maxItems": 8,
                  "type": "array"
                },
                "projectIds": {
                  "items": {
                    "$ref": "#/$defs/__schema0"
                  },
                  "maxItems": 256,
                  "type": "array"
                },
                "statuses": {
                  "items": {
                    "enum": [
                      "pending",
                      "ready",
                      "in_progress",
                      "blocked",
                      "completed",
                      "failed",
                      "cancelled"
                    ],
                    "type": "string"
                  },
                  "maxItems": 16,
                  "type": "array"
                },
                "tags": {
                  "items": {
                    "maxLength": 96,
                    "minLength": 1,
                    "type": "string"
                  },
                  "maxItems": 128,
                  "type": "array"
                },
                "taskListIds": {
                  "items": {
                    "$ref": "#/$defs/__schema0"
                  },
                  "maxItems": 256,
                  "type": "array"
                }
              },
              "required": [
                "projectIds",
                "taskListIds",
                "planIds",
                "agentIds",
                "statuses",
                "priorities",
                "tags",
                "changedAfter",
                "dueBefore"
              ],
              "type": "object"
            },
            "limit": {
              "exclusiveMinimum": 0,
              "maximum": 500,
              "type": "integer"
            },
            "query": {
              "maxLength": 4096,
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "query",
            "filters",
            "cursor",
            "limit"
          ],
          "type": "object"
        },
        "updatedAt": {
          "$ref": "#/$defs/__schema1"
        },
        "version": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        }
      },
      "required": [
        "id",
        "owner",
        "version",
        "createdAt",
        "updatedAt",
        "name",
        "description",
        "query",
        "audience"
      ],
      "type": "object"
    },
    "hasna.todos.search_request.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.search_request.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "cursor": {
          "anyOf": [
            {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "filters": {
          "additionalProperties": false,
          "properties": {
            "agentIds": {
              "items": {
                "$ref": "#/$defs/__schema0"
              },
              "maxItems": 256,
              "type": "array"
            },
            "changedAfter": {
              "anyOf": [
                {
                  "$ref": "#/$defs/__schema1"
                },
                {
                  "type": "null"
                }
              ]
            },
            "dueBefore": {
              "anyOf": [
                {
                  "$ref": "#/$defs/__schema1"
                },
                {
                  "type": "null"
                }
              ]
            },
            "planIds": {
              "items": {
                "$ref": "#/$defs/__schema0"
              },
              "maxItems": 256,
              "type": "array"
            },
            "priorities": {
              "items": {
                "enum": [
                  "low",
                  "medium",
                  "high",
                  "critical"
                ],
                "type": "string"
              },
              "maxItems": 8,
              "type": "array"
            },
            "projectIds": {
              "items": {
                "$ref": "#/$defs/__schema0"
              },
              "maxItems": 256,
              "type": "array"
            },
            "statuses": {
              "items": {
                "enum": [
                  "pending",
                  "ready",
                  "in_progress",
                  "blocked",
                  "completed",
                  "failed",
                  "cancelled"
                ],
                "type": "string"
              },
              "maxItems": 16,
              "type": "array"
            },
            "tags": {
              "items": {
                "maxLength": 96,
                "minLength": 1,
                "type": "string"
              },
              "maxItems": 128,
              "type": "array"
            },
            "taskListIds": {
              "items": {
                "$ref": "#/$defs/__schema0"
              },
              "maxItems": 256,
              "type": "array"
            }
          },
          "required": [
            "projectIds",
            "taskListIds",
            "planIds",
            "agentIds",
            "statuses",
            "priorities",
            "tags",
            "changedAfter",
            "dueBefore"
          ],
          "type": "object"
        },
        "limit": {
          "exclusiveMinimum": 0,
          "maximum": 500,
          "type": "integer"
        },
        "query": {
          "maxLength": 4096,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "query",
        "filters",
        "cursor",
        "limit"
      ],
      "type": "object"
    },
    "hasna.todos.service_status.v1": {
      "$id": "hasna.todos.service_status.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "authorityId": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "contractVersion": {
          "const": "1.0.0",
          "type": "string"
        },
        "manifestVersion": {
          "const": "1",
          "type": "string"
        },
        "observedAt": {
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "status": {
          "enum": [
            "healthy",
            "ready",
            "unavailable"
          ],
          "type": "string"
        }
      },
      "required": [
        "status",
        "authorityId",
        "contractVersion",
        "manifestVersion",
        "observedAt"
      ],
      "type": "object"
    },
    "hasna.todos.stats.v1": {
      "$id": "hasna.todos.stats.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "activeAgents": {
          "maximum": 9007199254740991,
          "minimum": 0,
          "type": "integer"
        },
        "activeRuns": {
          "maximum": 9007199254740991,
          "minimum": 0,
          "type": "integer"
        },
        "asOfDate": {
          "format": "date",
          "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])))$",
          "type": "string"
        },
        "plans": {
          "maximum": 9007199254740991,
          "minimum": 0,
          "type": "integer"
        },
        "projects": {
          "maximum": 9007199254740991,
          "minimum": 0,
          "type": "integer"
        },
        "tasks": {
          "additionalProperties": false,
          "properties": {
            "blocked": {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer"
            },
            "cancelled": {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer"
            },
            "completed": {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer"
            },
            "failed": {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer"
            },
            "inProgress": {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer"
            },
            "pending": {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer"
            },
            "ready": {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer"
            },
            "total": {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer"
            }
          },
          "required": [
            "total",
            "pending",
            "ready",
            "inProgress",
            "blocked",
            "completed",
            "failed",
            "cancelled"
          ],
          "type": "object"
        }
      },
      "required": [
        "asOfDate",
        "tasks",
        "projects",
        "plans",
        "activeAgents",
        "activeRuns"
      ],
      "type": "object"
    },
    "hasna.todos.task.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema2": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.task.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "acceptanceCriteria": {
          "items": {
            "maxLength": 4096,
            "minLength": 1,
            "type": "string"
          },
          "maxItems": 256,
          "type": "array"
        },
        "assignedAgentId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        },
        "completedAt": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema2"
            },
            {
              "type": "null"
            }
          ]
        },
        "createdAt": {
          "$ref": "#/$defs/__schema2"
        },
        "description": {
          "anyOf": [
            {
              "maxLength": 100000,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "dueAt": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema2"
            },
            {
              "type": "null"
            }
          ]
        },
        "externalOwnerRefs": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "digest": {
                "pattern": "^[a-f0-9]{64}$",
                "type": "string"
              },
              "id": {
                "$ref": "#/$defs/__schema0"
              },
              "owner": {
                "$ref": "#/$defs/__schema1"
              }
            },
            "required": [
              "owner",
              "id",
              "digest"
            ],
            "type": "object"
          },
          "maxItems": 64,
          "type": "array"
        },
        "fingerprint": {
          "anyOf": [
            {
              "maxLength": 256,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "id": {
          "$ref": "#/$defs/__schema0"
        },
        "owner": {
          "$ref": "#/$defs/__schema1"
        },
        "parentTaskId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        },
        "planId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        },
        "priority": {
          "enum": [
            "low",
            "medium",
            "high",
            "critical"
          ],
          "type": "string"
        },
        "projectId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        },
        "shortId": {
          "anyOf": [
            {
              "maxLength": 40,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "status": {
          "enum": [
            "pending",
            "ready",
            "in_progress",
            "blocked",
            "completed",
            "failed",
            "cancelled"
          ],
          "type": "string"
        },
        "tags": {
          "items": {
            "maxLength": 96,
            "minLength": 1,
            "type": "string"
          },
          "maxItems": 128,
          "type": "array"
        },
        "taskListId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        },
        "title": {
          "maxLength": 512,
          "minLength": 1,
          "type": "string"
        },
        "updatedAt": {
          "$ref": "#/$defs/__schema2"
        },
        "version": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        }
      },
      "required": [
        "id",
        "owner",
        "version",
        "createdAt",
        "updatedAt",
        "shortId",
        "title",
        "description",
        "status",
        "priority",
        "projectId",
        "taskListId",
        "planId",
        "parentTaskId",
        "assignedAgentId",
        "fingerprint",
        "tags",
        "acceptanceCriteria",
        "dueAt",
        "completedAt",
        "externalOwnerRefs"
      ],
      "type": "object",
      "x-hasna-invariants": [
        "todos.domain.task_record",
        "todos.domain.task_status_transition"
      ]
    },
    "hasna.todos.task_context.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema2": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        },
        "__schema3": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema4": {
          "additionalProperties": false,
          "properties": {
            "digest": {
              "$ref": "#/$defs/__schema5"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "owner": {
              "$ref": "#/$defs/__schema1"
            }
          },
          "required": [
            "owner",
            "id",
            "digest"
          ],
          "type": "object"
        },
        "__schema5": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        },
        "__schema6": {
          "maxLength": 96,
          "minLength": 1,
          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
          "type": "string"
        },
        "__schema7": {
          "additionalProperties": false,
          "properties": {
            "algorithm": {
              "const": "sha256",
              "type": "string"
            },
            "byteLength": {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer"
            },
            "digest": {
              "$ref": "#/$defs/__schema5"
            },
            "mediaType": {
              "maxLength": 160,
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "algorithm",
            "digest",
            "mediaType",
            "byteLength"
          ],
          "type": "object"
        }
      },
      "$id": "hasna.todos.task_context.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "comments": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "authorRef": {
                "$ref": "#/$defs/__schema4"
              },
              "content": {
                "maxLength": 100000,
                "minLength": 1,
                "type": "string"
              },
              "createdAt": {
                "$ref": "#/$defs/__schema3"
              },
              "id": {
                "$ref": "#/$defs/__schema0"
              },
              "kind": {
                "enum": [
                  "comment",
                  "progress",
                  "note"
                ],
                "type": "string"
              },
              "owner": {
                "$ref": "#/$defs/__schema1"
              },
              "progressPercent": {
                "anyOf": [
                  {
                    "maximum": 100,
                    "minimum": 0,
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "taskId": {
                "$ref": "#/$defs/__schema0"
              },
              "updatedAt": {
                "$ref": "#/$defs/__schema3"
              },
              "version": {
                "$ref": "#/$defs/__schema2"
              }
            },
            "required": [
              "id",
              "owner",
              "version",
              "createdAt",
              "updatedAt",
              "taskId",
              "authorRef",
              "kind",
              "content",
              "progressPercent"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "dependencies": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "createdAt": {
                "$ref": "#/$defs/__schema3"
              },
              "id": {
                "$ref": "#/$defs/__schema0"
              },
              "kind": {
                "enum": [
                  "requires",
                  "blocks"
                ],
                "type": "string"
              },
              "owner": {
                "$ref": "#/$defs/__schema1"
              },
              "sourceTaskId": {
                "$ref": "#/$defs/__schema0"
              },
              "targetTaskId": {
                "$ref": "#/$defs/__schema0"
              },
              "updatedAt": {
                "$ref": "#/$defs/__schema3"
              },
              "version": {
                "$ref": "#/$defs/__schema2"
              }
            },
            "required": [
              "id",
              "owner",
              "version",
              "createdAt",
              "updatedAt",
              "sourceTaskId",
              "targetTaskId",
              "kind"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "files": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "contentRef": {
                "$ref": "#/$defs/__schema7"
              },
              "createdAt": {
                "$ref": "#/$defs/__schema3"
              },
              "id": {
                "$ref": "#/$defs/__schema0"
              },
              "logicalName": {
                "maxLength": 512,
                "minLength": 1,
                "type": "string"
              },
              "owner": {
                "$ref": "#/$defs/__schema1"
              },
              "purpose": {
                "enum": [
                  "attachment",
                  "evidence",
                  "deliverable"
                ],
                "type": "string"
              },
              "relativePath": {
                "anyOf": [
                  {
                    "maxLength": 1024,
                    "minLength": 1,
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "taskId": {
                "$ref": "#/$defs/__schema0"
              },
              "updatedAt": {
                "$ref": "#/$defs/__schema3"
              },
              "version": {
                "$ref": "#/$defs/__schema2"
              }
            },
            "required": [
              "id",
              "owner",
              "version",
              "createdAt",
              "updatedAt",
              "taskId",
              "logicalName",
              "relativePath",
              "contentRef",
              "purpose"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "plan": {
          "anyOf": [
            {
              "additionalProperties": false,
              "properties": {
                "completedAt": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema3"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "createdAt": {
                  "$ref": "#/$defs/__schema3"
                },
                "description": {
                  "anyOf": [
                    {
                      "maxLength": 40000,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "id": {
                  "$ref": "#/$defs/__schema0"
                },
                "name": {
                  "maxLength": 256,
                  "minLength": 1,
                  "type": "string"
                },
                "objective": {
                  "maxLength": 20000,
                  "minLength": 1,
                  "type": "string"
                },
                "owner": {
                  "$ref": "#/$defs/__schema1"
                },
                "projectId": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema0"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "slug": {
                  "$ref": "#/$defs/__schema6"
                },
                "status": {
                  "enum": [
                    "draft",
                    "active",
                    "completed",
                    "archived"
                  ],
                  "type": "string"
                },
                "taskIds": {
                  "items": {
                    "$ref": "#/$defs/__schema0"
                  },
                  "maxItems": 10000,
                  "type": "array"
                },
                "taskListId": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema0"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "updatedAt": {
                  "$ref": "#/$defs/__schema3"
                },
                "version": {
                  "$ref": "#/$defs/__schema2"
                }
              },
              "required": [
                "id",
                "owner",
                "version",
                "createdAt",
                "updatedAt",
                "slug",
                "projectId",
                "taskListId",
                "name",
                "description",
                "status",
                "objective",
                "taskIds",
                "completedAt"
              ],
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        },
        "project": {
          "anyOf": [
            {
              "additionalProperties": false,
              "properties": {
                "archivedAt": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema3"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "createdAt": {
                  "$ref": "#/$defs/__schema3"
                },
                "description": {
                  "anyOf": [
                    {
                      "maxLength": 20000,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "id": {
                  "$ref": "#/$defs/__schema0"
                },
                "name": {
                  "maxLength": 256,
                  "minLength": 1,
                  "type": "string"
                },
                "owner": {
                  "$ref": "#/$defs/__schema1"
                },
                "repositoryRef": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema4"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "slug": {
                  "$ref": "#/$defs/__schema6"
                },
                "updatedAt": {
                  "$ref": "#/$defs/__schema3"
                },
                "version": {
                  "$ref": "#/$defs/__schema2"
                }
              },
              "required": [
                "id",
                "owner",
                "version",
                "createdAt",
                "updatedAt",
                "slug",
                "name",
                "description",
                "repositoryRef",
                "archivedAt"
              ],
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        },
        "task": {
          "additionalProperties": false,
          "properties": {
            "acceptanceCriteria": {
              "items": {
                "maxLength": 4096,
                "minLength": 1,
                "type": "string"
              },
              "maxItems": 256,
              "type": "array"
            },
            "assignedAgentId": {
              "anyOf": [
                {
                  "$ref": "#/$defs/__schema0"
                },
                {
                  "type": "null"
                }
              ]
            },
            "completedAt": {
              "anyOf": [
                {
                  "$ref": "#/$defs/__schema3"
                },
                {
                  "type": "null"
                }
              ]
            },
            "createdAt": {
              "$ref": "#/$defs/__schema3"
            },
            "description": {
              "anyOf": [
                {
                  "maxLength": 100000,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "dueAt": {
              "anyOf": [
                {
                  "$ref": "#/$defs/__schema3"
                },
                {
                  "type": "null"
                }
              ]
            },
            "externalOwnerRefs": {
              "items": {
                "$ref": "#/$defs/__schema4"
              },
              "maxItems": 64,
              "type": "array"
            },
            "fingerprint": {
              "anyOf": [
                {
                  "maxLength": 256,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "owner": {
              "$ref": "#/$defs/__schema1"
            },
            "parentTaskId": {
              "anyOf": [
                {
                  "$ref": "#/$defs/__schema0"
                },
                {
                  "type": "null"
                }
              ]
            },
            "planId": {
              "anyOf": [
                {
                  "$ref": "#/$defs/__schema0"
                },
                {
                  "type": "null"
                }
              ]
            },
            "priority": {
              "enum": [
                "low",
                "medium",
                "high",
                "critical"
              ],
              "type": "string"
            },
            "projectId": {
              "anyOf": [
                {
                  "$ref": "#/$defs/__schema0"
                },
                {
                  "type": "null"
                }
              ]
            },
            "shortId": {
              "anyOf": [
                {
                  "maxLength": 40,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "status": {
              "enum": [
                "pending",
                "ready",
                "in_progress",
                "blocked",
                "completed",
                "failed",
                "cancelled"
              ],
              "type": "string"
            },
            "tags": {
              "items": {
                "maxLength": 96,
                "minLength": 1,
                "type": "string"
              },
              "maxItems": 128,
              "type": "array"
            },
            "taskListId": {
              "anyOf": [
                {
                  "$ref": "#/$defs/__schema0"
                },
                {
                  "type": "null"
                }
              ]
            },
            "title": {
              "maxLength": 512,
              "minLength": 1,
              "type": "string"
            },
            "updatedAt": {
              "$ref": "#/$defs/__schema3"
            },
            "version": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "id",
            "owner",
            "version",
            "createdAt",
            "updatedAt",
            "shortId",
            "title",
            "description",
            "status",
            "priority",
            "projectId",
            "taskListId",
            "planId",
            "parentTaskId",
            "assignedAgentId",
            "fingerprint",
            "tags",
            "acceptanceCriteria",
            "dueAt",
            "completedAt",
            "externalOwnerRefs"
          ],
          "type": "object"
        },
        "taskList": {
          "anyOf": [
            {
              "additionalProperties": false,
              "properties": {
                "archivedAt": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema3"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "createdAt": {
                  "$ref": "#/$defs/__schema3"
                },
                "description": {
                  "anyOf": [
                    {
                      "maxLength": 20000,
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "id": {
                  "$ref": "#/$defs/__schema0"
                },
                "name": {
                  "maxLength": 256,
                  "minLength": 1,
                  "type": "string"
                },
                "owner": {
                  "$ref": "#/$defs/__schema1"
                },
                "projectId": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema0"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "slug": {
                  "$ref": "#/$defs/__schema6"
                },
                "updatedAt": {
                  "$ref": "#/$defs/__schema3"
                },
                "version": {
                  "$ref": "#/$defs/__schema2"
                }
              },
              "required": [
                "id",
                "owner",
                "version",
                "createdAt",
                "updatedAt",
                "projectId",
                "slug",
                "name",
                "description",
                "archivedAt"
              ],
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        },
        "traceability": {
          "anyOf": [
            {
              "additionalProperties": false,
              "properties": {
                "commitIds": {
                  "items": {
                    "$ref": "#/$defs/__schema0"
                  },
                  "maxItems": 10000,
                  "type": "array"
                },
                "createdAt": {
                  "$ref": "#/$defs/__schema3"
                },
                "gitRefIds": {
                  "items": {
                    "$ref": "#/$defs/__schema0"
                  },
                  "maxItems": 10000,
                  "type": "array"
                },
                "id": {
                  "$ref": "#/$defs/__schema0"
                },
                "owner": {
                  "$ref": "#/$defs/__schema1"
                },
                "projectionIds": {
                  "items": {
                    "$ref": "#/$defs/__schema0"
                  },
                  "maxItems": 10000,
                  "type": "array"
                },
                "taskId": {
                  "$ref": "#/$defs/__schema0"
                },
                "updatedAt": {
                  "$ref": "#/$defs/__schema3"
                },
                "verificationEvidenceIds": {
                  "items": {
                    "$ref": "#/$defs/__schema0"
                  },
                  "maxItems": 10000,
                  "type": "array"
                },
                "version": {
                  "$ref": "#/$defs/__schema2"
                }
              },
              "required": [
                "id",
                "owner",
                "version",
                "createdAt",
                "updatedAt",
                "taskId",
                "commitIds",
                "gitRefIds",
                "verificationEvidenceIds",
                "projectionIds"
              ],
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        },
        "verificationEvidence": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "checks": {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "durationMs": {
                      "anyOf": [
                        {
                          "maximum": 9007199254740991,
                          "minimum": 0,
                          "type": "integer"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "name": {
                      "maxLength": 512,
                      "minLength": 1,
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "passed",
                        "failed",
                        "skipped"
                      ],
                      "type": "string"
                    },
                    "summary": {
                      "anyOf": [
                        {
                          "maxLength": 4096,
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "name",
                    "status",
                    "summary",
                    "durationMs"
                  ],
                  "type": "object"
                },
                "maxItems": 10000,
                "type": "array"
              },
              "commands": {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "command": {
                      "maxLength": 16000,
                      "minLength": 1,
                      "type": "string"
                    },
                    "durationMs": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "exitCode": {
                      "maximum": 9007199254740991,
                      "minimum": -9007199254740991,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "command",
                    "exitCode",
                    "durationMs"
                  ],
                  "type": "object"
                },
                "maxItems": 256,
                "type": "array"
              },
              "completedAt": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/__schema3"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "confidence": {
                "anyOf": [
                  {
                    "maximum": 1,
                    "minimum": 0,
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "contentRefs": {
                "items": {
                  "$ref": "#/$defs/__schema7"
                },
                "maxItems": 10000,
                "type": "array"
              },
              "createdAt": {
                "$ref": "#/$defs/__schema3"
              },
              "id": {
                "$ref": "#/$defs/__schema0"
              },
              "owner": {
                "$ref": "#/$defs/__schema1"
              },
              "runId": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/__schema0"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "startedAt": {
                "$ref": "#/$defs/__schema3"
              },
              "status": {
                "enum": [
                  "passed",
                  "failed",
                  "inconclusive"
                ],
                "type": "string"
              },
              "summary": {
                "maxLength": 20000,
                "minLength": 1,
                "type": "string"
              },
              "taskId": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/__schema0"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "updatedAt": {
                "$ref": "#/$defs/__schema3"
              },
              "verifierRef": {
                "$ref": "#/$defs/__schema4"
              },
              "version": {
                "$ref": "#/$defs/__schema2"
              }
            },
            "required": [
              "id",
              "owner",
              "version",
              "createdAt",
              "updatedAt",
              "taskId",
              "runId",
              "verifierRef",
              "status",
              "summary",
              "confidence",
              "commands",
              "checks",
              "contentRefs",
              "startedAt",
              "completedAt"
            ],
            "type": "object"
          },
          "type": "array"
        }
      },
      "required": [
        "task",
        "project",
        "taskList",
        "plan",
        "comments",
        "dependencies",
        "verificationEvidence",
        "files",
        "traceability"
      ],
      "type": "object"
    },
    "hasna.todos.task_file.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.task_file.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "contentRef": {
          "additionalProperties": false,
          "properties": {
            "algorithm": {
              "const": "sha256",
              "type": "string"
            },
            "byteLength": {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer"
            },
            "digest": {
              "pattern": "^[a-f0-9]{64}$",
              "type": "string"
            },
            "mediaType": {
              "maxLength": 160,
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "algorithm",
            "digest",
            "mediaType",
            "byteLength"
          ],
          "type": "object"
        },
        "createdAt": {
          "$ref": "#/$defs/__schema1"
        },
        "id": {
          "$ref": "#/$defs/__schema0"
        },
        "logicalName": {
          "maxLength": 512,
          "minLength": 1,
          "type": "string"
        },
        "owner": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "purpose": {
          "enum": [
            "attachment",
            "evidence",
            "deliverable"
          ],
          "type": "string"
        },
        "relativePath": {
          "anyOf": [
            {
              "maxLength": 1024,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "taskId": {
          "$ref": "#/$defs/__schema0"
        },
        "updatedAt": {
          "$ref": "#/$defs/__schema1"
        },
        "version": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        }
      },
      "required": [
        "id",
        "owner",
        "version",
        "createdAt",
        "updatedAt",
        "taskId",
        "logicalName",
        "relativePath",
        "contentRef",
        "purpose"
      ],
      "type": "object",
      "x-hasna-invariants": [
        "todos.common.relative_path"
      ]
    },
    "hasna.todos.task_list.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.task_list.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "archivedAt": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema1"
            },
            {
              "type": "null"
            }
          ]
        },
        "createdAt": {
          "$ref": "#/$defs/__schema1"
        },
        "description": {
          "anyOf": [
            {
              "maxLength": 20000,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "id": {
          "$ref": "#/$defs/__schema0"
        },
        "name": {
          "maxLength": 256,
          "minLength": 1,
          "type": "string"
        },
        "owner": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "projectId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        },
        "slug": {
          "maxLength": 96,
          "minLength": 1,
          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
          "type": "string"
        },
        "updatedAt": {
          "$ref": "#/$defs/__schema1"
        },
        "version": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        }
      },
      "required": [
        "id",
        "owner",
        "version",
        "createdAt",
        "updatedAt",
        "projectId",
        "slug",
        "name",
        "description",
        "archivedAt"
      ],
      "type": "object"
    },
    "hasna.todos.task_template.v1": {
      "$defs": {
        "__schema0": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.task_template.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "acceptanceCriteria": {
          "items": {
            "maxLength": 4096,
            "minLength": 1,
            "type": "string"
          },
          "maxItems": 256,
          "type": "array"
        },
        "createdAt": {
          "$ref": "#/$defs/__schema0"
        },
        "description": {
          "anyOf": [
            {
              "maxLength": 4096,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "descriptionPattern": {
          "anyOf": [
            {
              "maxLength": 20000,
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "id": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "name": {
          "maxLength": 256,
          "minLength": 1,
          "type": "string"
        },
        "owner": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "priority": {
          "enum": [
            "low",
            "medium",
            "high",
            "critical"
          ],
          "type": "string"
        },
        "tags": {
          "items": {
            "maxLength": 96,
            "minLength": 1,
            "type": "string"
          },
          "maxItems": 128,
          "type": "array"
        },
        "titlePattern": {
          "maxLength": 512,
          "minLength": 1,
          "type": "string"
        },
        "updatedAt": {
          "$ref": "#/$defs/__schema0"
        },
        "version": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        }
      },
      "required": [
        "id",
        "owner",
        "version",
        "createdAt",
        "updatedAt",
        "name",
        "description",
        "titlePattern",
        "descriptionPattern",
        "priority",
        "tags",
        "acceptanceCriteria"
      ],
      "type": "object"
    },
    "hasna.todos.task_to_pr_projection.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema2": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        },
        "__schema3": {
          "additionalProperties": false,
          "properties": {
            "algorithm": {
              "enum": [
                "sha1",
                "sha256"
              ],
              "type": "string"
            },
            "value": {
              "pattern": "^[a-f0-9]+$",
              "type": "string"
            }
          },
          "required": [
            "algorithm",
            "value"
          ],
          "type": "object"
        },
        "__schema4": {
          "additionalProperties": false,
          "properties": {
            "head": {
              "$ref": "#/$defs/__schema3"
            },
            "kind": {
              "enum": [
                "head_equality",
                "ci",
                "review"
              ],
              "type": "string"
            },
            "observedAt": {
              "$ref": "#/$defs/__schema5"
            },
            "ref": {
              "additionalProperties": false,
              "properties": {
                "digest": {
                  "$ref": "#/$defs/__schema2"
                },
                "id": {
                  "$ref": "#/$defs/__schema0"
                },
                "kind": {
                  "const": "proof_bundle",
                  "type": "string"
                },
                "owner": {
                  "$ref": "#/$defs/__schema1"
                }
              },
              "required": [
                "owner",
                "kind",
                "id",
                "digest"
              ],
              "type": "object"
            }
          },
          "required": [
            "ref",
            "kind",
            "head",
            "observedAt"
          ],
          "type": "object"
        },
        "__schema5": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.task_to_pr_projection.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "derivedAt": {
          "$ref": "#/$defs/__schema5"
        },
        "digest": {
          "$ref": "#/$defs/__schema2"
        },
        "head": {
          "additionalProperties": false,
          "properties": {
            "branchHead": {
              "$ref": "#/$defs/__schema3"
            },
            "equalityProof": {
              "anyOf": [
                {
                  "$ref": "#/$defs/__schema4"
                },
                {
                  "type": "null"
                }
              ]
            },
            "providerObservedHead": {
              "anyOf": [
                {
                  "$ref": "#/$defs/__schema3"
                },
                {
                  "type": "null"
                }
              ]
            },
            "publishedHead": {
              "anyOf": [
                {
                  "$ref": "#/$defs/__schema3"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "branchHead",
            "publishedHead",
            "providerObservedHead",
            "equalityProof"
          ],
          "type": "object"
        },
        "id": {
          "$ref": "#/$defs/__schema0"
        },
        "identity": {
          "additionalProperties": false,
          "properties": {
            "baseHead": {
              "$ref": "#/$defs/__schema3"
            },
            "branchRef": {
              "additionalProperties": false,
              "properties": {
                "digest": {
                  "$ref": "#/$defs/__schema2"
                },
                "id": {
                  "$ref": "#/$defs/__schema0"
                },
                "kind": {
                  "const": "branch",
                  "type": "string"
                },
                "owner": {
                  "$ref": "#/$defs/__schema1"
                }
              },
              "required": [
                "owner",
                "kind",
                "id",
                "digest"
              ],
              "type": "object"
            },
            "repositoryRef": {
              "additionalProperties": false,
              "properties": {
                "digest": {
                  "$ref": "#/$defs/__schema2"
                },
                "id": {
                  "$ref": "#/$defs/__schema0"
                },
                "kind": {
                  "const": "repository",
                  "type": "string"
                },
                "owner": {
                  "$ref": "#/$defs/__schema1"
                }
              },
              "required": [
                "owner",
                "kind",
                "id",
                "digest"
              ],
              "type": "object"
            },
            "taskRef": {
              "additionalProperties": false,
              "properties": {
                "digest": {
                  "$ref": "#/$defs/__schema2"
                },
                "id": {
                  "$ref": "#/$defs/__schema0"
                },
                "kind": {
                  "const": "task",
                  "type": "string"
                },
                "owner": {
                  "$ref": "#/$defs/__schema1"
                }
              },
              "required": [
                "owner",
                "kind",
                "id",
                "digest"
              ],
              "type": "object"
            },
            "worktreeRef": {
              "additionalProperties": false,
              "properties": {
                "digest": {
                  "$ref": "#/$defs/__schema2"
                },
                "id": {
                  "$ref": "#/$defs/__schema0"
                },
                "kind": {
                  "const": "worktree",
                  "type": "string"
                },
                "owner": {
                  "$ref": "#/$defs/__schema1"
                }
              },
              "required": [
                "owner",
                "kind",
                "id",
                "digest"
              ],
              "type": "object"
            }
          },
          "required": [
            "taskRef",
            "repositoryRef",
            "worktreeRef",
            "branchRef",
            "baseHead"
          ],
          "type": "object"
        },
        "owner": {
          "$ref": "#/$defs/__schema1"
        },
        "predecessor": {
          "anyOf": [
            {
              "additionalProperties": false,
              "properties": {
                "digest": {
                  "$ref": "#/$defs/__schema2"
                },
                "kind": {
                  "const": "task_to_pr_projection",
                  "type": "string"
                },
                "owner": {
                  "$ref": "#/$defs/__schema1"
                },
                "projectionId": {
                  "$ref": "#/$defs/__schema0"
                },
                "version": {
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                }
              },
              "required": [
                "kind",
                "projectionId",
                "owner",
                "version",
                "digest"
              ],
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        },
        "proofs": {
          "items": {
            "$ref": "#/$defs/__schema4"
          },
          "maxItems": 10000,
          "type": "array"
        },
        "pullRequestRef": {
          "anyOf": [
            {
              "additionalProperties": false,
              "properties": {
                "digest": {
                  "$ref": "#/$defs/__schema2"
                },
                "id": {
                  "$ref": "#/$defs/__schema0"
                },
                "kind": {
                  "const": "pull_request",
                  "type": "string"
                },
                "owner": {
                  "$ref": "#/$defs/__schema1"
                }
              },
              "required": [
                "owner",
                "kind",
                "id",
                "digest"
              ],
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        },
        "schema": {
          "const": "hasna.todos.task_to_pr_projection.v1",
          "type": "string"
        },
        "sequence": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        },
        "version": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        }
      },
      "required": [
        "schema",
        "id",
        "owner",
        "version",
        "sequence",
        "predecessor",
        "identity",
        "pullRequestRef",
        "head",
        "proofs",
        "derivedAt",
        "digest"
      ],
      "type": "object",
      "x-hasna-invariants": [
        "todos.projection.digest_predecessor",
        "todos.projection.exact_head",
        "todos.projection.full_history",
        "todos.projection.opaque_refs",
        "todos.projection.owner_kind_binding",
        "todos.projection.proof_identity"
      ]
    },
    "hasna.todos.task_to_pr_transition_issue.v1": {
      "$id": "hasna.todos.task_to_pr_transition_issue.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "path": {
          "maxLength": 512,
          "minLength": 1,
          "type": "string"
        },
        "reason": {
          "maxLength": 2048,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "path",
        "reason"
      ],
      "type": "object"
    },
    "hasna.todos.traceability.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.traceability.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "commitIds": {
          "items": {
            "$ref": "#/$defs/__schema0"
          },
          "maxItems": 10000,
          "type": "array"
        },
        "createdAt": {
          "$ref": "#/$defs/__schema1"
        },
        "gitRefIds": {
          "items": {
            "$ref": "#/$defs/__schema0"
          },
          "maxItems": 10000,
          "type": "array"
        },
        "id": {
          "$ref": "#/$defs/__schema0"
        },
        "owner": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "projectionIds": {
          "items": {
            "$ref": "#/$defs/__schema0"
          },
          "maxItems": 10000,
          "type": "array"
        },
        "taskId": {
          "$ref": "#/$defs/__schema0"
        },
        "updatedAt": {
          "$ref": "#/$defs/__schema1"
        },
        "verificationEvidenceIds": {
          "items": {
            "$ref": "#/$defs/__schema0"
          },
          "maxItems": 10000,
          "type": "array"
        },
        "version": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        }
      },
      "required": [
        "id",
        "owner",
        "version",
        "createdAt",
        "updatedAt",
        "taskId",
        "commitIds",
        "gitRefIds",
        "verificationEvidenceIds",
        "projectionIds"
      ],
      "type": "object"
    },
    "hasna.todos.transfer_bundle.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema10": {
          "additionalProperties": false,
          "properties": {
            "algorithm": {
              "const": "sha256",
              "type": "string"
            },
            "byteLength": {
              "maximum": 9007199254740991,
              "minimum": 0,
              "type": "integer"
            },
            "digest": {
              "$ref": "#/$defs/__schema3"
            },
            "mediaType": {
              "maxLength": 160,
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "algorithm",
            "digest",
            "mediaType",
            "byteLength"
          ],
          "type": "object"
        },
        "__schema11": {
          "maxLength": 512,
          "minLength": 1,
          "type": "string"
        },
        "__schema12": {
          "additionalProperties": false,
          "properties": {
            "algorithm": {
              "enum": [
                "sha1",
                "sha256"
              ],
              "type": "string"
            },
            "value": {
              "pattern": "^[a-f0-9]+$",
              "type": "string"
            }
          },
          "required": [
            "algorithm",
            "value"
          ],
          "type": "object"
        },
        "__schema13": {
          "additionalProperties": false,
          "properties": {
            "head": {
              "$ref": "#/$defs/__schema12"
            },
            "kind": {
              "enum": [
                "head_equality",
                "ci",
                "review"
              ],
              "type": "string"
            },
            "observedAt": {
              "$ref": "#/$defs/__schema1"
            },
            "ref": {
              "additionalProperties": false,
              "properties": {
                "digest": {
                  "$ref": "#/$defs/__schema3"
                },
                "id": {
                  "$ref": "#/$defs/__schema0"
                },
                "kind": {
                  "const": "proof_bundle",
                  "type": "string"
                },
                "owner": {
                  "$ref": "#/$defs/__schema2"
                }
              },
              "required": [
                "owner",
                "kind",
                "id",
                "digest"
              ],
              "type": "object"
            }
          },
          "required": [
            "ref",
            "kind",
            "head",
            "observedAt"
          ],
          "type": "object"
        },
        "__schema14": {
          "additionalProperties": false,
          "properties": {
            "digest": {
              "$ref": "#/$defs/__schema3"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "kind": {
              "const": "task_to_pr_projection",
              "type": "string"
            },
            "owner": {
              "$ref": "#/$defs/__schema2"
            },
            "section": {
              "enum": [
                "projects",
                "task_lists",
                "plans",
                "tasks",
                "comments",
                "dependencies",
                "activities",
                "verification_evidence",
                "task_files",
                "runs",
                "run_events",
                "run_commands",
                "run_files",
                "run_artifacts",
                "git_commits",
                "git_refs",
                "traceability",
                "task_to_pr_projections",
                "saved_views",
                "task_templates",
                "approvals",
                "deletion_records"
              ],
              "type": "string"
            },
            "version": {
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991,
              "type": "integer"
            }
          },
          "required": [
            "owner",
            "section",
            "id"
          ],
          "type": "object"
        },
        "__schema2": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema3": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        },
        "__schema4": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        },
        "__schema5": {
          "maxLength": 96,
          "minLength": 1,
          "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
          "type": "string"
        },
        "__schema6": {
          "additionalProperties": false,
          "properties": {
            "digest": {
              "$ref": "#/$defs/__schema3"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "owner": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "owner",
            "id",
            "digest"
          ],
          "type": "object"
        },
        "__schema7": {
          "enum": [
            "pending",
            "ready",
            "in_progress",
            "blocked",
            "completed",
            "failed",
            "cancelled"
          ],
          "type": "string"
        },
        "__schema8": {
          "enum": [
            "low",
            "medium",
            "high",
            "critical"
          ],
          "type": "string"
        },
        "__schema9": {
          "additionalProperties": false,
          "properties": {
            "digest": {
              "$ref": "#/$defs/__schema3"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "kind": {
              "maxLength": 64,
              "minLength": 1,
              "pattern": "^[a-z][a-z0-9_]*$",
              "type": "string"
            },
            "owner": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "owner",
            "kind",
            "id",
            "digest"
          ],
          "type": "object"
        }
      },
      "$id": "hasna.todos.transfer_bundle.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "attachmentContentReferences": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "contentRef": {
                "$ref": "#/$defs/__schema10"
              },
              "index": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "owner": {
                "$ref": "#/$defs/__schema2"
              },
              "source": {
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "$ref": "#/$defs/__schema0"
                  },
                  "section": {
                    "enum": [
                      "verification_evidence",
                      "task_files",
                      "run_commands",
                      "run_files",
                      "run_artifacts"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "section",
                  "id"
                ],
                "type": "object"
              }
            },
            "required": [
              "owner",
              "source",
              "index",
              "contentRef"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "bundleChecksum": {
          "$ref": "#/$defs/__schema3"
        },
        "bundleId": {
          "$ref": "#/$defs/__schema0"
        },
        "contractDigest": {
          "$ref": "#/$defs/__schema3"
        },
        "contractVersion": {
          "const": "1.0.0",
          "type": "string"
        },
        "createdAt": {
          "$ref": "#/$defs/__schema1"
        },
        "dependencyClosure": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "dependencyTaskIds": {
                "items": {
                  "$ref": "#/$defs/__schema0"
                },
                "type": "array"
              },
              "owner": {
                "$ref": "#/$defs/__schema2"
              },
              "taskId": {
                "$ref": "#/$defs/__schema0"
              }
            },
            "required": [
              "owner",
              "taskId",
              "dependencyTaskIds"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "manifestDigest": {
          "$ref": "#/$defs/__schema3"
        },
        "manifestVersion": {
          "const": "1",
          "type": "string"
        },
        "referenceClosure": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "references": {
                "items": {
                  "$ref": "#/$defs/__schema14"
                },
                "type": "array"
              },
              "source": {
                "$ref": "#/$defs/__schema14"
              }
            },
            "required": [
              "source",
              "references"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "referenceOnly": {
          "additionalProperties": false,
          "properties": {
            "agentIds": {
              "items": {
                "$ref": "#/$defs/__schema0"
              },
              "type": "array"
            },
            "externalOwnerRefs": {
              "items": {
                "$ref": "#/$defs/__schema6"
              },
              "type": "array"
            },
            "owner": {
              "$ref": "#/$defs/__schema2"
            },
            "ownerQualifiedRefs": {
              "items": {
                "$ref": "#/$defs/__schema9"
              },
              "type": "array"
            }
          },
          "required": [
            "owner",
            "agentIds",
            "externalOwnerRefs",
            "ownerQualifiedRefs"
          ],
          "type": "object"
        },
        "schema": {
          "const": "hasna.todos.transfer_bundle.v1",
          "type": "string"
        },
        "sections": {
          "additionalProperties": false,
          "properties": {
            "activities": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "digest": {
                  "$ref": "#/$defs/__schema3"
                },
                "owner": {
                  "$ref": "#/$defs/__schema2"
                },
                "records": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "action": {
                        "maxLength": 160,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9_.:-]*$",
                        "type": "string"
                      },
                      "actorRef": {
                        "$ref": "#/$defs/__schema6"
                      },
                      "createdAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "occurredAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "resourceRef": {
                        "$ref": "#/$defs/__schema9"
                      },
                      "summary": {
                        "maxLength": 4096,
                        "minLength": 1,
                        "type": "string"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "version": {
                        "$ref": "#/$defs/__schema4"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "actorRef",
                      "resourceRef",
                      "action",
                      "summary",
                      "occurredAt"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "required": [
                "owner",
                "count",
                "digest",
                "records"
              ],
              "type": "object"
            },
            "approvals": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "digest": {
                  "$ref": "#/$defs/__schema3"
                },
                "owner": {
                  "$ref": "#/$defs/__schema2"
                },
                "records": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "createdAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "decidedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema1"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "decidedBy": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema6"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "expiresAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema1"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "reason": {
                        "maxLength": 4096,
                        "minLength": 1,
                        "type": "string"
                      },
                      "requestedAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "requestedBy": {
                        "$ref": "#/$defs/__schema6"
                      },
                      "resourceRef": {
                        "$ref": "#/$defs/__schema9"
                      },
                      "status": {
                        "enum": [
                          "pending",
                          "approved",
                          "rejected",
                          "expired"
                        ],
                        "type": "string"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "version": {
                        "$ref": "#/$defs/__schema4"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "resourceRef",
                      "status",
                      "reason",
                      "requestedBy",
                      "decidedBy",
                      "requestedAt",
                      "decidedAt",
                      "expiresAt"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "required": [
                "owner",
                "count",
                "digest",
                "records"
              ],
              "type": "object"
            },
            "comments": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "digest": {
                  "$ref": "#/$defs/__schema3"
                },
                "owner": {
                  "$ref": "#/$defs/__schema2"
                },
                "records": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "authorRef": {
                        "$ref": "#/$defs/__schema6"
                      },
                      "content": {
                        "maxLength": 100000,
                        "minLength": 1,
                        "type": "string"
                      },
                      "createdAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "kind": {
                        "enum": [
                          "comment",
                          "progress",
                          "note"
                        ],
                        "type": "string"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "progressPercent": {
                        "anyOf": [
                          {
                            "maximum": 100,
                            "minimum": 0,
                            "type": "number"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "taskId": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "version": {
                        "$ref": "#/$defs/__schema4"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "taskId",
                      "authorRef",
                      "kind",
                      "content",
                      "progressPercent"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "required": [
                "owner",
                "count",
                "digest",
                "records"
              ],
              "type": "object"
            },
            "deletion_records": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "digest": {
                  "$ref": "#/$defs/__schema3"
                },
                "owner": {
                  "$ref": "#/$defs/__schema2"
                },
                "records": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "deletedAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "entityIdDigest": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "entityKind": {
                        "maxLength": 64,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9_]*$",
                        "type": "string"
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "priorRecordDigest": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "reasonCode": {
                        "maxLength": 128,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9_]*$",
                        "type": "string"
                      },
                      "redaction": {
                        "const": "full",
                        "type": "string"
                      },
                      "tombstoneVersion": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "entityKind",
                      "entityIdDigest",
                      "priorRecordDigest",
                      "tombstoneVersion",
                      "redaction",
                      "reasonCode",
                      "deletedAt"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "required": [
                "owner",
                "count",
                "digest",
                "records"
              ],
              "type": "object"
            },
            "dependencies": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "digest": {
                  "$ref": "#/$defs/__schema3"
                },
                "owner": {
                  "$ref": "#/$defs/__schema2"
                },
                "records": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "createdAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "kind": {
                        "enum": [
                          "requires",
                          "blocks"
                        ],
                        "type": "string"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "sourceTaskId": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "targetTaskId": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "version": {
                        "$ref": "#/$defs/__schema4"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "sourceTaskId",
                      "targetTaskId",
                      "kind"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "required": [
                "owner",
                "count",
                "digest",
                "records"
              ],
              "type": "object"
            },
            "git_commits": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "digest": {
                  "$ref": "#/$defs/__schema3"
                },
                "owner": {
                  "$ref": "#/$defs/__schema2"
                },
                "records": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "authorRef": {
                        "$ref": "#/$defs/__schema6"
                      },
                      "changedFileDigests": {
                        "items": {
                          "$ref": "#/$defs/__schema3"
                        },
                        "maxItems": 50000,
                        "type": "array"
                      },
                      "committedAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "createdAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "message": {
                        "maxLength": 20000,
                        "minLength": 1,
                        "type": "string"
                      },
                      "objectId": {
                        "$ref": "#/$defs/__schema12"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "repositoryRef": {
                        "$ref": "#/$defs/__schema6"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "version": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "repositoryRef",
                      "objectId",
                      "message",
                      "authorRef",
                      "committedAt",
                      "changedFileDigests"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "required": [
                "owner",
                "count",
                "digest",
                "records"
              ],
              "type": "object"
            },
            "git_refs": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "digest": {
                  "$ref": "#/$defs/__schema3"
                },
                "owner": {
                  "$ref": "#/$defs/__schema2"
                },
                "records": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "createdAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "name": {
                        "maxLength": 512,
                        "minLength": 1,
                        "type": "string"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "providerObservedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema1"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "published": {
                        "type": "boolean"
                      },
                      "repositoryRef": {
                        "$ref": "#/$defs/__schema6"
                      },
                      "target": {
                        "$ref": "#/$defs/__schema12"
                      },
                      "type": {
                        "enum": [
                          "branch",
                          "tag",
                          "pull_request"
                        ],
                        "type": "string"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "version": {
                        "$ref": "#/$defs/__schema4"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "repositoryRef",
                      "type",
                      "name",
                      "target",
                      "published",
                      "providerObservedAt"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "required": [
                "owner",
                "count",
                "digest",
                "records"
              ],
              "type": "object"
            },
            "plans": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "digest": {
                  "$ref": "#/$defs/__schema3"
                },
                "owner": {
                  "$ref": "#/$defs/__schema2"
                },
                "records": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "completedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema1"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "createdAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "description": {
                        "anyOf": [
                          {
                            "maxLength": 40000,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "name": {
                        "maxLength": 256,
                        "minLength": 1,
                        "type": "string"
                      },
                      "objective": {
                        "maxLength": 20000,
                        "minLength": 1,
                        "type": "string"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "projectId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema0"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "slug": {
                        "$ref": "#/$defs/__schema5"
                      },
                      "status": {
                        "enum": [
                          "draft",
                          "active",
                          "completed",
                          "archived"
                        ],
                        "type": "string"
                      },
                      "taskIds": {
                        "items": {
                          "$ref": "#/$defs/__schema0"
                        },
                        "maxItems": 10000,
                        "type": "array"
                      },
                      "taskListId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema0"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "version": {
                        "$ref": "#/$defs/__schema4"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "slug",
                      "projectId",
                      "taskListId",
                      "name",
                      "description",
                      "status",
                      "objective",
                      "taskIds",
                      "completedAt"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "required": [
                "owner",
                "count",
                "digest",
                "records"
              ],
              "type": "object"
            },
            "projects": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "digest": {
                  "$ref": "#/$defs/__schema3"
                },
                "owner": {
                  "$ref": "#/$defs/__schema2"
                },
                "records": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "archivedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema1"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "createdAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "description": {
                        "anyOf": [
                          {
                            "maxLength": 20000,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "name": {
                        "maxLength": 256,
                        "minLength": 1,
                        "type": "string"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "repositoryRef": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema6"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "slug": {
                        "$ref": "#/$defs/__schema5"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "version": {
                        "$ref": "#/$defs/__schema4"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "slug",
                      "name",
                      "description",
                      "repositoryRef",
                      "archivedAt"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "required": [
                "owner",
                "count",
                "digest",
                "records"
              ],
              "type": "object"
            },
            "run_artifacts": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "digest": {
                  "$ref": "#/$defs/__schema3"
                },
                "owner": {
                  "$ref": "#/$defs/__schema2"
                },
                "records": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "contentRef": {
                        "$ref": "#/$defs/__schema10"
                      },
                      "createdAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "kind": {
                        "maxLength": 160,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9_.:-]*$",
                        "type": "string"
                      },
                      "logicalName": {
                        "$ref": "#/$defs/__schema11"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "runId": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "verificationEvidenceId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema0"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "verified": {
                        "type": "boolean"
                      },
                      "version": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "runId",
                      "logicalName",
                      "kind",
                      "contentRef",
                      "verified",
                      "verificationEvidenceId"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "required": [
                "owner",
                "count",
                "digest",
                "records"
              ],
              "type": "object"
            },
            "run_commands": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "digest": {
                  "$ref": "#/$defs/__schema3"
                },
                "owner": {
                  "$ref": "#/$defs/__schema2"
                },
                "records": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "argumentsDigest": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema3"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "commandDigest": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "completedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema1"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "createdAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "durationMs": {
                        "anyOf": [
                          {
                            "maximum": 9007199254740991,
                            "minimum": 0,
                            "type": "integer"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "exitCode": {
                        "anyOf": [
                          {
                            "maximum": 9007199254740991,
                            "minimum": -9007199254740991,
                            "type": "integer"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "outputRefs": {
                        "items": {
                          "$ref": "#/$defs/__schema10"
                        },
                        "maxItems": 1024,
                        "type": "array"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "runId": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "sequence": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "version": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "runId",
                      "sequence",
                      "commandDigest",
                      "argumentsDigest",
                      "exitCode",
                      "durationMs",
                      "outputRefs",
                      "completedAt"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "required": [
                "owner",
                "count",
                "digest",
                "records"
              ],
              "type": "object"
            },
            "run_events": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "digest": {
                  "$ref": "#/$defs/__schema3"
                },
                "owner": {
                  "$ref": "#/$defs/__schema2"
                },
                "records": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "createdAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "evidenceIds": {
                        "items": {
                          "$ref": "#/$defs/__schema0"
                        },
                        "maxItems": 10000,
                        "type": "array"
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "occurredAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "runId": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "sequence": {
                        "maximum": 9007199254740991,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "summary": {
                        "maxLength": 20000,
                        "minLength": 1,
                        "type": "string"
                      },
                      "type": {
                        "maxLength": 160,
                        "minLength": 1,
                        "pattern": "^[a-z][a-z0-9_.:-]*$",
                        "type": "string"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "version": {
                        "$ref": "#/$defs/__schema4"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "runId",
                      "sequence",
                      "type",
                      "summary",
                      "occurredAt",
                      "evidenceIds"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "required": [
                "owner",
                "count",
                "digest",
                "records"
              ],
              "type": "object"
            },
            "run_files": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "digest": {
                  "$ref": "#/$defs/__schema3"
                },
                "owner": {
                  "$ref": "#/$defs/__schema2"
                },
                "records": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "contentRef": {
                        "$ref": "#/$defs/__schema10"
                      },
                      "createdAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "logicalName": {
                        "$ref": "#/$defs/__schema11"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "role": {
                        "enum": [
                          "input",
                          "output",
                          "evidence"
                        ],
                        "type": "string"
                      },
                      "runId": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "version": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "runId",
                      "logicalName",
                      "contentRef",
                      "role"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "required": [
                "owner",
                "count",
                "digest",
                "records"
              ],
              "type": "object"
            },
            "runs": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "digest": {
                  "$ref": "#/$defs/__schema3"
                },
                "owner": {
                  "$ref": "#/$defs/__schema2"
                },
                "records": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "agentId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema0"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "completedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema1"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "createdAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "ledgerDigest": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "objective": {
                        "maxLength": 20000,
                        "minLength": 1,
                        "type": "string"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "planId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema0"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "startedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema1"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "status": {
                        "enum": [
                          "queued",
                          "running",
                          "succeeded",
                          "failed",
                          "cancelled"
                        ],
                        "type": "string"
                      },
                      "taskIds": {
                        "items": {
                          "$ref": "#/$defs/__schema0"
                        },
                        "maxItems": 10000,
                        "type": "array"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "version": {
                        "$ref": "#/$defs/__schema4"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "objective",
                      "status",
                      "taskIds",
                      "planId",
                      "agentId",
                      "startedAt",
                      "completedAt",
                      "ledgerDigest"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "required": [
                "owner",
                "count",
                "digest",
                "records"
              ],
              "type": "object"
            },
            "saved_views": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "digest": {
                  "$ref": "#/$defs/__schema3"
                },
                "owner": {
                  "$ref": "#/$defs/__schema2"
                },
                "records": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "audience": {
                        "enum": [
                          "private",
                          "organization"
                        ],
                        "type": "string"
                      },
                      "createdAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "description": {
                        "anyOf": [
                          {
                            "maxLength": 4096,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "name": {
                        "maxLength": 256,
                        "minLength": 1,
                        "type": "string"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "query": {
                        "additionalProperties": false,
                        "properties": {
                          "cursor": {
                            "anyOf": [
                              {
                                "maxLength": 512,
                                "minLength": 1,
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "filters": {
                            "additionalProperties": false,
                            "properties": {
                              "agentIds": {
                                "items": {
                                  "$ref": "#/$defs/__schema0"
                                },
                                "maxItems": 256,
                                "type": "array"
                              },
                              "changedAfter": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/__schema1"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "dueBefore": {
                                "anyOf": [
                                  {
                                    "$ref": "#/$defs/__schema1"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "planIds": {
                                "items": {
                                  "$ref": "#/$defs/__schema0"
                                },
                                "maxItems": 256,
                                "type": "array"
                              },
                              "priorities": {
                                "items": {
                                  "$ref": "#/$defs/__schema8"
                                },
                                "maxItems": 8,
                                "type": "array"
                              },
                              "projectIds": {
                                "items": {
                                  "$ref": "#/$defs/__schema0"
                                },
                                "maxItems": 256,
                                "type": "array"
                              },
                              "statuses": {
                                "items": {
                                  "$ref": "#/$defs/__schema7"
                                },
                                "maxItems": 16,
                                "type": "array"
                              },
                              "tags": {
                                "items": {
                                  "maxLength": 96,
                                  "minLength": 1,
                                  "type": "string"
                                },
                                "maxItems": 128,
                                "type": "array"
                              },
                              "taskListIds": {
                                "items": {
                                  "$ref": "#/$defs/__schema0"
                                },
                                "maxItems": 256,
                                "type": "array"
                              }
                            },
                            "required": [
                              "projectIds",
                              "taskListIds",
                              "planIds",
                              "agentIds",
                              "statuses",
                              "priorities",
                              "tags",
                              "changedAfter",
                              "dueBefore"
                            ],
                            "type": "object"
                          },
                          "limit": {
                            "exclusiveMinimum": 0,
                            "maximum": 500,
                            "type": "integer"
                          },
                          "query": {
                            "maxLength": 4096,
                            "minLength": 1,
                            "type": "string"
                          }
                        },
                        "required": [
                          "query",
                          "filters",
                          "cursor",
                          "limit"
                        ],
                        "type": "object"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "version": {
                        "$ref": "#/$defs/__schema4"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "name",
                      "description",
                      "query",
                      "audience"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "required": [
                "owner",
                "count",
                "digest",
                "records"
              ],
              "type": "object"
            },
            "task_files": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "digest": {
                  "$ref": "#/$defs/__schema3"
                },
                "owner": {
                  "$ref": "#/$defs/__schema2"
                },
                "records": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "contentRef": {
                        "$ref": "#/$defs/__schema10"
                      },
                      "createdAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "logicalName": {
                        "$ref": "#/$defs/__schema11"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "purpose": {
                        "enum": [
                          "attachment",
                          "evidence",
                          "deliverable"
                        ],
                        "type": "string"
                      },
                      "taskId": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "version": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "taskId",
                      "logicalName",
                      "contentRef",
                      "purpose"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "required": [
                "owner",
                "count",
                "digest",
                "records"
              ],
              "type": "object"
            },
            "task_lists": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "digest": {
                  "$ref": "#/$defs/__schema3"
                },
                "owner": {
                  "$ref": "#/$defs/__schema2"
                },
                "records": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "archivedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema1"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "createdAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "description": {
                        "anyOf": [
                          {
                            "maxLength": 20000,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "name": {
                        "maxLength": 256,
                        "minLength": 1,
                        "type": "string"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "projectId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema0"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "slug": {
                        "$ref": "#/$defs/__schema5"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "version": {
                        "$ref": "#/$defs/__schema4"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "projectId",
                      "slug",
                      "name",
                      "description",
                      "archivedAt"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "required": [
                "owner",
                "count",
                "digest",
                "records"
              ],
              "type": "object"
            },
            "task_templates": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "digest": {
                  "$ref": "#/$defs/__schema3"
                },
                "owner": {
                  "$ref": "#/$defs/__schema2"
                },
                "records": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "acceptanceCriteria": {
                        "items": {
                          "maxLength": 4096,
                          "minLength": 1,
                          "type": "string"
                        },
                        "maxItems": 256,
                        "type": "array"
                      },
                      "createdAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "description": {
                        "anyOf": [
                          {
                            "maxLength": 4096,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "descriptionPattern": {
                        "anyOf": [
                          {
                            "maxLength": 20000,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "name": {
                        "maxLength": 256,
                        "minLength": 1,
                        "type": "string"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "priority": {
                        "$ref": "#/$defs/__schema8"
                      },
                      "tags": {
                        "items": {
                          "maxLength": 96,
                          "minLength": 1,
                          "type": "string"
                        },
                        "maxItems": 128,
                        "type": "array"
                      },
                      "titlePattern": {
                        "maxLength": 512,
                        "minLength": 1,
                        "type": "string"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "version": {
                        "$ref": "#/$defs/__schema4"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "name",
                      "description",
                      "titlePattern",
                      "descriptionPattern",
                      "priority",
                      "tags",
                      "acceptanceCriteria"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "required": [
                "owner",
                "count",
                "digest",
                "records"
              ],
              "type": "object"
            },
            "task_to_pr_projections": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "digest": {
                  "$ref": "#/$defs/__schema3"
                },
                "owner": {
                  "$ref": "#/$defs/__schema2"
                },
                "records": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "derivedAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "digest": {
                        "$ref": "#/$defs/__schema3"
                      },
                      "head": {
                        "additionalProperties": false,
                        "properties": {
                          "branchHead": {
                            "$ref": "#/$defs/__schema12"
                          },
                          "equalityProof": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema13"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "providerObservedHead": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema12"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "publishedHead": {
                            "anyOf": [
                              {
                                "$ref": "#/$defs/__schema12"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "branchHead",
                          "publishedHead",
                          "providerObservedHead",
                          "equalityProof"
                        ],
                        "type": "object"
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "identity": {
                        "additionalProperties": false,
                        "properties": {
                          "baseHead": {
                            "$ref": "#/$defs/__schema12"
                          },
                          "branchRef": {
                            "additionalProperties": false,
                            "properties": {
                              "digest": {
                                "$ref": "#/$defs/__schema3"
                              },
                              "id": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "kind": {
                                "const": "branch",
                                "type": "string"
                              },
                              "owner": {
                                "$ref": "#/$defs/__schema2"
                              }
                            },
                            "required": [
                              "owner",
                              "kind",
                              "id",
                              "digest"
                            ],
                            "type": "object"
                          },
                          "repositoryRef": {
                            "additionalProperties": false,
                            "properties": {
                              "digest": {
                                "$ref": "#/$defs/__schema3"
                              },
                              "id": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "kind": {
                                "const": "repository",
                                "type": "string"
                              },
                              "owner": {
                                "$ref": "#/$defs/__schema2"
                              }
                            },
                            "required": [
                              "owner",
                              "kind",
                              "id",
                              "digest"
                            ],
                            "type": "object"
                          },
                          "taskRef": {
                            "additionalProperties": false,
                            "properties": {
                              "digest": {
                                "$ref": "#/$defs/__schema3"
                              },
                              "id": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "kind": {
                                "const": "task",
                                "type": "string"
                              },
                              "owner": {
                                "$ref": "#/$defs/__schema2"
                              }
                            },
                            "required": [
                              "owner",
                              "kind",
                              "id",
                              "digest"
                            ],
                            "type": "object"
                          },
                          "worktreeRef": {
                            "additionalProperties": false,
                            "properties": {
                              "digest": {
                                "$ref": "#/$defs/__schema3"
                              },
                              "id": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "kind": {
                                "const": "worktree",
                                "type": "string"
                              },
                              "owner": {
                                "$ref": "#/$defs/__schema2"
                              }
                            },
                            "required": [
                              "owner",
                              "kind",
                              "id",
                              "digest"
                            ],
                            "type": "object"
                          }
                        },
                        "required": [
                          "taskRef",
                          "repositoryRef",
                          "worktreeRef",
                          "branchRef",
                          "baseHead"
                        ],
                        "type": "object"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "predecessor": {
                        "anyOf": [
                          {
                            "additionalProperties": false,
                            "properties": {
                              "digest": {
                                "$ref": "#/$defs/__schema3"
                              },
                              "kind": {
                                "const": "task_to_pr_projection",
                                "type": "string"
                              },
                              "owner": {
                                "$ref": "#/$defs/__schema2"
                              },
                              "projectionId": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "version": {
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991,
                                "type": "integer"
                              }
                            },
                            "required": [
                              "kind",
                              "projectionId",
                              "owner",
                              "version",
                              "digest"
                            ],
                            "type": "object"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "proofs": {
                        "items": {
                          "$ref": "#/$defs/__schema13"
                        },
                        "maxItems": 10000,
                        "type": "array"
                      },
                      "pullRequestRef": {
                        "anyOf": [
                          {
                            "additionalProperties": false,
                            "properties": {
                              "digest": {
                                "$ref": "#/$defs/__schema3"
                              },
                              "id": {
                                "$ref": "#/$defs/__schema0"
                              },
                              "kind": {
                                "const": "pull_request",
                                "type": "string"
                              },
                              "owner": {
                                "$ref": "#/$defs/__schema2"
                              }
                            },
                            "required": [
                              "owner",
                              "kind",
                              "id",
                              "digest"
                            ],
                            "type": "object"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "schema": {
                        "const": "hasna.todos.task_to_pr_projection.v1",
                        "type": "string"
                      },
                      "sequence": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      },
                      "version": {
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "schema",
                      "id",
                      "owner",
                      "version",
                      "sequence",
                      "predecessor",
                      "identity",
                      "pullRequestRef",
                      "head",
                      "proofs",
                      "derivedAt",
                      "digest"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "required": [
                "owner",
                "count",
                "digest",
                "records"
              ],
              "type": "object"
            },
            "tasks": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "digest": {
                  "$ref": "#/$defs/__schema3"
                },
                "owner": {
                  "$ref": "#/$defs/__schema2"
                },
                "records": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "acceptanceCriteria": {
                        "items": {
                          "maxLength": 4096,
                          "minLength": 1,
                          "type": "string"
                        },
                        "maxItems": 256,
                        "type": "array"
                      },
                      "assignedAgentId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema0"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "completedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema1"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "createdAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "description": {
                        "anyOf": [
                          {
                            "maxLength": 100000,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "dueAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema1"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "externalOwnerRefs": {
                        "items": {
                          "$ref": "#/$defs/__schema6"
                        },
                        "maxItems": 64,
                        "type": "array"
                      },
                      "fingerprint": {
                        "anyOf": [
                          {
                            "maxLength": 256,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "parentTaskId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema0"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "planId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema0"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "priority": {
                        "$ref": "#/$defs/__schema8"
                      },
                      "projectId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema0"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "shortId": {
                        "anyOf": [
                          {
                            "maxLength": 40,
                            "minLength": 1,
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "status": {
                        "$ref": "#/$defs/__schema7"
                      },
                      "tags": {
                        "items": {
                          "maxLength": 96,
                          "minLength": 1,
                          "type": "string"
                        },
                        "maxItems": 128,
                        "type": "array"
                      },
                      "taskListId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema0"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "title": {
                        "maxLength": 512,
                        "minLength": 1,
                        "type": "string"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "version": {
                        "$ref": "#/$defs/__schema4"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "shortId",
                      "title",
                      "description",
                      "status",
                      "priority",
                      "projectId",
                      "taskListId",
                      "planId",
                      "parentTaskId",
                      "assignedAgentId",
                      "fingerprint",
                      "tags",
                      "acceptanceCriteria",
                      "dueAt",
                      "completedAt",
                      "externalOwnerRefs"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "required": [
                "owner",
                "count",
                "digest",
                "records"
              ],
              "type": "object"
            },
            "traceability": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "digest": {
                  "$ref": "#/$defs/__schema3"
                },
                "owner": {
                  "$ref": "#/$defs/__schema2"
                },
                "records": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "commitIds": {
                        "items": {
                          "$ref": "#/$defs/__schema0"
                        },
                        "maxItems": 10000,
                        "type": "array"
                      },
                      "createdAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "gitRefIds": {
                        "items": {
                          "$ref": "#/$defs/__schema0"
                        },
                        "maxItems": 10000,
                        "type": "array"
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "projectionIds": {
                        "items": {
                          "$ref": "#/$defs/__schema0"
                        },
                        "maxItems": 10000,
                        "type": "array"
                      },
                      "taskId": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "verificationEvidenceIds": {
                        "items": {
                          "$ref": "#/$defs/__schema0"
                        },
                        "maxItems": 10000,
                        "type": "array"
                      },
                      "version": {
                        "$ref": "#/$defs/__schema4"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "taskId",
                      "commitIds",
                      "gitRefIds",
                      "verificationEvidenceIds",
                      "projectionIds"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "required": [
                "owner",
                "count",
                "digest",
                "records"
              ],
              "type": "object"
            },
            "verification_evidence": {
              "additionalProperties": false,
              "properties": {
                "count": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "digest": {
                  "$ref": "#/$defs/__schema3"
                },
                "owner": {
                  "$ref": "#/$defs/__schema2"
                },
                "records": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "checks": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "durationMs": {
                              "anyOf": [
                                {
                                  "maximum": 9007199254740991,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "name": {
                              "maxLength": 512,
                              "minLength": 1,
                              "type": "string"
                            },
                            "status": {
                              "enum": [
                                "passed",
                                "failed",
                                "skipped"
                              ],
                              "type": "string"
                            },
                            "summary": {
                              "anyOf": [
                                {
                                  "maxLength": 4096,
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "name",
                            "status",
                            "summary",
                            "durationMs"
                          ],
                          "type": "object"
                        },
                        "maxItems": 10000,
                        "type": "array"
                      },
                      "commandReceipts": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "argumentsDigest": {
                              "anyOf": [
                                {
                                  "$ref": "#/$defs/__schema3"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "commandDigest": {
                              "$ref": "#/$defs/__schema3"
                            },
                            "durationMs": {
                              "anyOf": [
                                {
                                  "maximum": 9007199254740991,
                                  "minimum": 0,
                                  "type": "integer"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "exitCode": {
                              "anyOf": [
                                {
                                  "maximum": 9007199254740991,
                                  "minimum": -9007199254740991,
                                  "type": "integer"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "outputRefs": {
                              "items": {
                                "$ref": "#/$defs/__schema10"
                              },
                              "maxItems": 1024,
                              "type": "array"
                            }
                          },
                          "required": [
                            "commandDigest",
                            "argumentsDigest",
                            "exitCode",
                            "durationMs",
                            "outputRefs"
                          ],
                          "type": "object"
                        },
                        "maxItems": 256,
                        "type": "array"
                      },
                      "completedAt": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema1"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "confidence": {
                        "anyOf": [
                          {
                            "maximum": 1,
                            "minimum": 0,
                            "type": "number"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "contentRefs": {
                        "items": {
                          "$ref": "#/$defs/__schema10"
                        },
                        "maxItems": 10000,
                        "type": "array"
                      },
                      "createdAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "id": {
                        "$ref": "#/$defs/__schema0"
                      },
                      "owner": {
                        "$ref": "#/$defs/__schema2"
                      },
                      "runId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema0"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "startedAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "status": {
                        "enum": [
                          "passed",
                          "failed",
                          "inconclusive"
                        ],
                        "type": "string"
                      },
                      "summary": {
                        "maxLength": 20000,
                        "minLength": 1,
                        "type": "string"
                      },
                      "taskId": {
                        "anyOf": [
                          {
                            "$ref": "#/$defs/__schema0"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "updatedAt": {
                        "$ref": "#/$defs/__schema1"
                      },
                      "verifierRef": {
                        "$ref": "#/$defs/__schema6"
                      },
                      "version": {
                        "$ref": "#/$defs/__schema4"
                      }
                    },
                    "required": [
                      "id",
                      "owner",
                      "version",
                      "createdAt",
                      "updatedAt",
                      "taskId",
                      "runId",
                      "verifierRef",
                      "status",
                      "summary",
                      "confidence",
                      "checks",
                      "contentRefs",
                      "startedAt",
                      "completedAt",
                      "commandReceipts"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "required": [
                "owner",
                "count",
                "digest",
                "records"
              ],
              "type": "object"
            }
          },
          "required": [
            "projects",
            "task_lists",
            "plans",
            "tasks",
            "comments",
            "dependencies",
            "activities",
            "verification_evidence",
            "task_files",
            "runs",
            "run_events",
            "run_commands",
            "run_files",
            "run_artifacts",
            "git_commits",
            "git_refs",
            "traceability",
            "task_to_pr_projections",
            "saved_views",
            "task_templates",
            "approvals",
            "deletion_records"
          ],
          "type": "object"
        },
        "source": {
          "additionalProperties": false,
          "properties": {
            "authorityId": {
              "$ref": "#/$defs/__schema2"
            }
          },
          "required": [
            "authorityId"
          ],
          "type": "object"
        },
        "version": {
          "const": "1",
          "type": "string"
        }
      },
      "required": [
        "schema",
        "version",
        "bundleId",
        "createdAt",
        "source",
        "contractVersion",
        "contractDigest",
        "manifestVersion",
        "manifestDigest",
        "sections",
        "dependencyClosure",
        "referenceClosure",
        "attachmentContentReferences",
        "referenceOnly",
        "bundleChecksum"
      ],
      "type": "object",
      "x-hasna-invariants": [
        "todos.transfer.attachment_content_addressing",
        "todos.transfer.canonical_digests",
        "todos.transfer.classification",
        "todos.transfer.deletion_redaction",
        "todos.transfer.dependency_closure",
        "todos.transfer.reference_closure",
        "todos.transfer.section_integrity",
        "todos.transfer.source_authority"
      ]
    },
    "hasna.todos.transfer_checkpoint.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema1": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema2": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        },
        "__schema3": {
          "enum": [
            "projects",
            "task_lists",
            "plans",
            "tasks",
            "comments",
            "dependencies",
            "activities",
            "verification_evidence",
            "task_files",
            "runs",
            "run_events",
            "run_commands",
            "run_files",
            "run_artifacts",
            "git_commits",
            "git_refs",
            "traceability",
            "task_to_pr_projections",
            "saved_views",
            "task_templates",
            "approvals",
            "deletion_records"
          ],
          "type": "string"
        }
      },
      "$id": "hasna.todos.transfer_checkpoint.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "bundleChecksum": {
          "$ref": "#/$defs/__schema2"
        },
        "bundleId": {
          "$ref": "#/$defs/__schema1"
        },
        "completedSections": {
          "items": {
            "$ref": "#/$defs/__schema3"
          },
          "type": "array"
        },
        "contractDigest": {
          "$ref": "#/$defs/__schema2"
        },
        "digest": {
          "$ref": "#/$defs/__schema2"
        },
        "idempotencyKey": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "importPlanDigest": {
          "$ref": "#/$defs/__schema2"
        },
        "importPlanId": {
          "$ref": "#/$defs/__schema1"
        },
        "manifestDigest": {
          "$ref": "#/$defs/__schema2"
        },
        "nextSection": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema3"
            },
            {
              "type": "null"
            }
          ]
        },
        "schema": {
          "const": "hasna.todos.transfer_checkpoint.v1",
          "type": "string"
        },
        "sequence": {
          "maximum": 9007199254740991,
          "minimum": 0,
          "type": "integer"
        },
        "sourceAuthorityId": {
          "$ref": "#/$defs/__schema0"
        },
        "state": {
          "enum": [
            "pending",
            "interrupted",
            "committed"
          ],
          "type": "string"
        },
        "targetAuthorityId": {
          "$ref": "#/$defs/__schema0"
        }
      },
      "required": [
        "schema",
        "sourceAuthorityId",
        "bundleId",
        "bundleChecksum",
        "importPlanId",
        "importPlanDigest",
        "contractDigest",
        "manifestDigest",
        "targetAuthorityId",
        "idempotencyKey",
        "sequence",
        "completedSections",
        "nextSection",
        "state",
        "digest"
      ],
      "type": "object",
      "x-hasna-invariants": [
        "todos.transfer.checkpoint_binding",
        "todos.transfer.checkpoint_monotonicity",
        "todos.transfer.public_canonical_boundaries"
      ]
    },
    "hasna.todos.transfer_execution_context.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        },
        "__schema2": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema3": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema4": {
          "enum": [
            "projects",
            "task_lists",
            "plans",
            "tasks",
            "comments",
            "dependencies",
            "activities",
            "verification_evidence",
            "task_files",
            "runs",
            "run_events",
            "run_commands",
            "run_files",
            "run_artifacts",
            "git_commits",
            "git_refs",
            "traceability",
            "task_to_pr_projections",
            "saved_views",
            "task_templates",
            "approvals",
            "deletion_records"
          ],
          "type": "string"
        }
      },
      "$id": "hasna.todos.transfer_execution_context.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "anyOf": [
        {
          "additionalProperties": false,
          "properties": {
            "state": {
              "const": "uncommitted",
              "type": "string"
            }
          },
          "required": [
            "state"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "receipt": {
              "additionalProperties": false,
              "properties": {
                "bundleChecksum": {
                  "$ref": "#/$defs/__schema1"
                },
                "bundleId": {
                  "$ref": "#/$defs/__schema0"
                },
                "checkpoint": {
                  "additionalProperties": false,
                  "properties": {
                    "bundleChecksum": {
                      "$ref": "#/$defs/__schema1"
                    },
                    "bundleId": {
                      "$ref": "#/$defs/__schema0"
                    },
                    "completedSections": {
                      "items": {
                        "$ref": "#/$defs/__schema4"
                      },
                      "type": "array"
                    },
                    "contractDigest": {
                      "$ref": "#/$defs/__schema1"
                    },
                    "digest": {
                      "$ref": "#/$defs/__schema1"
                    },
                    "idempotencyKey": {
                      "$ref": "#/$defs/__schema3"
                    },
                    "importPlanDigest": {
                      "$ref": "#/$defs/__schema1"
                    },
                    "importPlanId": {
                      "$ref": "#/$defs/__schema0"
                    },
                    "manifestDigest": {
                      "$ref": "#/$defs/__schema1"
                    },
                    "nextSection": {
                      "anyOf": [
                        {
                          "$ref": "#/$defs/__schema4"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "schema": {
                      "const": "hasna.todos.transfer_checkpoint.v1",
                      "type": "string"
                    },
                    "sequence": {
                      "maximum": 9007199254740991,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "sourceAuthorityId": {
                      "$ref": "#/$defs/__schema2"
                    },
                    "state": {
                      "enum": [
                        "pending",
                        "interrupted",
                        "committed"
                      ],
                      "type": "string"
                    },
                    "targetAuthorityId": {
                      "$ref": "#/$defs/__schema2"
                    }
                  },
                  "required": [
                    "schema",
                    "sourceAuthorityId",
                    "bundleId",
                    "bundleChecksum",
                    "importPlanId",
                    "importPlanDigest",
                    "contractDigest",
                    "manifestDigest",
                    "targetAuthorityId",
                    "idempotencyKey",
                    "sequence",
                    "completedSections",
                    "nextSection",
                    "state",
                    "digest"
                  ],
                  "type": "object"
                },
                "committedAt": {
                  "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|([+-]\\d{2}:\\d{2})))$",
                  "type": "string"
                },
                "contractDigest": {
                  "$ref": "#/$defs/__schema1"
                },
                "id": {
                  "$ref": "#/$defs/__schema0"
                },
                "idempotencyKey": {
                  "$ref": "#/$defs/__schema3"
                },
                "importPlanDigest": {
                  "$ref": "#/$defs/__schema1"
                },
                "importPlanId": {
                  "$ref": "#/$defs/__schema0"
                },
                "importedCounts": {
                  "additionalProperties": {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  "propertyNames": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "manifestDigest": {
                  "$ref": "#/$defs/__schema1"
                },
                "previousReceiptDigest": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema1"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "receiptDigest": {
                  "$ref": "#/$defs/__schema1"
                },
                "receiptSequence": {
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991,
                  "type": "integer"
                },
                "schema": {
                  "const": "hasna.todos.migration_receipt.v1",
                  "type": "string"
                },
                "sourceAuthorityId": {
                  "$ref": "#/$defs/__schema2"
                },
                "status": {
                  "const": "committed",
                  "type": "string"
                },
                "targetAuthorityId": {
                  "$ref": "#/$defs/__schema2"
                }
              },
              "required": [
                "schema",
                "id",
                "receiptSequence",
                "previousReceiptDigest",
                "sourceAuthorityId",
                "targetAuthorityId",
                "bundleId",
                "bundleChecksum",
                "importPlanId",
                "importPlanDigest",
                "contractDigest",
                "manifestDigest",
                "idempotencyKey",
                "status",
                "importedCounts",
                "checkpoint",
                "committedAt",
                "receiptDigest"
              ],
              "type": "object"
            },
            "state": {
              "const": "committed",
              "type": "string"
            }
          },
          "required": [
            "state",
            "receipt"
          ],
          "type": "object"
        }
      ],
      "x-hasna-invariants": [
        "todos.transfer.execution_context_closed",
        "todos.transfer.replay_binding"
      ]
    },
    "hasna.todos.transfer_import_execution.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema1": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema2": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        },
        "__schema3": {
          "maxLength": 160,
          "minLength": 8,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema4": {
          "enum": [
            "projects",
            "task_lists",
            "plans",
            "tasks",
            "comments",
            "dependencies",
            "activities",
            "verification_evidence",
            "task_files",
            "runs",
            "run_events",
            "run_commands",
            "run_files",
            "run_artifacts",
            "git_commits",
            "git_refs",
            "traceability",
            "task_to_pr_projections",
            "saved_views",
            "task_templates",
            "approvals",
            "deletion_records"
          ],
          "type": "string"
        }
      },
      "$id": "hasna.todos.transfer_import_execution.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "bundleChecksum": {
          "$ref": "#/$defs/__schema2"
        },
        "bundleId": {
          "$ref": "#/$defs/__schema1"
        },
        "checkpoint": {
          "anyOf": [
            {
              "additionalProperties": false,
              "properties": {
                "bundleChecksum": {
                  "$ref": "#/$defs/__schema2"
                },
                "bundleId": {
                  "$ref": "#/$defs/__schema1"
                },
                "completedSections": {
                  "items": {
                    "$ref": "#/$defs/__schema4"
                  },
                  "type": "array"
                },
                "contractDigest": {
                  "$ref": "#/$defs/__schema2"
                },
                "digest": {
                  "$ref": "#/$defs/__schema2"
                },
                "idempotencyKey": {
                  "$ref": "#/$defs/__schema3"
                },
                "importPlanDigest": {
                  "$ref": "#/$defs/__schema2"
                },
                "importPlanId": {
                  "$ref": "#/$defs/__schema1"
                },
                "manifestDigest": {
                  "$ref": "#/$defs/__schema2"
                },
                "nextSection": {
                  "anyOf": [
                    {
                      "$ref": "#/$defs/__schema4"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "schema": {
                  "const": "hasna.todos.transfer_checkpoint.v1",
                  "type": "string"
                },
                "sequence": {
                  "maximum": 9007199254740991,
                  "minimum": 0,
                  "type": "integer"
                },
                "sourceAuthorityId": {
                  "$ref": "#/$defs/__schema0"
                },
                "state": {
                  "enum": [
                    "pending",
                    "interrupted",
                    "committed"
                  ],
                  "type": "string"
                },
                "targetAuthorityId": {
                  "$ref": "#/$defs/__schema0"
                }
              },
              "required": [
                "schema",
                "sourceAuthorityId",
                "bundleId",
                "bundleChecksum",
                "importPlanId",
                "importPlanDigest",
                "contractDigest",
                "manifestDigest",
                "targetAuthorityId",
                "idempotencyKey",
                "sequence",
                "completedSections",
                "nextSection",
                "state",
                "digest"
              ],
              "type": "object"
            },
            {
              "type": "null"
            }
          ]
        },
        "contractDigest": {
          "$ref": "#/$defs/__schema2"
        },
        "idempotencyKey": {
          "$ref": "#/$defs/__schema3"
        },
        "importPlanDigest": {
          "$ref": "#/$defs/__schema2"
        },
        "importPlanId": {
          "$ref": "#/$defs/__schema1"
        },
        "manifestDigest": {
          "$ref": "#/$defs/__schema2"
        },
        "schema": {
          "const": "hasna.todos.transfer_import_execution.v1",
          "type": "string"
        },
        "sourceAuthorityId": {
          "$ref": "#/$defs/__schema0"
        },
        "targetAuthorityId": {
          "$ref": "#/$defs/__schema0"
        }
      },
      "required": [
        "schema",
        "sourceAuthorityId",
        "bundleId",
        "bundleChecksum",
        "importPlanId",
        "importPlanDigest",
        "contractDigest",
        "manifestDigest",
        "targetAuthorityId",
        "idempotencyKey",
        "checkpoint"
      ],
      "type": "object",
      "x-hasna-invariants": [
        "todos.transfer.execution_canonical_digests",
        "todos.transfer.execution_request_binding",
        "todos.transfer.public_canonical_boundaries",
        "todos.transfer.replay_binding"
      ]
    },
    "hasna.todos.transfer_import_preview.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema1": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema2": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.transfer_import_preview.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "bundleChecksum": {
          "$ref": "#/$defs/__schema2"
        },
        "bundleId": {
          "$ref": "#/$defs/__schema1"
        },
        "conflicts": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "reason": {
                "maxLength": 2048,
                "minLength": 1,
                "type": "string"
              },
              "resourceId": {
                "$ref": "#/$defs/__schema1"
              },
              "resourceKind": {
                "maxLength": 64,
                "minLength": 1,
                "type": "string"
              }
            },
            "required": [
              "resourceKind",
              "resourceId",
              "reason"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "contractDigest": {
          "$ref": "#/$defs/__schema2"
        },
        "dryRun": {
          "const": true,
          "type": "boolean"
        },
        "importPlanDigest": {
          "$ref": "#/$defs/__schema2"
        },
        "importPlanId": {
          "$ref": "#/$defs/__schema1"
        },
        "manifestDigest": {
          "$ref": "#/$defs/__schema2"
        },
        "repairIssues": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "action": {
                "enum": [
                  "supply_reference",
                  "remove_cycle",
                  "regenerate_digest",
                  "regenerate_closure",
                  "regenerate_reference_closure",
                  "regenerate_classification"
                ],
                "type": "string"
              },
              "reason": {
                "maxLength": 2048,
                "minLength": 1,
                "type": "string"
              },
              "resourceId": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/__schema1"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "section": {
                "enum": [
                  "projects",
                  "task_lists",
                  "plans",
                  "tasks",
                  "comments",
                  "dependencies",
                  "activities",
                  "verification_evidence",
                  "task_files",
                  "runs",
                  "run_events",
                  "run_commands",
                  "run_files",
                  "run_artifacts",
                  "git_commits",
                  "git_refs",
                  "traceability",
                  "task_to_pr_projections",
                  "saved_views",
                  "task_templates",
                  "approvals",
                  "deletion_records"
                ],
                "type": "string"
              }
            },
            "required": [
              "section",
              "resourceId",
              "action",
              "reason"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "schema": {
          "const": "hasna.todos.transfer_import_preview.v1",
          "type": "string"
        },
        "sectionCounts": {
          "additionalProperties": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "propertyNames": {
            "type": "string"
          },
          "type": "object"
        },
        "sourceAuthorityId": {
          "$ref": "#/$defs/__schema0"
        },
        "targetAuthorityId": {
          "$ref": "#/$defs/__schema0"
        },
        "valid": {
          "type": "boolean"
        }
      },
      "required": [
        "schema",
        "dryRun",
        "sourceAuthorityId",
        "bundleId",
        "bundleChecksum",
        "contractDigest",
        "manifestDigest",
        "targetAuthorityId",
        "importPlanId",
        "valid",
        "conflicts",
        "repairIssues",
        "sectionCounts",
        "importPlanDigest"
      ],
      "type": "object",
      "x-hasna-invariants": [
        "todos.transfer.import_plan"
      ]
    },
    "hasna.todos.transfer_validation.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.transfer_validation.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "conflicts": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "reason": {
                "maxLength": 2048,
                "minLength": 1,
                "type": "string"
              },
              "resourceId": {
                "$ref": "#/$defs/__schema0"
              },
              "resourceKind": {
                "maxLength": 64,
                "minLength": 1,
                "type": "string"
              }
            },
            "required": [
              "resourceKind",
              "resourceId",
              "reason"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "dryRun": {
          "const": true,
          "type": "boolean"
        },
        "issues": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "enum": [
                  "invalid_bundle",
                  "canonical_digest_mismatch",
                  "count_mismatch",
                  "section_digest_mismatch",
                  "bundle_checksum_mismatch",
                  "duplicate_record",
                  "classification_mismatch",
                  "missing_reference",
                  "projection_history_mismatch",
                  "dependency_cycle",
                  "closure_mismatch",
                  "reference_closure_mismatch",
                  "attachment_reference_mismatch",
                  "deletion_redaction_failure"
                ],
                "type": "string"
              },
              "message": {
                "maxLength": 2048,
                "minLength": 1,
                "type": "string"
              },
              "path": {
                "maxLength": 512,
                "minLength": 1,
                "type": "string"
              },
              "repairable": {
                "type": "boolean"
              }
            },
            "required": [
              "code",
              "path",
              "message",
              "repairable"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "repairIssues": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "action": {
                "enum": [
                  "supply_reference",
                  "remove_cycle",
                  "regenerate_digest",
                  "regenerate_closure",
                  "regenerate_reference_closure",
                  "regenerate_classification"
                ],
                "type": "string"
              },
              "reason": {
                "maxLength": 2048,
                "minLength": 1,
                "type": "string"
              },
              "resourceId": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/__schema0"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "section": {
                "enum": [
                  "projects",
                  "task_lists",
                  "plans",
                  "tasks",
                  "comments",
                  "dependencies",
                  "activities",
                  "verification_evidence",
                  "task_files",
                  "runs",
                  "run_events",
                  "run_commands",
                  "run_files",
                  "run_artifacts",
                  "git_commits",
                  "git_refs",
                  "traceability",
                  "task_to_pr_projections",
                  "saved_views",
                  "task_templates",
                  "approvals",
                  "deletion_records"
                ],
                "type": "string"
              }
            },
            "required": [
              "section",
              "resourceId",
              "action",
              "reason"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "schema": {
          "const": "hasna.todos.transfer_validation.v1",
          "type": "string"
        },
        "valid": {
          "type": "boolean"
        },
        "verifiedCounts": {
          "additionalProperties": {
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "propertyNames": {
            "type": "string"
          },
          "type": "object"
        },
        "verifiedDigests": {
          "additionalProperties": {
            "pattern": "^[a-f0-9]{64}$",
            "type": "string"
          },
          "propertyNames": {
            "type": "string"
          },
          "type": "object"
        }
      },
      "required": [
        "schema",
        "dryRun",
        "valid",
        "issues",
        "conflicts",
        "repairIssues",
        "verifiedCounts",
        "verifiedDigests"
      ],
      "type": "object"
    },
    "hasna.todos.verification_evidence.v1": {
      "$defs": {
        "__schema0": {
          "maxLength": 160,
          "minLength": 1,
          "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
          "type": "string"
        },
        "__schema1": {
          "maxLength": 128,
          "minLength": 2,
          "pattern": "^[a-z][a-z0-9.-]*$",
          "type": "string"
        },
        "__schema2": {
          "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|([+-]\\d{2}:\\d{2})))$",
          "type": "string"
        },
        "__schema3": {
          "pattern": "^[a-f0-9]{64}$",
          "type": "string"
        }
      },
      "$id": "hasna.todos.verification_evidence.v1",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "properties": {
        "checks": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "durationMs": {
                "anyOf": [
                  {
                    "maximum": 9007199254740991,
                    "minimum": 0,
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "maxLength": 512,
                "minLength": 1,
                "type": "string"
              },
              "status": {
                "enum": [
                  "passed",
                  "failed",
                  "skipped"
                ],
                "type": "string"
              },
              "summary": {
                "anyOf": [
                  {
                    "maxLength": 4096,
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "name",
              "status",
              "summary",
              "durationMs"
            ],
            "type": "object"
          },
          "maxItems": 10000,
          "type": "array"
        },
        "commands": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "command": {
                "maxLength": 16000,
                "minLength": 1,
                "type": "string"
              },
              "durationMs": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "exitCode": {
                "maximum": 9007199254740991,
                "minimum": -9007199254740991,
                "type": "integer"
              }
            },
            "required": [
              "command",
              "exitCode",
              "durationMs"
            ],
            "type": "object"
          },
          "maxItems": 256,
          "type": "array"
        },
        "completedAt": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema2"
            },
            {
              "type": "null"
            }
          ]
        },
        "confidence": {
          "anyOf": [
            {
              "maximum": 1,
              "minimum": 0,
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "contentRefs": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "algorithm": {
                "const": "sha256",
                "type": "string"
              },
              "byteLength": {
                "maximum": 9007199254740991,
                "minimum": 0,
                "type": "integer"
              },
              "digest": {
                "$ref": "#/$defs/__schema3"
              },
              "mediaType": {
                "maxLength": 160,
                "minLength": 1,
                "type": "string"
              }
            },
            "required": [
              "algorithm",
              "digest",
              "mediaType",
              "byteLength"
            ],
            "type": "object"
          },
          "maxItems": 10000,
          "type": "array"
        },
        "createdAt": {
          "$ref": "#/$defs/__schema2"
        },
        "id": {
          "$ref": "#/$defs/__schema0"
        },
        "owner": {
          "$ref": "#/$defs/__schema1"
        },
        "runId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        },
        "startedAt": {
          "$ref": "#/$defs/__schema2"
        },
        "status": {
          "enum": [
            "passed",
            "failed",
            "inconclusive"
          ],
          "type": "string"
        },
        "summary": {
          "maxLength": 20000,
          "minLength": 1,
          "type": "string"
        },
        "taskId": {
          "anyOf": [
            {
              "$ref": "#/$defs/__schema0"
            },
            {
              "type": "null"
            }
          ]
        },
        "updatedAt": {
          "$ref": "#/$defs/__schema2"
        },
        "verifierRef": {
          "additionalProperties": false,
          "properties": {
            "digest": {
              "$ref": "#/$defs/__schema3"
            },
            "id": {
              "$ref": "#/$defs/__schema0"
            },
            "owner": {
              "$ref": "#/$defs/__schema1"
            }
          },
          "required": [
            "owner",
            "id",
            "digest"
          ],
          "type": "object"
        },
        "version": {
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991,
          "type": "integer"
        }
      },
      "required": [
        "id",
        "owner",
        "version",
        "createdAt",
        "updatedAt",
        "taskId",
        "runId",
        "verifierRef",
        "status",
        "summary",
        "confidence",
        "commands",
        "checks",
        "contentRefs",
        "startedAt",
        "completedAt"
      ],
      "type": "object"
    }
  }
}
