Starholder API
Operation Reference

Schemas

The 476 shared shapes referenced by the operation reference.

Named shapes that operations reference with $ref: "#/components/schemas/<Name>". Each one is converted from the zod schema or TypeScript type its route handler uses.

AcceptedRef

{
  "type": "object",
  "properties": {
    "ref": {
      "type": "string"
    },
    "label": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "enum": [
        "entity",
        "setting",
        "textroot",
        "packet"
      ]
    },
    "lifecycleState": {
      "type": "string",
      "enum": [
        "render_provisional",
        "commit_validated"
      ]
    },
    "provenance": {
      "type": "string"
    },
    "href": {
      "type": "string"
    }
  },
  "required": [
    "ref",
    "label",
    "type",
    "lifecycleState",
    "provenance",
    "href"
  ]
}

AccountStatementEntry

{
  "type": "object",
  "properties": {
    "postingId": {
      "type": "string"
    },
    "journalId": {
      "type": "string"
    },
    "accountId": {
      "type": "string"
    },
    "direction": {
      "type": "string",
      "enum": [
        "debit",
        "credit"
      ]
    },
    "amount": {
      "$ref": "#/components/schemas/StarAmount"
    },
    "asset": {
      "type": "string",
      "const": "STAR"
    },
    "accountType": {
      "$ref": "#/components/schemas/LedgerAccountType"
    },
    "ownerId": {
      "type": "string"
    },
    "postedAt": {
      "type": "string"
    },
    "postedSeq": {
      "type": "string"
    },
    "runningBalance": {
      "$ref": "#/components/schemas/StarAmount"
    }
  },
  "required": [
    "postingId",
    "journalId",
    "accountId",
    "direction",
    "amount",
    "asset",
    "accountType",
    "ownerId",
    "postedAt",
    "runningBalance"
  ],
  "description": "STAR_LEDGER_SYSTEM.md §17.3 — posting line with running balance in window."
}

ActorKind

{
  "type": "string",
  "enum": [
    "human",
    "persona",
    "external_agent"
  ]
}

AddWorldBookmarkResponse

{
  "type": "object",
  "properties": {
    "bookmarkId": {
      "type": "string"
    },
    "worldId": {
      "type": "string"
    }
  },
  "required": [
    "bookmarkId",
    "worldId"
  ]
}

AesErrorEnvelope

{
  "type": "object",
  "required": [
    "ok",
    "error"
  ],
  "properties": {
    "ok": {
      "const": false
    },
    "error": {
      "type": "object",
      "required": [
        "code",
        "message"
      ],
      "properties": {
        "code": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "retryable": {
          "type": "boolean"
        },
        "correlationId": {
          "type": "string"
        },
        "retryAfterMs": {
          "type": "number",
          "description": "Present on some retryable errors; on 409 and 429 responses, Retry-After carries the same delay in seconds."
        },
        "details": {
          "type": "object",
          "description": "Authorization denials carry reason (the denial, e.g. missing_scope or world_policy_denied) and sometimes detail."
        }
      }
    }
  }
}

AgentWorkflow

{
  "type": "object",
  "properties": {
    "workflowId": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "summary": {
      "type": "string"
    },
    "keywords": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Words an agent may search for to find this workflow."
    },
    "credential": {
      "$ref": "#/components/schemas/AgentWorkflowCredential",
      "description": "The credential the steps send."
    },
    "parameters": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Path-template parameters and where their values come from."
    },
    "rules": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "How to run the ordered steps."
    },
    "contractRef": {
      "type": "string"
    },
    "steps": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/AgentWorkflowStep"
      }
    }
  },
  "required": [
    "contractRef",
    "keywords",
    "parameters",
    "rules",
    "steps",
    "summary",
    "title",
    "workflowId"
  ],
  "description": "AES §8.10.7 — an ordered, machine-readable recipe over registry operations."
}

AgentWorkflowBodyField

{
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "enum": [
        "string",
        "number",
        "integer",
        "boolean",
        "array",
        "object"
      ]
    },
    "constraint": {
      "type": "string"
    },
    "values": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "name",
    "type",
    "constraint"
  ],
  "description": "A request-body or query field a step sends, with the rule the route enforces."
}

AgentWorkflowCondition

{
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "field": {
          "type": "string"
        },
        "in": {
          "type": "array",
          "items": {
            "type": [
              "string",
              "number",
              "boolean"
            ]
          }
        },
        "step": {
          "type": "string"
        }
      },
      "required": [
        "field",
        "in"
      ]
    },
    {
      "type": "object",
      "properties": {
        "field": {
          "type": "string"
        },
        "notIn": {
          "type": "array",
          "items": {
            "type": [
              "string",
              "number",
              "boolean"
            ]
          }
        },
        "step": {
          "type": "string"
        }
      },
      "required": [
        "field",
        "notIn"
      ]
    },
    {
      "type": "object",
      "properties": {
        "field": {
          "type": "string"
        },
        "contains": {
          "type": "string"
        },
        "step": {
          "type": "string"
        }
      },
      "required": [
        "field",
        "contains"
      ]
    }
  ],
  "description": "AES §8.10.7 — a condition an agent evaluates against a JSON response. `field` is a dot path into the response body; a `[]` segment maps over an array (`workflow.nextActions[].action`). The pseudo-field `httpStatus` is the response's HTTP status. `step` names an earlier step whose latest response is read instead of the current context."
}

AgentWorkflowCredential

{
  "type": "object",
  "properties": {
    "kind": {
      "type": "string",
      "enum": [
        "api_key",
        "room_link",
        "room_link_and_api_key"
      ]
    },
    "send": {
      "type": "string",
      "description": "The header form, e.g. `Authorization: Bearer <inviteToken>`."
    },
    "rule": {
      "type": "string",
      "description": "What the credential acts as, and what sending the other credential beside it does."
    }
  },
  "required": [
    "kind",
    "send",
    "rule"
  ],
  "description": "The credential every step of a workflow sends, and what it acts as. `room_link_and_api_key`: a room-link private lane, where the invite token names the seat and the API key supplies its owner's authority, both on every call."
}

AgentWorkflowStep

{
  "type": "object",
  "properties": {
    "stepId": {
      "type": "string"
    },
    "routeId": {
      "type": "string"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET",
        "POST",
        "PUT",
        "PATCH",
        "DELETE"
      ]
    },
    "pathTemplate": {
      "type": "string"
    },
    "action": {
      "type": "string",
      "description": "The submission `workflow.nextActions[].action` id this step answers, when there is one."
    },
    "purpose": {
      "type": "string"
    },
    "optional": {
      "type": "boolean",
      "description": "True when some runs of the workflow skip this step."
    },
    "when": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/AgentWorkflowCondition"
      },
      "description": "The step applies only when every condition holds against the latest resource read. Absent: always."
    },
    "body": {
      "type": "object",
      "properties": {
        "required": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/AgentWorkflowBodyField"
          }
        },
        "optional": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/AgentWorkflowBodyField"
          }
        }
      },
      "required": [
        "required",
        "optional"
      ]
    },
    "query": {
      "type": "object",
      "properties": {
        "required": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/AgentWorkflowBodyField"
          }
        },
        "optional": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/AgentWorkflowBodyField"
          }
        }
      },
      "required": [
        "required",
        "optional"
      ],
      "description": "Query-string fields, under the same rules as `body`."
    },
    "headers": {
      "type": "object",
      "properties": {
        "required": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/AgentWorkflowBodyField"
          }
        },
        "optional": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/AgentWorkflowBodyField"
          }
        }
      },
      "required": [
        "required",
        "optional"
      ],
      "description": "Request headers other than the workflow credential, under the same rules as `body`."
    },
    "advanceWhen": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/AgentWorkflowCondition"
      },
      "description": "The step is done when every condition holds against this step's own response."
    },
    "pollIntervalMs": {
      "type": "number",
      "description": "Polling steps repeat the call at this interval until `advanceWhen` holds."
    },
    "notes": {
      "type": "string"
    }
  },
  "required": [
    "stepId",
    "routeId",
    "method",
    "pathTemplate",
    "purpose",
    "optional",
    "advanceWhen"
  ],
  "description": "One call in a workflow. `routeId` is the OpenAPI `operationId`: a `ROUTE_AUTH_POLICIES` routeId or a chat operation binding in `SHIPPED_ROUTE_COVERAGE`; `method` and `pathTemplate` are copied from it."
}

AmbientModeValue

{
  "type": "string",
  "enum": [
    "off",
    "passive",
    "active"
  ]
}

AnchorEntry

{
  "type": "object",
  "properties": {
    "ref": {
      "type": "string"
    },
    "label": {
      "type": "string"
    },
    "source": {
      "type": "string",
      "enum": [
        "direct_canonical_name",
        "hot_frontier",
        "seed"
      ]
    }
  },
  "required": [
    "ref",
    "label",
    "source"
  ]
}

AnomalyRef

{
  "type": "object",
  "properties": {
    "ref": {
      "type": "string"
    },
    "reason": {
      "type": "string",
      "enum": [
        "not_in_traversal_outputs",
        "forbidden_by_policy"
      ]
    }
  },
  "required": [
    "ref",
    "reason"
  ]
}

ApiErrorEnvelope

{
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean",
      "const": false
    },
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "retryable": {
          "type": "boolean"
        },
        "correlationId": {
          "type": "string"
        },
        "retryAfterMs": {
          "type": "number"
        }
      },
      "required": [
        "code",
        "message",
        "retryable",
        "correlationId"
      ]
    }
  },
  "required": [
    "ok",
    "error"
  ]
}

ApiKeyRecordPublic

{
  "type": "object",
  "properties": {
    "oauthGrant": {
      "$ref": "#/components/schemas/OAuthGrantPublic"
    },
    "schemaVersion": {
      "type": "number",
      "const": 1
    },
    "keyId": {
      "type": "string"
    },
    "actorId": {
      "type": "string"
    },
    "actorKind": {
      "type": "string",
      "const": "external_agent"
    },
    "ownerUserId": {
      "type": "string"
    },
    "tenantId": {
      "type": "string"
    },
    "worldScopes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "capabilitySet": {
      "$ref": "#/components/schemas/CapabilitySet"
    },
    "scopeGrant": {
      "type": "string",
      "enum": [
        "standard",
        "custom"
      ],
      "description": "`standard`: the key was created with the standard scopes and capabilities and holds them as the standard set changes. `custom`: it holds exactly the scopes and capabilities it was given. Not set on an OAuth connection key, which holds the scopes its owner approved."
    },
    "riskTierCeiling": {
      "type": "string",
      "enum": [
        "T0",
        "T1",
        "T2"
      ]
    },
    "quotaProfile": {
      "$ref": "#/components/schemas/QuotaProfile"
    },
    "originSystem": {
      "type": "string"
    },
    "label": {
      "type": "string"
    },
    "createdAtMs": {
      "type": "number"
    },
    "updatedAtMs": {
      "type": "number"
    },
    "expiresAtMs": {
      "type": "number"
    },
    "revokedAtMs": {
      "type": "number"
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "revoked",
        "suspended"
      ]
    },
    "lastUsedAtMs": {
      "type": "number"
    }
  },
  "required": [
    "actorId",
    "actorKind",
    "capabilitySet",
    "createdAtMs",
    "keyId",
    "ownerUserId",
    "quotaProfile",
    "riskTierCeiling",
    "schemaVersion",
    "status",
    "tenantId",
    "updatedAtMs",
    "worldScopes"
  ],
  "description": "API key metadata safe for list/detail responses (never exposes keyHash). §5.4.3 AC5."
}

AsyncJobEnvelope

{
  "type": "object",
  "properties": {
    "jobId": {
      "type": "string"
    },
    "requestId": {
      "type": "string"
    },
    "correlationId": {
      "type": "string"
    },
    "worldId": {
      "type": "string"
    },
    "status": {
      "$ref": "#/components/schemas/AsyncJobStatus"
    },
    "createdAtMs": {
      "type": "number"
    },
    "estimatedDurationMs": {
      "type": "number"
    },
    "pollUrl": {
      "type": "string"
    },
    "webhookUrl": {
      "type": "string"
    },
    "hamTurnId": {
      "type": "string",
      "description": "HAM lineage for routes that admit a turn before queueing work."
    },
    "sessionId": {
      "type": "string",
      "description": "Session lineage for HAM-fronted async turns."
    }
  },
  "required": [
    "jobId",
    "requestId",
    "correlationId",
    "worldId",
    "status",
    "createdAtMs",
    "pollUrl"
  ]
}

AsyncJobResult

{
  "type": "object",
  "properties": {
    "jobId": {
      "type": "string"
    },
    "status": {
      "$ref": "#/components/schemas/AsyncJobStatus"
    },
    "createdAtMs": {
      "type": "number"
    },
    "startedAtMs": {
      "type": "number"
    },
    "completedAtMs": {
      "type": "number"
    },
    "hamTurnId": {
      "type": "string"
    },
    "sessionId": {
      "type": "string"
    },
    "result": {
      "$ref": "#/components/schemas/ExecutionResult"
    },
    "error": {
      "$ref": "#/components/schemas/ExecutionErrorShape"
    }
  },
  "required": [
    "jobId",
    "status",
    "createdAtMs"
  ]
}

AsyncJobStatus

{
  "type": "string",
  "enum": [
    "queued",
    "running",
    "completed",
    "failed",
    "expired"
  ]
}

AtmosphereSignals

{
  "type": "object",
  "properties": {
    "sound": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "smell": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "temperature": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "light": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "tactile": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "horizon": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "sound",
    "smell",
    "temperature",
    "light",
    "tactile",
    "horizon"
  ]
}

AttachedMediaRefUrlPair

{
  "type": "object",
  "properties": {
    "relType": {
      "type": [
        "string",
        "null"
      ],
      "description": "Relationship type used to attach this media (best-effort). Example: HAS_MEDIA | HAS_CANONICAL_VISUAL | HAS_SETTING_VISUAL"
    },
    "variant": {
      "type": [
        "string",
        "null"
      ],
      "description": "Variant / shot type hint when available (best-effort)."
    },
    "shotType": {
      "type": [
        "string",
        "null"
      ]
    },
    "ref": {
      "type": [
        "string",
        "null"
      ],
      "description": "Canonical ref for the media (control-plane compatible)."
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "A directly renderable URL for fast display."
    },
    "legacyId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Optional legacyId (Media.id) used to locate the MediaXRef."
    }
  },
  "required": [
    "ref",
    "url"
  ]
}

BaseDirectiveIdentity

{
  "type": "object",
  "properties": {
    "schemaVersion": {
      "type": "string",
      "const": "directive.identity.v2"
    },
    "directiveId": {
      "type": "string"
    },
    "intent": {
      "type": "string"
    },
    "anchorRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "sourceGapId": {
      "type": "string"
    },
    "targetBountyId": {
      "type": "string"
    },
    "mode": {
      "type": "string",
      "enum": [
        "answer",
        "explore",
        "bridge",
        "canonize"
      ]
    },
    "creativeDirection": {
      "type": "string"
    }
  },
  "required": [
    "schemaVersion",
    "directiveId",
    "intent"
  ]
}

BountyFeedEntry

{
  "$ref": "#/components/schemas/BountyIndexEntry"
}

BountyFulfillmentWorkOrderRef

{
  "type": "object",
  "properties": {
    "workOrderId": {
      "type": "string"
    },
    "subjectRef": {
      "type": "string"
    },
    "worldId": {
      "type": "string"
    },
    "userId": {
      "type": "string"
    },
    "username": {
      "type": "string"
    },
    "worldName": {
      "type": "string"
    },
    "correlationId": {
      "type": "string"
    },
    "workOrderBodyAnchor": {
      "type": "string"
    },
    "kickoffPath": {
      "type": "string",
      "const": "world.orchestration.work_order.create"
    },
    "bridgeMode": {
      "type": "string",
      "const": "ham_work_order_create"
    },
    "attempt": {
      "type": "number"
    },
    "claimId": {
      "type": "string"
    },
    "submissionId": {
      "type": "string"
    }
  },
  "required": [
    "workOrderId",
    "subjectRef",
    "worldId",
    "userId",
    "username",
    "worldName",
    "correlationId",
    "kickoffPath",
    "bridgeMode",
    "attempt",
    "claimId",
    "submissionId"
  ]
}

BountyIndexEntry

{
  "type": "object",
  "properties": {
    "bountyId": {
      "type": "string"
    },
    "worldId": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "enum": [
        "text_story",
        "media_production"
      ]
    },
    "issuerUserId": {
      "type": "string"
    },
    "issuerDisplayName": {
      "type": [
        "string",
        "null"
      ]
    },
    "title": {
      "type": "string"
    },
    "objectiveSummary": {
      "type": "string"
    },
    "creativeBriefSummary": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "budget": {
      "type": "number"
    },
    "activeClaimantUserId": {
      "type": "string"
    },
    "sourceGapId": {
      "type": "string"
    },
    "itemCount": {
      "type": "number"
    },
    "suggestedEra": {
      "type": "string"
    },
    "createdAt": {
      "type": "string"
    },
    "updatedAt": {
      "type": "string"
    }
  },
  "required": [
    "bountyId",
    "worldId",
    "type",
    "issuerUserId",
    "title",
    "objectiveSummary",
    "creativeBriefSummary",
    "status",
    "budget",
    "createdAt",
    "updatedAt"
  ]
}

BountyManifest

{
  "type": "object",
  "properties": {
    "bountyId": {
      "type": "string"
    },
    "worldId": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "enum": [
        "text_story",
        "media_production"
      ]
    },
    "issuerUserId": {
      "type": "string"
    },
    "issuerDisplayName": {
      "type": [
        "string",
        "null"
      ]
    },
    "title": {
      "type": "string"
    },
    "objective": {
      "type": "string"
    },
    "creativeBrief": {
      "type": "string"
    },
    "budget": {
      "type": "number"
    },
    "status": {
      "$ref": "#/components/schemas/BountyStatus"
    },
    "activeClaimId": {
      "type": "string"
    },
    "activeClaimantUserId": {
      "type": "string"
    },
    "originSystem": {
      "type": "string"
    },
    "expiresAt": {
      "type": "string"
    },
    "payload": {
      "$ref": "#/components/schemas/BountyPayload"
    },
    "refs": {
      "type": "object",
      "properties": {
        "submissionId": {
          "type": "string"
        },
        "sourceTextAssetId": {
          "type": "string"
        },
        "sourceTextRootId": {
          "type": "string"
        },
        "finalizedTextRootId": {
          "type": "string"
        },
        "workManifestId": {
          "type": "string"
        },
        "targetSeedId": {
          "type": "string"
        },
        "sourceGapId": {
          "type": "string"
        },
        "escrowId": {
          "type": "string"
        }
      }
    },
    "counters": {
      "type": "object",
      "properties": {
        "claimCount": {
          "type": "number"
        },
        "submissionCount": {
          "type": "number"
        },
        "reviewCount": {
          "type": "number"
        },
        "noteCount": {
          "type": "number"
        },
        "revisionCount": {
          "type": "number"
        }
      },
      "required": [
        "claimCount",
        "submissionCount",
        "reviewCount",
        "noteCount",
        "revisionCount"
      ]
    },
    "reviewDeadlineAt": {
      "type": "string"
    },
    "finalizeDeadlineAt": {
      "type": "string"
    },
    "autoFinalizedAt": {
      "type": "string"
    },
    "autoFinalizeReason": {
      "type": "string",
      "enum": [
        "review_deadline_expired",
        "finalize_deadline_expired",
        "issuer_accepted"
      ]
    },
    "createdAt": {
      "type": "string"
    },
    "updatedAt": {
      "type": "string"
    }
  },
  "required": [
    "bountyId",
    "worldId",
    "type",
    "issuerUserId",
    "title",
    "objective",
    "creativeBrief",
    "budget",
    "status",
    "payload",
    "refs",
    "counters",
    "createdAt",
    "updatedAt"
  ]
}

BountyMediaSourceLookupOutcomeSchema

{
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "const": "resolved"
        },
        "query": {
          "type": "string",
          "minLength": 1
        },
        "textRootId": {
          "type": "string",
          "minLength": 1
        },
        "worldId": {
          "type": "string",
          "minLength": 1
        },
        "title": {
          "type": "string",
          "minLength": 1
        },
        "submissionId": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "status",
        "query",
        "textRootId",
        "worldId",
        "title"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "const": "no_match"
        },
        "query": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "status",
        "query"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "const": "ambiguous"
        },
        "query": {
          "type": "string",
          "minLength": 1
        },
        "candidates": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "textRootId": {
                "type": "string",
                "minLength": 1
              },
              "title": {
                "type": "string",
                "minLength": 1
              },
              "worldId": {
                "type": "string",
                "minLength": 1
              },
              "submissionId": {
                "type": "string",
                "minLength": 1
              },
              "updatedAt": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "textRootId",
              "title",
              "worldId",
              "updatedAt"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "status",
        "query",
        "candidates"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "const": "ineligible"
        },
        "query": {
          "type": "string",
          "minLength": 1
        },
        "reasonCode": {
          "type": "string",
          "minLength": 1
        },
        "message": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "status",
        "query",
        "reasonCode",
        "message"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "const": "unavailable"
        },
        "query": {
          "type": "string",
          "minLength": 1
        },
        "failureCode": {
          "type": "string",
          "minLength": 1
        },
        "message": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "status",
        "query",
        "failureCode",
        "message"
      ],
      "additionalProperties": false
    }
  ]
}

BountyNoteManifest

{
  "type": "object",
  "properties": {
    "noteId": {
      "type": "string"
    },
    "bountyId": {
      "type": "string"
    },
    "worldId": {
      "type": "string"
    },
    "claimId": {
      "type": "string"
    },
    "authorUserId": {
      "type": "string"
    },
    "executionProvenance": {
      "$ref": "#/components/schemas/ExecutionProvenance"
    },
    "authorRole": {
      "type": "string",
      "enum": [
        "issuer",
        "fulfiller"
      ]
    },
    "text": {
      "type": "string"
    },
    "createdAt": {
      "type": "string"
    }
  },
  "required": [
    "noteId",
    "bountyId",
    "worldId",
    "authorUserId",
    "authorRole",
    "text",
    "createdAt"
  ]
}

BountyPayload

{
  "anyOf": [
    {
      "$ref": "#/components/schemas/TextStoryPayload"
    },
    {
      "$ref": "#/components/schemas/MediaProductionPayload"
    }
  ]
}

BountyStatus

{
  "type": "string",
  "enum": [
    "open",
    "claimed",
    "submitted",
    "under_review",
    "revision_requested",
    "accepted",
    "finalized",
    "registered",
    "cancelled",
    "expired",
    "rejected"
  ]
}

BountySubmissionManifest

{
  "type": "object",
  "properties": {
    "submissionId": {
      "type": "string"
    },
    "bountyId": {
      "type": "string"
    },
    "worldId": {
      "type": "string"
    },
    "claimId": {
      "type": "string"
    },
    "submitterUserId": {
      "type": "string"
    },
    "executionProvenance": {
      "$ref": "#/components/schemas/ExecutionProvenance"
    },
    "deliverable": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/TextStoryDeliverable"
        },
        {
          "$ref": "#/components/schemas/MediaProductionDeliverable"
        }
      ]
    },
    "stagingManifestKey": {
      "type": "string"
    },
    "fulfillmentWorkOrder": {
      "$ref": "#/components/schemas/BountyFulfillmentWorkOrderRef"
    },
    "status": {
      "type": "string",
      "enum": [
        "submitted",
        "under_review",
        "accepted",
        "revision_requested",
        "rejected"
      ]
    },
    "finalizationLedger": {
      "$ref": "#/components/schemas/SubmissionFinalizationLedger",
      "description": "Per-slot finalize ledger for idempotent retries (§8.4)."
    },
    "createdAt": {
      "type": "string"
    },
    "updatedAt": {
      "type": "string"
    }
  },
  "required": [
    "submissionId",
    "bountyId",
    "worldId",
    "claimId",
    "submitterUserId",
    "deliverable",
    "status",
    "createdAt",
    "updatedAt"
  ]
}

BudgetDimension

{
  "type": "string",
  "enum": [
    "time",
    "graph_calls",
    "tokens"
  ]
}

CallerCredentialView

{
  "type": "object",
  "properties": {
    "actorKind": {
      "type": "string",
      "enum": [
        "human",
        "external_agent"
      ]
    },
    "actorId": {
      "type": "string"
    },
    "ownerUserId": {
      "type": "string"
    },
    "apiKeyId": {
      "type": "string"
    },
    "worldScopes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "capabilitySet": {
      "$ref": "#/components/schemas/CapabilitySet"
    },
    "riskTierCeiling": {
      "$ref": "#/components/schemas/RiskTier"
    },
    "effectiveFlowTier": {
      "$ref": "#/components/schemas/RiskTier"
    },
    "expiresAt": {
      "type": "number"
    }
  },
  "required": [
    "actorKind",
    "actorId",
    "ownerUserId",
    "worldScopes",
    "capabilitySet",
    "riskTierCeiling",
    "effectiveFlowTier"
  ],
  "description": "AES §8.10.2 — the credential `GET /api/v1/account` resolved for this request."
}

CallerDirectory

{
  "type": "object",
  "properties": {
    "directoryVersion": {
      "type": "string",
      "const": "starholder.caller_directory.v1"
    },
    "openapiUrl": {
      "type": "string",
      "const": "/api/v1/openapi.json"
    },
    "operations": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CallerDirectoryOperation"
      }
    },
    "workflows": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CallerDirectoryWorkflow"
      },
      "description": "AES §8.10.7 — the published workflows, each step marked callable for this credential."
    },
    "roomDirectory": {
      "$ref": "#/components/schemas/CallerDirectoryRoomPointer",
      "description": "AES §8.10.2 — the room directory, which lists the room operations this directory does not."
    }
  },
  "required": [
    "directoryVersion",
    "openapiUrl",
    "operations",
    "workflows",
    "roomDirectory"
  ]
}

CallerDirectoryCallTimeCheck

{
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "const": "world_policy"
        },
        "flag": {
          "$ref": "#/components/schemas/WorldPolicyBooleanKey"
        }
      },
      "required": [
        "kind",
        "flag"
      ]
    },
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "const": "world_role"
        },
        "minimum": {
          "type": "string",
          "enum": [
            "owner",
            "editor",
            "viewer"
          ]
        }
      },
      "required": [
        "kind",
        "minimum"
      ]
    },
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "const": "resource_ownership"
        }
      },
      "required": [
        "kind"
      ]
    }
  ]
}

CallerDirectoryOperation

{
  "type": "object",
  "properties": {
    "routeId": {
      "type": "string"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET",
        "POST",
        "PUT",
        "PATCH",
        "DELETE"
      ]
    },
    "pathTemplate": {
      "type": "string"
    },
    "mutationClass": {
      "$ref": "#/components/schemas/MutationClass"
    },
    "maxRiskTierRequired": {
      "$ref": "#/components/schemas/RiskTier"
    },
    "callTimeChecks": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CallerDirectoryCallTimeCheck"
      }
    }
  },
  "required": [
    "routeId",
    "method",
    "pathTemplate",
    "mutationClass",
    "callTimeChecks"
  ]
}

CallerDirectoryRoomPointer

{
  "type": "object",
  "properties": {
    "method": {
      "type": "string",
      "const": "GET"
    },
    "pathTemplate": {
      "type": "string",
      "const": "/api/v1/chat/external-agent-invites/{inviteToken}"
    },
    "scope": {
      "type": "string",
      "const": "room"
    },
    "credentials": {
      "type": "string",
      "const": "inviteToken from the room link"
    },
    "resultField": {
      "type": "string",
      "const": "roomLinkUsage"
    },
    "covers": {
      "type": "string",
      "const": "/api/v1/chat/rooms/{chatRoomId}/*"
    },
    "operations": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/RoomDirectoryOperation"
      },
      "description": "Every operation a room link opens, the same for every caller. Which of them one link grants is that link's roomLinkUsage.authorizedSurfaces."
    },
    "contractRef": {
      "type": "string"
    }
  },
  "required": [
    "method",
    "pathTemplate",
    "scope",
    "credentials",
    "resultField",
    "covers",
    "operations",
    "contractRef"
  ],
  "description": "CHAT §2.10 — where room operations are listed. They authorize a room participant, and a room link's seat is not this credential."
}

CallerDirectoryWorkflow

{
  "type": "object",
  "properties": {
    "workflowId": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "summary": {
      "type": "string"
    },
    "keywords": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Words an agent may search for to find this workflow."
    },
    "credential": {
      "$ref": "#/components/schemas/AgentWorkflowCredential",
      "description": "The credential the steps send."
    },
    "parameters": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "Path-template parameters and where their values come from."
    },
    "rules": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "How to run the ordered steps."
    },
    "contractRef": {
      "type": "string"
    },
    "steps": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CallerDirectoryWorkflowStep"
      }
    }
  },
  "required": [
    "contractRef",
    "keywords",
    "parameters",
    "rules",
    "steps",
    "summary",
    "title",
    "workflowId"
  ],
  "description": "AES §8.10.7 — a workflow as one credential sees it."
}

CallerDirectoryWorkflowStep

{
  "type": "object",
  "properties": {
    "stepId": {
      "type": "string"
    },
    "routeId": {
      "type": "string"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET",
        "POST",
        "PUT",
        "PATCH",
        "DELETE"
      ]
    },
    "pathTemplate": {
      "type": "string"
    },
    "action": {
      "type": "string",
      "description": "The submission `workflow.nextActions[].action` id this step answers, when there is one."
    },
    "purpose": {
      "type": "string"
    },
    "optional": {
      "type": "boolean",
      "description": "True when some runs of the workflow skip this step."
    },
    "when": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/AgentWorkflowCondition"
      },
      "description": "The step applies only when every condition holds against the latest resource read. Absent: always."
    },
    "body": {
      "type": "object",
      "properties": {
        "required": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/AgentWorkflowBodyField"
          }
        },
        "optional": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/AgentWorkflowBodyField"
          }
        }
      },
      "required": [
        "required",
        "optional"
      ]
    },
    "query": {
      "type": "object",
      "properties": {
        "required": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/AgentWorkflowBodyField"
          }
        },
        "optional": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/AgentWorkflowBodyField"
          }
        }
      },
      "required": [
        "required",
        "optional"
      ],
      "description": "Query-string fields, under the same rules as `body`."
    },
    "headers": {
      "type": "object",
      "properties": {
        "required": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/AgentWorkflowBodyField"
          }
        },
        "optional": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/AgentWorkflowBodyField"
          }
        }
      },
      "required": [
        "required",
        "optional"
      ],
      "description": "Request headers other than the workflow credential, under the same rules as `body`."
    },
    "advanceWhen": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/AgentWorkflowCondition"
      },
      "description": "The step is done when every condition holds against this step's own response."
    },
    "pollIntervalMs": {
      "type": "number",
      "description": "Polling steps repeat the call at this interval until `advanceWhen` holds."
    },
    "notes": {
      "type": "string"
    },
    "callable": {
      "type": "boolean",
      "description": "Whether this credential passes the step operation's credential-level gates (it is in `operations`)."
    }
  },
  "required": [
    "advanceWhen",
    "callable",
    "method",
    "optional",
    "pathTemplate",
    "purpose",
    "routeId",
    "stepId"
  ]
}

CandidateRecord

{
  "type": "object",
  "properties": {
    "ref": {
      "type": "string"
    },
    "score": {
      "type": "number"
    },
    "label": {
      "type": "string"
    }
  },
  "required": [
    "ref",
    "score"
  ]
}

CandidateResultSet

{
  "type": "object",
  "properties": {
    "candidates": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CandidateRecord"
      }
    }
  },
  "required": [
    "candidates"
  ]
}

CanonicalSetting

{
  "type": "object",
  "properties": {
    "ref": {
      "type": "string"
    },
    "label": {
      "type": "string"
    },
    "confidence": {
      "type": "number"
    },
    "scoring": {
      "type": "object",
      "properties": {
        "retrievalScore": {
          "type": "number"
        },
        "sceneSimilarity": {
          "type": "number"
        },
        "lexicalAlignment": {
          "type": "number"
        },
        "mismatchPenalty": {
          "type": "number"
        },
        "finalScore": {
          "type": "number"
        }
      }
    }
  },
  "required": [
    "ref",
    "label"
  ]
}

CapabilityBindingPath

{
  "type": "object",
  "properties": {
    "segments": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CapabilityBindingPathSegment"
      }
    }
  },
  "required": [
    "segments"
  ]
}

CapabilityBindingPathSegment

{
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "const": "property"
        },
        "key": {
          "type": "string"
        }
      },
      "required": [
        "kind",
        "key"
      ]
    },
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "const": "index"
        },
        "index": {
          "type": "number"
        }
      },
      "required": [
        "kind",
        "index"
      ]
    }
  ]
}

CapabilityCanonicalOutput

{
  "type": "object",
  "properties": {
    "key": {
      "type": "string"
    },
    "carrierKind": {
      "$ref": "#/components/schemas/CapabilityCanonicalRefKind"
    },
    "semanticTypeRef": {
      "type": "string"
    },
    "refs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "sourceTruthRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "key",
    "carrierKind",
    "semanticTypeRef",
    "refs",
    "sourceTruthRefs"
  ]
}

CapabilityCanonicalOutputEnvelope

{
  "type": "object",
  "properties": {
    "ownerOperationRef": {
      "type": "string"
    },
    "ownerOperationVersion": {
      "type": "string"
    },
    "contractDigest": {
      "type": "string"
    },
    "terminalRecordRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "outputs": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CapabilityCanonicalOutput"
      }
    }
  },
  "required": [
    "ownerOperationRef",
    "ownerOperationVersion",
    "contractDigest",
    "terminalRecordRefs",
    "outputs"
  ]
}

CapabilityCanonicalRefKind

{
  "type": "string",
  "enum": [
    "surface_bundle_ref",
    "receipt_ref",
    "artifact_ref",
    "message_ref",
    "settlement_ref",
    "authorization_ref",
    "review_item_ref",
    "operand_ref"
  ]
}

CapabilityDenialReason

{
  "type": "string",
  "enum": [
    "not_registered",
    "disabled",
    "input_schema_missing",
    "world_access_denied",
    "focus_binding_missing",
    "focused_capability_denied",
    "room_operand_not_callable",
    "role_missing",
    "consensus_missing",
    "review_pending",
    "feature_flag_off",
    "environment_unavailable",
    "data_source_unavailable",
    "budget_exceeded",
    "not_autonomous",
    "not_top_level_stageable",
    "owner_handoff_unavailable"
  ]
}

CapabilitySet

{
  "type": "object",
  "properties": {
    "canRead": {
      "type": "boolean"
    },
    "canQuery": {
      "type": "boolean"
    },
    "canExecuteFlows": {
      "type": "boolean"
    },
    "canProposeInference": {
      "type": "boolean"
    },
    "canCommitInference": {
      "type": "boolean"
    },
    "canProposeMaterialization": {
      "type": "boolean"
    },
    "canCommitMaterialization": {
      "type": "boolean"
    },
    "canSubmitNarrative": {
      "type": "boolean"
    },
    "canFulfillMedia": {
      "type": "boolean"
    },
    "canDirectPersona": {
      "type": "boolean"
    },
    "canAccessGapCoordinates": {
      "type": "boolean"
    },
    "canAccessBounties": {
      "type": "boolean"
    }
  },
  "required": [
    "canRead",
    "canQuery",
    "canExecuteFlows",
    "canProposeInference",
    "canCommitInference",
    "canProposeMaterialization",
    "canCommitMaterialization",
    "canSubmitNarrative",
    "canFulfillMedia",
    "canDirectPersona",
    "canAccessGapCoordinates",
    "canAccessBounties"
  ],
  "additionalProperties": false
}

CatalogEntry

{
  "type": "object",
  "properties": {
    "ref": {
      "type": "string"
    },
    "label": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "enum": [
        "entity",
        "setting",
        "textroot",
        "packet"
      ]
    },
    "anchorDistance": {
      "type": "number"
    },
    "relevanceScore": {
      "type": "number"
    },
    "href": {
      "type": "string"
    }
  },
  "required": [
    "ref",
    "label",
    "type",
    "anchorDistance",
    "relevanceScore",
    "href"
  ]
}

CEREMediaAuthority

{
  "type": "string",
  "enum": [
    "runtime_provisional",
    "runtime_explicit"
  ]
}

ChatActorSelector

{
  "type": [
    "string"
  ]
}

ChatActorSourceRecord

{
  "type": "object",
  "properties": {
    "kind": {
      "type": "string",
      "const": "chat.actor.source_result.v1"
    },
    "schemaVersion": {
      "type": "string",
      "const": "0.1"
    },
    "sourceResultRef": {
      "type": "string"
    },
    "decisionRef": {
      "type": "string"
    },
    "assignmentId": {
      "type": "string"
    },
    "sourceCompletion": {
      "$ref": "#/components/schemas/RoomActorSourceCompletion"
    }
  },
  "required": [
    "kind",
    "schemaVersion",
    "sourceResultRef",
    "decisionRef",
    "assignmentId",
    "sourceCompletion"
  ]
}

ChatActorTurnReport

{
  "type": "object",
  "properties": {
    "kind": {
      "type": "string",
      "const": "chat.actor.turn_report.v1"
    },
    "schemaVersion": {
      "type": "string",
      "const": "0.1"
    },
    "reportRef": {
      "type": "string"
    },
    "decisionRef": {
      "type": "string"
    },
    "assignmentId": {
      "type": "string"
    },
    "actorHandle": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "standing_participant"
            },
            "participantRef": {
              "type": "string"
            }
          },
          "required": [
            "kind",
            "participantRef"
          ]
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "imported_voice"
            },
            "importedVoiceId": {
              "type": "string"
            },
            "surfacedParticipantRef": {
              "type": "string"
            }
          },
          "required": [
            "importedVoiceId",
            "kind",
            "surfacedParticipantRef"
          ]
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "introduced_helper"
            },
            "introductionRef": {
              "type": "string"
            },
            "surfacedParticipantRef": {
              "type": "string"
            }
          },
          "required": [
            "introductionRef",
            "kind",
            "surfacedParticipantRef"
          ]
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "standing_participant"
            },
            "participantRef": {
              "type": "string"
            }
          },
          "required": [
            "kind",
            "participantRef"
          ]
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "introduced_helper"
            },
            "introductionRef": {
              "type": "string"
            },
            "surfacedParticipantRef": {
              "type": "string"
            }
          },
          "required": [
            "introductionRef",
            "kind",
            "surfacedParticipantRef"
          ]
        }
      ]
    },
    "sourceDraftStatus": {
      "type": "string",
      "enum": [
        "accepted",
        "rejected",
        "fallback_synthesized"
      ]
    },
    "posture": {
      "$ref": "#/components/schemas/ChatRoomPosture"
    },
    "speechAct": {
      "$ref": "#/components/schemas/ChatRoomSpeechAct"
    },
    "postureLanded": {
      "type": "string",
      "enum": [
        "completed",
        "partial",
        "declined",
        "blocked",
        "spent",
        "no_op"
      ]
    },
    "objectiveComplete": {
      "type": "boolean"
    },
    "humanInputRequired": {
      "type": "boolean"
    },
    "remainingThreadRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "continuationDisposition": {
      "type": "string",
      "enum": [
        "stop",
        "wait_for_human",
        "continue_assigned_style",
        "advance_active_style"
      ]
    },
    "terminalReceiptRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "kind",
    "schemaVersion",
    "reportRef",
    "decisionRef",
    "assignmentId",
    "actorHandle",
    "sourceDraftStatus",
    "posture",
    "speechAct",
    "postureLanded",
    "objectiveComplete",
    "humanInputRequired",
    "remainingThreadRefs",
    "continuationDisposition"
  ]
}

ChatActorTurnReportDraft

{
  "type": "object",
  "properties": {
    "kind": {
      "type": "string",
      "const": "chat.actor.turn_report.draft.v1"
    },
    "schemaVersion": {
      "type": "string",
      "const": "0.1"
    },
    "postureLanded": {
      "type": "string",
      "enum": [
        "completed",
        "partial",
        "declined",
        "blocked",
        "spent",
        "no_op"
      ]
    },
    "objectiveComplete": {
      "type": "boolean"
    },
    "humanInputRequired": {
      "type": "boolean"
    },
    "remainingThreadRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "terminalReceiptRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "kind",
    "schemaVersion",
    "postureLanded",
    "objectiveComplete",
    "humanInputRequired",
    "remainingThreadRefs"
  ]
}

ChatAttendantClarificationArtifact

{
  "type": "object",
  "properties": {
    "kind": {
      "type": "string",
      "const": "chat.attendant.clarification.v1"
    },
    "schemaVersion": {
      "type": "string",
      "const": "0.1"
    },
    "clarificationRef": {
      "type": "string"
    },
    "decisionRef": {
      "type": "string"
    },
    "chatRoomId": {
      "type": "string"
    },
    "sourceInputId": {
      "type": "string"
    },
    "asOfEventId": {
      "type": "string"
    },
    "question": {
      "type": "string"
    },
    "candidateHandles": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "handleRef": {
            "$ref": "#/components/schemas/ChatRoomHandleRef"
          },
          "displayLabel": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "handleRef",
          "displayLabel",
          "reason"
        ]
      }
    }
  },
  "required": [
    "kind",
    "schemaVersion",
    "clarificationRef",
    "decisionRef",
    "chatRoomId",
    "sourceInputId",
    "asOfEventId",
    "question"
  ]
}

ChatAttendantDecision

{
  "type": "object",
  "properties": {
    "sourceMessageId": {
      "type": "string"
    },
    "requestedByParticipantRef": {
      "type": "string"
    },
    "action": {
      "type": "string",
      "enum": [
        "none",
        "suggest_call",
        "request_confirmation",
        "launch_call"
      ]
    },
    "targetParticipantRef": {
      "type": "string"
    },
    "targetImportedVoiceId": {
      "type": "string"
    },
    "targetIntroductionRef": {
      "type": "string"
    },
    "rationale": {
      "type": "string",
      "enum": [
        "explicit_address",
        "scope_match",
        "already_surfaced",
        "active_scene"
      ]
    },
    "confidence": {
      "type": "number"
    },
    "asOfEventId": {
      "type": "string"
    }
  },
  "required": [
    "sourceMessageId",
    "requestedByParticipantRef",
    "action",
    "rationale",
    "confidence",
    "asOfEventId"
  ]
}

ChatAttendantHandleView

{
  "type": "object",
  "properties": {
    "chatRoomId": {
      "type": "string"
    },
    "roomHandleKind": {
      "type": "string",
      "enum": [
        "standing_participant",
        "imported_voice",
        "introduced_helper"
      ]
    },
    "roomHandleRef": {
      "type": "string"
    },
    "surfacedParticipantRef": {
      "type": "string"
    },
    "displayLabel": {
      "type": "string"
    },
    "personaDisplayLabel": {
      "type": "string"
    },
    "worldDisplayLabel": {
      "type": "string"
    },
    "ownerUserId": {
      "type": "string"
    },
    "worldId": {
      "type": "string"
    },
    "worldPersonaRef": {
      "type": "string"
    },
    "parentParticipantRef": {
      "type": "string"
    },
    "callableByParticipantRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "executionReady": {
      "type": "boolean"
    },
    "continuityState": {
      "type": "string",
      "enum": [
        "ready",
        "historical",
        "closed"
      ]
    },
    "sourceEventIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "asOfEventId": {
      "type": "string"
    },
    "lastSurfacedAt": {
      "type": "string"
    }
  },
  "required": [
    "chatRoomId",
    "roomHandleKind",
    "roomHandleRef",
    "surfacedParticipantRef",
    "ownerUserId",
    "callableByParticipantRefs",
    "executionReady",
    "continuityState",
    "sourceEventIds",
    "asOfEventId",
    "lastSurfacedAt"
  ]
}

ChatAttendantServiceState

{
  "type": "object",
  "properties": {
    "chatRoomId": {
      "type": "string"
    },
    "asOfEventId": {
      "type": [
        "string",
        "null"
      ]
    },
    "handles": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ChatAttendantHandleView"
      }
    },
    "activeSceneRef": {
      "type": [
        "string",
        "null"
      ]
    },
    "activeSceneHandleRef": {
      "type": [
        "string",
        "null"
      ]
    },
    "lastDecision": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/ChatAttendantDecision"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "chatRoomId",
    "asOfEventId",
    "handles",
    "activeSceneRef",
    "activeSceneHandleRef",
    "lastDecision"
  ]
}

ChatAutonomyBudget

{
  "type": "object",
  "properties": {
    "sourceInputId": {
      "type": "string"
    },
    "maxVisibleActorTurns": {
      "type": "number"
    },
    "visibleActorTurnsUsed": {
      "type": "number"
    },
    "maxAutonomousDepth": {
      "type": "number"
    },
    "autonomousDepthUsed": {
      "type": "number"
    },
    "maxValidatedHandoffs": {
      "type": "number"
    },
    "validatedHandoffsUsed": {
      "type": "number"
    },
    "deadlineAt": {
      "type": "string"
    },
    "activeSceneRef": {
      "type": "string"
    }
  },
  "required": [
    "sourceInputId",
    "maxVisibleActorTurns",
    "visibleActorTurnsUsed",
    "maxAutonomousDepth",
    "autonomousDepthUsed",
    "maxValidatedHandoffs",
    "validatedHandoffsUsed",
    "deadlineAt"
  ]
}

ChatContinuationGrant

{
  "type": "string",
  "enum": [
    "stop",
    "wait_for_human",
    "propose_handoff",
    "advance_scene",
    "return_receipt"
  ]
}

ChatDialogueHandle

{
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "const": "standing_participant"
        },
        "participantRef": {
          "type": "string"
        }
      },
      "required": [
        "kind",
        "participantRef"
      ]
    },
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "const": "imported_voice"
        },
        "importedVoiceId": {
          "type": "string"
        }
      },
      "required": [
        "kind",
        "importedVoiceId"
      ]
    }
  ]
}

ChatDialogueScene

{
  "type": "object",
  "properties": {
    "sceneRef": {
      "type": "string"
    },
    "chatRoomId": {
      "type": "string"
    },
    "initiatedByParticipantRef": {
      "type": "string"
    },
    "plannedInteractionPlanRef": {
      "type": "string"
    },
    "interactionStyleRef": {
      "$ref": "#/components/schemas/ChatInteractionStyleRef"
    },
    "handles": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ChatDialogueHandle"
      }
    },
    "activeHandle": {
      "$ref": "#/components/schemas/ChatDialogueHandle"
    },
    "turnCap": {
      "type": "number"
    },
    "turnsCompleted": {
      "type": "number"
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "completed",
        "cancelled",
        "timed_out"
      ]
    },
    "openedAt": {
      "type": "string"
    },
    "updatedAt": {
      "type": "string"
    },
    "closedAt": {
      "type": "string"
    },
    "closeReason": {
      "type": "string",
      "enum": [
        "turn_cap_reached",
        "initiator_cancelled",
        "policy_denied",
        "binding_closed",
        "actor_stop"
      ]
    }
  },
  "required": [
    "sceneRef",
    "chatRoomId",
    "initiatedByParticipantRef",
    "handles",
    "turnCap",
    "turnsCompleted",
    "status",
    "openedAt",
    "updatedAt"
  ]
}

ChatDirectionControlOutcome

{
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "outcome": {
          "type": "string",
          "const": "clarification"
        },
        "decisionRef": {
          "type": "string"
        },
        "clarification": {
          "$ref": "#/components/schemas/ChatAttendantClarificationArtifact"
        }
      },
      "required": [
        "outcome",
        "decisionRef",
        "clarification"
      ]
    },
    {
      "type": "object",
      "properties": {
        "outcome": {
          "type": "string",
          "enum": [
            "no_actor_turn",
            "wait",
            "stop"
          ]
        },
        "decisionRef": {
          "type": "string"
        },
        "chatRoomId": {
          "type": "string"
        },
        "sourceInputId": {
          "type": "string"
        },
        "reason": {
          "type": "string"
        }
      },
      "required": [
        "outcome",
        "decisionRef",
        "chatRoomId",
        "sourceInputId",
        "reason"
      ]
    }
  ]
}

ChatDirectionDecisionTrace

{
  "type": "object",
  "properties": {
    "kind": {
      "type": "string",
      "const": "chat.direction.decision_trace.v1"
    },
    "schemaVersion": {
      "type": "string",
      "const": "0.1"
    },
    "traceRef": {
      "type": "string"
    },
    "chatRoomId": {
      "type": "string"
    },
    "sourceInputId": {
      "type": "string"
    },
    "asOfEventId": {
      "type": "string"
    },
    "decisionRef": {
      "type": "string"
    },
    "assignmentId": {
      "type": "string"
    },
    "reportRef": {
      "type": "string"
    },
    "phase": {
      "$ref": "#/components/schemas/ChatDirectionDecisionTracePhase"
    },
    "selectedHandleRef": {
      "$ref": "#/components/schemas/ChatRoomHandleRef"
    },
    "initiativeSource": {
      "type": "string",
      "enum": [
        "explicit_reply",
        "explicit_handle",
        "mention_ref",
        "active_scene",
        "semantic_relevance",
        "validated_handoff",
        "authorized_task_event"
      ]
    },
    "continuationGrant": {
      "$ref": "#/components/schemas/ChatContinuationGrant"
    },
    "plannedInteractionPlanRef": {
      "type": "string"
    },
    "interactionStyleRef": {
      "$ref": "#/components/schemas/ChatInteractionStyleRef"
    },
    "interactionStyleRoleBindings": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ChatInteractionStyleRoleBinding"
      }
    },
    "addresseeRefs": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ChatRoomHandleRef"
      }
    },
    "eligibility": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ChatDirectionEligibilityFact"
      }
    },
    "budget": {
      "$ref": "#/components/schemas/ChatAutonomyBudget"
    },
    "draftVerdict": {
      "$ref": "#/components/schemas/ChatDirectionDraftVerdict"
    },
    "continuationDisposition": {
      "type": "string",
      "enum": [
        "stop",
        "wait_for_human",
        "continue_assigned_style",
        "advance_active_style"
      ]
    },
    "outcome": {
      "$ref": "#/components/schemas/ChatDirectionDecisionTraceOutcome"
    },
    "declineCode": {
      "$ref": "#/components/schemas/ChatDirectionDeclineCode"
    },
    "declineEvidence": {
      "$ref": "#/components/schemas/ChatDirectionDeclineEvidence"
    },
    "scene": {
      "type": "object",
      "properties": {
        "sceneRef": {
          "type": "string"
        },
        "styleRef": {
          "$ref": "#/components/schemas/ChatInteractionStyleRef"
        },
        "stepIndex": {
          "type": "number"
        },
        "turnCap": {
          "type": "number"
        },
        "turnsCompleted": {
          "type": "number"
        },
        "status": {
          "type": "string",
          "enum": [
            "active",
            "completed",
            "cancelled",
            "timed_out"
          ]
        },
        "closeReason": {
          "type": "string",
          "enum": [
            "turn_cap_reached",
            "initiator_cancelled",
            "policy_denied",
            "binding_closed",
            "actor_stop"
          ]
        }
      },
      "required": [
        "sceneRef",
        "styleRef",
        "stepIndex",
        "turnCap",
        "turnsCompleted",
        "status"
      ]
    },
    "createdAt": {
      "type": "string"
    }
  },
  "required": [
    "kind",
    "schemaVersion",
    "traceRef",
    "chatRoomId",
    "sourceInputId",
    "asOfEventId",
    "decisionRef",
    "phase",
    "addresseeRefs",
    "eligibility",
    "budget",
    "outcome",
    "createdAt"
  ]
}

ChatDirectionDecisionTraceOutcome

{
  "type": "string",
  "enum": [
    "granted",
    "scene_opened",
    "scene_advanced",
    "scene_closed",
    "declined"
  ]
}

ChatDirectionDecisionTracePhase

{
  "type": "string",
  "enum": [
    "pre_dispatch",
    "post_turn",
    "scene_step"
  ]
}

ChatDirectionDeclineCode

{
  "type": "string",
  "enum": [
    "pool.binding_incomplete",
    "pool.card_unresolvable",
    "pool.card_not_bindable",
    "pool.tier_frame_excluded",
    "pool.assembly_failed",
    "capability.handoff_speech_act_absent",
    "capability.initiative_explicit_only",
    "capability.posture_not_allowed",
    "capability.speech_act_not_allowed",
    "budget.scene_active",
    "budget.visible_turns_exhausted",
    "budget.autonomous_depth_exhausted",
    "budget.validated_handoffs_exhausted",
    "budget.deadline_exceeded",
    "draft.verdict_absent",
    "draft.instruction_absent",
    "draft.tag_absent",
    "draft.tag_unterminated",
    "draft.parse_failed",
    "draft.schema_invalid",
    "draft.suppressed_terminal_guard",
    "draft.fallback_synthesized",
    "report.source_status_not_accepted",
    "report.continuation_not_handoff",
    "report.handoff_absent",
    "partner.not_in_pool",
    "partner.not_imported_upc",
    "partner.not_ready",
    "partner.same_as_opener",
    "partner.initiative_explicit_only",
    "partner.posture_not_allowed",
    "partner.speech_act_not_allowed",
    "partner.handle_unmappable",
    "validator.declined",
    "validator.timeout",
    "validator.confidence_below_floor",
    "sequencer.turn_cap_reached",
    "sequencer.actor_stop",
    "sequencer.scene_lost",
    "sequencer.projection_failed",
    "sequencer.opener_message_absent",
    "sequencer.deadline_exceeded",
    "selection.no_actor_selected",
    "selection.clarification_required",
    "selection.ambiguous"
  ]
}

ChatDirectionDeclineEvidence

{
  "type": "object",
  "additionalProperties": {
    "type": [
      "string",
      "number",
      "boolean",
      "null"
    ]
  }
}

ChatDirectionDraftVerdict

{
  "type": "object",
  "properties": {
    "kind": {
      "type": "string",
      "const": "chat.direction.draft_verdict.v1"
    },
    "schemaVersion": {
      "type": "string",
      "const": "0.1"
    },
    "code": {
      "$ref": "#/components/schemas/ChatDirectionDraftVerdictCode"
    },
    "cognitionSupplied": {
      "type": "boolean",
      "description": "`chatRoomCognition` reached the source lane's PEE input."
    },
    "instructionInPrompt": {
      "type": "boolean",
      "description": "The composed system prompt carried the report-draft instruction block."
    },
    "controlTagPresent": {
      "type": "boolean"
    },
    "closeTagPresent": {
      "type": "boolean"
    },
    "parsed": {
      "type": "boolean"
    },
    "schemaValid": {
      "type": "boolean"
    },
    "suppressedByTerminalGuard": {
      "type": "boolean"
    },
    "terminalReason": {
      "type": "string",
      "enum": [
        "empty_output",
        "boilerplate",
        "greeting_off_contract",
        "thin_substrate"
      ]
    },
    "sourceDraftStatus": {
      "type": "string",
      "enum": [
        "accepted",
        "rejected",
        "fallback_synthesized",
        "absent"
      ],
      "description": "The report status that the room owner will persist for the final turn report if it trusts this verdict as-is. `draft.verdict_absent` uses the reserved `'absent'` marker until the room owner resolves the fallback."
    },
    "visibleTextLength": {
      "type": "number"
    }
  },
  "required": [
    "kind",
    "schemaVersion",
    "code",
    "cognitionSupplied",
    "instructionInPrompt",
    "controlTagPresent",
    "closeTagPresent",
    "parsed",
    "schemaValid",
    "suppressedByTerminalGuard",
    "sourceDraftStatus",
    "visibleTextLength"
  ]
}

ChatDirectionDraftVerdictCode

{
  "type": "string",
  "enum": [
    "draft.accepted",
    "draft.verdict_absent",
    "draft.instruction_absent",
    "draft.tag_absent",
    "draft.tag_unterminated",
    "draft.parse_failed",
    "draft.schema_invalid",
    "draft.suppressed_terminal_guard",
    "draft.fallback_synthesized"
  ]
}

ChatDirectionEligibilityFact

{
  "type": "object",
  "properties": {
    "handleRef": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/ChatRoomHandleRef"
        },
        {
          "type": "null"
        }
      ]
    },
    "importedVoiceId": {
      "type": "string"
    },
    "displayLabel": {
      "type": "string"
    },
    "actorClass": {
      "anyOf": [
        {
          "type": "object",
          "properties": {}
        },
        {
          "type": "object",
          "properties": {}
        },
        {
          "type": "object",
          "properties": {}
        },
        {
          "type": "object",
          "properties": {}
        },
        {
          "type": "string",
          "const": "unresolved"
        }
      ]
    },
    "admitted": {
      "type": "boolean"
    },
    "voiceTier": {
      "type": "string",
      "enum": [
        "sentient_self",
        "sentient_place",
        "aware_object",
        "inert_named",
        "concept"
      ]
    },
    "initiativeCeiling": {
      "anyOf": [
        {
          "type": "object",
          "properties": {}
        },
        {
          "type": "object",
          "properties": {}
        },
        {
          "type": "object",
          "properties": {}
        },
        {
          "type": "object",
          "properties": {}
        }
      ]
    },
    "allowsHandoffSpeechAct": {
      "type": "boolean"
    },
    "continuityState": {
      "anyOf": [
        {
          "type": "object",
          "properties": {}
        },
        {
          "type": "object",
          "properties": {}
        },
        {
          "type": "object",
          "properties": {}
        }
      ]
    },
    "dropCode": {
      "$ref": "#/components/schemas/ChatDirectionDeclineCode"
    },
    "dropDetail": {
      "type": "string"
    }
  },
  "required": [
    "handleRef",
    "actorClass",
    "admitted"
  ]
}

ChatEphemeralSignal

{
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "signalKind": {
          "type": "string",
          "const": "presence"
        },
        "chatRoomId": {
          "type": "string"
        },
        "subscriberIdentityRef": {
          "$ref": "#/components/schemas/ChatSubscriberIdentityRef"
        },
        "participantRef": {
          "type": "string"
        },
        "emittedByTargetRef": {
          "type": "string"
        },
        "exposure": {
          "type": "string",
          "enum": [
            "hidden_operational",
            "room_visible"
          ]
        },
        "presenceState": {
          "type": "string",
          "const": "present"
        },
        "expiresAt": {
          "type": "string"
        },
        "refreshedAt": {
          "type": "string"
        }
      },
      "required": [
        "signalKind",
        "chatRoomId",
        "subscriberIdentityRef",
        "participantRef",
        "emittedByTargetRef",
        "exposure",
        "presenceState",
        "expiresAt",
        "refreshedAt"
      ]
    },
    {
      "type": "object",
      "properties": {
        "signalKind": {
          "type": "string",
          "const": "composing"
        },
        "chatRoomId": {
          "type": "string"
        },
        "subscriberIdentityRef": {
          "$ref": "#/components/schemas/ChatSubscriberIdentityRef"
        },
        "participantRef": {
          "type": "string"
        },
        "emittedByTargetRef": {
          "type": "string"
        },
        "exposure": {
          "type": "string",
          "enum": [
            "self_only",
            "room_visible"
          ]
        },
        "composeKind": {
          "type": "string",
          "enum": [
            "message",
            "turn",
            "edit"
          ]
        },
        "expiresAt": {
          "type": "string"
        },
        "refreshedAt": {
          "type": "string"
        }
      },
      "required": [
        "signalKind",
        "chatRoomId",
        "subscriberIdentityRef",
        "participantRef",
        "emittedByTargetRef",
        "exposure",
        "composeKind",
        "expiresAt",
        "refreshedAt"
      ]
    },
    {
      "type": "object",
      "properties": {
        "signalKind": {
          "type": "string",
          "const": "delivery_hint"
        },
        "chatRoomId": {
          "type": "string"
        },
        "subscriberIdentityRef": {
          "$ref": "#/components/schemas/ChatSubscriberIdentityRef"
        },
        "participantRef": {
          "type": "string"
        },
        "messageId": {
          "type": "string"
        },
        "hintKind": {
          "type": "string",
          "enum": [
            "delivered_pulse",
            "displayed_pulse"
          ]
        },
        "exposure": {
          "type": "string",
          "const": "self_only"
        },
        "expiresAt": {
          "type": "string"
        }
      },
      "required": [
        "signalKind",
        "chatRoomId",
        "subscriberIdentityRef",
        "participantRef",
        "messageId",
        "hintKind",
        "exposure",
        "expiresAt"
      ]
    }
  ]
}

ChatFeedEntry

{
  "type": "object",
  "properties": {
    "eventKind": {
      "type": "string",
      "enum": [
        "session.opened",
        "world.admitted",
        "world.removed",
        "participant.joined",
        "participant.left",
        "participant.execution.updated",
        "message.created",
        "turn.started",
        "turn.snapshot.completed",
        "persona.stream.delta",
        "persona.stream.completed",
        "external_helper.introduced",
        "external_helper.revoked",
        "imported_voice.bound",
        "imported_voice.closed",
        "dialogue_scene.opened",
        "dialogue_scene.advanced",
        "dialogue_scene.closed",
        "linked_session.opened",
        "linked_session.updated"
      ]
    },
    "eventId": {
      "type": "string"
    },
    "sessionId": {
      "type": "string"
    },
    "occurredAt": {
      "type": "string"
    },
    "actorRef": {
      "type": "string"
    },
    "participantRef": {
      "type": "string"
    },
    "admittedWorldId": {
      "type": "string"
    },
    "importedVoiceId": {
      "type": "string"
    },
    "introductionRef": {
      "type": "string"
    },
    "surfacedParticipantRef": {
      "type": "string"
    },
    "messageId": {
      "type": "string"
    },
    "turnId": {
      "type": "string"
    },
    "sceneRef": {
      "type": "string"
    },
    "activeHandleRef": {
      "type": "string"
    },
    "linkedSessionRef": {
      "type": "string"
    },
    "executionStatus": {
      "type": "string",
      "enum": [
        "active",
        "suspended",
        "closed"
      ]
    },
    "turnsCompleted": {
      "type": "number"
    },
    "sceneStatus": {
      "type": "string",
      "enum": [
        "active",
        "completed",
        "cancelled",
        "timed_out"
      ]
    },
    "closeReason": {
      "type": "string"
    },
    "message": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "schemaVersion": {
              "type": "string",
              "const": "0.1"
            },
            "kindRecord": {
              "type": "string",
              "const": "ham.message"
            },
            "worldId": {
              "type": "string"
            },
            "sessionId": {
              "type": "string"
            },
            "messageId": {
              "type": "string"
            },
            "actorId": {
              "type": "string"
            },
            "principalUserId": {
              "type": "string"
            },
            "messageKind": {
              "type": "string",
              "enum": [
                "text",
                "command",
                "note",
                "review_note",
                "system"
              ]
            },
            "visibility": {
              "type": "string",
              "enum": [
                "private",
                "principal",
                "world_internal",
                "world",
                "world_public",
                "cross_world"
              ]
            },
            "createdAt": {
              "type": "string"
            },
            "replyToMessageId": {
              "type": [
                "string",
                "null"
              ]
            },
            "quoteTargetMessageId": {
              "type": "string"
            },
            "mentionRefs": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "authorMainWorldId": {
              "type": "string",
              "description": "Author's durable main/home world for user-row world-focus provenance (`author_main_world`). Stamped at write for human authors; not room-home."
            },
            "content": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string"
                  },
                  "text": {
                    "type": "string"
                  }
                },
                "required": [
                  "kind",
                  "text"
                ]
              }
            },
            "attachments": {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "attachmentRef": {
                        "type": "string"
                      },
                      "messageId": {
                        "type": "string"
                      },
                      "mediaKind": {
                        "type": "string",
                        "enum": [
                          "image",
                          "video",
                          "audio",
                          "document",
                          "file",
                          "voice_note",
                          "link_preview"
                        ]
                      },
                      "payloadRef": {
                        "type": "string"
                      },
                      "previewRef": {
                        "type": "string"
                      },
                      "transcriptRef": {
                        "type": "string"
                      },
                      "processingState": {
                        "type": "string",
                        "enum": [
                          "pending",
                          "available",
                          "failed",
                          "removed"
                        ]
                      },
                      "visibility": {
                        "type": "string"
                      },
                      "createdAt": {
                        "type": "string"
                      },
                      "linkPreview": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "description": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "imageUrl": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "siteName": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "title",
                          "description",
                          "imageUrl",
                          "siteName"
                        ],
                        "description": "Server-unfurled Open Graph / site-card metadata for `link_preview`. Clients must not scrape remote pages; they render this snapshot only."
                      }
                    },
                    "required": [
                      "attachmentRef",
                      "messageId",
                      "mediaKind",
                      "payloadRef",
                      "processingState",
                      "createdAt"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "attachmentRef": {
                        "type": "string"
                      },
                      "messageId": {
                        "type": "string"
                      },
                      "mediaKind": {
                        "type": "string",
                        "const": "kslp_playlist"
                      },
                      "payloadRef": {
                        "type": "string"
                      },
                      "previewRef": {
                        "not": {}
                      },
                      "transcriptRef": {
                        "not": {}
                      },
                      "processingState": {
                        "type": "string",
                        "const": "available"
                      },
                      "visibility": {
                        "type": "string",
                        "const": "room"
                      },
                      "createdAt": {
                        "type": "string"
                      },
                      "linkPreview": {
                        "not": {}
                      },
                      "playlistShare": {
                        "type": "object",
                        "properties": {
                          "snapshotId": {
                            "type": "string"
                          },
                          "sourceRevision": {
                            "type": "number"
                          },
                          "name": {
                            "type": "string"
                          },
                          "orderedRefs": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "trackCount": {
                            "type": "number"
                          },
                          "createdAt": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "snapshotId",
                          "sourceRevision",
                          "name",
                          "orderedRefs",
                          "trackCount",
                          "createdAt"
                        ]
                      }
                    },
                    "required": [
                      "attachmentRef",
                      "messageId",
                      "mediaKind",
                      "payloadRef",
                      "processingState",
                      "visibility",
                      "createdAt",
                      "playlistShare"
                    ]
                  }
                ]
              }
            },
            "metadata": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "roomHandle": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "standing_participant"
                            },
                            "participantRef": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "kind",
                            "participantRef"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "imported_voice"
                            },
                            "importedVoiceId": {
                              "type": "string"
                            },
                            "surfacedParticipantRef": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "kind",
                            "importedVoiceId",
                            "surfacedParticipantRef"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "introduced_helper"
                            },
                            "introductionRef": {
                              "type": "string"
                            },
                            "surfacedParticipantRef": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "kind",
                            "introductionRef",
                            "surfacedParticipantRef"
                          ]
                        }
                      ]
                    },
                    "invocationProvenance": {
                      "type": "object",
                      "properties": {
                        "invokedBy": {
                          "type": "string"
                        },
                        "speakerKind": {
                          "type": "string",
                          "enum": [
                            "standing_participant",
                            "imported_voice",
                            "introduced_helper"
                          ]
                        },
                        "standingParticipantRef": {
                          "type": "string"
                        },
                        "mediatorParticipantRef": {
                          "type": "string"
                        },
                        "worldPersonaRef": {
                          "type": "string"
                        },
                        "streamedPersonaRef": {
                          "type": "string"
                        },
                        "importedVoiceId": {
                          "type": "string"
                        },
                        "sourceNodeRef": {
                          "type": "string"
                        },
                        "cardSessionId": {
                          "type": "string"
                        },
                        "introductionRef": {
                          "type": "string"
                        },
                        "consultedWorldId": {
                          "type": "string"
                        },
                        "continuityMode": {
                          "type": "string",
                          "const": "reused_source_session"
                        },
                        "authorityBasis": {
                          "type": "string",
                          "enum": [
                            "standing_execution_binding",
                            "imported_voice_binding",
                            "external_agent_introduction"
                          ]
                        },
                        "mode": {
                          "type": "string",
                          "enum": [
                            "standing_reply",
                            "imported_voice",
                            "introduced_helper",
                            "linked_world_work"
                          ]
                        },
                        "sourceArtifactRefs": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "linkedSessionRef": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "invokedBy",
                        "speakerKind",
                        "consultedWorldId",
                        "continuityMode",
                        "authorityBasis",
                        "mode"
                      ]
                    },
                    "sourceTurn": {
                      "type": "object",
                      "properties": {
                        "worldId": {
                          "type": "string"
                        },
                        "sessionId": {
                          "type": "string"
                        },
                        "turnId": {
                          "type": "string"
                        },
                        "snapshotRef": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "worldId",
                        "sessionId",
                        "turnId",
                        "snapshotRef"
                      ]
                    },
                    "sourceContinuationContext": {
                      "type": "object",
                      "properties": {
                        "chatRoomId": {
                          "type": "string"
                        },
                        "activeHandle": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "standing_participant"
                                },
                                "participantRef": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "kind",
                                "participantRef"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "imported_voice"
                                },
                                "importedVoiceId": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "kind",
                                "importedVoiceId"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "introduced_helper"
                                },
                                "introductionRef": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "kind",
                                "introductionRef"
                              ]
                            }
                          ]
                        },
                        "roomWindow": {
                          "type": "object",
                          "properties": {
                            "oldestFirst": {
                              "type": "boolean",
                              "const": true
                            },
                            "startInclusiveId": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "endInclusiveId": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "items": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "itemRef": {
                                    "type": "string"
                                  },
                                  "normalizedRole": {
                                    "type": "string",
                                    "enum": [
                                      "user",
                                      "assistant"
                                    ]
                                  },
                                  "preservedSpeakerLabel": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "itemRef",
                                  "normalizedRole"
                                ]
                              }
                            },
                            "truncated": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "oldestFirst",
                            "startInclusiveId",
                            "endInclusiveId",
                            "items",
                            "truncated"
                          ]
                        },
                        "sourceWindow": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "oldestFirst": {
                                  "type": "boolean",
                                  "const": true
                                },
                                "startInclusiveId": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "endInclusiveId": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "items": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "itemRef": {
                                        "type": "string"
                                      },
                                      "normalizedRole": {
                                        "type": "string",
                                        "enum": [
                                          "user",
                                          "assistant"
                                        ]
                                      },
                                      "preservedSpeakerLabel": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "itemRef",
                                      "normalizedRole"
                                    ]
                                  }
                                },
                                "truncated": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "oldestFirst",
                                "startInclusiveId",
                                "endInclusiveId",
                                "items",
                                "truncated"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "carriedSummary": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "none"
                                }
                              },
                              "required": [
                                "kind"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "source_session_summary"
                                },
                                "summaryRef": {
                                  "type": "string"
                                },
                                "sourceSessionId": {
                                  "type": "string"
                                },
                                "summarizedThroughId": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "kind",
                                "summaryRef",
                                "sourceSessionId",
                                "summarizedThroughId"
                              ]
                            }
                          ]
                        },
                        "assembledAtEventId": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "chatRoomId",
                        "activeHandle",
                        "roomWindow",
                        "sourceWindow",
                        "carriedSummary",
                        "assembledAtEventId"
                      ]
                    },
                    "directionDecisionRef": {
                      "type": "string"
                    },
                    "roomActorAssignmentRef": {
                      "type": "string"
                    },
                    "actorTurnReportRef": {
                      "type": "string"
                    },
                    "sourceLane": {
                      "type": "string",
                      "enum": [
                        "world_chat",
                        "payload_guided_upc",
                        "introduced_helper",
                        "registered_worker"
                      ]
                    },
                    "annotationRef": {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "emission_surface_bundle"
                        },
                        "artifactKind": {
                          "type": "string",
                          "const": "surface.snapshot.bundle"
                        },
                        "sourceTurnSnapshotRef": {
                          "type": "string"
                        },
                        "artifactRef": {
                          "type": "string"
                        },
                        "emissionSurfaceRef": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "kind",
                        "artifactKind",
                        "sourceTurnSnapshotRef",
                        "artifactRef",
                        "emissionSurfaceRef"
                      ]
                    },
                    "sceneRef": {
                      "type": "string"
                    }
                  }
                },
                {
                  "type": "object",
                  "additionalProperties": {}
                }
              ]
            },
            "interactionBehavior": {
              "type": "object",
              "properties": {
                "allowReply": {
                  "type": "boolean"
                },
                "allowQuote": {
                  "type": "boolean"
                },
                "allowMention": {
                  "type": "boolean"
                },
                "allowReaction": {
                  "type": "boolean"
                },
                "allowPin": {
                  "type": "boolean"
                },
                "allowEdit": {
                  "type": "boolean"
                },
                "allowDelete": {
                  "type": "boolean"
                }
              },
              "required": [
                "allowReply",
                "allowQuote",
                "allowMention",
                "allowReaction",
                "allowPin",
                "allowEdit",
                "allowDelete"
              ]
            },
            "reactionState": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "mutationId": {
                    "type": "string"
                  },
                  "targetMessageId": {
                    "type": "string"
                  },
                  "emoji": {
                    "type": "string"
                  },
                  "actorRef": {
                    "type": "string"
                  },
                  "createdAt": {
                    "type": "string"
                  },
                  "removedAt": {
                    "type": "string"
                  }
                },
                "required": [
                  "mutationId",
                  "targetMessageId",
                  "emoji",
                  "actorRef",
                  "createdAt"
                ]
              }
            },
            "pinState": {
              "type": "object",
              "properties": {
                "mutationId": {
                  "type": "string"
                },
                "targetMessageId": {
                  "type": "string"
                },
                "actorRef": {
                  "type": "string"
                },
                "pinned": {
                  "type": "boolean"
                },
                "updatedAt": {
                  "type": "string"
                }
              },
              "required": [
                "mutationId",
                "targetMessageId",
                "actorRef",
                "pinned",
                "updatedAt"
              ]
            },
            "editHistory": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "mutationId": {
                    "type": "string"
                  },
                  "actorRef": {
                    "type": "string"
                  },
                  "editedAt": {
                    "type": "string"
                  },
                  "previousText": {
                    "type": "string"
                  },
                  "nextText": {
                    "type": "string"
                  }
                },
                "required": [
                  "mutationId",
                  "actorRef",
                  "editedAt",
                  "previousText",
                  "nextText"
                ]
              }
            },
            "deleteTombstone": {
              "type": "object",
              "properties": {
                "mutationId": {
                  "type": "string"
                },
                "actorRef": {
                  "type": "string"
                },
                "deletedAt": {
                  "type": "string"
                },
                "reason": {
                  "type": "string"
                }
              },
              "required": [
                "mutationId",
                "actorRef",
                "deletedAt"
              ]
            }
          },
          "required": [
            "schemaVersion",
            "kindRecord",
            "worldId",
            "sessionId",
            "messageId",
            "actorId",
            "principalUserId",
            "messageKind",
            "visibility",
            "createdAt",
            "replyToMessageId",
            "content"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "transcript": {
      "anyOf": [
        {
          "type": "object",
          "additionalProperties": {}
        },
        {
          "type": "null"
        }
      ]
    },
    "attachments": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "attachmentRef": {
                "type": "string"
              },
              "messageId": {
                "type": "string"
              },
              "mediaKind": {
                "type": "string",
                "enum": [
                  "image",
                  "video",
                  "audio",
                  "document",
                  "file",
                  "voice_note",
                  "link_preview"
                ]
              },
              "payloadRef": {
                "type": "string"
              },
              "previewRef": {
                "type": "string"
              },
              "transcriptRef": {
                "type": "string"
              },
              "processingState": {
                "type": "string",
                "enum": [
                  "pending",
                  "available",
                  "failed",
                  "removed"
                ]
              },
              "visibility": {
                "type": "string"
              },
              "createdAt": {
                "type": "string"
              },
              "linkPreview": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "imageUrl": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "siteName": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "title",
                  "description",
                  "imageUrl",
                  "siteName"
                ],
                "description": "Server-unfurled Open Graph / site-card metadata for `link_preview`. Clients must not scrape remote pages; they render this snapshot only."
              }
            },
            "required": [
              "attachmentRef",
              "messageId",
              "mediaKind",
              "payloadRef",
              "processingState",
              "createdAt"
            ]
          },
          {
            "type": "object",
            "properties": {
              "attachmentRef": {
                "type": "string"
              },
              "messageId": {
                "type": "string"
              },
              "mediaKind": {
                "type": "string",
                "const": "kslp_playlist"
              },
              "payloadRef": {
                "type": "string"
              },
              "previewRef": {
                "not": {}
              },
              "transcriptRef": {
                "not": {}
              },
              "processingState": {
                "type": "string",
                "const": "available"
              },
              "visibility": {
                "type": "string",
                "const": "room"
              },
              "createdAt": {
                "type": "string"
              },
              "linkPreview": {
                "not": {}
              },
              "playlistShare": {
                "type": "object",
                "properties": {
                  "snapshotId": {
                    "type": "string"
                  },
                  "sourceRevision": {
                    "type": "number"
                  },
                  "name": {
                    "type": "string"
                  },
                  "orderedRefs": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "trackCount": {
                    "type": "number"
                  },
                  "createdAt": {
                    "type": "string"
                  }
                },
                "required": [
                  "snapshotId",
                  "sourceRevision",
                  "name",
                  "orderedRefs",
                  "trackCount",
                  "createdAt"
                ]
              }
            },
            "required": [
              "attachmentRef",
              "messageId",
              "mediaKind",
              "payloadRef",
              "processingState",
              "visibility",
              "createdAt",
              "playlistShare"
            ]
          }
        ]
      }
    },
    "contributors": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": {}
      }
    },
    "deleted": {
      "type": "boolean"
    }
  },
  "required": [
    "eventId",
    "eventKind",
    "occurredAt",
    "sessionId"
  ]
}

ChatFeedEvent

{
  "type": "object",
  "properties": {
    "eventKind": {
      "$ref": "#/components/schemas/ChatFeedEventKind"
    },
    "eventId": {
      "type": "string"
    },
    "sessionId": {
      "type": "string"
    },
    "occurredAt": {
      "type": "string"
    },
    "actorRef": {
      "type": "string"
    },
    "participantRef": {
      "type": "string"
    },
    "admittedWorldId": {
      "type": "string"
    },
    "importedVoiceId": {
      "type": "string"
    },
    "introductionRef": {
      "type": "string"
    },
    "surfacedParticipantRef": {
      "type": "string"
    },
    "messageId": {
      "type": "string"
    },
    "turnId": {
      "type": "string"
    },
    "sceneRef": {
      "type": "string"
    },
    "activeHandleRef": {
      "type": "string"
    },
    "linkedSessionRef": {
      "type": "string"
    },
    "executionStatus": {
      "type": "string",
      "enum": [
        "active",
        "suspended",
        "closed"
      ]
    },
    "turnsCompleted": {
      "type": "number"
    },
    "sceneStatus": {
      "type": "string",
      "enum": [
        "active",
        "completed",
        "cancelled",
        "timed_out"
      ]
    },
    "closeReason": {
      "type": "string"
    }
  },
  "required": [
    "eventKind",
    "eventId",
    "sessionId",
    "occurredAt"
  ]
}

ChatFeedEventKind

{
  "type": "string",
  "enum": [
    "session.opened",
    "world.admitted",
    "world.removed",
    "participant.joined",
    "participant.left",
    "participant.execution.updated",
    "message.created",
    "turn.started",
    "turn.snapshot.completed",
    "persona.stream.delta",
    "persona.stream.completed",
    "external_helper.introduced",
    "external_helper.revoked",
    "imported_voice.bound",
    "imported_voice.closed",
    "dialogue_scene.opened",
    "dialogue_scene.advanced",
    "dialogue_scene.closed",
    "linked_session.opened",
    "linked_session.updated"
  ]
}

ChatFeedLiveEntry

{
  "type": "object",
  "properties": {
    "eventKind": {
      "$ref": "#/components/schemas/ChatFeedLiveEventKind"
    },
    "eventId": {
      "type": "string"
    },
    "sessionId": {
      "type": "string"
    },
    "occurredAt": {
      "type": "string"
    },
    "actorRef": {
      "type": "string"
    },
    "participantRef": {
      "type": "string"
    },
    "admittedWorldId": {
      "type": "string"
    },
    "importedVoiceId": {
      "type": "string"
    },
    "introductionRef": {
      "type": "string"
    },
    "surfacedParticipantRef": {
      "type": "string"
    },
    "messageId": {
      "type": "string"
    },
    "turnId": {
      "type": "string"
    },
    "sceneRef": {
      "type": "string"
    },
    "activeHandleRef": {
      "type": "string"
    },
    "linkedSessionRef": {
      "type": "string"
    },
    "executionStatus": {
      "type": "string",
      "enum": [
        "active",
        "suspended",
        "closed"
      ]
    },
    "turnsCompleted": {
      "type": "number"
    },
    "sceneStatus": {
      "type": "string",
      "enum": [
        "active",
        "completed",
        "cancelled",
        "timed_out"
      ]
    },
    "closeReason": {
      "type": "string"
    },
    "stream": {
      "type": "object",
      "properties": {
        "sequence": {
          "type": "number",
          "description": "Order of this event within its turn, starting at 1."
        },
        "sourceMessageId": {
          "type": "string",
          "description": "The room message the turn answers."
        },
        "frame": {
          "type": "object",
          "additionalProperties": {},
          "description": "`persona.stream.delta`: the frame exactly as `/continue` streams it."
        },
        "status": {
          "$ref": "#/components/schemas/ChatFeedStreamStatus",
          "description": "`persona.stream.completed`: how the turn's stream ended."
        }
      },
      "required": [
        "sequence"
      ]
    }
  },
  "required": [
    "eventId",
    "eventKind",
    "occurredAt",
    "sessionId",
    "stream",
    "turnId"
  ],
  "description": "In-flight room feed event (HAM_CHAT §4.6a). While a room reply is generated, `turn.started`, `persona.stream.delta`, and `persona.stream.completed` ride the room feed stream. They are not durable feed truth: `getFeed` never returns them, they carry no resume id, and `turn.snapshot.completed` remains the reply's commit boundary."
}

ChatFeedLiveEventKind

{
  "type": "string",
  "enum": [
    "turn.started",
    "persona.stream.delta",
    "persona.stream.completed"
  ]
}

ChatFeedStreamStatus

{
  "type": "string",
  "enum": [
    "completed",
    "failed"
  ]
}

ChatFirstContactRequest

{
  "type": "object",
  "properties": {
    "requestRef": {
      "type": "string"
    },
    "requesterAddressRef": {
      "type": "string"
    },
    "requesterAddressKind": {
      "type": "string",
      "enum": [
        "user",
        "persona",
        "external_agent"
      ]
    },
    "recipientUserId": {
      "type": "string"
    },
    "proposedRoomId": {
      "type": "string"
    },
    "proposedHomeChatWorldId": {
      "type": "string"
    },
    "stagedFirstMessageRef": {
      "type": "string"
    },
    "subject": {
      "type": "string"
    },
    "status": {
      "$ref": "#/components/schemas/ChatFirstContactRequestStatus"
    },
    "requestedAt": {
      "type": "string"
    },
    "decidedAt": {
      "type": "string"
    },
    "decisionReason": {
      "type": "string"
    }
  },
  "required": [
    "requestRef",
    "requesterAddressRef",
    "requesterAddressKind",
    "recipientUserId",
    "proposedHomeChatWorldId",
    "status",
    "requestedAt"
  ]
}

ChatFirstContactRequestStatus

{
  "type": "string",
  "enum": [
    "pending_approval",
    "accepted",
    "declined",
    "blocked",
    "reported_spam"
  ]
}

ChatHeadlessCueEnvelope

{
  "type": "object",
  "properties": {
    "chatRoomId": {
      "type": "string"
    },
    "asOfEventId": {
      "type": "string"
    },
    "sourceMessageId": {
      "type": "string"
    },
    "cues": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ChatReactiveCueState"
      }
    }
  },
  "required": [
    "chatRoomId",
    "asOfEventId",
    "sourceMessageId",
    "cues"
  ]
}

ChatHuelvaOverlay

{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "const": "ok"
    },
    "topic": {
      "type": "string",
      "const": "route_truth_proof_and_approval"
    },
    "focusLabel": {
      "type": "string"
    },
    "shellResultKind": {
      "type": "string",
      "enum": [
        "explanation",
        "clarification"
      ]
    },
    "explanationSummary": {
      "type": "string"
    },
    "roomContext": {
      "type": "object",
      "properties": {
        "chatRoomId": {
          "type": "string"
        },
        "roomHomeWorldId": {
          "type": "string"
        },
        "viewerParticipantRef": {
          "type": "string"
        },
        "currentSessionId": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "chatRoomId",
        "roomHomeWorldId",
        "viewerParticipantRef",
        "currentSessionId"
      ]
    },
    "entryCount": {
      "type": "number"
    },
    "answerCount": {
      "type": "number"
    },
    "runtimeFactCount": {
      "type": "number"
    },
    "contextPacketCount": {
      "type": "number"
    },
    "observationPacketKinds": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/HuelvaContextPacketKind"
      }
    },
    "operatorLookupPosture": {
      "$ref": "#/components/schemas/HuelvaLookupPosture"
    },
    "highlights": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "packet": {
      "$ref": "#/components/schemas/OperatorRuntimeSlicePacket"
    }
  },
  "required": [
    "status",
    "topic",
    "focusLabel",
    "shellResultKind",
    "explanationSummary",
    "roomContext",
    "entryCount",
    "answerCount",
    "runtimeFactCount",
    "contextPacketCount",
    "observationPacketKinds",
    "operatorLookupPosture",
    "highlights",
    "packet"
  ]
}

ChatImportedVoiceBinding

{
  "type": "object",
  "properties": {
    "importedVoiceId": {
      "type": "string"
    },
    "chatRoomId": {
      "type": "string"
    },
    "sourceKind": {
      "type": "string",
      "enum": [
        "mediated_world_voice",
        "upc"
      ]
    },
    "sourceIdentityRef": {
      "type": "string"
    },
    "surfacedParticipantRef": {
      "type": "string"
    },
    "displayLabel": {
      "type": "string"
    },
    "mediatorParticipantRef": {
      "type": "string"
    },
    "worldPersonaRef": {
      "type": "string"
    },
    "sourceWorldId": {
      "type": "string"
    },
    "sourceSessionId": {
      "type": "string"
    },
    "sourceNodeRef": {
      "type": "string"
    },
    "cardSessionId": {
      "type": "string"
    },
    "sourceVoiceTier": {
      "type": "string",
      "enum": [
        "sentient_self",
        "sentient_place",
        "aware_object",
        "inert_named",
        "concept",
        "scene_frame",
        "narrator_frame"
      ]
    },
    "avatarMediaRef": {
      "type": "string"
    },
    "avatarImageUrl": {
      "type": "string"
    },
    "introducedByMessageId": {
      "type": "string"
    },
    "introducedByTurnId": {
      "type": "string"
    },
    "latestContributionMessageId": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "closed"
      ]
    },
    "createdAt": {
      "type": "string"
    },
    "lastUsedAt": {
      "type": "string"
    },
    "closedAt": {
      "type": "string"
    },
    "closeReason": {
      "type": "string",
      "enum": [
        "mediator_removed",
        "world_removed",
        "explicit_close",
        "source_session_closed"
      ]
    }
  },
  "required": [
    "importedVoiceId",
    "chatRoomId",
    "sourceKind",
    "sourceIdentityRef",
    "surfacedParticipantRef",
    "displayLabel",
    "mediatorParticipantRef",
    "sourceWorldId",
    "sourceSessionId",
    "status",
    "createdAt",
    "lastUsedAt"
  ]
}

ChatInteractionStylePlan

{
  "type": "object",
  "properties": {
    "planRef": {
      "type": "string"
    },
    "styleRef": {
      "$ref": "#/components/schemas/ChatInteractionStyleRef"
    },
    "decisionRef": {
      "type": "string"
    },
    "sourceInputId": {
      "type": "string"
    },
    "openingAssignmentId": {
      "type": "string"
    },
    "roleBindings": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ChatInteractionStyleRoleBinding"
      }
    },
    "participantHandles": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ChatRoomHandleRef"
      }
    },
    "nextHandleRef": {
      "$ref": "#/components/schemas/ChatRoomHandleRef"
    },
    "turnCap": {
      "type": "number"
    },
    "turnsCompleted": {
      "type": "number"
    },
    "state": {
      "type": "string",
      "enum": [
        "planned",
        "active",
        "completed",
        "cancelled",
        "timed_out"
      ]
    }
  },
  "required": [
    "planRef",
    "styleRef",
    "decisionRef",
    "sourceInputId",
    "openingAssignmentId",
    "roleBindings",
    "participantHandles",
    "nextHandleRef",
    "turnCap",
    "turnsCompleted",
    "state"
  ]
}

ChatInteractionStyleRef

{
  "type": "string",
  "const": "bounded_pair_exchange.v1"
}

ChatInteractionStyleRoleBinding

{
  "type": "object",
  "properties": {
    "roleRef": {
      "type": "string"
    },
    "handleRef": {
      "$ref": "#/components/schemas/ChatRoomHandleRef"
    }
  },
  "required": [
    "roleRef",
    "handleRef"
  ]
}

ChatInviteRow

{
  "type": "object",
  "properties": {
    "inviteId": {
      "type": "string"
    },
    "chatRoomId": {
      "type": "string"
    },
    "invitedByParticipantRef": {
      "type": "string"
    },
    "invitedByUserId": {
      "type": "string"
    },
    "targetKind": {
      "type": "string",
      "enum": [
        "existing_user",
        "external_agent"
      ]
    },
    "invitedUserId": {
      "type": "string"
    },
    "invitedUsername": {
      "type": "string"
    },
    "externalAgentAddress": {
      "type": "string"
    },
    "displayName": {
      "type": "string"
    },
    "ownerUserId": {
      "type": "string"
    },
    "apiAccessGrantRef": {
      "type": "string"
    },
    "subject": {
      "type": "string"
    },
    "message": {
      "type": [
        "string",
        "null"
      ]
    },
    "proposedRole": {
      "type": "string",
      "enum": [
        "author",
        "assistant",
        "agent",
        "reviewer",
        "observer"
      ]
    },
    "status": {
      "$ref": "#/components/schemas/ChatInviteStatus"
    },
    "mayPostMessages": {
      "type": "boolean"
    },
    "mayReceiveWakeups": {
      "type": "boolean"
    },
    "mayAutoAnswer": {
      "type": "boolean"
    },
    "mayRunConsult": {
      "type": "boolean"
    },
    "consultWorldIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "worldPersonaRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "executeMode": {
      "type": "string",
      "enum": [
        "none",
        "separate_approval_required"
      ]
    },
    "createdAt": {
      "type": "string"
    },
    "updatedAt": {
      "type": "string"
    },
    "expiresAt": {
      "type": "string"
    },
    "respondedAt": {
      "type": "string"
    },
    "revokeReason": {
      "type": "string"
    }
  },
  "required": [
    "inviteId",
    "chatRoomId",
    "invitedByParticipantRef",
    "invitedByUserId",
    "targetKind",
    "proposedRole",
    "status",
    "createdAt",
    "updatedAt"
  ]
}

ChatInviteStatus

{
  "type": "string",
  "enum": [
    "pending",
    "accepted",
    "declined",
    "revoked",
    "expired"
  ]
}

ChatLauncherPayload

{
  "type": "object",
  "properties": {
    "rooms": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ChatLauncherRoom"
      }
    },
    "sourceWatermarks": {
      "type": "object",
      "properties": {
        "projectionCursorAsOf": {
          "type": "string"
        }
      }
    },
    "notification": {
      "type": "object",
      "properties": {
        "unreadRoomCount": {
          "type": "number"
        },
        "pendingRequestCount": {
          "type": "number"
        },
        "mentionCount": {
          "type": "number"
        }
      },
      "required": [
        "unreadRoomCount",
        "pendingRequestCount",
        "mentionCount"
      ]
    }
  },
  "required": [
    "rooms",
    "sourceWatermarks",
    "notification"
  ]
}

ChatLauncherRoom

{
  "type": "object",
  "properties": {
    "admittedWorldIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "primaryAdmittedWorldId": {
      "type": "string"
    },
    "primaryWorldPersonaRef": {
      "type": "string"
    },
    "worldLineRole": {
      "type": "string",
      "enum": [
        "canonical",
        "legacy_duplicate"
      ]
    },
    "chatRoomId": {
      "type": "string"
    },
    "currentSessionId": {
      "type": "string"
    },
    "latestActivityAt": {
      "type": "string"
    },
    "latestEventId": {
      "type": "string"
    },
    "latestMessageId": {
      "type": "string"
    },
    "inboxState": {
      "type": "string",
      "enum": [
        "active",
        "archived",
        "muted",
        "pinned",
        "hidden",
        "spam",
        "blocked"
      ]
    },
    "unreadCount": {
      "type": "number"
    },
    "mentionCount": {
      "type": "number"
    },
    "participantRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "participantLabels": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "participantAddressKinds": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "user",
          "persona",
          "external_agent"
        ]
      }
    },
    "latestMessagePreview": {
      "type": [
        "string",
        "null"
      ]
    },
    "hasPendingManagement": {
      "type": "boolean"
    },
    "title": {
      "type": "string"
    }
  },
  "required": [
    "admittedWorldIds",
    "chatRoomId",
    "currentSessionId",
    "hasPendingManagement",
    "inboxState",
    "latestActivityAt",
    "latestMessagePreview",
    "mentionCount",
    "participantAddressKinds",
    "participantLabels",
    "participantRefs",
    "title",
    "unreadCount"
  ]
}

ChatLinkedWorkMarker

{
  "type": "object",
  "properties": {
    "kind": {
      "type": "string",
      "const": "linked_work_marker"
    },
    "linkedSessionRef": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "opened",
        "completed",
        "failed"
      ]
    }
  },
  "required": [
    "kind",
    "linkedSessionRef",
    "status"
  ]
}

ChatMembershipDecisionRecord

{
  "type": "object",
  "properties": {
    "decisionRef": {
      "type": "string"
    },
    "chatRoomId": {
      "type": "string"
    },
    "targetParticipantRef": {
      "type": "string"
    },
    "changedByParticipantRef": {
      "type": "string"
    },
    "changeKind": {
      "type": "string",
      "enum": [
        "joined",
        "left",
        "removed"
      ]
    },
    "role": {
      "$ref": "#/components/schemas/ChatParticipantRole"
    },
    "grantedViaInviteId": {
      "type": "string"
    },
    "roomGrantRef": {
      "type": "string"
    },
    "occurredAt": {
      "type": "string"
    },
    "reason": {
      "type": "string"
    }
  },
  "required": [
    "decisionRef",
    "chatRoomId",
    "targetParticipantRef",
    "changedByParticipantRef",
    "changeKind",
    "role",
    "occurredAt"
  ]
}

ChatMessageMutation

{
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "const": "reaction"
        },
        "targetMessageId": {
          "type": "string"
        },
        "emoji": {
          "type": "string"
        },
        "action": {
          "type": "string",
          "enum": [
            "add",
            "remove"
          ]
        }
      },
      "required": [
        "kind",
        "targetMessageId",
        "emoji"
      ]
    },
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "const": "pin"
        },
        "targetMessageId": {
          "type": "string"
        },
        "pinned": {
          "type": "boolean"
        }
      },
      "required": [
        "kind",
        "targetMessageId",
        "pinned"
      ]
    },
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "const": "edit"
        },
        "targetMessageId": {
          "type": "string"
        },
        "text": {
          "type": "string"
        },
        "mentionRefs": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Re-resolved send-time mention targets for the edited body (R.CHAT.030)."
        }
      },
      "required": [
        "kind",
        "targetMessageId",
        "text"
      ]
    },
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "const": "delete"
        },
        "targetMessageId": {
          "type": "string"
        },
        "reason": {
          "type": "string"
        }
      },
      "required": [
        "kind",
        "targetMessageId"
      ]
    }
  ]
}

ChatParticipantRole

{
  "type": "string",
  "enum": [
    "owner",
    "author",
    "assistant",
    "agent",
    "reviewer",
    "observer",
    "system"
  ]
}

ChatPrivateLaneAuthErrorDescriptor

{
  "type": "object",
  "properties": {
    "when": {
      "type": "string",
      "enum": [
        "room_participant_missing_or_invalid",
        "api_authority_missing_or_unauthorized",
        "message_text_missing",
        "unknown_lane"
      ]
    },
    "status": {
      "type": "number",
      "enum": [
        400,
        401,
        403
      ]
    },
    "code": {
      "type": "string"
    },
    "errorShape": {
      "type": "string",
      "enum": [
        "string",
        "object"
      ]
    }
  },
  "required": [
    "when",
    "status",
    "code",
    "errorShape"
  ]
}

ChatPrivateLaneConfirmDescriptor

{
  "type": "object",
  "properties": {
    "method": {
      "type": "string",
      "const": "POST"
    },
    "path": {
      "type": "string"
    },
    "credentials": {
      "type": "string",
      "const": "same_as_lane"
    },
    "bodyTemplate": {
      "type": "object",
      "properties": {
        "lane": {
          "type": "string",
          "const": "huelva"
        },
        "confirmPlaneId": {
          "type": "string",
          "const": "huelva.user_confirm"
        },
        "proposalId": {
          "type": "string"
        },
        "decision": {
          "type": "string",
          "const": "approve | reject"
        }
      },
      "required": [
        "lane",
        "confirmPlaneId",
        "proposalId",
        "decision"
      ]
    }
  },
  "required": [
    "method",
    "path",
    "credentials",
    "bodyTemplate"
  ]
}

ChatPrivateLaneCredentialDescriptor

{
  "type": "object",
  "properties": {
    "headerTemplate": {
      "type": "string"
    },
    "role": {
      "type": "string",
      "enum": [
        "room_participant",
        "api_authority"
      ]
    },
    "tokenSource": {
      "type": "string",
      "enum": [
        "inviteToken_path_parameter",
        "separate_external_api_key"
      ]
    },
    "required": {
      "type": "boolean",
      "const": true
    }
  },
  "required": [
    "headerTemplate",
    "role",
    "tokenSource",
    "required"
  ]
}

ChatPrivateLaneDescriptor

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "displayName": {
      "type": "string"
    },
    "kind": {
      "type": "string",
      "const": "room_scoped_private_addon"
    },
    "responseKind": {
      "type": "string",
      "const": "private_lane"
    },
    "invocation": {
      "type": "object",
      "properties": {
        "method": {
          "type": "string",
          "const": "POST"
        },
        "path": {
          "type": "string"
        },
        "bodyTemplate": {
          "type": "object",
          "properties": {
            "text": {
              "type": "string"
            }
          },
          "required": [
            "text"
          ]
        },
        "addressTransport": {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "free_text_prefix"
            },
            "structuredFieldAvailable": {
              "type": "boolean"
            },
            "futureStructuredFields": {
              "type": "object",
              "properties": {
                "laneField": {
                  "type": "string",
                  "const": "lane"
                },
                "textField": {
                  "type": "string",
                  "const": "text"
                }
              },
              "required": [
                "laneField",
                "textField"
              ]
            }
          },
          "required": [
            "kind",
            "structuredFieldAvailable"
          ]
        },
        "correlationHeader": {
          "type": "string",
          "const": "X-Correlation-Id"
        }
      },
      "required": [
        "method",
        "path",
        "bodyTemplate",
        "addressTransport",
        "correlationHeader"
      ]
    },
    "addressForms": {
      "type": "object",
      "properties": {
        "canonical": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "accepted": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "unknownSlashPrefixBehavior": {
          "type": "string",
          "const": "error_unknown_lane"
        }
      },
      "required": [
        "canonical",
        "accepted",
        "unknownSlashPrefixBehavior"
      ]
    },
    "credentials": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ChatPrivateLaneCredentialDescriptor"
      }
    },
    "credentialsNonSubstitutable": {
      "type": "boolean",
      "const": true
    },
    "authErrors": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ChatPrivateLaneAuthErrorDescriptor"
      }
    },
    "transcript": {
      "type": "object",
      "properties": {
        "promptTranscript": {
          "type": "string",
          "const": "private"
        },
        "replyTranscript": {
          "type": "string",
          "const": "private"
        },
        "writtenToFeed": {
          "type": "boolean",
          "const": false
        },
        "writtenToHistory": {
          "type": "boolean",
          "const": false
        },
        "writtenToSearch": {
          "type": "boolean",
          "const": false
        },
        "responseEnvelope": {
          "$ref": "#/components/schemas/ChatPrivateLaneResponseEnvelopeDescriptor"
        }
      },
      "required": [
        "promptTranscript",
        "replyTranscript",
        "writtenToFeed",
        "writtenToHistory",
        "writtenToSearch",
        "responseEnvelope"
      ]
    },
    "effects": {
      "type": "object",
      "properties": {
        "consult": {
          "type": "object",
          "properties": {
            "mode": {
              "type": "string",
              "const": "read_only"
            },
            "approvalRequired": {
              "type": "boolean",
              "const": false
            }
          },
          "required": [
            "mode",
            "approvalRequired"
          ]
        },
        "consequential": {
          "type": "object",
          "properties": {
            "mode": {
              "type": "string",
              "const": "proposal_then_confirm"
            },
            "approvalRequired": {
              "type": "boolean",
              "const": true
            },
            "confirmPlaneId": {
              "type": "string",
              "const": "huelva.user_confirm"
            },
            "pendingResponse": {
              "type": "object",
              "properties": {
                "responseKind": {
                  "type": "string",
                  "const": "proposal"
                },
                "proposalIdField": {
                  "type": "string",
                  "const": "proposalId"
                },
                "confirmPlaneIdField": {
                  "type": "string",
                  "const": "confirmPlaneId"
                },
                "expiresAtField": {
                  "type": "string",
                  "const": "expiresAt"
                },
                "requestedTargetRefsField": {
                  "type": "string",
                  "const": "requestedTargetRefs"
                },
                "resolvedTargetWorldsField": {
                  "type": "string",
                  "const": "resolvedTargetWorlds"
                },
                "confirmField": {
                  "type": "string",
                  "const": "confirm"
                }
              },
              "required": [
                "responseKind",
                "proposalIdField",
                "confirmPlaneIdField",
                "expiresAtField",
                "requestedTargetRefsField",
                "resolvedTargetWorldsField",
                "confirmField"
              ]
            },
            "rejectedResponse": {
              "type": "object",
              "properties": {
                "responseKind": {
                  "type": "string",
                  "const": "rejected"
                },
                "proposalIdField": {
                  "type": "string",
                  "const": "proposalId"
                },
                "resolutionStateField": {
                  "type": "string",
                  "const": "resolutionState"
                },
                "decisionField": {
                  "type": "string",
                  "const": "decision"
                },
                "requestedTargetRefsField": {
                  "type": "string",
                  "const": "requestedTargetRefs"
                },
                "resolvedTargetWorldsField": {
                  "type": "string",
                  "const": "resolvedTargetWorlds"
                },
                "displayOnlyFields": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "const": "responseText"
                  },
                  "minItems": 1,
                  "maxItems": 1,
                  "description": "Restate the fields above for display; never parse them. Also on the response body."
                }
              },
              "required": [
                "responseKind",
                "proposalIdField",
                "resolutionStateField",
                "decisionField",
                "requestedTargetRefsField",
                "resolvedTargetWorldsField",
                "displayOnlyFields"
              ]
            },
            "approvalStatusResponse": {
              "type": "object",
              "properties": {
                "responseKind": {
                  "type": "string",
                  "const": "approval_status"
                },
                "proposalIdField": {
                  "type": "string",
                  "const": "proposalId"
                },
                "decisionField": {
                  "type": "string",
                  "const": "decision"
                },
                "resolutionStateField": {
                  "type": "string",
                  "const": "resolutionState"
                },
                "executionBridgedField": {
                  "type": "string",
                  "const": "executionBridged"
                },
                "receiptRefsField": {
                  "type": "string",
                  "const": "receiptRefs"
                },
                "failureField": {
                  "type": "string",
                  "const": "failure"
                },
                "requestedTargetRefsField": {
                  "type": "string",
                  "const": "requestedTargetRefs"
                },
                "resolvedTargetWorldsField": {
                  "type": "string",
                  "const": "resolvedTargetWorlds"
                },
                "displayOnlyFields": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "const": "responseText"
                  },
                  "minItems": 1,
                  "maxItems": 1,
                  "description": "Restate the fields above for display; never parse them. Also on the response body."
                }
              },
              "required": [
                "responseKind",
                "proposalIdField",
                "decisionField",
                "resolutionStateField",
                "executionBridgedField",
                "receiptRefsField",
                "failureField",
                "requestedTargetRefsField",
                "resolvedTargetWorldsField",
                "displayOnlyFields"
              ],
              "description": "Every other confirm outcome: where the proposal now stands, whether its work ran, why it did not, and the world it was staged for."
            },
            "confirm": {
              "$ref": "#/components/schemas/ChatPrivateLaneConfirmDescriptor"
            }
          },
          "required": [
            "mode",
            "approvalRequired",
            "confirmPlaneId",
            "pendingResponse",
            "rejectedResponse",
            "approvalStatusResponse",
            "confirm"
          ]
        }
      },
      "required": [
        "consult",
        "consequential"
      ]
    },
    "discovery": {
      "type": "object",
      "properties": {
        "listedInAcceptedInvite": {
          "type": "boolean"
        },
        "listedInCallableState": {
          "type": "boolean"
        },
        "canonicalDiscovery": {
          "type": "string",
          "enum": [
            "accepted_invite_and_callable_state",
            "accepted_invite"
          ]
        }
      },
      "required": [
        "listedInAcceptedInvite",
        "listedInCallableState",
        "canonicalDiscovery"
      ]
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "id",
    "displayName",
    "kind",
    "responseKind",
    "invocation",
    "addressForms",
    "credentials",
    "credentialsNonSubstitutable",
    "authErrors",
    "transcript",
    "effects",
    "discovery"
  ]
}

ChatPrivateLaneResolvedTargetWorld

{
  "type": "object",
  "properties": {
    "worldId": {
      "type": "string"
    },
    "worldHandle": {
      "type": "string"
    },
    "displayName": {
      "type": "string"
    }
  },
  "required": [
    "worldId"
  ]
}

ChatPrivateLaneResponseEnvelopeDescriptor

{
  "type": "object",
  "properties": {
    "kind": {
      "type": "string",
      "const": "shell"
    },
    "resultField": {
      "type": "string",
      "const": "responseText"
    },
    "legacyReplyTextField": {
      "type": "string",
      "const": "shell.result.message"
    },
    "laneIdField": {
      "type": "string",
      "const": "laneId"
    }
  },
  "required": [
    "kind",
    "resultField",
    "laneIdField"
  ]
}

ChatReactiveCueState

{
  "type": "object",
  "properties": {
    "state": {
      "type": "string",
      "enum": [
        "candidate",
        "active",
        "settled",
        "dropped"
      ]
    },
    "sourceFeedEventId": {
      "type": "string"
    },
    "supersededByMessageId": {
      "type": "string"
    },
    "expiresAt": {
      "type": "string"
    },
    "chatRoomId": {
      "type": "string"
    },
    "sourceMessageId": {
      "type": "string"
    },
    "surface": {
      "type": "string",
      "enum": [
        "chat_annotation",
        "flyout",
        "music",
        "hero_ephemera",
        "atmosphere"
      ]
    },
    "primaryRef": {
      "type": "string"
    },
    "mediaRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "reason": {
      "type": "string",
      "enum": [
        "annotated_surface",
        "plain_text_inference"
      ]
    },
    "lockPolicy": {
      "type": "string",
      "enum": [
        "none",
        "soft",
        "hard"
      ]
    }
  },
  "required": [
    "chatRoomId",
    "lockPolicy",
    "mediaRefs",
    "reason",
    "sourceFeedEventId",
    "sourceMessageId",
    "state",
    "surface"
  ]
}

ChatReactiveManualHint

{
  "type": "object",
  "properties": {
    "chatRoomId": {
      "type": "string"
    },
    "sourceMessageId": {
      "type": "string"
    },
    "ownerRef": {
      "type": "string"
    },
    "mediaRef": {
      "type": "string"
    },
    "score": {
      "type": "number"
    },
    "source": {
      "type": "string",
      "const": "manual_hint"
    },
    "phrase": {
      "type": "string"
    }
  },
  "required": [
    "chatRoomId",
    "sourceMessageId",
    "ownerRef",
    "mediaRef",
    "score",
    "source"
  ]
}

ChatReactiveReaderState

{
  "type": "object",
  "properties": {
    "chatRoomId": {
      "type": "string"
    },
    "asOfEventId": {
      "type": [
        "string",
        "null"
      ]
    },
    "activeCues": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ChatReactiveCueState"
      }
    },
    "lastAnnotatedSurfaceRefByMessageId": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    }
  },
  "required": [
    "chatRoomId",
    "asOfEventId",
    "activeCues",
    "lastAnnotatedSurfaceRefByMessageId"
  ]
}

ChatRoomCallableState

{
  "type": "object",
  "properties": {
    "chatRoomId": {
      "type": "string"
    },
    "currentSessionId": {
      "type": "string"
    },
    "asOfEventId": {
      "type": "string"
    },
    "standingParticipants": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "participantRef": {
            "type": "string"
          },
          "displayLabel": {
            "type": "string"
          },
          "personaDisplayLabel": {
            "type": "string"
          },
          "worldDisplayLabel": {
            "type": "string"
          },
          "executionStatus": {
            "type": "string",
            "enum": [
              "active",
              "suspended",
              "closed"
            ]
          },
          "representedWorldId": {
            "type": "string"
          },
          "worldPersonaRef": {
            "type": "string"
          }
        },
        "required": [
          "participantRef"
        ]
      }
    },
    "introducedHelpers": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "introductionRef": {
            "type": "string"
          },
          "surfacedParticipantRef": {
            "type": "string"
          },
          "displayLabel": {
            "type": "string"
          },
          "sourceExternalAgentParticipantRef": {
            "type": "string"
          },
          "parentParticipantRef": {
            "type": "string"
          }
        },
        "required": [
          "introductionRef",
          "surfacedParticipantRef",
          "sourceExternalAgentParticipantRef"
        ]
      }
    },
    "importedVoices": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "importedVoiceId": {
            "type": "string"
          },
          "surfacedParticipantRef": {
            "type": "string"
          },
          "displayLabel": {
            "type": "string"
          },
          "avatarImageUrl": {
            "type": "string"
          },
          "sourceWorldId": {
            "type": "string"
          },
          "mediatorParticipantRef": {
            "type": "string"
          },
          "worldPersonaRef": {
            "type": "string"
          },
          "sourceKind": {
            "type": "string",
            "enum": [
              "mediated_world_voice",
              "upc"
            ]
          },
          "sourceNodeRef": {
            "type": "string"
          },
          "cardSessionId": {
            "type": "string"
          },
          "latestContributionMessageId": {
            "type": "string"
          }
        },
        "required": [
          "importedVoiceId",
          "surfacedParticipantRef",
          "mediatorParticipantRef"
        ]
      }
    },
    "activeScenes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "sceneRef": {
            "type": "string"
          },
          "activeHandleRef": {
            "type": "string"
          },
          "turnCap": {
            "type": "number"
          },
          "turnsCompleted": {
            "type": "number"
          }
        },
        "required": [
          "sceneRef",
          "turnCap",
          "turnsCompleted"
        ]
      }
    },
    "privateLanes": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ChatPrivateLaneDescriptor"
      }
    }
  },
  "required": [
    "chatRoomId",
    "currentSessionId",
    "standingParticipants",
    "introducedHelpers",
    "importedVoices",
    "activeScenes"
  ]
}

ChatRoomHandleRef

{
  "type": [
    "string"
  ]
}

ChatRoomHeadSnapshot

{
  "type": "object",
  "properties": {
    "chatRoomId": {
      "type": "string"
    },
    "currentSessionId": {
      "type": "string"
    },
    "latestEventId": {
      "type": "string"
    },
    "latestOccurredAt": {
      "type": "string"
    },
    "latestMessageId": {
      "type": "string"
    },
    "latestActivityAt": {
      "type": "string"
    },
    "participantRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "admittedWorldIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "executionReadyParticipantRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "activeIntroductionRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "importedVoiceIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "activeSceneRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "roomHomeWorldId": {
      "type": "string"
    },
    "roomHomeOwnerUserId": {
      "type": "string"
    },
    "session": {
      "$ref": "#/components/schemas/HamSession"
    },
    "sessionChain": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ChatSessionChainEntry"
      }
    }
  },
  "required": [
    "activeIntroductionRefs",
    "activeSceneRefs",
    "admittedWorldIds",
    "chatRoomId",
    "currentSessionId",
    "executionReadyParticipantRefs",
    "importedVoiceIds",
    "participantRefs",
    "roomHomeOwnerUserId",
    "roomHomeWorldId",
    "session",
    "sessionChain"
  ]
}

ChatRoomLinkSurface

{
  "type": "object",
  "properties": {
    "method": {
      "type": "string",
      "enum": [
        "GET",
        "POST"
      ]
    },
    "path": {
      "type": "string"
    }
  },
  "required": [
    "method",
    "path"
  ]
}

ChatRoomLinkUsage

{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "pending_acceptance",
        "active"
      ]
    },
    "seat": {
      "type": "object",
      "properties": {
        "participantRef": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "participantRef"
      ],
      "description": "The room participant every authorizedSurfaces call acts as."
    },
    "authorization": {
      "type": "object",
      "properties": {
        "transport": {
          "type": "string",
          "const": "authorization_bearer"
        },
        "headerTemplate": {
          "type": "string",
          "const": "Authorization: Bearer <inviteToken>"
        },
        "tokenSource": {
          "type": "string",
          "const": "inviteToken_path_parameter"
        },
        "rules": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Which credential each kind of operation takes, and what mixing them does."
        }
      },
      "required": [
        "transport",
        "headerTemplate",
        "tokenSource",
        "rules"
      ]
    },
    "authorizedSurfaces": {
      "type": "object",
      "properties": {
        "roomHead": {
          "$ref": "#/components/schemas/ChatRoomLinkSurface"
        },
        "feed": {
          "$ref": "#/components/schemas/ChatRoomLinkSurface"
        },
        "history": {
          "$ref": "#/components/schemas/ChatRoomLinkSurface"
        },
        "callableState": {
          "$ref": "#/components/schemas/ChatRoomLinkSurface"
        },
        "search": {
          "$ref": "#/components/schemas/ChatRoomLinkSurface"
        },
        "presence": {
          "$ref": "#/components/schemas/ChatRoomLinkSurface"
        },
        "heartbeat": {
          "$ref": "#/components/schemas/ChatRoomLinkSurface"
        },
        "messages": {
          "$ref": "#/components/schemas/ChatRoomLinkSurface"
        },
        "continue": {
          "$ref": "#/components/schemas/ChatRoomLinkSurface"
        }
      },
      "required": [
        "roomHead",
        "feed",
        "history",
        "callableState",
        "search",
        "presence",
        "heartbeat"
      ],
      "description": "messages and continue appear only when the grant allows posting."
    },
    "privateLanes": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ChatPrivateLaneDescriptor"
      }
    },
    "huelvaUsage": {
      "type": "object",
      "properties": {
        "privateLaneRef": {
          "type": "string",
          "const": "huelva"
        },
        "addressExamples": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "privateLaneRef",
        "addressExamples"
      ],
      "description": "Legacy alias generated from privateLanes."
    },
    "discovery": {
      "type": "object",
      "properties": {
        "publicDocument": {
          "type": "object",
          "properties": {
            "method": {
              "type": "string",
              "const": "GET"
            },
            "path": {
              "type": "string",
              "const": "/.well-known/ham"
            }
          },
          "required": [
            "method",
            "path"
          ]
        },
        "openapi": {
          "type": "object",
          "properties": {
            "method": {
              "type": "string",
              "const": "GET"
            },
            "path": {
              "type": "string",
              "const": "/api/v1/openapi.json"
            }
          },
          "required": [
            "method",
            "path"
          ]
        },
        "callerDirectory": {
          "type": "object",
          "properties": {
            "method": {
              "type": "string",
              "const": "GET"
            },
            "path": {
              "type": "string",
              "const": "/api/v1/account"
            },
            "credential": {
              "type": "string",
              "const": "X-Api-Key: <apiKey>"
            },
            "resultField": {
              "type": "string",
              "const": "data.directory"
            }
          },
          "required": [
            "method",
            "path",
            "credential",
            "resultField"
          ]
        },
        "workflows": {
          "type": "object",
          "properties": {
            "method": {
              "type": "string",
              "const": "GET"
            },
            "path": {
              "type": "string",
              "const": "/.well-known/ham"
            },
            "resultField": {
              "type": "string",
              "const": "workflows"
            },
            "workflowIds": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "method",
            "path",
            "resultField",
            "workflowIds"
          ]
        }
      },
      "required": [
        "publicDocument",
        "openapi",
        "callerDirectory",
        "workflows"
      ],
      "description": "Paths only, no credential: present in every state."
    }
  },
  "required": [
    "status",
    "seat",
    "authorization",
    "authorizedSurfaces",
    "discovery"
  ],
  "description": "CHAT §2.10: the room directory a room link carries, returned as `roomLinkUsage` by GET and POST /api/v1/chat/external-agent-invites/{inviteToken}."
}

ChatRoomManagementAdmissionRow

{
  "type": "object",
  "properties": {
    "admittedWorldId": {
      "type": "string"
    },
    "displayLabel": {
      "type": "string"
    },
    "worldPersonaParticipantRef": {
      "type": "string"
    },
    "worldPersonaRef": {
      "type": "string"
    },
    "worldPersonaLabel": {
      "type": "string"
    },
    "admittedByParticipantRef": {
      "type": "string"
    },
    "admittedByDisplayLabel": {
      "type": "string"
    },
    "admittedAt": {
      "type": "string"
    },
    "canRemove": {
      "type": "boolean"
    }
  },
  "required": [
    "admittedWorldId",
    "displayLabel",
    "worldPersonaParticipantRef",
    "worldPersonaRef",
    "worldPersonaLabel",
    "admittedByParticipantRef",
    "admittedByDisplayLabel",
    "admittedAt",
    "canRemove"
  ]
}

ChatRoomManagementDirectionChain

{
  "type": "object",
  "properties": {
    "trace": {
      "$ref": "#/components/schemas/ChatDirectionDecisionTrace"
    },
    "interactionStylePlan": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/ChatInteractionStylePlan"
        },
        {
          "type": "null"
        }
      ]
    },
    "sourceResult": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/ChatActorSourceRecord"
        },
        {
          "type": "null"
        }
      ]
    },
    "turnReport": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/ChatActorTurnReport"
        },
        {
          "type": "null"
        }
      ]
    },
    "draftVerdict": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/ChatDirectionDraftVerdict"
        },
        {
          "type": "null"
        }
      ]
    },
    "firstFailureCode": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "trace",
    "interactionStylePlan",
    "sourceResult",
    "turnReport",
    "draftVerdict",
    "firstFailureCode"
  ]
}

ChatRoomManagementDirectionSection

{
  "type": "object",
  "properties": {
    "traces": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ChatDirectionDecisionTrace"
      }
    },
    "chains": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ChatRoomManagementDirectionChain"
      }
    }
  },
  "required": [
    "traces",
    "chains"
  ]
}

ChatRoomManagementGrantRow

{
  "type": "object",
  "properties": {
    "roomGrantRef": {
      "type": "string"
    },
    "externalAgentAddress": {
      "type": "string"
    },
    "displayLabel": {
      "type": "string"
    },
    "role": {
      "type": "string",
      "enum": [
        "author",
        "assistant",
        "agent",
        "reviewer",
        "observer"
      ]
    },
    "executeMode": {
      "type": "string",
      "enum": [
        "none",
        "separate_approval_required"
      ]
    },
    "mayPostMessages": {
      "type": "boolean"
    },
    "mayReceiveWakeups": {
      "type": "boolean"
    },
    "mayAutoAnswer": {
      "type": "boolean"
    },
    "mayRunConsult": {
      "type": "boolean"
    },
    "consultWorldIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "consultWorldLabels": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "worldPersonaRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "worldPersonaLabels": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "createdAt": {
      "type": "string"
    },
    "canRevoke": {
      "type": "boolean"
    }
  },
  "required": [
    "roomGrantRef",
    "externalAgentAddress",
    "displayLabel",
    "role",
    "executeMode",
    "mayPostMessages",
    "mayReceiveWakeups",
    "mayAutoAnswer",
    "mayRunConsult",
    "consultWorldIds",
    "consultWorldLabels",
    "worldPersonaRefs",
    "worldPersonaLabels",
    "createdAt",
    "canRevoke"
  ]
}

ChatRoomManagementImportedVoiceRow

{
  "type": "object",
  "properties": {
    "importedVoiceId": {
      "type": "string"
    },
    "displayLabel": {
      "type": "string"
    },
    "sourceKind": {
      "type": "string",
      "enum": [
        "mediated_world_voice",
        "upc"
      ]
    },
    "sourceWorldId": {
      "type": "string"
    },
    "sourceWorldLabel": {
      "type": "string"
    },
    "sourceNodeRef": {
      "type": "string"
    },
    "avatarImageUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "mediatorParticipantRef": {
      "type": "string"
    },
    "mediatorDisplayLabel": {
      "type": "string"
    },
    "createdAt": {
      "type": "string"
    },
    "canRemove": {
      "type": "boolean"
    }
  },
  "required": [
    "importedVoiceId",
    "displayLabel",
    "sourceKind",
    "sourceWorldId",
    "sourceWorldLabel",
    "mediatorParticipantRef",
    "mediatorDisplayLabel",
    "createdAt",
    "canRemove"
  ]
}

ChatRoomManagementInviteRow

{
  "type": "object",
  "properties": {
    "inviteId": {
      "type": "string"
    },
    "targetKind": {
      "type": "string",
      "enum": [
        "existing_user",
        "external_agent"
      ]
    },
    "invitedUserId": {
      "type": [
        "string",
        "null"
      ]
    },
    "invitedUsername": {
      "type": [
        "string",
        "null"
      ]
    },
    "externalAgentAddress": {
      "type": [
        "string",
        "null"
      ]
    },
    "displayLabel": {
      "type": "string"
    },
    "proposedRole": {
      "type": "string",
      "enum": [
        "author",
        "assistant",
        "agent",
        "reviewer",
        "observer"
      ]
    },
    "executeMode": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "none",
        "separate_approval_required",
        null
      ]
    },
    "worldPersonaRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "worldPersonaLabels": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "createdAt": {
      "type": "string"
    },
    "expiresAt": {
      "type": [
        "string",
        "null"
      ]
    },
    "canRevoke": {
      "type": "boolean"
    }
  },
  "required": [
    "inviteId",
    "targetKind",
    "invitedUserId",
    "invitedUsername",
    "externalAgentAddress",
    "displayLabel",
    "proposedRole",
    "worldPersonaRefs",
    "worldPersonaLabels",
    "createdAt",
    "expiresAt",
    "canRevoke"
  ]
}

ChatRoomManagementParticipantRow

{
  "type": "object",
  "properties": {
    "participantRef": {
      "type": "string"
    },
    "displayLabel": {
      "type": "string"
    },
    "personaLabel": {
      "type": [
        "string",
        "null"
      ]
    },
    "addressKind": {
      "type": "string",
      "enum": [
        "user",
        "persona",
        "external_agent"
      ]
    },
    "role": {
      "$ref": "#/components/schemas/ChatParticipantRole"
    },
    "mayPostMessages": {
      "type": "boolean"
    },
    "mayLaunchTurns": {
      "type": "boolean"
    },
    "personaAuthorityRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "roomGrantRef": {
      "type": [
        "string",
        "null"
      ]
    },
    "grantedViaInviteId": {
      "type": [
        "string",
        "null"
      ]
    },
    "joinedAt": {
      "type": "string"
    },
    "canRemove": {
      "type": "boolean"
    }
  },
  "required": [
    "participantRef",
    "displayLabel",
    "personaLabel",
    "addressKind",
    "role",
    "mayPostMessages",
    "mayLaunchTurns",
    "personaAuthorityRefs",
    "roomGrantRef",
    "grantedViaInviteId",
    "joinedAt",
    "canRemove"
  ]
}

ChatRoomManagementSurface

{
  "type": "object",
  "properties": {
    "chatRoomId": {
      "type": "string"
    },
    "currentSessionId": {
      "type": "string"
    },
    "roomHomeWorldId": {
      "type": "string"
    },
    "viewerParticipantRef": {
      "type": "string"
    },
    "viewerDisplayLabel": {
      "type": "string"
    },
    "viewerRole": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/ChatParticipantRole"
        },
        {
          "type": "null"
        }
      ]
    },
    "canManageRoom": {
      "type": "boolean"
    },
    "participants": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ChatRoomManagementParticipantRow"
      }
    },
    "admissions": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ChatRoomManagementAdmissionRow"
      }
    },
    "importedVoices": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ChatRoomManagementImportedVoiceRow"
      }
    },
    "grants": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ChatRoomManagementGrantRow"
      }
    },
    "invites": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ChatRoomManagementInviteRow"
      }
    },
    "direction": {
      "$ref": "#/components/schemas/ChatRoomManagementDirectionSection"
    }
  },
  "required": [
    "chatRoomId",
    "currentSessionId",
    "roomHomeWorldId",
    "viewerParticipantRef",
    "viewerDisplayLabel",
    "viewerRole",
    "canManageRoom",
    "participants",
    "admissions",
    "importedVoices",
    "grants",
    "invites",
    "direction"
  ]
}

ChatRoomPosture

{
  "type": "string",
  "enum": [
    "host",
    "respondent",
    "specialist",
    "participant",
    "witness",
    "synthesizer",
    "worker",
    "listener"
  ]
}

ChatRoomSpeechAct

{
  "type": "string",
  "enum": [
    "answer",
    "ask",
    "clarify",
    "invite",
    "challenge",
    "synthesize",
    "narrate",
    "handoff",
    "execute",
    "report",
    "abstain"
  ]
}

ChatSearchPage

{
  "type": "object",
  "properties": {
    "scope": {
      "type": "string",
      "enum": [
        "room",
        "visible_rooms"
      ]
    },
    "chatRoomId": {
      "type": "string"
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ChatSearchResult"
      }
    },
    "nextCursor": {
      "type": "string"
    }
  },
  "required": [
    "scope",
    "results"
  ]
}

ChatSearchResult

{
  "type": "object",
  "properties": {
    "chatRoomId": {
      "type": "string"
    },
    "sessionId": {
      "type": "string"
    },
    "messageId": {
      "type": "string"
    },
    "participantRef": {
      "type": "string"
    },
    "occurredAt": {
      "type": "string"
    },
    "matchKind": {
      "type": "string",
      "enum": [
        "body",
        "attachment",
        "annotation",
        "participant"
      ]
    },
    "snippet": {
      "type": "string"
    }
  },
  "required": [
    "chatRoomId",
    "sessionId",
    "messageId",
    "participantRef",
    "occurredAt",
    "matchKind",
    "snippet"
  ]
}

ChatSessionChainEntry

{
  "type": "object",
  "properties": {
    "sessionId": {
      "type": "string"
    },
    "lifecycleState": {
      "type": "string",
      "enum": [
        "open",
        "closed",
        "archived",
        "revoked"
      ]
    },
    "parentSessionRef": {
      "type": [
        "string",
        "null"
      ]
    },
    "openedAt": {
      "type": "string"
    },
    "closedAt": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "sessionId",
    "lifecycleState",
    "parentSessionRef",
    "openedAt",
    "closedAt"
  ]
}

ChatSessionMeta

{
  "type": "object",
  "properties": {
    "kind": {
      "type": "string",
      "const": "chat"
    },
    "chatRoomId": {
      "type": "string"
    },
    "roomHomeWorldId": {
      "type": "string"
    },
    "roomHomeOwnerUserId": {
      "type": "string"
    },
    "foundingParticipants": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "foundingSetKey": {
      "type": "string"
    },
    "initialActorSelector": {
      "$ref": "#/components/schemas/ChatActorSelector"
    },
    "initialGrantRef": {
      "type": "string"
    }
  },
  "required": [
    "kind",
    "chatRoomId",
    "roomHomeWorldId",
    "roomHomeOwnerUserId",
    "foundingParticipants"
  ]
}

ChatStoredMessageRecord

{
  "type": "object",
  "properties": {
    "schemaVersion": {
      "type": "string",
      "const": "0.1"
    },
    "kindRecord": {
      "type": "string",
      "const": "ham.message"
    },
    "worldId": {
      "type": "string"
    },
    "sessionId": {
      "type": "string"
    },
    "messageId": {
      "type": "string"
    },
    "actorId": {
      "type": "string"
    },
    "principalUserId": {
      "type": "string"
    },
    "messageKind": {
      "type": "string",
      "enum": [
        "text",
        "command",
        "note",
        "review_note",
        "system"
      ]
    },
    "visibility": {
      "type": "string",
      "enum": [
        "private",
        "principal",
        "world_internal",
        "world",
        "world_public",
        "cross_world"
      ]
    },
    "createdAt": {
      "type": "string"
    },
    "replyToMessageId": {
      "type": [
        "string",
        "null"
      ]
    },
    "quoteTargetMessageId": {
      "type": "string"
    },
    "mentionRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "authorMainWorldId": {
      "type": "string",
      "description": "Author's durable main/home world for user-row world-focus provenance (`author_main_world`). Stamped at write for human authors; not room-home."
    },
    "content": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string"
          },
          "text": {
            "type": "string"
          }
        },
        "required": [
          "kind",
          "text"
        ]
      }
    },
    "attachments": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "attachmentRef": {
                "type": "string"
              },
              "messageId": {
                "type": "string"
              },
              "mediaKind": {
                "type": "string",
                "enum": [
                  "image",
                  "video",
                  "audio",
                  "document",
                  "file",
                  "voice_note",
                  "link_preview"
                ]
              },
              "payloadRef": {
                "type": "string"
              },
              "previewRef": {
                "type": "string"
              },
              "transcriptRef": {
                "type": "string"
              },
              "processingState": {
                "type": "string",
                "enum": [
                  "pending",
                  "available",
                  "failed",
                  "removed"
                ]
              },
              "visibility": {
                "type": "string"
              },
              "createdAt": {
                "type": "string"
              },
              "linkPreview": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "description": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "imageUrl": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "siteName": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "title",
                  "description",
                  "imageUrl",
                  "siteName"
                ],
                "description": "Server-unfurled Open Graph / site-card metadata for `link_preview`. Clients must not scrape remote pages; they render this snapshot only."
              }
            },
            "required": [
              "attachmentRef",
              "messageId",
              "mediaKind",
              "payloadRef",
              "processingState",
              "createdAt"
            ]
          },
          {
            "type": "object",
            "properties": {
              "attachmentRef": {
                "type": "string"
              },
              "messageId": {
                "type": "string"
              },
              "mediaKind": {
                "type": "string",
                "const": "kslp_playlist"
              },
              "payloadRef": {
                "type": "string"
              },
              "previewRef": {
                "not": {}
              },
              "transcriptRef": {
                "not": {}
              },
              "processingState": {
                "type": "string",
                "const": "available"
              },
              "visibility": {
                "type": "string",
                "const": "room"
              },
              "createdAt": {
                "type": "string"
              },
              "linkPreview": {
                "not": {}
              },
              "playlistShare": {
                "type": "object",
                "properties": {
                  "snapshotId": {
                    "type": "string"
                  },
                  "sourceRevision": {
                    "type": "number"
                  },
                  "name": {
                    "type": "string"
                  },
                  "orderedRefs": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "trackCount": {
                    "type": "number"
                  },
                  "createdAt": {
                    "type": "string"
                  }
                },
                "required": [
                  "snapshotId",
                  "sourceRevision",
                  "name",
                  "orderedRefs",
                  "trackCount",
                  "createdAt"
                ]
              }
            },
            "required": [
              "attachmentRef",
              "messageId",
              "mediaKind",
              "payloadRef",
              "processingState",
              "visibility",
              "createdAt",
              "playlistShare"
            ]
          }
        ]
      }
    },
    "metadata": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "roomHandle": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "standing_participant"
                    },
                    "participantRef": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "kind",
                    "participantRef"
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "imported_voice"
                    },
                    "importedVoiceId": {
                      "type": "string"
                    },
                    "surfacedParticipantRef": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "kind",
                    "importedVoiceId",
                    "surfacedParticipantRef"
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "introduced_helper"
                    },
                    "introductionRef": {
                      "type": "string"
                    },
                    "surfacedParticipantRef": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "kind",
                    "introductionRef",
                    "surfacedParticipantRef"
                  ]
                }
              ]
            },
            "invocationProvenance": {
              "type": "object",
              "properties": {
                "invokedBy": {
                  "type": "string"
                },
                "speakerKind": {
                  "type": "string",
                  "enum": [
                    "standing_participant",
                    "imported_voice",
                    "introduced_helper"
                  ]
                },
                "standingParticipantRef": {
                  "type": "string"
                },
                "mediatorParticipantRef": {
                  "type": "string"
                },
                "worldPersonaRef": {
                  "type": "string"
                },
                "streamedPersonaRef": {
                  "type": "string"
                },
                "importedVoiceId": {
                  "type": "string"
                },
                "sourceNodeRef": {
                  "type": "string"
                },
                "cardSessionId": {
                  "type": "string"
                },
                "introductionRef": {
                  "type": "string"
                },
                "consultedWorldId": {
                  "type": "string"
                },
                "continuityMode": {
                  "type": "string",
                  "const": "reused_source_session"
                },
                "authorityBasis": {
                  "type": "string",
                  "enum": [
                    "standing_execution_binding",
                    "imported_voice_binding",
                    "external_agent_introduction"
                  ]
                },
                "mode": {
                  "type": "string",
                  "enum": [
                    "standing_reply",
                    "imported_voice",
                    "introduced_helper",
                    "linked_world_work"
                  ]
                },
                "sourceArtifactRefs": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "linkedSessionRef": {
                  "type": "string"
                }
              },
              "required": [
                "invokedBy",
                "speakerKind",
                "consultedWorldId",
                "continuityMode",
                "authorityBasis",
                "mode"
              ]
            },
            "sourceTurn": {
              "type": "object",
              "properties": {
                "worldId": {
                  "type": "string"
                },
                "sessionId": {
                  "type": "string"
                },
                "turnId": {
                  "type": "string"
                },
                "snapshotRef": {
                  "type": "string"
                }
              },
              "required": [
                "worldId",
                "sessionId",
                "turnId",
                "snapshotRef"
              ]
            },
            "sourceContinuationContext": {
              "type": "object",
              "properties": {
                "chatRoomId": {
                  "type": "string"
                },
                "activeHandle": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "standing_participant"
                        },
                        "participantRef": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "kind",
                        "participantRef"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "imported_voice"
                        },
                        "importedVoiceId": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "kind",
                        "importedVoiceId"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "introduced_helper"
                        },
                        "introductionRef": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "kind",
                        "introductionRef"
                      ]
                    }
                  ]
                },
                "roomWindow": {
                  "type": "object",
                  "properties": {
                    "oldestFirst": {
                      "type": "boolean",
                      "const": true
                    },
                    "startInclusiveId": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "endInclusiveId": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "itemRef": {
                            "type": "string"
                          },
                          "normalizedRole": {
                            "type": "string",
                            "enum": [
                              "user",
                              "assistant"
                            ]
                          },
                          "preservedSpeakerLabel": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "itemRef",
                          "normalizedRole"
                        ]
                      }
                    },
                    "truncated": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "oldestFirst",
                    "startInclusiveId",
                    "endInclusiveId",
                    "items",
                    "truncated"
                  ]
                },
                "sourceWindow": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "oldestFirst": {
                          "type": "boolean",
                          "const": true
                        },
                        "startInclusiveId": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "endInclusiveId": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "itemRef": {
                                "type": "string"
                              },
                              "normalizedRole": {
                                "type": "string",
                                "enum": [
                                  "user",
                                  "assistant"
                                ]
                              },
                              "preservedSpeakerLabel": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "itemRef",
                              "normalizedRole"
                            ]
                          }
                        },
                        "truncated": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "oldestFirst",
                        "startInclusiveId",
                        "endInclusiveId",
                        "items",
                        "truncated"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "carriedSummary": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "none"
                        }
                      },
                      "required": [
                        "kind"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "source_session_summary"
                        },
                        "summaryRef": {
                          "type": "string"
                        },
                        "sourceSessionId": {
                          "type": "string"
                        },
                        "summarizedThroughId": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "kind",
                        "summaryRef",
                        "sourceSessionId",
                        "summarizedThroughId"
                      ]
                    }
                  ]
                },
                "assembledAtEventId": {
                  "type": "string"
                }
              },
              "required": [
                "chatRoomId",
                "activeHandle",
                "roomWindow",
                "sourceWindow",
                "carriedSummary",
                "assembledAtEventId"
              ]
            },
            "directionDecisionRef": {
              "type": "string"
            },
            "roomActorAssignmentRef": {
              "type": "string"
            },
            "actorTurnReportRef": {
              "type": "string"
            },
            "sourceLane": {
              "type": "string",
              "enum": [
                "world_chat",
                "payload_guided_upc",
                "introduced_helper",
                "registered_worker"
              ]
            },
            "annotationRef": {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "emission_surface_bundle"
                },
                "artifactKind": {
                  "type": "string",
                  "const": "surface.snapshot.bundle"
                },
                "sourceTurnSnapshotRef": {
                  "type": "string"
                },
                "artifactRef": {
                  "type": "string"
                },
                "emissionSurfaceRef": {
                  "type": "string"
                }
              },
              "required": [
                "kind",
                "artifactKind",
                "sourceTurnSnapshotRef",
                "artifactRef",
                "emissionSurfaceRef"
              ]
            },
            "sceneRef": {
              "type": "string"
            }
          }
        },
        {
          "type": "object",
          "additionalProperties": {}
        }
      ]
    },
    "interactionBehavior": {
      "type": "object",
      "properties": {
        "allowReply": {
          "type": "boolean"
        },
        "allowQuote": {
          "type": "boolean"
        },
        "allowMention": {
          "type": "boolean"
        },
        "allowReaction": {
          "type": "boolean"
        },
        "allowPin": {
          "type": "boolean"
        },
        "allowEdit": {
          "type": "boolean"
        },
        "allowDelete": {
          "type": "boolean"
        }
      },
      "required": [
        "allowReply",
        "allowQuote",
        "allowMention",
        "allowReaction",
        "allowPin",
        "allowEdit",
        "allowDelete"
      ]
    },
    "reactionState": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "mutationId": {
            "type": "string"
          },
          "targetMessageId": {
            "type": "string"
          },
          "emoji": {
            "type": "string"
          },
          "actorRef": {
            "type": "string"
          },
          "createdAt": {
            "type": "string"
          },
          "removedAt": {
            "type": "string"
          }
        },
        "required": [
          "mutationId",
          "targetMessageId",
          "emoji",
          "actorRef",
          "createdAt"
        ]
      }
    },
    "pinState": {
      "type": "object",
      "properties": {
        "mutationId": {
          "type": "string"
        },
        "targetMessageId": {
          "type": "string"
        },
        "actorRef": {
          "type": "string"
        },
        "pinned": {
          "type": "boolean"
        },
        "updatedAt": {
          "type": "string"
        }
      },
      "required": [
        "mutationId",
        "targetMessageId",
        "actorRef",
        "pinned",
        "updatedAt"
      ]
    },
    "editHistory": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "mutationId": {
            "type": "string"
          },
          "actorRef": {
            "type": "string"
          },
          "editedAt": {
            "type": "string"
          },
          "previousText": {
            "type": "string"
          },
          "nextText": {
            "type": "string"
          }
        },
        "required": [
          "mutationId",
          "actorRef",
          "editedAt",
          "previousText",
          "nextText"
        ]
      }
    },
    "deleteTombstone": {
      "type": "object",
      "properties": {
        "mutationId": {
          "type": "string"
        },
        "actorRef": {
          "type": "string"
        },
        "deletedAt": {
          "type": "string"
        },
        "reason": {
          "type": "string"
        }
      },
      "required": [
        "mutationId",
        "actorRef",
        "deletedAt"
      ]
    }
  },
  "required": [
    "schemaVersion",
    "kindRecord",
    "worldId",
    "sessionId",
    "messageId",
    "actorId",
    "principalUserId",
    "messageKind",
    "visibility",
    "createdAt",
    "replyToMessageId",
    "content"
  ]
}

ChatSubscriberIdentityRef

{
  "type": "string"
}

ChatSubscriberRoomAttentionView

{
  "type": "object",
  "properties": {
    "subscriberIdentityRef": {
      "$ref": "#/components/schemas/ChatSubscriberIdentityRef"
    },
    "chatRoomId": {
      "type": "string"
    },
    "unreadCount": {
      "type": "number"
    },
    "mentionCount": {
      "type": "number"
    },
    "latestEventId": {
      "type": [
        "string",
        "null"
      ]
    },
    "latestMessageId": {
      "type": [
        "string",
        "null"
      ]
    },
    "deliveredHorizonMessageId": {
      "type": [
        "string",
        "null"
      ]
    },
    "readHorizonMessageId": {
      "type": [
        "string",
        "null"
      ]
    },
    "updatedAt": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "subscriberIdentityRef",
    "chatRoomId",
    "unreadCount",
    "mentionCount",
    "latestEventId",
    "latestMessageId",
    "deliveredHorizonMessageId",
    "readHorizonMessageId",
    "updatedAt"
  ],
  "description": "CHAT §2.5: one subscriber identity's inbox and attention projections for one room, as the signals routes return them. Counts are 0 before the first row."
}

ChatWorldAdmissionRecord

{
  "type": "object",
  "properties": {
    "chatRoomId": {
      "type": "string"
    },
    "admittedWorldId": {
      "type": "string"
    },
    "ownerUserId": {
      "type": "string"
    },
    "worldPersonaParticipantRef": {
      "type": "string"
    },
    "worldPersonaRef": {
      "type": "string"
    },
    "admittedByParticipantRef": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "removed"
      ]
    },
    "admittedAt": {
      "type": "string"
    },
    "removedAt": {
      "type": "string"
    },
    "removalReason": {
      "type": "string"
    }
  },
  "required": [
    "chatRoomId",
    "admittedWorldId",
    "ownerUserId",
    "worldPersonaParticipantRef",
    "worldPersonaRef",
    "admittedByParticipantRef",
    "status",
    "admittedAt"
  ]
}

ClassifierOutput

{
  "type": "object",
  "properties": {
    "intent": {
      "type": "string",
      "enum": [
        "search",
        "generate",
        "place",
        "arrange",
        "navigate",
        "media_manipulation",
        "topic",
        "lore",
        "admin",
        "style",
        "feedback",
        "chat"
      ]
    },
    "confidence": {
      "type": "number",
      "minimum": 0,
      "maximum": 1
    },
    "isCompound": {
      "type": "boolean"
    },
    "secondaryIntents": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "isGenericGreeting": {
      "type": "boolean",
      "default": false
    },
    "entities": {
      "type": "object",
      "properties": {
        "mediaRefs": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "locations": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "quantities": {
          "type": "object",
          "properties": {
            "count": {
              "type": "integer",
              "exclusiveMinimum": 0
            },
            "qualifier": {
              "type": "string",
              "enum": [
                "few",
                "several",
                "many"
              ]
            }
          },
          "additionalProperties": false
        },
        "qualities": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "targets": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "navigationFrame": {
          "type": "object",
          "properties": {
            "destinationKind": {
              "type": "string",
              "enum": [
                "subject",
                "container",
                "instance",
                "descriptor"
              ]
            },
            "requestedForm": {
              "type": "string",
              "enum": [
                "entity",
                "textroot",
                "unspecified"
              ]
            },
            "canonicalPhrase": {
              "type": "string"
            },
            "constraints": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "about",
                      "with",
                      "in",
                      "owned_by",
                      "alias_of",
                      "role_of"
                    ]
                  },
                  "value": {
                    "type": "string"
                  }
                },
                "required": [
                  "kind",
                  "value"
                ],
                "additionalProperties": false
              },
              "default": []
            },
            "confidence": {
              "type": "number",
              "minimum": 0,
              "maximum": 1
            },
            "rationale": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "default": []
            },
            "needsClarification": {
              "type": "boolean",
              "default": false
            }
          },
          "additionalProperties": false
        }
      },
      "additionalProperties": false
    },
    "visualEntities": {
      "type": "object",
      "properties": {
        "resolvedReferences": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "userTerm": {
                "type": "string"
              },
              "resolvedTo": {
                "type": "string"
              },
              "confidence": {
                "type": "number",
                "minimum": 0,
                "maximum": 1
              },
              "visualReason": {
                "type": "string"
              }
            },
            "required": [
              "userTerm",
              "resolvedTo",
              "confidence",
              "visualReason"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "resolvedReferences"
      ],
      "additionalProperties": false
    },
    "needsClarification": {
      "type": "boolean",
      "default": false
    },
    "clarifyingQuestion": {
      "type": "string"
    },
    "retrievalRequested": {
      "type": "boolean"
    },
    "navigationFrame": {
      "type": "object",
      "properties": {
        "destinationKind": {
          "type": "string",
          "enum": [
            "subject",
            "container",
            "instance",
            "descriptor"
          ]
        },
        "requestedForm": {
          "type": "string",
          "enum": [
            "entity",
            "textroot",
            "unspecified"
          ]
        },
        "canonicalPhrase": {
          "type": "string"
        },
        "constraints": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "about",
                  "with",
                  "in",
                  "owned_by",
                  "alias_of",
                  "role_of"
                ]
              },
              "value": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "value"
            ],
            "additionalProperties": false
          },
          "default": []
        },
        "confidence": {
          "type": "number",
          "minimum": 0,
          "maximum": 1
        },
        "rationale": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "default": []
        },
        "needsClarification": {
          "type": "boolean",
          "default": false
        }
      },
      "additionalProperties": false
    }
  },
  "required": [
    "intent",
    "confidence",
    "isCompound",
    "entities"
  ],
  "additionalProperties": false
}

ConfirmationChallenge

{
  "allOf": [
    {
      "$ref": "#/components/schemas/AesErrorEnvelope"
    },
    {
      "type": "object",
      "required": [
        "confirmation"
      ],
      "properties": {
        "confirmation": {
          "type": "object",
          "required": [
            "confirmationId",
            "operationId",
            "expiresAt",
            "impact",
            "confirm"
          ],
          "properties": {
            "confirmationId": {
              "type": "string",
              "pattern": "^cfm_"
            },
            "operationId": {
              "type": "string"
            },
            "expiresAt": {
              "type": "string",
              "format": "date-time"
            },
            "impact": {
              "type": "object",
              "required": [
                "summary",
                "targets"
              ],
              "properties": {
                "summary": {
                  "type": "string",
                  "description": "Every consequence of the delete, naming the target by its label."
                },
                "targets": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": [
                      "kind",
                      "ref",
                      "label"
                    ],
                    "properties": {
                      "kind": {
                        "type": "string"
                      },
                      "ref": {
                        "type": "string"
                      },
                      "label": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            },
            "confirm": {
              "type": "object",
              "required": [
                "method",
                "path",
                "headers",
                "body"
              ],
              "description": "The request to send to execute the delete.",
              "properties": {
                "method": {
                  "type": "string"
                },
                "path": {
                  "type": "string",
                  "description": "Path and query string."
                },
                "headers": {
                  "type": "object",
                  "required": [
                    "X-Starholder-Confirmation"
                  ],
                  "properties": {
                    "X-Starholder-Confirmation": {
                      "type": "string"
                    }
                  }
                },
                "body": {
                  "description": "The JSON body to resend, or null."
                }
              }
            }
          }
        }
      }
    }
  ]
}

ContextLayer

{
  "type": "object",
  "properties": {
    "contextText": {
      "type": "string"
    },
    "semanticInputConcepts": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/SourceConceptPhrase"
      },
      "description": "Canonical user-input phrase evidence, available from the first preview."
    },
    "semanticOutputConcepts": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/SourceConceptPhrase"
      },
      "description": "Canonical assistant-output phrase evidence, available at settlement."
    },
    "priorityTerms": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "atmosphere": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/AtmosphereSignals"
        },
        {
          "type": "null"
        }
      ]
    },
    "musicRef": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/MusicRef"
        },
        {
          "type": "null"
        }
      ]
    },
    "primarySubject": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "ref": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "type": {
              "type": "string",
              "enum": [
                "entity",
                "setting"
              ]
            }
          },
          "required": [
            "ref",
            "label",
            "type"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "canonicalSetting": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/CanonicalSetting"
        },
        {
          "type": "null"
        }
      ]
    },
    "visualSignature": {
      "type": [
        "string",
        "null"
      ]
    },
    "essence": {
      "type": [
        "string",
        "null"
      ]
    },
    "semanticSceneProfile": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/SemanticSceneProfile"
        },
        {
          "type": "null"
        }
      ]
    },
    "derivationMode": {
      "$ref": "#/components/schemas/DerivationMode"
    }
  },
  "required": [
    "contextText",
    "priorityTerms",
    "atmosphere",
    "musicRef",
    "primarySubject",
    "canonicalSetting",
    "visualSignature",
    "essence",
    "semanticSceneProfile"
  ]
}

ContradictionSeverity

{
  "type": "string",
  "enum": [
    "reconcilable",
    "irreconcilable"
  ]
}

DerivationMode

{
  "type": "string",
  "enum": [
    "semantic",
    "setting_surface_fallback",
    "lexical_emergency"
  ]
}

DirectiveIdentity

{
  "anyOf": [
    {
      "$ref": "#/components/schemas/BaseDirectiveIdentity"
    },
    {
      "$ref": "#/components/schemas/PayloadGuidedDirectiveIdentity"
    },
    {
      "$ref": "#/components/schemas/UniversePersonalityCardDirectiveIdentity"
    }
  ]
}

DirectiveReceipt

{
  "type": "object",
  "properties": {
    "directiveId": {
      "type": "string"
    },
    "status": {
      "$ref": "#/components/schemas/DirectiveReceiptStatus"
    },
    "turnsExecuted": {
      "type": "number"
    },
    "tokensConsumed": {
      "type": "number"
    },
    "durationMs": {
      "type": "number"
    },
    "turnId": {
      "type": "string"
    },
    "packetId": {
      "type": "string"
    },
    "topologicalImpact": {
      "$ref": "#/components/schemas/TopologicalImpact"
    },
    "rejectionReason": {
      "type": "string"
    },
    "rejectionGuidance": {
      "type": "string"
    }
  },
  "required": [
    "directiveId",
    "status",
    "turnsExecuted",
    "tokensConsumed",
    "durationMs"
  ]
}

DirectiveReceiptStatus

{
  "type": "string",
  "enum": [
    "completed",
    "partial",
    "rejected",
    "failed"
  ]
}

EligibleBountyMediaSourceSchema

{
  "type": "object",
  "properties": {
    "textRootId": {
      "type": "string",
      "minLength": 1
    },
    "submissionId": {
      "type": "string",
      "minLength": 1
    },
    "title": {
      "type": "string",
      "minLength": 1
    },
    "updatedAt": {
      "type": "string",
      "minLength": 1
    },
    "worldId": {
      "type": "string",
      "minLength": 1
    },
    "source": {
      "type": "string",
      "enum": [
        "submission",
        "bounty_chain"
      ]
    }
  },
  "required": [
    "textRootId",
    "title",
    "updatedAt",
    "worldId",
    "source"
  ],
  "additionalProperties": false
}

EmissionSurface

{
  "type": "object",
  "properties": {
    "schema": {
      "$ref": "#/components/schemas/EmissionSurfaceSchema"
    },
    "identity": {
      "$ref": "#/components/schemas/IdentityLayer"
    },
    "text": {
      "$ref": "#/components/schemas/TextLayer"
    },
    "refs": {
      "$ref": "#/components/schemas/RefsLayer"
    },
    "media": {
      "$ref": "#/components/schemas/MediaLayer"
    },
    "context": {
      "$ref": "#/components/schemas/ContextLayer"
    },
    "topology": {
      "$ref": "#/components/schemas/TopologyLayer"
    },
    "epistemic": {
      "$ref": "#/components/schemas/EpistemicLayer"
    },
    "session": {
      "$ref": "#/components/schemas/SessionLayer"
    }
  },
  "required": [
    "schema",
    "identity",
    "text",
    "refs",
    "media",
    "context",
    "topology",
    "epistemic",
    "session"
  ]
}

EmissionSurfaceProjectionSchema

{
  "type": "string",
  "enum": [
    "starholder.emission.v1.projection",
    "starholder.emission.v2.projection"
  ]
}

EmissionSurfaceSchema

{
  "type": "string",
  "enum": [
    "starholder.emission.v1",
    "starholder.emission.v2"
  ]
}

EnvironmentAuthoringMode

{
  "type": "string",
  "enum": [
    "pack",
    "splat",
    "custom"
  ],
  "description": "World Look & Feel as a selection surface (AGENT_EXECUTION_PUBLIC_SURFACE.md §8.1): the world's current selection, the option lists a save is validated against, and the per-mode patch rules for `world.place.update@1.0`."
}

EnvironmentOption

{
  "type": "object",
  "properties": {
    "value": {
      "type": "string"
    },
    "label": {
      "type": "string"
    }
  },
  "required": [
    "value",
    "label"
  ]
}

EnvironmentSelectionField

{
  "type": "string",
  "enum": [
    "packRef",
    "splatRef",
    "backgroundProgram",
    "activeBundle",
    "ambientMode",
    "creaturesEnabled",
    "showNodes",
    "showHemisphereMesh",
    "meshOpacity"
  ]
}

EpistemicClaim

{
  "type": "object",
  "properties": {
    "text": {
      "type": "string"
    },
    "refs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "confidence": {
      "type": "number"
    }
  },
  "required": [
    "text",
    "refs",
    "confidence"
  ]
}

EpistemicClaimPreview

{
  "type": "object",
  "properties": {
    "text": {
      "type": "string"
    },
    "refs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "confidence": {
      "type": "number"
    },
    "source": {
      "type": "string",
      "enum": [
        "stream_extraction",
        "rule_based_candidate",
        "retrieval_attention",
        "stream_attention"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "forming",
        "rejected"
      ]
    }
  },
  "required": [
    "text",
    "refs",
    "confidence",
    "source"
  ]
}

EpistemicContradiction

{
  "type": "object",
  "properties": {
    "claimA": {
      "type": "string"
    },
    "claimB": {
      "type": "string"
    },
    "severity": {
      "type": "string",
      "enum": [
        "reconcilable",
        "irreconcilable"
      ]
    }
  },
  "required": [
    "claimA",
    "claimB",
    "severity"
  ]
}

EpistemicLayer

{
  "type": "object",
  "properties": {
    "uncertainty": {
      "type": "number"
    },
    "supportScore": {
      "type": "number"
    },
    "mode": {
      "type": "string",
      "enum": [
        "answer",
        "explore",
        "bridge",
        "canonize"
      ]
    },
    "intentTags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "claimPreviews": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/EpistemicClaimPreview"
      }
    },
    "claims": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/EpistemicClaim"
      }
    },
    "contradictions": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/EpistemicContradiction"
      }
    }
  },
  "required": [
    "uncertainty",
    "supportScore",
    "mode",
    "intentTags",
    "claims",
    "contradictions"
  ]
}

ExecutionBudgetUsed

{
  "type": "object",
  "properties": {
    "tokenCount": {
      "type": "number"
    },
    "graphCalls": {
      "type": "number"
    },
    "wallTimeMs": {
      "type": "number"
    },
    "s3Writes": {
      "type": "number"
    }
  },
  "required": [
    "tokenCount",
    "graphCalls",
    "wallTimeMs",
    "s3Writes"
  ]
}

ExecutionErrorShape

{
  "type": "object",
  "properties": {
    "code": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "retryable": {
      "type": "boolean"
    },
    "retryAfterMs": {
      "type": "number"
    }
  },
  "required": [
    "code",
    "message",
    "retryable"
  ]
}

ExecutionId

{
  "type": "string"
}

ExecutionMode

{
  "type": "string",
  "enum": [
    "answer",
    "explore",
    "bridge",
    "canonize"
  ]
}

ExecutionOutput

{
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "const": "emission_surface"
        },
        "surface": {
          "$ref": "#/components/schemas/WireEmissionSurface"
        },
        "turnId": {
          "type": "string"
        },
        "packetId": {
          "type": "string"
        }
      },
      "required": [
        "kind",
        "surface",
        "turnId"
      ]
    },
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "const": "query_result"
        },
        "candidates": {
          "$ref": "#/components/schemas/CandidateResultSet"
        }
      },
      "required": [
        "kind",
        "candidates"
      ]
    },
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "const": "inference_result"
        },
        "thoughtPacketId": {
          "type": "string"
        },
        "t2BlobId": {
          "type": "string"
        },
        "emittedRefs": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "flowResult": {
          "$ref": "#/components/schemas/FlowExecutionResult"
        }
      },
      "required": [
        "kind",
        "emittedRefs",
        "flowResult"
      ]
    },
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "const": "directive_receipt"
        },
        "directiveId": {
          "type": "string"
        },
        "accepted": {
          "type": "boolean"
        },
        "turnCount": {
          "type": "number"
        },
        "topologicalImpact": {
          "$ref": "#/components/schemas/TopologicalImpactSummary"
        }
      },
      "required": [
        "kind",
        "directiveId",
        "accepted"
      ]
    },
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "const": "submission_receipt"
        },
        "submissionId": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "accepted_for_extraction",
            "rejected",
            "quarantined"
          ]
        }
      },
      "required": [
        "kind",
        "submissionId",
        "status"
      ]
    },
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "const": "media_receipt"
        },
        "submissionId": {
          "type": "string"
        },
        "accepted": {
          "type": "boolean"
        },
        "itemizedFeedback": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/MediaItemFeedback"
          }
        }
      },
      "required": [
        "kind",
        "submissionId",
        "accepted"
      ]
    }
  ]
}

ExecutionProvenance

{
  "type": "object",
  "properties": {
    "actorId": {
      "type": "string"
    },
    "apiKeyId": {
      "type": "string"
    },
    "originSystem": {
      "type": "string"
    }
  }
}

ExecutionResult

{
  "type": "object",
  "properties": {
    "requestId": {
      "type": "string"
    },
    "correlationId": {
      "type": "string"
    },
    "executionId": {
      "type": "string"
    },
    "worldId": {
      "type": "string"
    },
    "sessionId": {
      "type": "string",
      "description": "Canonical HAM session identity when this execution is session-scoped."
    },
    "status": {
      "$ref": "#/components/schemas/ExecutionResultStatus"
    },
    "startedAtMs": {
      "type": "number"
    },
    "completedAtMs": {
      "type": "number"
    },
    "durationMs": {
      "type": "number"
    },
    "output": {
      "$ref": "#/components/schemas/ExecutionOutput"
    },
    "asyncEnvelope": {
      "$ref": "#/components/schemas/AsyncJobEnvelope",
      "description": "Present for queued async transports when no ExecutionOutput exists yet."
    },
    "error": {
      "$ref": "#/components/schemas/ExecutionResultError"
    },
    "budgetUsed": {
      "$ref": "#/components/schemas/ExecutionBudgetUsed"
    },
    "provenance": {
      "$ref": "#/components/schemas/ProtocolAttributionEnvelope"
    },
    "receipt": {
      "$ref": "#/components/schemas/WorldCommitReceiptV1"
    }
  },
  "required": [
    "requestId",
    "correlationId",
    "executionId",
    "worldId",
    "status",
    "startedAtMs",
    "budgetUsed",
    "provenance"
  ]
}

ExecutionResultError

{
  "type": "object",
  "properties": {
    "code": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "retryable": {
      "type": "boolean"
    },
    "retryAfterMs": {
      "type": "number"
    },
    "httpStatus": {
      "type": "number",
      "description": "When the failure maps to an HTTP status (authz, quota, etc.)."
    }
  },
  "required": [
    "code",
    "message",
    "retryable"
  ]
}

ExecutionResultStatus

{
  "type": "string",
  "enum": [
    "completed",
    "failed",
    "cancelled",
    "queued"
  ]
}

ExtractedLexicalSignaturePhraseType

{
  "type": "string",
  "enum": [
    "nounPhrase",
    "compoundPhrase",
    "extendedNounPhrase",
    "verbObject",
    "clauseWindow"
  ]
}

ExtractionQualityAssessment

{
  "type": "object",
  "properties": {
    "viable": {
      "type": "boolean"
    },
    "entityCount": {
      "type": "number"
    },
    "settingCount": {
      "type": "number"
    },
    "sceneCount": {
      "type": "number"
    },
    "warnings": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "viable",
    "entityCount",
    "settingCount",
    "sceneCount",
    "warnings"
  ]
}

FlowExecutionResult

{
  "type": "object",
  "properties": {
    "executionId": {
      "$ref": "#/components/schemas/ExecutionId"
    },
    "flowId": {
      "$ref": "#/components/schemas/FlowId"
    },
    "status": {
      "type": "string",
      "enum": [
        "completed",
        "failed",
        "cancelled"
      ]
    },
    "outputs": {
      "type": "object"
    },
    "nodeResults": {
      "type": "object",
      "properties": {
        "size": {
          "type": "number"
        }
      },
      "required": [
        "size"
      ]
    },
    "trace": {},
    "error": {
      "type": "string"
    }
  },
  "required": [
    "executionId",
    "flowId",
    "status",
    "outputs",
    "nodeResults"
  ]
}

FlowId

{
  "type": "string"
}

FulfillmentItemRow

{
  "type": "object",
  "properties": {
    "itemId": {
      "type": "string"
    },
    "status": {
      "$ref": "#/components/schemas/FulfillmentItemSurfaceStatus"
    },
    "requirement": {
      "type": "object",
      "properties": {
        "purpose": {
          "type": "string"
        },
        "tier": {
          "type": "string"
        }
      },
      "required": [
        "purpose",
        "tier"
      ]
    },
    "deliverySpec": {
      "type": "object",
      "additionalProperties": {}
    },
    "mediaRef": {
      "type": "string"
    },
    "rejectionReason": {
      "type": "string"
    }
  },
  "required": [
    "itemId",
    "status",
    "requirement"
  ]
}

FulfillmentItemSurfaceStatus

{
  "type": "string",
  "enum": [
    "pending",
    "fulfilled",
    "rejected",
    "generating",
    "failed"
  ]
}

FulfillmentStatusPayload

{
  "type": "object",
  "properties": {
    "submissionId": {
      "type": "string"
    },
    "worldId": {
      "type": "string"
    },
    "strategy": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/FulfillmentStrategy"
        },
        {
          "type": "null"
        }
      ]
    },
    "status": {
      "$ref": "#/components/schemas/FulfillmentSurfaceStatus"
    },
    "manifestId": {
      "type": [
        "string",
        "null"
      ]
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/FulfillmentItemRow"
      }
    },
    "submissionStatus": {
      "$ref": "#/components/schemas/SubmissionStatus"
    },
    "blockingReason": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/SubmissionBlockingReason"
        },
        {
          "type": "null"
        }
      ],
      "description": "Same as workflow.blockingReason, so this read names the same blocker."
    },
    "workflow": {
      "$ref": "#/components/schemas/SubmissionWorkflowView",
      "description": "The submission workflow view (ECA §6.3), as on every submission read."
    },
    "reviewStatus": {
      "type": [
        "string",
        "null"
      ]
    },
    "fulfillmentSubmitted": {
      "type": "boolean"
    },
    "marketplaceBountyId": {
      "type": [
        "string",
        "null"
      ],
      "description": "post_bounty: the marketplace media bounty the story is fulfilled through."
    },
    "bountySubmissionId": {
      "type": "string",
      "description": "post_bounty: the bounty submission awaiting the issuer's review (or the accepted one). Send it as `submissionId`, with `claimId`, to POST /api/v1/world/{worldId}/bounties/{bountyId}/review."
    },
    "importResult": {
      "type": "object",
      "properties": {
        "imported": {
          "type": "number"
        },
        "failed": {
          "type": "number"
        },
        "fullSuccess": {
          "type": "boolean"
        }
      },
      "required": [
        "imported",
        "failed",
        "fullSuccess"
      ]
    },
    "externalMediaFulfillmentId": {
      "type": [
        "string",
        "null"
      ]
    },
    "claimId": {
      "type": "string",
      "description": "post_bounty: the bounty's active claim."
    },
    "fulfilledByUserId": {
      "type": "string",
      "description": "post_bounty: the claimant whose media set the issuer accepted."
    }
  },
  "required": [
    "submissionId",
    "worldId",
    "strategy",
    "status",
    "manifestId",
    "items",
    "submissionStatus",
    "blockingReason",
    "workflow",
    "reviewStatus",
    "fulfillmentSubmitted",
    "marketplaceBountyId"
  ]
}

FulfillmentStrategy

{
  "type": "string",
  "enum": [
    "self_fulfill",
    "post_bounty",
    "platform_default"
  ]
}

FulfillmentSurfaceStatus

{
  "type": "string",
  "enum": [
    "pending",
    "claimed",
    "submitted",
    "accepted",
    "rejected",
    "generating",
    "failed"
  ]
}

GapFeedEntry

{
  "type": "object",
  "properties": {
    "gapId": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "anchorRefs": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "minItems": 2,
      "maxItems": 2
    },
    "anchorLabels": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "anchorAEntityType": {
      "type": "string"
    },
    "anchorBEntityType": {
      "type": "string"
    },
    "descriptionSource": {
      "type": "string",
      "enum": [
        "llm_enriched",
        "deterministic_fallback",
        "legacy"
      ]
    },
    "discrepancy": {
      "type": "number"
    },
    "significanceScore": {
      "type": "number"
    },
    "graphPathLength": {
      "type": "number"
    },
    "status": {
      "type": "string",
      "enum": [
        "open",
        "filled"
      ]
    },
    "detectedAt": {
      "type": "number"
    },
    "promotedBountyId": {
      "type": "string"
    },
    "nearbyContentRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "gapId",
    "title",
    "description",
    "anchorRefs",
    "anchorLabels",
    "descriptionSource",
    "discrepancy",
    "significanceScore",
    "graphPathLength",
    "status",
    "detectedAt",
    "nearbyContentRefs"
  ]
}

HamSession

{
  "type": "object",
  "properties": {
    "schemaVersion": {
      "type": "string",
      "const": "0.1"
    },
    "kindRecord": {
      "type": "string",
      "const": "ham.session.record"
    },
    "sessionId": {
      "type": "string"
    },
    "worldId": {
      "type": "string"
    },
    "userId": {
      "type": "string"
    },
    "parentSessionRef": {
      "type": [
        "string",
        "null"
      ]
    },
    "openedByIntent": {
      "type": "string"
    },
    "participants": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/SessionParticipant"
      }
    },
    "visibility": {
      "$ref": "#/components/schemas/VisibilityTier"
    },
    "lifecycleState": {
      "type": "string",
      "enum": [
        "open",
        "closed",
        "archived",
        "revoked"
      ]
    },
    "closeReason": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/SessionCloseReason"
        },
        {
          "type": "null"
        }
      ]
    },
    "openedAt": {
      "type": "string"
    },
    "closedAt": {
      "type": [
        "string",
        "null"
      ]
    },
    "archivedAt": {
      "type": [
        "string",
        "null"
      ]
    },
    "deletedAt": {
      "type": [
        "string",
        "null"
      ]
    },
    "idempotencyKey": {
      "type": [
        "string",
        "null"
      ]
    },
    "nextTurnSeq": {
      "type": "number"
    },
    "title": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "surfaceOrigin": {
      "type": "string"
    },
    "workingSetHints": {
      "type": "object",
      "additionalProperties": {}
    },
    "lastActiveAt": {
      "type": "string"
    },
    "costSummary": {
      "type": "object",
      "additionalProperties": {}
    },
    "receiptSummary": {
      "type": "object",
      "additionalProperties": {}
    },
    "chatSessionMeta": {
      "$ref": "#/components/schemas/ChatSessionMeta"
    }
  },
  "required": [
    "schemaVersion",
    "kindRecord",
    "sessionId",
    "worldId",
    "userId",
    "parentSessionRef",
    "openedByIntent",
    "participants",
    "visibility",
    "lifecycleState",
    "closeReason",
    "openedAt",
    "closedAt",
    "archivedAt",
    "deletedAt",
    "idempotencyKey",
    "nextTurnSeq",
    "costSummary",
    "receiptSummary"
  ]
}

HeadlessChatHistoryPage

{
  "type": "object",
  "properties": {
    "chatRoomId": {
      "type": "string"
    },
    "currentSessionId": {
      "type": "string"
    },
    "rangeKind": {
      "type": "string",
      "enum": [
        "latest",
        "after_event",
        "before_event",
        "around_event"
      ]
    },
    "events": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ChatFeedEvent"
      }
    },
    "oldestReturnedEventId": {
      "type": "string"
    },
    "newestReturnedEventId": {
      "type": "string"
    },
    "latestKnownEventId": {
      "type": "string"
    },
    "hasMoreBefore": {
      "type": "boolean"
    },
    "hasMoreAfter": {
      "type": "boolean"
    },
    "nextBeforeEventId": {
      "type": "string"
    },
    "nextAfterEventId": {
      "type": "string"
    }
  },
  "required": [
    "chatRoomId",
    "currentSessionId",
    "rangeKind",
    "events",
    "hasMoreBefore",
    "hasMoreAfter"
  ]
}

HuelvaActionProposal

{
  "type": "object",
  "properties": {
    "proposalId": {
      "type": "string"
    },
    "workstreamId": {
      "$ref": "#/components/schemas/HuelvaWorkstreamId"
    },
    "createdAt": {
      "type": "string"
    },
    "proposalState": {
      "$ref": "#/components/schemas/HuelvaProposalState"
    },
    "revisionOf": {
      "$ref": "#/components/schemas/HuelvaArtifactRevisionRef"
    },
    "supersession": {
      "$ref": "#/components/schemas/HuelvaArtifactSupersession"
    },
    "surfaceKind": {
      "$ref": "#/components/schemas/HuelvaSurfaceKind"
    },
    "motivatingReferent": {
      "$ref": "#/components/schemas/HuelvaReferentAddress"
    },
    "summary": {
      "type": "string"
    },
    "action": {
      "type": "object",
      "properties": {
        "executionClass": {
          "type": "string",
          "enum": [
            "consult",
            "execute",
            "registered_flow"
          ]
        },
        "targetingMode": {
          "type": "string",
          "enum": [
            "conversation_home",
            "focused_shell",
            "resolved_world",
            "multi_world"
          ]
        },
        "handoffOwner": {
          "type": "string",
          "enum": [
            "consult",
            "execute",
            "registered_flow",
            "world_focus"
          ]
        },
        "dispatchMode": {
          "type": "string",
          "enum": [
            "direct_owner_handoff",
            "focus_in_place",
            "focus_then_act"
          ]
        },
        "targetWorldIds": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "workHomeWorldIds": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "focusBinding": {
          "type": "object",
          "properties": {
            "worldId": {
              "type": "string"
            },
            "sessionId": {
              "type": "string"
            },
            "mountRevision": {
              "type": "string"
            },
            "source": {
              "type": "string",
              "const": "committed_world_focus"
            }
          },
          "required": [
            "worldId",
            "sessionId",
            "source"
          ]
        },
        "focusTransitionTargetWorldId": {
          "type": "string"
        },
        "packageRef": {
          "type": "string"
        },
        "flowId": {
          "type": "string"
        },
        "intentKinds": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "catalogActionRefs": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Registry-owned capability↔action lineage copied from the platform row at staging time. This is authored action-lineage truth copied verbatim; nothing infers it from names or prose."
        },
        "clientSettlement": {
          "$ref": "#/components/schemas/HuelvaClientSettlementPlan",
          "description": "Authored same-turn client settlement copied from the platform row when the row's auto-runnable effect belongs to a local surface."
        },
        "inputBindings": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "inputName": {
                "type": "string"
              },
              "bindingPath": {
                "$ref": "#/components/schemas/CapabilityBindingPath"
              },
              "sourceKind": {
                "$ref": "#/components/schemas/HuelvaBindingSourceKind"
              },
              "valueSummary": {
                "type": "string"
              },
              "value": {},
              "resolvedRef": {
                "type": "string"
              },
              "sourceStepId": {
                "type": "string"
              },
              "sourceOutputKey": {
                "type": "string"
              },
              "sourceOutputSemanticTypeRef": {
                "type": "string"
              },
              "onMissing": {
                "type": "string",
                "const": "omit"
              }
            },
            "required": [
              "inputName",
              "sourceKind",
              "valueSummary"
            ]
          }
        },
        "capabilityContractPin": {
          "type": "object",
          "properties": {
            "operationRef": {
              "type": "string"
            },
            "ownerFamily": {
              "type": "string"
            },
            "operationVersion": {
              "type": "string"
            },
            "digestVersion": {
              "type": "string",
              "const": "v2"
            },
            "contractDigest": {
              "type": "string"
            },
            "inputSchemaDigest": {
              "type": "string"
            },
            "resultSchemaDigest": {
              "type": "string"
            },
            "idempotency": {
              "type": "string",
              "enum": [
                "read_only",
                "required"
              ]
            },
            "presentationDigest": {
              "type": "string"
            },
            "snapshotDigest": {
              "type": "string"
            },
            "callerAvailabilityDigest": {
              "type": "string"
            }
          },
          "required": [
            "operationRef",
            "ownerFamily",
            "operationVersion",
            "digestVersion",
            "contractDigest",
            "inputSchemaDigest",
            "resultSchemaDigest",
            "idempotency"
          ]
        },
        "groundingStatus": {
          "type": "string",
          "enum": [
            "proven_satisfiable",
            "partially_grounded"
          ]
        }
      },
      "required": [
        "executionClass",
        "targetingMode",
        "handoffOwner",
        "dispatchMode",
        "targetWorldIds",
        "workHomeWorldIds",
        "intentKinds",
        "inputBindings",
        "groundingStatus"
      ]
    },
    "authority": {
      "type": "object",
      "properties": {
        "principalUserId": {
          "type": "string"
        },
        "riskTier": {
          "$ref": "#/components/schemas/HuelvaRiskTier"
        },
        "requiredRoles": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "consensusRequired": {
          "type": "boolean"
        },
        "authorizationRef": {
          "type": "string"
        }
      },
      "required": [
        "principalUserId",
        "riskTier",
        "requiredRoles",
        "consensusRequired"
      ]
    },
    "approval": {
      "type": "object",
      "properties": {
        "approvalClass": {
          "type": "string",
          "enum": [
            "auto_run",
            "confirm_required",
            "escalate_required"
          ]
        },
        "clearsPlaneId": {
          "$ref": "#/components/schemas/HuelvaApprovalPlaneId"
        },
        "remainingPlaneIds": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/HuelvaApprovalPlaneId"
          }
        },
        "autoRunnable": {
          "type": "boolean"
        },
        "consentRef": {
          "type": "string"
        }
      },
      "required": [
        "approvalClass",
        "remainingPlaneIds",
        "autoRunnable"
      ]
    },
    "expectedOutputs": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "consult_surface",
              "receipt",
              "artifact",
              "message",
              "settlement"
            ]
          },
          "summary": {
            "type": "string"
          }
        },
        "required": [
          "kind",
          "summary"
        ]
      }
    },
    "costEstimate": {
      "type": "object",
      "properties": {
        "summary": {
          "type": "string"
        },
        "tokenBudget": {
          "type": "number"
        },
        "externalSpendUpperBoundUsd": {
          "type": [
            "number",
            "null"
          ]
        }
      },
      "required": [
        "summary"
      ]
    },
    "evidence": {
      "type": "object",
      "properties": {
        "observationPacketKinds": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/HuelvaContextPacketKind"
          }
        },
        "runtimePathRefs": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "proofRefs": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "gateRefs": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "observationPacketKinds",
        "runtimePathRefs",
        "proofRefs"
      ]
    },
    "interpretation": {
      "type": "object",
      "properties": {
        "askRestatement": {
          "type": "string"
        },
        "confidence": {
          "type": "string",
          "enum": [
            "high",
            "medium",
            "low"
          ]
        },
        "worldRoleBindings": {
          "$ref": "#/components/schemas/HuelvaWorldRoleBindings"
        },
        "catalogEntryRefs": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "chosenInterpretation": {
          "type": "string"
        },
        "consideredAlternatives": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "interpretation": {
                "type": "string"
              },
              "rejectedBecause": {
                "type": "string"
              }
            },
            "required": [
              "interpretation",
              "rejectedBecause"
            ]
          }
        },
        "bindingProvenance": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "inputName": {
                "type": "string"
              },
              "derivedFrom": {
                "type": "string",
                "enum": [
                  "explicit_user_text",
                  "normalized_mention",
                  "directory_operand",
                  "catalog_fact",
                  "referent",
                  "prior_step_output"
                ]
              },
              "sourceRef": {
                "type": "string"
              }
            },
            "required": [
              "inputName",
              "derivedFrom"
            ]
          }
        }
      },
      "required": [
        "askRestatement",
        "confidence",
        "worldRoleBindings",
        "catalogEntryRefs",
        "chosenInterpretation",
        "consideredAlternatives",
        "bindingProvenance"
      ]
    }
  },
  "required": [
    "proposalId",
    "workstreamId",
    "createdAt",
    "proposalState",
    "surfaceKind",
    "motivatingReferent",
    "summary",
    "action",
    "authority",
    "approval",
    "expectedOutputs",
    "costEstimate",
    "evidence",
    "interpretation"
  ]
}

HuelvaAllowanceChangeRequest

{
  "type": "object",
  "properties": {
    "allowanceMode": {
      "$ref": "#/components/schemas/HuelvaAllowanceMode"
    },
    "note": {
      "type": "string"
    }
  },
  "required": [
    "allowanceMode"
  ]
}

HuelvaAllowanceMode

{
  "type": "string",
  "enum": [
    "always_confirm",
    "allow_helpful"
  ]
}

HuelvaApprovalExecutionProofStep

{
  "type": "object",
  "properties": {
    "stepId": {
      "type": "string"
    },
    "receiptRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "canonicalOutputs": {
      "$ref": "#/components/schemas/CapabilityCanonicalOutputEnvelope"
    }
  },
  "required": [
    "stepId",
    "receiptRefs"
  ]
}

HuelvaApprovalFloor

{
  "type": "string",
  "enum": [
    "read_exempt",
    "helpful_allow",
    "always_confirm",
    "required_consent",
    "not_autonomous"
  ]
}

HuelvaApprovalPlaneId

{
  "type": "string"
}

HuelvaApprovalResolutionState

{
  "type": "string",
  "enum": [
    "pending_local_confirm",
    "pending_consensus",
    "pending_review",
    "bridge_failed",
    "approved",
    "partially_completed",
    "rejected",
    "expired",
    "superseded"
  ]
}

HuelvaApprovalStatusResult

{
  "type": "object",
  "properties": {
    "kind": {
      "type": "string",
      "const": "approval_status"
    },
    "subjectKind": {
      "type": "string",
      "enum": [
        "proposal",
        "plan"
      ]
    },
    "subjectId": {
      "type": "string"
    },
    "workstreamId": {
      "$ref": "#/components/schemas/HuelvaWorkstreamId"
    },
    "resolutionState": {
      "$ref": "#/components/schemas/HuelvaApprovalResolutionState"
    },
    "clearedPlaneIds": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/HuelvaApprovalPlaneId"
      }
    },
    "remainingPlaneIds": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/HuelvaApprovalPlaneId"
      }
    },
    "executionBridged": {
      "type": "boolean"
    },
    "status": {
      "type": "string",
      "const": "error"
    },
    "failureCode": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "terminalRecordRef": {
      "type": "string"
    },
    "executionProof": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/HuelvaApprovalExecutionProofStep"
      }
    },
    "partialExecution": {
      "$ref": "#/components/schemas/HuelvaPartialExecutionReport"
    },
    "executionStrategy": {
      "$ref": "#/components/schemas/HuelvaExecutionStrategySummary"
    },
    "stagedRemainder": {
      "$ref": "#/components/schemas/HuelvaResolutionStagedArtifact"
    },
    "repairDispositions": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/HuelvaDrivenRepairDisposition"
      }
    },
    "bridgeFailureCode": {
      "type": "string"
    },
    "bridgeFailureStage": {
      "type": "string"
    },
    "bridgeFailureMessage": {
      "type": "string"
    },
    "restageRequired": {
      "type": "boolean",
      "const": true
    },
    "executionAttemptAxes": {
      "$ref": "#/components/schemas/HuelvaExecutionAttemptAxes"
    }
  },
  "required": [
    "kind",
    "subjectKind",
    "subjectId",
    "workstreamId",
    "resolutionState",
    "clearedPlaneIds",
    "remainingPlaneIds",
    "executionBridged"
  ]
}

HuelvaArtifactRevisionRef

{
  "type": "object",
  "properties": {
    "artifactKind": {
      "type": "string",
      "enum": [
        "proposal",
        "plan"
      ]
    },
    "artifactId": {
      "type": "string"
    },
    "artifactRef": {
      "type": "string"
    },
    "artifactDigest": {
      "type": "string"
    },
    "targetWorldIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "artifactKind",
    "artifactId",
    "artifactRef",
    "artifactDigest"
  ]
}

HuelvaArtifactSupersession

{
  "type": "object",
  "properties": {
    "reason": {
      "type": "string",
      "enum": [
        "history_persistence_failed",
        "artifact_revision"
      ]
    },
    "operationId": {
      "type": "string"
    },
    "supersededAt": {
      "type": "string"
    },
    "supersededByArtifactId": {
      "type": "string"
    },
    "sourceRequestId": {
      "type": "string"
    }
  },
  "required": [
    "reason",
    "operationId",
    "supersededAt"
  ]
}

HuelvaAttemptCancellation

{
  "type": "string",
  "enum": [
    "none",
    "requested",
    "confirmed",
    "unsupported"
  ]
}

HuelvaAttemptOutcome

{
  "type": [
    "null",
    "string"
  ],
  "enum": [
    null,
    "succeeded",
    "failed",
    "outcome_unknown"
  ]
}

HuelvaAttemptPhase

{
  "type": "string",
  "enum": [
    "accepted",
    "dispatched",
    "running",
    "terminal"
  ]
}

HuelvaAttemptReconciliation

{
  "type": "string",
  "enum": [
    "not_applicable",
    "pending",
    "recovered",
    "unrecoverable"
  ]
}

HuelvaAttemptSettlementEmission

{
  "type": "string",
  "enum": [
    "not_applicable",
    "not_emitted",
    "emitted"
  ]
}

HuelvaBindingSourceKind

{
  "type": "string",
  "enum": [
    "user_input",
    "literal",
    "referent",
    "resolved_ref",
    "catalog_fact",
    "prior_step_output"
  ]
}

HuelvaCapabilityAdmissionEvent

{
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "const": "admitted"
        },
        "capabilityRef": {
          "type": "string"
        },
        "token": {
          "type": "string"
        },
        "source": {
          "type": "string",
          "enum": [
            "opening_page",
            "retrieval_rerank",
            "search_operations"
          ]
        },
        "queryViewRevision": {
          "type": "number"
        }
      },
      "required": [
        "kind",
        "capabilityRef",
        "token",
        "source",
        "queryViewRevision"
      ]
    },
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "reranked",
            "inspected"
          ]
        },
        "capabilityRef": {
          "type": "string"
        },
        "token": {
          "type": "string"
        },
        "queryViewRevision": {
          "type": "number"
        }
      },
      "required": [
        "kind",
        "capabilityRef",
        "token",
        "queryViewRevision"
      ]
    }
  ]
}

HuelvaCapabilityReadOwnerCoordinate

{
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "const": "hub_flow"
        },
        "operationRef": {
          "type": "string"
        },
        "loweringRef": {
          "type": "string"
        },
        "packageRef": {
          "type": "string"
        },
        "flowId": {
          "$ref": "#/components/schemas/FlowId"
        }
      },
      "required": [
        "kind",
        "operationRef",
        "loweringRef",
        "packageRef",
        "flowId"
      ]
    },
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "const": "direct_owner"
        },
        "operationRef": {
          "type": "string"
        },
        "loweringRef": {
          "type": "string"
        },
        "ownerFamily": {
          "type": "string"
        },
        "executionClass": {
          "type": "string",
          "enum": [
            "consult",
            "execute"
          ]
        }
      },
      "required": [
        "kind",
        "operationRef",
        "loweringRef",
        "ownerFamily",
        "executionClass"
      ]
    }
  ]
}

HuelvaClarificationCandidate

{
  "type": "object",
  "properties": {
    "candidateRef": {
      "type": "string"
    },
    "label": {
      "type": "string"
    },
    "sourceKind": {
      "type": "string",
      "enum": [
        "catalog_entry",
        "directory_operand",
        "capability",
        "literal"
      ]
    },
    "disambiguator": {
      "type": "string"
    },
    "workstreamId": {
      "$ref": "#/components/schemas/HuelvaWorkstreamId"
    },
    "followthroughAsk": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "proposal_followthrough"
            },
            "proposalId": {
              "type": "string"
            },
            "requestedAction": {
              "$ref": "#/components/schemas/HuelvaFollowthroughAction"
            }
          },
          "required": [
            "kind",
            "proposalId",
            "requestedAction"
          ]
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "plan_followthrough"
            },
            "planId": {
              "type": "string"
            },
            "requestedAction": {
              "$ref": "#/components/schemas/HuelvaFollowthroughAction"
            }
          },
          "required": [
            "kind",
            "planId",
            "requestedAction"
          ]
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "outcome_followthrough"
            },
            "outcomeRef": {
              "type": "string"
            }
          },
          "required": [
            "kind",
            "outcomeRef"
          ]
        }
      ]
    }
  },
  "required": [
    "candidateRef",
    "label",
    "sourceKind"
  ]
}

HuelvaClarificationRequest

{
  "type": "object",
  "properties": {
    "reason": {
      "type": "string",
      "enum": [
        "ambiguous_intent",
        "ambiguous_operand",
        "unbound_required_input",
        "capability_unavailable",
        "missing_world_focus",
        "scope_uncertain",
        "plan_bounds_exceeded"
      ]
    },
    "question": {
      "type": "string"
    },
    "blockingField": {
      "type": "string"
    },
    "candidates": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/HuelvaClarificationCandidate"
      }
    },
    "resolvedSoFar": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "inputName": {
            "type": "string"
          },
          "bindingPath": {
            "$ref": "#/components/schemas/CapabilityBindingPath"
          },
          "sourceKind": {
            "$ref": "#/components/schemas/HuelvaBindingSourceKind"
          },
          "valueSummary": {
            "type": "string"
          },
          "value": {},
          "resolvedRef": {
            "type": "string"
          },
          "sourceStepId": {
            "type": "string"
          },
          "sourceOutputKey": {
            "type": "string"
          },
          "sourceOutputSemanticTypeRef": {
            "type": "string"
          },
          "onMissing": {
            "type": "string",
            "const": "omit"
          }
        },
        "required": [
          "inputName",
          "sourceKind",
          "valueSummary"
        ]
      }
    },
    "resolvedInsufficiencyGroups": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/HuelvaParentInsufficiencyGroup"
      },
      "minItems": 1
    }
  },
  "required": [
    "reason",
    "question"
  ]
}

HuelvaClientProfile

{
  "type": "string",
  "enum": [
    "chat_room",
    "world_session",
    "guide",
    "mobile",
    "api"
  ]
}

HuelvaClientSettlementPlan

{
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "mode": {
          "type": "string",
          "const": "client_follow"
        }
      },
      "required": [
        "mode"
      ]
    },
    {
      "type": "object",
      "properties": {
        "mode": {
          "type": "string",
          "const": "client_textworkbench"
        }
      },
      "required": [
        "mode"
      ]
    },
    {
      "type": "object",
      "properties": {
        "mode": {
          "type": "string",
          "const": "client_story_workspace"
        },
        "storyIdInputName": {
          "type": "string"
        },
        "assetIdInputName": {
          "type": "string"
        },
        "worldIdInputName": {
          "type": "string"
        },
        "chunkIdInputName": {
          "type": "string"
        },
        "startCharInputName": {
          "type": "string"
        },
        "endCharInputName": {
          "type": "string"
        }
      },
      "required": [
        "mode",
        "storyIdInputName"
      ]
    },
    {
      "type": "object",
      "properties": {
        "mode": {
          "type": "string",
          "const": "client_make_prompt"
        },
        "promptInputName": {
          "type": "string"
        },
        "revisionInputName": {
          "type": "string"
        },
        "generationTypeInputName": {
          "type": "string"
        },
        "referenceMediaRefInputName": {
          "type": "string"
        },
        "referenceUrlInputName": {
          "type": "string"
        },
        "referenceAssetIdInputName": {
          "type": "string"
        },
        "promptStateKnownInputName": {
          "type": "string"
        }
      },
      "required": [
        "mode",
        "promptInputName"
      ]
    },
    {
      "type": "object",
      "properties": {
        "mode": {
          "type": "string",
          "const": "client_make_execute"
        }
      },
      "required": [
        "mode"
      ]
    }
  ],
  "description": "Authored same-turn client settlement carried from a platform row onto a staged auto-runnable proposal. This is owner metadata, not a host guess."
}

HuelvaConfirmAllowanceChangeAction

{
  "type": "object",
  "properties": {
    "action": {
      "type": "string",
      "const": "confirm_allowance_change"
    },
    "allowanceChange": {
      "$ref": "#/components/schemas/HuelvaAllowanceChangeRequest"
    }
  },
  "required": [
    "action",
    "allowanceChange"
  ]
}

HuelvaContextPacketKind

{
  "type": "string",
  "enum": [
    "focus.context",
    "room.snapshot",
    "room.delta",
    "world.surface",
    "world.proof",
    "operator.slice"
  ]
}

HuelvaDirectoryFailureCode

{
  "type": "string",
  "enum": [
    "library_directory_invalid",
    "library_directory_empty",
    "library_directory_load_failed",
    "library_slice_unknown",
    "library_slice_source_missing",
    "library_slice_graph_row_invalid",
    "library_slice_graph_failed",
    "library_slice_stalled",
    "library_slice_materialization_failed"
  ]
}

HuelvaDrivenRepairDisposition

{
  "type": "string",
  "enum": [
    "checkpoint_repair_pending",
    "continuity_pending"
  ]
}

HuelvaExecutionAttemptAxes

{
  "type": "object",
  "properties": {
    "phase": {
      "$ref": "#/components/schemas/HuelvaAttemptPhase"
    },
    "outcome": {
      "$ref": "#/components/schemas/HuelvaAttemptOutcome"
    },
    "reconciliation": {
      "$ref": "#/components/schemas/HuelvaAttemptReconciliation"
    },
    "cancellation": {
      "$ref": "#/components/schemas/HuelvaAttemptCancellation"
    },
    "settlementEmission": {
      "$ref": "#/components/schemas/HuelvaAttemptSettlementEmission"
    }
  },
  "required": [
    "phase",
    "outcome",
    "reconciliation",
    "cancellation",
    "settlementEmission"
  ]
}

HuelvaExecutionStrategySummary

{
  "type": "object",
  "properties": {
    "strategy": {
      "type": "string",
      "enum": [
        "serial",
        "independent_roots",
        "fanout_shards",
        "mixed"
      ]
    },
    "logicalStepCount": {
      "type": "number"
    },
    "executionUnitCount": {
      "type": "number"
    },
    "fanoutGroupCount": {
      "type": "number"
    },
    "observedMaxInFlight": {
      "type": "number"
    },
    "concurrentAdmissionObserved": {
      "type": "boolean"
    }
  },
  "required": [
    "strategy",
    "logicalStepCount",
    "executionUnitCount",
    "fanoutGroupCount",
    "observedMaxInFlight",
    "concurrentAdmissionObserved"
  ]
}

HuelvaFanoutMember

{
  "type": "object",
  "properties": {
    "targetRef": {
      "type": "string"
    },
    "actionDigest": {
      "type": "string"
    },
    "action": {
      "type": "object",
      "properties": {
        "executionClass": {
          "type": "string",
          "enum": [
            "consult",
            "execute",
            "registered_flow"
          ]
        },
        "targetingMode": {
          "type": "string",
          "enum": [
            "conversation_home",
            "focused_shell",
            "resolved_world",
            "multi_world"
          ]
        },
        "handoffOwner": {
          "type": "string",
          "enum": [
            "consult",
            "execute",
            "registered_flow",
            "world_focus"
          ]
        },
        "dispatchMode": {
          "type": "string",
          "enum": [
            "direct_owner_handoff",
            "focus_in_place",
            "focus_then_act"
          ]
        },
        "targetWorldIds": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "workHomeWorldIds": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "focusBinding": {
          "type": "object",
          "properties": {
            "worldId": {
              "type": "string"
            },
            "sessionId": {
              "type": "string"
            },
            "mountRevision": {
              "type": "string"
            },
            "source": {
              "type": "string",
              "const": "committed_world_focus"
            }
          },
          "required": [
            "worldId",
            "sessionId",
            "source"
          ]
        },
        "focusTransitionTargetWorldId": {
          "type": "string"
        },
        "packageRef": {
          "type": "string"
        },
        "flowId": {
          "type": "string"
        },
        "intentKinds": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "catalogActionRefs": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Registry-owned capability↔action lineage copied from the platform row at staging time. This is authored action-lineage truth copied verbatim; nothing infers it from names or prose."
        },
        "clientSettlement": {
          "$ref": "#/components/schemas/HuelvaClientSettlementPlan",
          "description": "Authored same-turn client settlement copied from the platform row when the row's auto-runnable effect belongs to a local surface."
        },
        "inputBindings": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "inputName": {
                "type": "string"
              },
              "bindingPath": {
                "$ref": "#/components/schemas/CapabilityBindingPath"
              },
              "sourceKind": {
                "$ref": "#/components/schemas/HuelvaBindingSourceKind"
              },
              "valueSummary": {
                "type": "string"
              },
              "value": {},
              "resolvedRef": {
                "type": "string"
              },
              "sourceStepId": {
                "type": "string"
              },
              "sourceOutputKey": {
                "type": "string"
              },
              "sourceOutputSemanticTypeRef": {
                "type": "string"
              },
              "onMissing": {
                "type": "string",
                "const": "omit"
              }
            },
            "required": [
              "inputName",
              "sourceKind",
              "valueSummary"
            ]
          }
        },
        "capabilityContractPin": {
          "type": "object",
          "properties": {
            "operationRef": {
              "type": "string"
            },
            "ownerFamily": {
              "type": "string"
            },
            "operationVersion": {
              "type": "string"
            },
            "digestVersion": {
              "type": "string",
              "const": "v2"
            },
            "contractDigest": {
              "type": "string"
            },
            "inputSchemaDigest": {
              "type": "string"
            },
            "resultSchemaDigest": {
              "type": "string"
            },
            "idempotency": {
              "type": "string",
              "enum": [
                "read_only",
                "required"
              ]
            },
            "presentationDigest": {
              "type": "string"
            },
            "snapshotDigest": {
              "type": "string"
            },
            "callerAvailabilityDigest": {
              "type": "string"
            }
          },
          "required": [
            "operationRef",
            "ownerFamily",
            "operationVersion",
            "digestVersion",
            "contractDigest",
            "inputSchemaDigest",
            "resultSchemaDigest",
            "idempotency"
          ]
        },
        "groundingStatus": {
          "type": "string",
          "enum": [
            "proven_satisfiable",
            "partially_grounded"
          ]
        }
      },
      "required": [
        "executionClass",
        "targetingMode",
        "handoffOwner",
        "dispatchMode",
        "targetWorldIds",
        "workHomeWorldIds",
        "intentKinds",
        "inputBindings",
        "groundingStatus"
      ]
    }
  },
  "required": [
    "targetRef",
    "actionDigest",
    "action"
  ]
}

HuelvaFollowthroughAction

{
  "type": "string",
  "enum": [
    "approve",
    "reject",
    "status",
    "retry_failed_remainder"
  ]
}

HuelvaLibraryDirectoryExposure

{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "ready",
        "unavailable"
      ]
    },
    "contentDigest": {
      "type": [
        "string",
        "null"
      ]
    },
    "renderTier": {
      "type": "string",
      "enum": [
        "compact",
        "partial",
        "none"
      ]
    },
    "shownClusterCount": {
      "type": "number"
    },
    "omittedClusterCount": {
      "type": "number"
    },
    "shownSliceCount": {
      "type": "number"
    },
    "omittedSliceCount": {
      "type": "number"
    },
    "serializedBytes": {
      "type": "number"
    },
    "estimatedTokens": {
      "type": "number"
    }
  },
  "required": [
    "status",
    "contentDigest",
    "renderTier",
    "shownClusterCount",
    "omittedClusterCount",
    "shownSliceCount",
    "omittedSliceCount",
    "serializedBytes",
    "estimatedTokens"
  ]
}

HuelvaLibraryEdgeFamily

{
  "type": "string",
  "enum": [
    "structural_containment",
    "action_semantics",
    "lifecycle_transition",
    "capability_lineage",
    "proof_and_authority",
    "lookup_law",
    "translation_crosswalk",
    "projection_provenance"
  ]
}

HuelvaLibraryNavigation

{
  "type": "object",
  "properties": {
    "selectedSlices": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/HuelvaLibrarySliceRef"
      }
    },
    "perSlice": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "slice": {
            "$ref": "#/components/schemas/HuelvaLibrarySliceRef"
          },
          "admittedEntryIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "traversedEdges": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "fromRef": {
                  "type": "string"
                },
                "edgeType": {
                  "type": "string"
                },
                "toRef": {
                  "type": "string"
                }
              },
              "required": [
                "fromRef",
                "edgeType",
                "toRef"
              ]
            }
          }
        },
        "required": [
          "slice",
          "admittedEntryIds",
          "traversedEdges"
        ]
      }
    },
    "relatedSlices": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "reason": {
            "type": "string"
          },
          "clusterId": {
            "type": "string"
          },
          "sliceId": {
            "type": "string"
          }
        },
        "required": [
          "clusterId",
          "reason",
          "sliceId"
        ]
      }
    },
    "coverage": {
      "type": "string",
      "enum": [
        "bounded",
        "partial"
      ]
    },
    "alreadyRevealedTokens": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "findings": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/HuelvaLibrarySelectionFinding"
      }
    },
    "fallback": {
      "type": "string",
      "const": "ordinary_search"
    }
  },
  "required": [
    "selectedSlices",
    "perSlice",
    "relatedSlices",
    "coverage",
    "alreadyRevealedTokens",
    "findings"
  ]
}

HuelvaLibraryRelationshipEvidence

{
  "type": "object",
  "properties": {
    "fromRef": {
      "type": "string"
    },
    "edgeType": {
      "type": "string"
    },
    "family": {
      "$ref": "#/components/schemas/HuelvaLibraryEdgeFamily"
    },
    "toRef": {
      "type": "string"
    },
    "authoredSources": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "clusterId": {
            "type": "string"
          },
          "ordinal": {
            "type": "number"
          }
        },
        "required": [
          "clusterId",
          "ordinal"
        ]
      }
    }
  },
  "required": [
    "fromRef",
    "edgeType",
    "family",
    "toRef",
    "authoredSources"
  ]
}

HuelvaLibraryRetrievalDriftFinding

{
  "type": "object",
  "properties": {
    "capabilityRef": {
      "type": "string"
    },
    "storedOperationRef": {
      "type": "string"
    },
    "currentOperationRef": {
      "type": "string"
    },
    "rootSource": {
      "type": "string",
      "enum": [
        "semantic_root",
        "graph_neighbor",
        "standing_work"
      ]
    },
    "disposition": {
      "type": "string",
      "enum": [
        "drop_missing_capability",
        "drop_operation_ref_mismatch"
      ]
    }
  },
  "required": [
    "capabilityRef",
    "storedOperationRef",
    "rootSource",
    "disposition"
  ],
  "description": "Stale-pair finding raised before prompt admission sees a `capabilityRef`/`operationRef` pair whose stored `operationRef` no longer matches the row's current sealed identity, or whose `capabilityRef` no longer resolves to a current graph-admitted public row at all (`HUELVA_LIBRARY_OPERATOR_MIGRATION.md §4.8`). `lib/huelva/catalog/catalogService.ts` is the canonical owner of appending these to the retrieval trace (`HOPL-D-06`); `progressiveRetrieval.ts` preserves them and `lib/huelva/shell/prototype.ts` may log/render them diagnostically but never repairs a stale pair from Neo4j."
}

HuelvaLibraryRetrievalFailureCode

{
  "type": "string",
  "enum": [
    "vector_index_missing",
    "operator_embeddings_missing",
    "query_embedding_failed",
    "semantic_roots_empty",
    "capability_index_missing"
  ]
}

HuelvaLibraryRetrievalTrace

{
  "type": "object",
  "properties": {
    "retrievalMode": {
      "type": "string",
      "enum": [
        "semantic_root_first",
        "directory_selected"
      ]
    },
    "queryEmbeddingModel": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "huelva_operator",
        null
      ]
    },
    "vectorIndexName": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "operator_entry_embedding",
        null
      ]
    },
    "semanticRootIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "semanticRootScores": {
      "type": "object",
      "additionalProperties": {
        "type": "number"
      }
    },
    "exactAnchorEntryIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "exactAnchorAnswerIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "clusterMemberAnchorIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "graphExpandedEntryIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "traversedEdges": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/OperatorSemanticNeighborhoodEdge"
      }
    },
    "admissionByEntryId": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/OperatorSemanticNeighborhoodAdmission"
      }
    },
    "reachedCapabilities": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/HuelvaReachedCapability"
      },
      "description": "Capabilities reached by this crawl: direct semantic roots over `operator_capability_embedding` plus `EXPOSES_CAPABILITY` neighbors of materialized entries (HUELVA_REASONING_AMENDMENT §24.3)."
    },
    "driftFindings": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/HuelvaLibraryRetrievalDriftFinding"
      },
      "description": "Stale-pair findings raised by resolving every `reachedCapabilities` entry against the current sealed platform index before this trace reaches any prompt or staging surface (`HUELVA_LIBRARY_OPERATOR_MIGRATION.md §4.8`, `HOPL-D-06`). A finding means the paired entry was dropped from `reachedCapabilities`, never silently repaired."
    },
    "capabilityLaneFailureCode": {
      "$ref": "#/components/schemas/HuelvaLibraryRetrievalFailureCode",
      "description": "Capability lane infrastructure failure (e.g. missing capability vector index). Surfaced honestly instead of silently returning an empty lane; never a license for lexical fallback."
    },
    "lexicalRootCount": {
      "type": "number",
      "const": 0
    },
    "lexicalHelpersUsed": {
      "type": "array",
      "minItems": 0,
      "maxItems": 0
    },
    "vectorVerificationCacheHit": {
      "type": "boolean"
    },
    "truncatedLanes": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "exact",
          "semantic",
          "graph"
        ]
      }
    },
    "failureCode": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/HuelvaLibraryRetrievalFailureCode"
        },
        {
          "$ref": "#/components/schemas/HuelvaDirectoryFailureCode"
        }
      ]
    },
    "directorySelection": {
      "type": "object",
      "properties": {
        "contentDigest": {
          "type": [
            "string",
            "null"
          ]
        },
        "requestedSlices": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/HuelvaLibrarySliceRef"
          }
        },
        "resolvedSlices": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/HuelvaLibrarySliceRef"
          }
        },
        "resolvedSourceHashes": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "clusterId": {
                "type": "string"
              },
              "sliceId": {
                "type": "string"
              },
              "sourceHash": {
                "type": "string"
              }
            },
            "required": [
              "clusterId",
              "sliceId",
              "sourceHash"
            ]
          }
        },
        "fallback": {
          "type": "string",
          "const": "ordinary_search"
        },
        "rootEntryIds": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "omittedRootEntryIds": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "answerIds": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "admissions": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "slice": {
                "$ref": "#/components/schemas/HuelvaLibrarySliceRef"
              },
              "rootEntryId": {
                "type": "string"
              },
              "entryId": {
                "type": "string"
              },
              "distance": {
                "type": "number"
              },
              "parentEntryIds": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "edges": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "fromRef": {
                      "type": "string"
                    },
                    "edgeType": {
                      "type": "string"
                    },
                    "toRef": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "fromRef",
                    "edgeType",
                    "toRef"
                  ]
                }
              }
            },
            "required": [
              "slice",
              "rootEntryId",
              "entryId",
              "distance",
              "parentEntryIds",
              "edges"
            ]
          }
        },
        "relatedSlices": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "reason": {
                "type": "string"
              },
              "clusterId": {
                "type": "string"
              },
              "sliceId": {
                "type": "string"
              }
            },
            "required": [
              "clusterId",
              "reason",
              "sliceId"
            ]
          }
        },
        "coverage": {
          "type": "string",
          "enum": [
            "bounded",
            "partial"
          ]
        },
        "guardsReached": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "depth",
              "breadth",
              "nodes"
            ]
          }
        },
        "rootHydrationMs": {
          "type": "number"
        },
        "graphMs": {
          "type": "number"
        },
        "materializationMs": {
          "type": "number"
        },
        "returnedEntryCount": {
          "type": "number"
        },
        "returnedAnswerCount": {
          "type": "number"
        },
        "returnedRelationshipCount": {
          "type": "number"
        },
        "findings": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/HuelvaLibrarySelectionFinding"
          }
        }
      },
      "required": [
        "contentDigest",
        "requestedSlices",
        "resolvedSlices",
        "resolvedSourceHashes",
        "rootEntryIds",
        "omittedRootEntryIds",
        "answerIds",
        "admissions",
        "relatedSlices",
        "coverage",
        "guardsReached",
        "rootHydrationMs",
        "graphMs",
        "materializationMs",
        "returnedEntryCount",
        "returnedAnswerCount",
        "returnedRelationshipCount",
        "findings"
      ]
    }
  },
  "required": [
    "retrievalMode",
    "queryEmbeddingModel",
    "vectorIndexName",
    "semanticRootIds",
    "semanticRootScores",
    "exactAnchorEntryIds",
    "exactAnchorAnswerIds",
    "clusterMemberAnchorIds",
    "graphExpandedEntryIds",
    "traversedEdges",
    "admissionByEntryId",
    "reachedCapabilities",
    "driftFindings",
    "lexicalRootCount",
    "lexicalHelpersUsed"
  ]
}

HuelvaLibraryRootSource

{
  "type": "string",
  "enum": [
    "semantic_root",
    "exact_entry_anchor",
    "exact_answer_anchor",
    "directory_slice_anchor",
    "cluster_member_anchor",
    "capability_exposure",
    "graph_neighbor"
  ]
}

HuelvaLibrarySelectionFinding

{
  "type": "object",
  "properties": {
    "code": {
      "$ref": "#/components/schemas/HuelvaDirectoryFailureCode"
    },
    "slice": {
      "$ref": "#/components/schemas/HuelvaLibrarySliceRef"
    },
    "ref": {
      "type": "string"
    },
    "sourcePath": {
      "type": "string"
    }
  },
  "required": [
    "code"
  ]
}

HuelvaLibrarySliceRef

{
  "type": "object",
  "properties": {
    "clusterId": {
      "type": "string"
    },
    "sliceId": {
      "type": "string"
    }
  },
  "required": [
    "clusterId",
    "sliceId"
  ]
}

HuelvaLookupPosture

{
  "type": "string",
  "enum": [
    "none",
    "optional",
    "required"
  ]
}

HuelvaModelOutreachPurpose

{
  "type": "string",
  "enum": [
    "explicit_general",
    "residual_background_gap"
  ]
}

HuelvaOperatorHintReason

{
  "type": "string",
  "enum": [
    "route_interpretation",
    "proof_interpretation",
    "approval_interpretation",
    "planning",
    "outcome_explanation",
    "drift_or_intent_check"
  ]
}

HuelvaOperatorHints

{
  "type": "object",
  "properties": {
    "lookupPosture": {
      "$ref": "#/components/schemas/HuelvaLookupPosture"
    },
    "reasons": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/HuelvaOperatorHintReason"
      }
    },
    "entryIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "answerIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "clusterIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Catalog cluster ids (stable section identities). Surface adapters name the knowledge DOMAINS they need; the catalog owns which entries and answer cards belong to each domain and expands membership at slice assembly. Adapters must not enumerate entry/answer ids the catalog already owns — that duplicates library membership into surface code."
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "queryText": {
      "type": "string"
    }
  },
  "required": [
    "lookupPosture",
    "reasons"
  ]
}

HuelvaParentInsufficiencyCode

{
  "type": "string",
  "enum": [
    "no_legal_owner",
    "owner_unavailable",
    "policy_blocked",
    "approval_plane_blocked",
    "capability_not_found",
    "operand_unresolvable",
    "scope_unavailable",
    "output_class_unsupported",
    "runtime_path_unavailable",
    "retrieval_substrate_unavailable",
    "budget_exhausted"
  ]
}

HuelvaParentInsufficiencyGroup

{
  "type": "object",
  "properties": {
    "groupId": {
      "type": "string"
    },
    "insufficiencyCode": {
      "$ref": "#/components/schemas/HuelvaParentInsufficiencyCode"
    },
    "blockedRequirementIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "minItems": 1
    },
    "proofRefs": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "minItems": 1
    }
  },
  "required": [
    "groupId",
    "insufficiencyCode",
    "blockedRequirementIds",
    "proofRefs"
  ]
}

HuelvaPartialExecutionReport

{
  "type": "object",
  "properties": {
    "sourcePlanId": {
      "type": "string"
    },
    "sourceArtifactDigest": {
      "type": "string"
    },
    "completedShardCount": {
      "type": "number"
    },
    "totalShardCount": {
      "type": "number"
    },
    "retryableShardIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "retryableShardDigest": {
      "type": "string"
    },
    "shardOutcomes": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/HuelvaShardOutcome"
      }
    }
  },
  "required": [
    "sourcePlanId",
    "sourceArtifactDigest",
    "completedShardCount",
    "totalShardCount",
    "retryableShardIds",
    "retryableShardDigest",
    "shardOutcomes"
  ]
}

HuelvaPerformanceSpan

{
  "type": "object",
  "properties": {
    "startedAt": {
      "type": "string"
    },
    "completedAt": {
      "type": "string"
    },
    "durationMs": {
      "type": "number"
    },
    "spanId": {
      "type": "string"
    },
    "parentSpanId": {
      "type": [
        "string",
        "null"
      ]
    },
    "name": {
      "type": "string"
    },
    "category": {
      "anyOf": [
        {
          "type": "object",
          "properties": {}
        },
        {
          "type": "object",
          "properties": {}
        },
        {
          "type": "object",
          "properties": {}
        },
        {
          "type": "object",
          "properties": {}
        },
        {
          "type": "object",
          "properties": {}
        },
        {
          "type": "object",
          "properties": {}
        },
        {
          "type": "object",
          "properties": {}
        },
        {
          "type": "object",
          "properties": {}
        },
        {
          "type": "object",
          "properties": {}
        }
      ]
    },
    "outcome": {
      "anyOf": [
        {
          "type": "object",
          "properties": {}
        },
        {
          "type": "object",
          "properties": {}
        }
      ]
    },
    "attributes": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "startedAt",
    "completedAt",
    "durationMs",
    "spanId",
    "parentSpanId",
    "name",
    "category",
    "outcome",
    "attributes"
  ]
}

HuelvaPerformanceTrace

{
  "type": "object",
  "properties": {
    "schema": {
      "type": "string",
      "const": "starholder.huelva.performance_trace.v1"
    },
    "traceId": {
      "type": "string"
    },
    "startedAt": {
      "type": "string"
    },
    "completedAt": {
      "type": "string"
    },
    "durationMs": {
      "type": "number"
    },
    "spans": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/HuelvaPerformanceSpan"
      }
    },
    "summary": {
      "type": "object",
      "properties": {
        "spanCount": {
          "type": "number"
        },
        "modelCallCount": {
          "type": "number"
        },
        "toolCallCount": {
          "type": "number"
        },
        "storageOperationCount": {
          "type": "number"
        },
        "errorCount": {
          "type": "number"
        },
        "modelDurationMs": {
          "type": "number"
        },
        "toolDurationMs": {
          "type": "number"
        },
        "storageDurationMs": {
          "type": "number"
        },
        "publicationOperationCount": {
          "type": "number"
        },
        "stagePersistDurationMs": {
          "type": "number"
        },
        "historyPublishDurationMs": {
          "type": "number"
        },
        "revisionCommitDurationMs": {
          "type": "number"
        },
        "firstLibraryEvidenceMs": {
          "type": "number"
        },
        "hostDispatchOverheadMs": {
          "type": "number"
        },
        "providerStepCount": {
          "type": "number"
        },
        "slowestSpanName": {
          "type": [
            "string",
            "null"
          ]
        },
        "slowestSpanDurationMs": {
          "type": "number"
        }
      },
      "required": [
        "spanCount",
        "modelCallCount",
        "toolCallCount",
        "storageOperationCount",
        "errorCount",
        "modelDurationMs",
        "toolDurationMs",
        "storageDurationMs",
        "publicationOperationCount",
        "stagePersistDurationMs",
        "historyPublishDurationMs",
        "revisionCommitDurationMs",
        "slowestSpanName",
        "slowestSpanDurationMs"
      ]
    }
  },
  "required": [
    "schema",
    "traceId",
    "startedAt",
    "completedAt",
    "durationMs",
    "spans",
    "summary"
  ]
}

HuelvaPlan

{
  "type": "object",
  "properties": {
    "planId": {
      "type": "string"
    },
    "workstreamId": {
      "$ref": "#/components/schemas/HuelvaWorkstreamId"
    },
    "createdAt": {
      "type": "string"
    },
    "planState": {
      "$ref": "#/components/schemas/HuelvaPlanState"
    },
    "retryOf": {
      "$ref": "#/components/schemas/HuelvaRetryOf"
    },
    "revisionOf": {
      "$ref": "#/components/schemas/HuelvaArtifactRevisionRef"
    },
    "supersession": {
      "$ref": "#/components/schemas/HuelvaArtifactSupersession"
    },
    "surfaceKind": {
      "$ref": "#/components/schemas/HuelvaSurfaceKind"
    },
    "motivatingReferent": {
      "$ref": "#/components/schemas/HuelvaReferentAddress"
    },
    "goalRestatement": {
      "type": "string"
    },
    "worldRoleBindings": {
      "type": "object",
      "properties": {
        "conversationHome": {
          "type": "object",
          "properties": {
            "worldId": {
              "type": "string"
            },
            "sessionId": {
              "type": "string"
            },
            "sourceRef": {
              "type": "string"
            }
          },
          "required": [
            "worldId",
            "sourceRef"
          ]
        },
        "focusedWorld": {
          "type": "object",
          "properties": {
            "worldId": {
              "type": "string"
            },
            "sessionId": {
              "type": "string"
            },
            "mountRevision": {
              "type": "string"
            },
            "sourceRef": {
              "type": "string"
            }
          },
          "required": [
            "worldId",
            "sourceRef"
          ]
        },
        "discussedWorlds": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "worldId": {
                "type": "string"
              },
              "sessionId": {
                "type": "string"
              },
              "sourceRef": {
                "type": "string"
              }
            },
            "required": [
              "worldId",
              "sourceRef"
            ]
          }
        },
        "authoritativeWorlds": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/HuelvaWorldAuthorityRow"
          }
        },
        "targetWorldIds": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "workHomeWorldIds": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "requiresFocusTransition": {
          "type": "boolean"
        }
      },
      "required": [
        "discussedWorlds",
        "targetWorldIds",
        "workHomeWorldIds",
        "requiresFocusTransition"
      ]
    },
    "executionMode": {
      "type": "string",
      "enum": [
        "compiled_dag",
        "driven_sequence"
      ]
    },
    "targetSelections": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/HuelvaTargetSelectionProof"
      }
    },
    "steps": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "stepId": {
            "type": "string"
          },
          "ordinal": {
            "type": "number"
          },
          "dependsOn": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "action": {
            "type": "object",
            "properties": {
              "executionClass": {
                "type": "string",
                "enum": [
                  "consult",
                  "execute",
                  "registered_flow"
                ]
              },
              "targetingMode": {
                "type": "string",
                "enum": [
                  "conversation_home",
                  "focused_shell",
                  "resolved_world",
                  "multi_world"
                ]
              },
              "handoffOwner": {
                "type": "string",
                "enum": [
                  "consult",
                  "execute",
                  "registered_flow",
                  "world_focus"
                ]
              },
              "dispatchMode": {
                "type": "string",
                "enum": [
                  "direct_owner_handoff",
                  "focus_in_place",
                  "focus_then_act"
                ]
              },
              "targetWorldIds": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "workHomeWorldIds": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "focusBinding": {
                "type": "object",
                "properties": {
                  "worldId": {
                    "type": "string"
                  },
                  "sessionId": {
                    "type": "string"
                  },
                  "mountRevision": {
                    "type": "string"
                  },
                  "source": {
                    "type": "string",
                    "const": "committed_world_focus"
                  }
                },
                "required": [
                  "worldId",
                  "sessionId",
                  "source"
                ]
              },
              "focusTransitionTargetWorldId": {
                "type": "string"
              },
              "packageRef": {
                "type": "string"
              },
              "flowId": {
                "type": "string"
              },
              "intentKinds": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "catalogActionRefs": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Registry-owned capability↔action lineage copied from the platform row at staging time. This is authored action-lineage truth copied verbatim; nothing infers it from names or prose."
              },
              "clientSettlement": {
                "$ref": "#/components/schemas/HuelvaClientSettlementPlan",
                "description": "Authored same-turn client settlement copied from the platform row when the row's auto-runnable effect belongs to a local surface."
              },
              "inputBindings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "inputName": {
                      "type": "string"
                    },
                    "bindingPath": {
                      "$ref": "#/components/schemas/CapabilityBindingPath"
                    },
                    "sourceKind": {
                      "$ref": "#/components/schemas/HuelvaBindingSourceKind"
                    },
                    "valueSummary": {
                      "type": "string"
                    },
                    "value": {},
                    "resolvedRef": {
                      "type": "string"
                    },
                    "sourceStepId": {
                      "type": "string"
                    },
                    "sourceOutputKey": {
                      "type": "string"
                    },
                    "sourceOutputSemanticTypeRef": {
                      "type": "string"
                    },
                    "onMissing": {
                      "type": "string",
                      "const": "omit"
                    }
                  },
                  "required": [
                    "inputName",
                    "sourceKind",
                    "valueSummary"
                  ]
                }
              },
              "capabilityContractPin": {
                "type": "object",
                "properties": {
                  "operationRef": {
                    "type": "string"
                  },
                  "ownerFamily": {
                    "type": "string"
                  },
                  "operationVersion": {
                    "type": "string"
                  },
                  "digestVersion": {
                    "type": "string",
                    "const": "v2"
                  },
                  "contractDigest": {
                    "type": "string"
                  },
                  "inputSchemaDigest": {
                    "type": "string"
                  },
                  "resultSchemaDigest": {
                    "type": "string"
                  },
                  "idempotency": {
                    "type": "string",
                    "enum": [
                      "read_only",
                      "required"
                    ]
                  },
                  "presentationDigest": {
                    "type": "string"
                  },
                  "snapshotDigest": {
                    "type": "string"
                  },
                  "callerAvailabilityDigest": {
                    "type": "string"
                  }
                },
                "required": [
                  "operationRef",
                  "ownerFamily",
                  "operationVersion",
                  "digestVersion",
                  "contractDigest",
                  "inputSchemaDigest",
                  "resultSchemaDigest",
                  "idempotency"
                ]
              },
              "groundingStatus": {
                "type": "string",
                "enum": [
                  "proven_satisfiable",
                  "partially_grounded"
                ]
              }
            },
            "required": [
              "executionClass",
              "targetingMode",
              "handoffOwner",
              "dispatchMode",
              "targetWorldIds",
              "workHomeWorldIds",
              "intentKinds",
              "inputBindings",
              "groundingStatus"
            ]
          },
          "authority": {
            "type": "object",
            "properties": {
              "principalUserId": {
                "type": "string"
              },
              "riskTier": {
                "$ref": "#/components/schemas/HuelvaRiskTier"
              },
              "requiredRoles": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "consensusRequired": {
                "type": "boolean"
              },
              "authorizationRef": {
                "type": "string"
              }
            },
            "required": [
              "principalUserId",
              "riskTier",
              "requiredRoles",
              "consensusRequired"
            ]
          },
          "approval": {
            "$ref": "#/components/schemas/HuelvaPlanStepApproval"
          },
          "produces": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HuelvaPlanStepOutput"
            }
          },
          "interpretation": {
            "type": "object",
            "properties": {
              "askRestatement": {
                "type": "string"
              },
              "confidence": {
                "type": "string",
                "enum": [
                  "high",
                  "medium",
                  "low"
                ]
              },
              "worldRoleBindings": {
                "$ref": "#/components/schemas/HuelvaWorldRoleBindings"
              },
              "catalogEntryRefs": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "chosenInterpretation": {
                "type": "string"
              },
              "consideredAlternatives": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "interpretation": {
                      "type": "string"
                    },
                    "rejectedBecause": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "interpretation",
                    "rejectedBecause"
                  ]
                }
              },
              "bindingProvenance": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "inputName": {
                      "type": "string"
                    },
                    "derivedFrom": {
                      "type": "string",
                      "enum": [
                        "explicit_user_text",
                        "normalized_mention",
                        "directory_operand",
                        "catalog_fact",
                        "referent",
                        "prior_step_output"
                      ]
                    },
                    "sourceRef": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "inputName",
                    "derivedFrom"
                  ]
                }
              }
            },
            "required": [
              "askRestatement",
              "confidence",
              "worldRoleBindings",
              "catalogEntryRefs",
              "chosenInterpretation",
              "consideredAlternatives",
              "bindingProvenance"
            ]
          },
          "evidence": {
            "type": "object",
            "properties": {
              "observationPacketKinds": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/HuelvaContextPacketKind"
                }
              },
              "runtimePathRefs": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "proofRefs": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "gateRefs": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "observationPacketKinds",
              "runtimePathRefs",
              "proofRefs"
            ]
          },
          "expectedOutputs": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "enum": [
                    "consult_surface",
                    "receipt",
                    "artifact",
                    "message",
                    "settlement"
                  ]
                },
                "summary": {
                  "type": "string"
                }
              },
              "required": [
                "kind",
                "summary"
              ]
            }
          },
          "targetSelectionKey": {
            "type": "string"
          },
          "fanout": {
            "$ref": "#/components/schemas/HuelvaPlanStepFanout"
          },
          "stepState": {
            "type": "string",
            "enum": [
              "pending",
              "dispatched",
              "completed",
              "partially_completed",
              "failed",
              "skipped",
              "compensated"
            ]
          },
          "receiptRef": {
            "type": "string"
          }
        },
        "required": [
          "stepId",
          "ordinal",
          "dependsOn",
          "action",
          "authority",
          "approval",
          "produces",
          "interpretation",
          "evidence",
          "expectedOutputs",
          "stepState"
        ]
      }
    },
    "edges": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "fromStepId": {
            "type": "string"
          },
          "toStepId": {
            "type": "string"
          },
          "reason": {
            "type": "string",
            "enum": [
              "ordering",
              "dataflow"
            ]
          }
        },
        "required": [
          "fromStepId",
          "toStepId",
          "reason"
        ]
      }
    },
    "planGrounding": {
      "type": "string",
      "enum": [
        "proven_satisfiable",
        "partially_grounded"
      ]
    },
    "aggregate": {
      "type": "object",
      "properties": {
        "maxRiskTier": {
          "$ref": "#/components/schemas/HuelvaRiskTier"
        },
        "mutatingStepCount": {
          "type": "number"
        },
        "containsRequiredConsent": {
          "type": "boolean"
        },
        "containsNotAutonomous": {
          "type": "boolean"
        }
      },
      "required": [
        "maxRiskTier",
        "mutatingStepCount",
        "containsRequiredConsent",
        "containsNotAutonomous"
      ]
    },
    "approval": {
      "$ref": "#/components/schemas/HuelvaPlanApproval"
    },
    "confidence": {
      "type": "string",
      "enum": [
        "high",
        "medium",
        "low"
      ]
    }
  },
  "required": [
    "planId",
    "workstreamId",
    "createdAt",
    "planState",
    "surfaceKind",
    "motivatingReferent",
    "goalRestatement",
    "worldRoleBindings",
    "executionMode",
    "steps",
    "edges",
    "planGrounding",
    "aggregate",
    "approval",
    "confidence"
  ]
}

HuelvaPlanApproval

{
  "type": "object",
  "properties": {
    "approvalClass": {
      "type": "string",
      "enum": [
        "confirm_required",
        "escalate_required"
      ]
    },
    "clearsPlaneId": {
      "$ref": "#/components/schemas/HuelvaApprovalPlaneId"
    },
    "remainingPlaneIds": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/HuelvaApprovalPlaneId"
      }
    },
    "autoRunnable": {
      "type": "boolean",
      "const": false
    },
    "perStepConsentRefs": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "stepId": {
            "type": "string"
          },
          "consentRef": {
            "type": "string"
          }
        },
        "required": [
          "stepId",
          "consentRef"
        ]
      }
    }
  },
  "required": [
    "approvalClass",
    "remainingPlaneIds",
    "autoRunnable"
  ]
}

HuelvaPlanState

{
  "type": "string",
  "enum": [
    "staged",
    "approved",
    "executing",
    "completed",
    "partially_completed",
    "failed",
    "rejected",
    "superseded"
  ]
}

HuelvaPlanStepApproval

{
  "type": "object",
  "properties": {
    "autonomyClass": {
      "$ref": "#/components/schemas/HuelvaApprovalFloor"
    },
    "remainingPlaneIds": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/HuelvaApprovalPlaneId"
      }
    }
  },
  "required": [
    "autonomyClass",
    "remainingPlaneIds"
  ]
}

HuelvaPlanStepFanout

{
  "type": "object",
  "properties": {
    "groupId": {
      "type": "string"
    },
    "snapshot": {
      "$ref": "#/components/schemas/HuelvaTargetSnapshot"
    },
    "members": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/HuelvaFanoutMember"
      }
    }
  },
  "required": [
    "groupId",
    "snapshot",
    "members"
  ]
}

HuelvaPlanStepOutput

{
  "type": "object",
  "properties": {
    "outputKey": {
      "type": "string"
    },
    "kind": {
      "$ref": "#/components/schemas/HuelvaStepOutputKind"
    },
    "many": {
      "type": "boolean"
    },
    "semanticTypeRef": {
      "type": "string"
    },
    "availability": {
      "type": "string",
      "enum": [
        "required_on_success",
        "optional_on_success"
      ]
    },
    "readiness": {
      "type": "string",
      "enum": [
        "terminal",
        "eventual"
      ]
    },
    "visibility": {
      "type": "string",
      "enum": [
        "model_visible",
        "opaque_pass_through",
        "private"
      ]
    }
  },
  "required": [
    "outputKey",
    "kind"
  ]
}

HuelvaProposalState

{
  "type": "string",
  "enum": [
    "staged",
    "approved",
    "rejected",
    "executed",
    "superseded"
  ]
}

HuelvaPrototypeCapabilityAssemblyTrace

{
  "type": "object",
  "properties": {
    "totalRows": {
      "type": "number"
    },
    "selectableCapabilityTokens": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "blockedCapabilityTokens": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "inputViewCount": {
      "type": "number"
    },
    "requiredInputViewCount": {
      "type": "number"
    },
    "ownedLookupActionRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "rows": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/HuelvaPrototypeCapabilityRowTrace"
      }
    }
  },
  "required": [
    "totalRows",
    "selectableCapabilityTokens",
    "blockedCapabilityTokens",
    "inputViewCount",
    "requiredInputViewCount",
    "ownedLookupActionRefs",
    "rows"
  ]
}

HuelvaPrototypeCapabilityRowTrace

{
  "type": "object",
  "properties": {
    "token": {
      "type": "string"
    },
    "capabilityRef": {
      "type": "string"
    },
    "stageability": {
      "type": "string",
      "enum": [
        "stageable",
        "composition",
        "unwired",
        "blocked"
      ]
    },
    "publicOperationStatus": {
      "$ref": "#/components/schemas/HuelvaPublicOperationStatus"
    },
    "exposure": {
      "$ref": "#/components/schemas/HuelvaPublicOperationExposure"
    },
    "callablePosture": {
      "type": "string",
      "enum": [
        "callable",
        "explain_only",
        "blocked",
        "degraded",
        "denied"
      ]
    },
    "blockerCodes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "pendingApprovalPlaneIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "inputViews": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "slot": {
            "type": "string"
          },
          "required": {
            "type": "boolean"
          },
          "valueKind": {
            "type": "string"
          },
          "bindSources": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "ownedLookupActionRefs": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "slot",
          "required",
          "valueKind",
          "bindSources",
          "ownedLookupActionRefs"
        ]
      }
    }
  },
  "required": [
    "token",
    "capabilityRef",
    "stageability",
    "publicOperationStatus",
    "exposure",
    "callablePosture",
    "blockerCodes",
    "pendingApprovalPlaneIds",
    "inputViews"
  ]
}

HuelvaPrototypeDiagnosticCapture

{
  "type": "object",
  "properties": {
    "revealedRows": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "text": {
            "type": "string"
          }
        },
        "required": [
          "token",
          "kind",
          "text"
        ]
      }
    },
    "modelSteps": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "step": {
            "type": "number"
          },
          "toolCalls": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "tool": {
                  "type": "string"
                },
                "args": {}
              },
              "required": [
                "tool",
                "args"
              ]
            }
          },
          "availableToolNames": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "activeOwnerReadSetAlias": {
            "type": "string"
          },
          "promptEvidenceBytes": {
            "type": "number"
          },
          "toolResultBytes": {
            "type": "number"
          },
          "prose": {
            "type": "string"
          }
        },
        "required": [
          "step",
          "toolCalls"
        ]
      }
    }
  },
  "required": [
    "revealedRows",
    "modelSteps"
  ],
  "description": "Verbose harness-only capture (spec HUELVA_HARNESS §5.6). Present only when `HUELVA_PROTOTYPE_DIAGNOSTIC_CAPTURE=1` at the server process level. Never persisted to private history; exists only in the transport envelope."
}

HuelvaPrototypeEvidenceAuthorityClass

{
  "type": "string",
  "enum": [
    "runtime_direct",
    "exact_answer",
    "exact_anchor",
    "semantic_root",
    "recent_history",
    "huelva_workspace",
    "standing_state",
    "world_consult",
    "target_resolution",
    "model_outreach",
    "graph_expansion"
  ]
}

HuelvaPrototypeEvidenceKind

{
  "type": "string",
  "enum": [
    "library_entry",
    "answer_card",
    "library_relationship",
    "runtime_observation",
    "recent_exchange",
    "directory_operand",
    "world_evidence",
    "model_outreach",
    "target_candidate",
    "standing_work",
    "scratchpad"
  ]
}

HuelvaPrototypeLibrarySearchTrace

{
  "type": "object",
  "properties": {
    "source": {
      "type": "string",
      "enum": [
        "initial_bootstrap",
        "initial_full",
        "tool_search_library"
      ]
    },
    "query": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "ok",
        "failed"
      ]
    },
    "admittedTokens": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "admittedCount": {
      "type": "number"
    },
    "semanticRootIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "graphExpandedEntryIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "exactAnchorEntryIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "exactAnchorAnswerIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "reachedCapabilities": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/HuelvaReachedCapability"
      },
      "description": "Capabilities reached by this crawl through the single retrieval plane (HUELVA_REASONING_AMENDMENT §24.3): capability semantic roots plus `EXPOSES_CAPABILITY` neighbors of materialized entries."
    },
    "driftFindings": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/HuelvaLibraryRetrievalDriftFinding"
      },
      "description": "Stale-pair findings carried through from this call's `HuelvaLibraryRetrievalTrace.driftFindings` (`HUELVA_LIBRARY_OPERATOR_MIGRATION.md §4.8`, `HOPL-D-07`): this is the \"prototype-facing types\" half of that ticket's drift-preservation requirement. `prototype.ts` only ever logs/renders these; it never repairs a stale pair."
    },
    "capabilityLaneFailureCode": {
      "type": "string"
    },
    "lexicalRootCount": {
      "type": "number"
    },
    "failureCode": {
      "type": "string"
    },
    "laneFailures": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "navigation": {
      "$ref": "#/components/schemas/HuelvaLibraryNavigation"
    }
  },
  "required": [
    "source",
    "query",
    "status",
    "admittedTokens",
    "admittedCount",
    "semanticRootIds",
    "graphExpandedEntryIds",
    "exactAnchorEntryIds",
    "exactAnchorAnswerIds",
    "reachedCapabilities",
    "driftFindings",
    "lexicalRootCount",
    "laneFailures"
  ]
}

HuelvaPrototypeModelStepTrace

{
  "type": "object",
  "properties": {
    "step": {
      "type": "number"
    },
    "toolCalls": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "tool": {
            "$ref": "#/components/schemas/HuelvaPrototypeToolName"
          },
          "outcome": {
            "type": "string",
            "enum": [
              "succeeded",
              "rejected",
              "failed"
            ]
          },
          "findingCodes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "argsDigest": {
            "type": "string",
            "description": "sha256 of the canonicalized tool arguments; never raw values."
          }
        },
        "required": [
          "tool",
          "outcome",
          "findingCodes",
          "argsDigest"
        ]
      }
    },
    "revealedTokens": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "emittedProse": {
      "type": "boolean"
    },
    "protocolFindings": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "providerDurationMs": {
      "type": "number",
      "description": "Wall-clock ms of this step's provider invocation (prompt build excluded)."
    },
    "toolDurationMs": {
      "type": "number",
      "description": "Wall-clock ms of this step's tool dispatch (all calls in the step)."
    },
    "availableToolNames": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/HuelvaPrototypeToolName"
      }
    },
    "activeOwnerReadSetAlias": {
      "type": "string"
    },
    "promptEvidenceBytes": {
      "type": "number"
    },
    "toolResultBytes": {
      "type": "number"
    },
    "inputTokens": {
      "type": "number",
      "description": "Provider-reported usage for this step's invocation."
    },
    "outputTokens": {
      "type": "number"
    },
    "cachedInputTokens": {
      "type": "number",
      "description": "Subset of inputTokens served from the provider prompt cache."
    }
  },
  "required": [
    "step",
    "toolCalls",
    "revealedTokens",
    "emittedProse",
    "protocolFindings"
  ]
}

HuelvaPrototypeOperatorTrace

{
  "type": "object",
  "properties": {
    "registrySetRevision": {
      "type": "string"
    },
    "snapshotDigest": {
      "type": "string"
    },
    "callerAvailabilityDigest": {
      "type": "string"
    },
    "queryViewRevision": {
      "type": "number"
    },
    "admissionEvents": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/HuelvaCapabilityAdmissionEvent"
      }
    },
    "admittedRows": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "capabilityRef": {
            "type": "string"
          },
          "operationRef": {
            "type": "string"
          },
          "token": {
            "type": "string"
          },
          "publicOperationStatus": {
            "$ref": "#/components/schemas/HuelvaPublicOperationStatus"
          },
          "publicLifecycle": {
            "type": "string",
            "enum": [
              "active",
              "executable_only",
              "retired"
            ]
          },
          "exposure": {
            "$ref": "#/components/schemas/HuelvaPublicOperationExposure"
          },
          "callablePosture": {
            "type": "string",
            "enum": [
              "callable",
              "explain_only",
              "blocked",
              "degraded",
              "denied"
            ]
          },
          "executionBlockers": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "$ref": "#/components/schemas/CapabilityDenialReason"
                },
                {
                  "$ref": "#/components/schemas/HuelvaPublicExecutionBlocker"
                }
              ]
            }
          }
        },
        "required": [
          "capabilityRef",
          "operationRef",
          "token",
          "publicOperationStatus",
          "publicLifecycle",
          "exposure",
          "callablePosture",
          "executionBlockers"
        ]
      }
    }
  },
  "required": [
    "registrySetRevision",
    "snapshotDigest",
    "callerAvailabilityDigest",
    "queryViewRevision",
    "admissionEvents",
    "admittedRows"
  ]
}

HuelvaPrototypeOwnerReadCoverage

{
  "type": "object",
  "properties": {
    "completeness": {
      "type": "string",
      "enum": [
        "complete",
        "partial"
      ]
    },
    "supportsAbsenceClaims": {
      "type": "boolean"
    },
    "resultCount": {
      "type": "number"
    },
    "page": {
      "type": "number"
    },
    "pageSize": {
      "type": "number"
    },
    "nextPage": {
      "type": "number"
    },
    "totalResults": {
      "type": "number"
    },
    "requestedCompleteness": {
      "type": "string"
    },
    "historyWindowBounded": {
      "type": "boolean"
    },
    "lineTextClipped": {
      "type": "boolean"
    },
    "asOfEventId": {
      "type": "string"
    },
    "latestKnownEventId": {
      "type": "string"
    }
  },
  "required": [
    "completeness",
    "supportsAbsenceClaims"
  ]
}

HuelvaPrototypeOwnerReadProjectionPolicy

{
  "type": "string",
  "const": "exclusive_subject_facts"
}

HuelvaPrototypeOwnerReadReplayDescriptor

{
  "type": "object",
  "properties": {
    "capabilityRef": {
      "type": "string"
    },
    "owner": {
      "$ref": "#/components/schemas/HuelvaCapabilityReadOwnerCoordinate"
    },
    "flowId": {
      "$ref": "#/components/schemas/FlowId"
    },
    "query": {
      "type": "string"
    },
    "lookupQuery": {
      "type": "string"
    },
    "mode": {
      "type": "string"
    },
    "subjectRef": {
      "type": "string"
    },
    "subjectKind": {
      "type": "string"
    },
    "subjectLabel": {
      "type": "string"
    },
    "continuationFocusWorldId": {
      "type": "string"
    },
    "asOfEventId": {
      "type": "string"
    },
    "latestKnownEventId": {
      "type": "string"
    },
    "ownerSnapshotDigest": {
      "type": "string"
    }
  },
  "required": [
    "capabilityRef",
    "owner"
  ]
}

HuelvaPrototypeOwnerReadResolutionStatus

{
  "type": "string",
  "enum": [
    "resolved",
    "ambiguous",
    "no_match"
  ]
}

HuelvaPrototypeOwnerReadSemantics

{
  "type": "object",
  "properties": {
    "resolutionStatus": {
      "$ref": "#/components/schemas/HuelvaPrototypeOwnerReadResolutionStatus"
    },
    "supportMode": {
      "$ref": "#/components/schemas/HuelvaPrototypeOwnerReadSupportMode"
    },
    "resolvedSubject": {
      "type": "object",
      "properties": {
        "ref": {
          "type": "string"
        },
        "kind": {
          "type": "string"
        },
        "label": {
          "type": "string"
        }
      },
      "required": [
        "ref"
      ]
    },
    "candidateCount": {
      "type": "number"
    },
    "narrowingRequired": {
      "type": "boolean"
    }
  }
}

HuelvaPrototypeOwnerReadSetState

{
  "type": "object",
  "properties": {
    "setAlias": {
      "type": "string"
    },
    "capabilityRef": {
      "type": "string"
    },
    "owner": {
      "$ref": "#/components/schemas/HuelvaCapabilityReadOwnerCoordinate"
    },
    "flowId": {
      "$ref": "#/components/schemas/FlowId"
    },
    "bindingDigest": {
      "type": "string"
    },
    "evidenceSetDigest": {
      "type": "string"
    },
    "subjectRef": {
      "type": "string"
    },
    "subjectKind": {
      "type": "string"
    },
    "subjectLabel": {
      "type": "string"
    },
    "projectionPolicy": {
      "$ref": "#/components/schemas/HuelvaPrototypeOwnerReadProjectionPolicy"
    },
    "ownerSnapshotDigest": {
      "type": "string"
    },
    "coverage": {
      "$ref": "#/components/schemas/HuelvaPrototypeOwnerReadCoverage"
    },
    "semantics": {
      "$ref": "#/components/schemas/HuelvaPrototypeOwnerReadSemantics"
    },
    "replayDescriptor": {
      "$ref": "#/components/schemas/HuelvaPrototypeOwnerReadReplayDescriptor"
    },
    "tokens": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "activatedAtStep": {
      "type": "number"
    },
    "lastRevealedAtStep": {
      "type": "number"
    },
    "equivalentReplayCount": {
      "type": "number"
    },
    "state": {
      "type": "string",
      "enum": [
        "active",
        "superseded"
      ]
    }
  },
  "required": [
    "setAlias",
    "capabilityRef",
    "owner",
    "bindingDigest",
    "evidenceSetDigest",
    "tokens",
    "activatedAtStep",
    "lastRevealedAtStep",
    "equivalentReplayCount",
    "state"
  ]
}

HuelvaPrototypeOwnerReadSupportMode

{
  "type": "string",
  "enum": [
    "identity_candidates",
    "inventory",
    "source_text",
    "passage_windows",
    "transcript_rows",
    "scalar_facts"
  ]
}

HuelvaPrototypePlanAssemblyTrace

{
  "type": "object",
  "properties": {
    "stepKeys": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "dependencyEdges": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string"
          },
          "to": {
            "type": "string"
          }
        },
        "required": [
          "from",
          "to"
        ]
      }
    },
    "dataflowEdges": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "fromTaskKey": {
            "type": "string"
          },
          "outputKey": {
            "type": "string"
          },
          "toTaskKey": {
            "type": "string"
          },
          "slot": {
            "type": "string"
          }
        },
        "required": [
          "fromTaskKey",
          "outputKey",
          "toTaskKey",
          "slot"
        ]
      }
    },
    "executionMode": {
      "type": "string",
      "enum": [
        "driven_sequence",
        "compiled_dag"
      ]
    },
    "compiledDagEligibility": {
      "type": "object",
      "properties": {
        "eligible": {
          "type": "boolean"
        },
        "reasons": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "eligible",
        "reasons"
      ]
    }
  },
  "required": [
    "stepKeys",
    "dependencyEdges",
    "dataflowEdges",
    "executionMode",
    "compiledDagEligibility"
  ]
}

HuelvaPrototypeProgressNotice

{
  "type": "object",
  "properties": {
    "step": {
      "type": "number"
    },
    "maxSteps": {
      "type": "number"
    },
    "phase": {
      "type": "string",
      "const": "working"
    }
  },
  "required": [
    "step",
    "maxSteps",
    "phase"
  ],
  "description": "Streaming surface notice. Phase is host loop state, not a research controller."
}

HuelvaPrototypePublicationTrace

{
  "type": "object",
  "properties": {
    "privateHistoryWrites": {
      "type": "number"
    },
    "stagedArtifactWrites": {
      "type": "number"
    },
    "executionBeforeApproval": {
      "type": "boolean",
      "const": false,
      "description": "Populated only from the shell's own accounting; any execution evidence before approval is a hard integrity failure, never a soft flag."
    }
  },
  "required": [
    "privateHistoryWrites",
    "stagedArtifactWrites",
    "executionBeforeApproval"
  ]
}

HuelvaPrototypeResearchAttemptTrace

{
  "type": "object",
  "properties": {
    "tool": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/HuelvaPrototypeResearchToolName"
        },
        {
          "$ref": "#/components/schemas/HuelvaPrototypeScratchpadToolName"
        }
      ]
    },
    "step": {
      "type": "number"
    },
    "startedAt": {
      "type": "string"
    },
    "completedAt": {
      "type": "string"
    },
    "outcome": {
      "$ref": "#/components/schemas/HuelvaPrototypeResearchOutcome"
    },
    "revealedTokens": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "sourceRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "failureCode": {
      "type": "string"
    },
    "modelOutreachPurpose": {
      "$ref": "#/components/schemas/HuelvaModelOutreachPurpose"
    },
    "selectedCapabilityToken": {
      "type": "string"
    },
    "capabilityRef": {
      "type": "string"
    },
    "flowId": {
      "type": "string"
    },
    "subjectRef": {
      "type": "string"
    },
    "subjectKind": {
      "type": "string"
    },
    "subjectLabel": {
      "type": "string"
    },
    "ownerReadSetDigest": {
      "type": "string"
    },
    "ownerReadSetAlias": {
      "type": "string"
    },
    "ownerReadProjectionPolicy": {
      "$ref": "#/components/schemas/HuelvaPrototypeOwnerReadProjectionPolicy"
    },
    "ownerSnapshotDigest": {
      "type": "string"
    },
    "reusedExistingOwnerReadSet": {
      "type": "boolean"
    },
    "supersededOwnerReadSetDigests": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "allowedCitationTokens": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "ownerReadSupportsAbsenceClaims": {
      "type": "boolean"
    },
    "ownerReadCoverageCompleteness": {
      "type": "string",
      "enum": [
        "complete",
        "partial"
      ]
    },
    "ownerReadResultCount": {
      "type": "number"
    },
    "ownerReadSemantics": {
      "$ref": "#/components/schemas/HuelvaPrototypeOwnerReadSemantics"
    },
    "replayDescriptor": {
      "$ref": "#/components/schemas/HuelvaPrototypeOwnerReadReplayDescriptor"
    }
  },
  "required": [
    "tool",
    "step",
    "outcome",
    "revealedTokens",
    "sourceRefs"
  ]
}

HuelvaPrototypeResearchOutcome

{
  "type": "string",
  "enum": [
    "succeeded",
    "ambiguous",
    "no_match",
    "rejected",
    "failed"
  ]
}

HuelvaPrototypeResearchToolName

{
  "type": "string",
  "enum": [
    "search_library",
    "consult_world",
    "consult_capability_read",
    "resolve_ref",
    "consult_model_outreach"
  ]
}

HuelvaPrototypeRevealedEvidenceTrace

{
  "type": "object",
  "properties": {
    "token": {
      "type": "string"
    },
    "kind": {
      "$ref": "#/components/schemas/HuelvaPrototypeEvidenceKind"
    },
    "authorityClass": {
      "$ref": "#/components/schemas/HuelvaPrototypeEvidenceAuthorityClass"
    },
    "sourceRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "operandRef": {
      "type": "string"
    },
    "operandKind": {
      "type": "string"
    },
    "operandLabel": {
      "type": "string"
    },
    "refMediaType": {
      "$ref": "#/components/schemas/RefMediaType"
    },
    "bindingValues": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "libraryRelationship": {
      "$ref": "#/components/schemas/HuelvaLibraryRelationshipEvidence"
    },
    "observationScopeKind": {
      "type": "string",
      "enum": [
        "transport_room",
        "subject"
      ]
    },
    "subjectRef": {
      "type": "string"
    },
    "subjectKind": {
      "type": "string"
    },
    "subjectLabel": {
      "type": "string"
    },
    "ownerReadSetDigest": {
      "type": "string"
    },
    "ownerReadSetAlias": {
      "type": "string"
    },
    "ownerReadCapabilityRef": {
      "type": "string"
    },
    "ownerReadFlowId": {
      "type": "string"
    },
    "ownerReadProjectionPolicy": {
      "$ref": "#/components/schemas/HuelvaPrototypeOwnerReadProjectionPolicy"
    },
    "ownerSnapshotDigest": {
      "type": "string"
    },
    "ownerReadSupportsAbsenceClaims": {
      "type": "boolean"
    },
    "replayDescriptor": {
      "$ref": "#/components/schemas/HuelvaPrototypeOwnerReadReplayDescriptor"
    },
    "revealedAtStep": {
      "type": "number",
      "description": "0 = initial prompt composition; n = revealed during provider step n."
    },
    "revealSource": {
      "anyOf": [
        {
          "type": "string",
          "const": "initial_prompt"
        },
        {
          "$ref": "#/components/schemas/HuelvaPrototypeToolName"
        }
      ]
    }
  },
  "required": [
    "token",
    "kind",
    "authorityClass",
    "sourceRefs",
    "revealedAtStep",
    "revealSource"
  ]
}

HuelvaPrototypeScratchpadToolName

{
  "type": "string",
  "enum": [
    "inspect_scratchpads",
    "read_scratchpad",
    "upsert_scratchpad",
    "set_scratchpad_persist",
    "discard_scratchpad"
  ]
}

HuelvaPrototypeStageAttemptBindingTrace

{
  "type": "object",
  "properties": {
    "taskKey": {
      "type": "string"
    },
    "slot": {
      "type": "string"
    },
    "sourceKind": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/HuelvaBindingSourceKind"
        },
        {
          "type": "string",
          "const": "user_text"
        },
        {
          "type": "string",
          "const": "referent"
        },
        {
          "type": "string",
          "const": "evidence"
        },
        {
          "type": "string",
          "const": "task_output"
        }
      ],
      "description": "Accepted attempts carry the validated canonical source kind; rejected attempts carry the model-facing requested source kind. Both are refs, not values."
    },
    "evidenceTokens": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "hasResolvedRef": {
      "type": "boolean"
    }
  },
  "required": [
    "taskKey",
    "slot",
    "sourceKind",
    "evidenceTokens",
    "hasResolvedRef"
  ]
}

HuelvaPrototypeStageAttemptTrace

{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "accepted",
        "rejected"
      ]
    },
    "requestedTaskKeys": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "requestedCapabilityTokens": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "acceptedArtifactKind": {
      "type": "string",
      "enum": [
        "proposal",
        "plan",
        "allowance_change"
      ]
    },
    "acceptedCapabilityRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "acceptedTaskKeys": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "bindingCount": {
      "type": "number"
    },
    "bindings": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/HuelvaPrototypeStageAttemptBindingTrace"
      }
    },
    "findingCodes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "requiresCompiledDag": {
      "type": "boolean"
    },
    "revisesArtifactToken": {
      "type": "string"
    },
    "acceptedArtifactId": {
      "type": "string"
    },
    "acceptedArtifactDigest": {
      "type": "string"
    },
    "persisted": {
      "type": "boolean"
    }
  },
  "required": [
    "status",
    "requestedTaskKeys",
    "requestedCapabilityTokens",
    "acceptedCapabilityRefs",
    "acceptedTaskKeys",
    "bindingCount",
    "bindings",
    "findingCodes"
  ]
}

HuelvaPrototypeToolName

{
  "type": "string",
  "enum": [
    "surface_expand",
    "inspect_consult_refs",
    "search_library",
    "consult_world",
    "consult_capability_read",
    "resolve_ref",
    "consult_model_outreach",
    "search_operations",
    "inspect_operation",
    "inspect_standing_work",
    "inspect_scratchpads",
    "read_scratchpad",
    "upsert_scratchpad",
    "set_scratchpad_persist",
    "discard_scratchpad",
    "stage_work",
    "submit_followthrough",
    "submit_resolution"
  ]
}

HuelvaPrototypeTrace

{
  "type": "object",
  "properties": {
    "evidence": {
      "type": "object",
      "properties": {
        "revealedTokens": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "revealedKinds": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/HuelvaPrototypeEvidenceKind"
          }
        },
        "citedTokens": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "revealedTokens",
        "revealedKinds",
        "citedTokens"
      ]
    },
    "diagnostics": {
      "type": "object",
      "properties": {
        "libraryDirectory": {
          "type": "object",
          "properties": {
            "loadStatus": {
              "type": "string",
              "enum": [
                "pending",
                "ready",
                "unavailable"
              ]
            },
            "loadElapsedMs": {
              "type": "number"
            },
            "contentDigest": {
              "type": [
                "string",
                "null"
              ]
            },
            "totalClusterCount": {
              "type": "number"
            },
            "totalSliceCount": {
              "type": "number"
            },
            "firstStepVisibility": {
              "$ref": "#/components/schemas/HuelvaLibraryDirectoryExposure"
            },
            "stepExposure": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/HuelvaLibraryDirectoryExposure"
              }
            }
          },
          "required": [
            "loadStatus",
            "contentDigest",
            "totalClusterCount",
            "totalSliceCount",
            "stepExposure"
          ]
        },
        "librarySearches": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/HuelvaPrototypeLibrarySearchTrace"
          }
        },
        "capabilityAssembly": {
          "$ref": "#/components/schemas/HuelvaPrototypeCapabilityAssemblyTrace"
        },
        "capabilityRetrieval": {
          "type": "object",
          "properties": {
            "reachedCapabilities": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/HuelvaReachedCapability"
              }
            },
            "driftFindings": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/HuelvaLibraryRetrievalDriftFinding"
              },
              "description": "Turn-scoped union of every drift finding raised while resolving this turn's `reachedCapabilities` (initial crawl plus every `search_library` call) against the current sealed index, deduped by `capabilityRef` + `disposition` (`HOPL-D-07`)."
            },
            "promptRowTokens": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "latentCounts": {
              "type": "object",
              "properties": {
                "stageable": {
                  "type": "number"
                },
                "composition": {
                  "type": "number"
                },
                "unwired": {
                  "type": "number"
                },
                "blocked": {
                  "type": "number"
                }
              },
              "required": [
                "stageable",
                "blocked"
              ]
            },
            "capabilityLaneFailureCodes": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "reachedCapabilities",
            "driftFindings",
            "promptRowTokens",
            "latentCounts",
            "capabilityLaneFailureCodes"
          ],
          "description": "The turn's reached-capability union at settlement (§24.4): which board rows the retrieval plane made visible and with what provenance."
        },
        "admissionEvents": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/HuelvaCapabilityAdmissionEvent"
          }
        },
        "operator": {
          "$ref": "#/components/schemas/HuelvaPrototypeOperatorTrace"
        },
        "stageAttempts": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/HuelvaPrototypeStageAttemptTrace"
          }
        },
        "revealedEvidence": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/HuelvaPrototypeRevealedEvidenceTrace"
          }
        },
        "researchAttempts": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/HuelvaPrototypeResearchAttemptTrace"
          }
        },
        "ownerReadSets": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/HuelvaPrototypeOwnerReadSetState"
          }
        },
        "modelSteps": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/HuelvaPrototypeModelStepTrace"
          }
        },
        "planAssembly": {
          "$ref": "#/components/schemas/HuelvaPrototypePlanAssemblyTrace"
        },
        "publication": {
          "$ref": "#/components/schemas/HuelvaPrototypePublicationTrace"
        }
      },
      "required": [
        "librarySearches",
        "capabilityAssembly",
        "capabilityRetrieval",
        "stageAttempts",
        "revealedEvidence",
        "researchAttempts",
        "modelSteps",
        "publication"
      ]
    },
    "diagnosticCapture": {
      "$ref": "#/components/schemas/HuelvaPrototypeDiagnosticCapture",
      "description": "Harness-only verbose capture; see HuelvaPrototypeDiagnosticCapture."
    },
    "retrieval": {
      "type": "object",
      "properties": {
        "startedAt": {
          "type": "string"
        },
        "bootstrapReadyAt": {
          "type": "string"
        },
        "fullReadyAt": {
          "type": "string"
        },
        "completedOrCanceledAt": {
          "type": "string"
        },
        "bootstrapDurationMs": {
          "type": "number"
        },
        "fullDurationMs": {
          "type": "number"
        },
        "bootstrapDisposition": {
          "type": "string",
          "enum": [
            "completed",
            "empty",
            "failed",
            "stalled",
            "skipped",
            "pending_at_settlement"
          ]
        },
        "retrievalIdleStallMs": {
          "type": "number"
        },
        "idleTimerResetCount": {
          "type": "number"
        },
        "bootstrapCount": {
          "type": "number"
        },
        "fullCount": {
          "type": "number"
        },
        "laneFailures": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "vectorVerificationCacheHit": {
          "type": "boolean"
        },
        "fullDisposition": {
          "type": "string",
          "enum": [
            "completed",
            "canceled",
            "stalled",
            "pending_at_settlement"
          ]
        }
      },
      "required": [
        "startedAt",
        "bootstrapDisposition",
        "retrievalIdleStallMs",
        "idleTimerResetCount",
        "bootstrapCount",
        "laneFailures",
        "fullDisposition"
      ]
    },
    "model": {
      "type": "object",
      "properties": {
        "dispatchedAt": {
          "type": "string"
        },
        "firstByteAt": {
          "type": "string"
        },
        "completedAt": {
          "type": "string"
        },
        "dispatchOverheadMs": {
          "type": "number"
        },
        "timeToFirstByteMs": {
          "type": "number"
        },
        "provider": {
          "type": "string"
        },
        "model": {
          "type": "string"
        },
        "maxSteps": {
          "type": "number"
        },
        "stepsUsed": {
          "type": "number"
        },
        "submissionAttempts": {
          "type": "number"
        },
        "submissionRejections": {
          "type": "number"
        },
        "toolCalls": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "inputTokens": {
          "type": "number"
        },
        "outputTokens": {
          "type": "number"
        },
        "cachedInputTokens": {
          "type": "number"
        }
      },
      "required": [
        "dispatchedAt",
        "completedAt",
        "provider",
        "model",
        "maxSteps",
        "stepsUsed",
        "submissionAttempts",
        "submissionRejections",
        "toolCalls"
      ]
    },
    "persistence": {
      "type": "object",
      "properties": {
        "stagedArtifactWrites": {
          "type": "number"
        }
      },
      "required": [
        "stagedArtifactWrites"
      ]
    },
    "staging": {
      "type": "object",
      "properties": {
        "draftAccepted": {
          "type": "boolean"
        },
        "artifactKind": {
          "type": "string",
          "enum": [
            "proposal",
            "plan",
            "allowance_change"
          ]
        },
        "standingArtifactPersisted": {
          "type": "boolean"
        }
      },
      "required": [
        "draftAccepted"
      ]
    }
  },
  "required": [
    "evidence",
    "diagnostics",
    "retrieval",
    "model",
    "persistence"
  ]
}

HuelvaPublicExecutionBlocker

{
  "type": "string",
  "enum": [
    "public_contract_incomplete",
    "executable_only",
    "flow_internal"
  ]
}

HuelvaPublicOperationExposure

{
  "type": "string",
  "enum": [
    "top_level",
    "flow_internal",
    "executable_only"
  ]
}

HuelvaPublicOperationStatus

{
  "type": "string",
  "enum": [
    "native_public",
    "public_contract_incomplete",
    "executable_only",
    "retired"
  ]
}

HuelvaQuestionClass

{
  "type": "string",
  "enum": [
    "explanation",
    "consult",
    "stage_consequential_work",
    "approval_followthrough",
    "outcome_followthrough"
  ]
}

HuelvaReachedCapability

{
  "type": "object",
  "properties": {
    "capabilityRef": {
      "type": "string"
    },
    "operationRef": {
      "type": "string"
    },
    "rootSource": {
      "type": "string",
      "enum": [
        "semantic_root",
        "graph_neighbor",
        "standing_work"
      ]
    },
    "sourceEntryIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "graphDistance": {
      "type": "number"
    },
    "semanticScore": {
      "type": "number"
    }
  },
  "required": [
    "capabilityRef",
    "operationRef",
    "rootSource",
    "sourceEntryIds",
    "graphDistance"
  ],
  "description": "Capability reached by the single retrieval plane (HUELVA_REASONING_AMENDMENT §24.3): a direct semantic root over `operator_capability_embedding`, an `EXPOSES_CAPABILITY` graph neighbor of a materialized entry, or an identifier-keyed join from an inspected standing artifact whose validated tasks name the capability (revision provenance, §24.4).\n\n`operationRef` is the dual-identity floor from `HUELVA_LIBRARY_OPERATOR_MIGRATION.md §4.8` (`HOPL-C-01`). It is required, per `§4.8`: `lib/huelva/catalog/catalogService.ts` is the sole construction site (`HOPL-D-06`) and resolves it from the live `operationRef`-carrying Neo4j read (`OperatorCapabilityRootHit`/`OperatorCapabilityExposure`, `HOPL-D-05`) before validating it against the current sealed index; a capability whose current identity cannot be confirmed is dropped as a `HuelvaLibraryRetrievalDriftFinding`, never admitted without one. `lib/huelva/catalog/progressiveRetrieval.ts` and `lib/huelva/shell/prototype.ts` only preserve/read this field."
}

HuelvaReferentAddress

{
  "type": "object",
  "properties": {
    "surfaceKind": {
      "$ref": "#/components/schemas/HuelvaSurfaceKind"
    },
    "userId": {
      "type": "string"
    },
    "worldId": {
      "type": "string"
    },
    "sessionId": {
      "type": "string"
    },
    "chatRoomId": {
      "type": "string"
    },
    "messageId": {
      "type": "string"
    },
    "turnId": {
      "type": "string"
    },
    "artifactRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "participantRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "scope": {
      "$ref": "#/components/schemas/HuelvaReferentScope"
    }
  },
  "required": [
    "surfaceKind",
    "userId",
    "worldId",
    "sessionId",
    "scope"
  ]
}

HuelvaReferentScope

{
  "type": "string",
  "enum": [
    "session",
    "message",
    "turn",
    "artifact",
    "participant"
  ]
}

HuelvaResolutionCitation

{
  "type": "object",
  "properties": {
    "token": {
      "type": "string"
    },
    "sourceRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "token",
    "sourceRefs"
  ]
}

HuelvaResolutionSettlement

{
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "mode": {
          "type": "string",
          "const": "client_follow"
        },
        "capabilityRef": {
          "type": "string"
        },
        "command": {
          "type": "string"
        },
        "targetWorldId": {
          "type": "string"
        }
      },
      "required": [
        "mode",
        "capabilityRef",
        "command"
      ]
    },
    {
      "type": "object",
      "properties": {
        "mode": {
          "type": "string",
          "const": "client_textworkbench"
        },
        "capabilityRef": {
          "type": "string"
        },
        "openPayload": {
          "$ref": "#/components/schemas/TextWorkbenchOpenPayload"
        },
        "draftRequest": {
          "$ref": "#/components/schemas/HuelvaTextWorkbenchDraftRequest"
        }
      },
      "required": [
        "mode",
        "capabilityRef",
        "openPayload"
      ]
    },
    {
      "type": "object",
      "properties": {
        "mode": {
          "type": "string",
          "const": "client_story_workspace"
        },
        "capabilityRef": {
          "type": "string"
        },
        "storyId": {
          "type": "string"
        },
        "assetId": {
          "type": "string"
        },
        "worldId": {
          "type": "string"
        },
        "chunkId": {
          "type": "string"
        },
        "startChar": {
          "type": "number"
        },
        "endChar": {
          "type": "number"
        }
      },
      "required": [
        "mode",
        "capabilityRef",
        "storyId",
        "assetId"
      ]
    },
    {
      "type": "object",
      "properties": {
        "mode": {
          "type": "string",
          "const": "client_make_prompt"
        },
        "capabilityRef": {
          "type": "string"
        },
        "userInput": {
          "type": "string"
        },
        "isRevision": {
          "type": "boolean"
        },
        "generationType": {
          "type": "string",
          "enum": [
            "image",
            "video"
          ]
        },
        "referenceMediaRef": {
          "type": "string"
        },
        "referenceUrl": {
          "type": "string"
        },
        "referenceAssetId": {
          "type": "string"
        },
        "promptStateKnown": {
          "type": "boolean"
        }
      },
      "required": [
        "mode",
        "capabilityRef",
        "userInput",
        "isRevision"
      ]
    },
    {
      "type": "object",
      "properties": {
        "mode": {
          "type": "string",
          "const": "client_make_execute"
        },
        "capabilityRef": {
          "type": "string"
        }
      },
      "required": [
        "mode",
        "capabilityRef"
      ]
    },
    {
      "type": "object",
      "properties": {
        "mode": {
          "type": "string",
          "const": "auto_run"
        },
        "status": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/HuelvaApprovalStatusResult"
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "clarification"
                },
                "clarification": {
                  "$ref": "#/components/schemas/HuelvaClarificationRequest"
                }
              },
              "required": [
                "kind",
                "clarification"
              ]
            }
          ]
        }
      },
      "required": [
        "mode",
        "status"
      ]
    }
  ]
}

HuelvaResolutionStagedArtifact

{
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "const": "proposal"
        },
        "proposal": {
          "$ref": "#/components/schemas/HuelvaActionProposal"
        }
      },
      "required": [
        "kind",
        "proposal"
      ]
    },
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "const": "plan"
        },
        "plan": {
          "$ref": "#/components/schemas/HuelvaPlan"
        }
      },
      "required": [
        "kind",
        "plan"
      ]
    },
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "const": "allowance_change"
        },
        "allowanceMode": {
          "$ref": "#/components/schemas/HuelvaAllowanceMode"
        },
        "confirmHomeAction": {
          "$ref": "#/components/schemas/HuelvaConfirmAllowanceChangeAction"
        }
      },
      "required": [
        "kind",
        "allowanceMode",
        "confirmHomeAction"
      ]
    }
  ]
}

HuelvaResolvedRefOperandKind

{
  "type": "string",
  "enum": [
    "world",
    "world_set",
    "chat_participant",
    "persona",
    "bounty",
    "text_root",
    "media",
    "bookmark",
    "invite",
    "resolved_ref"
  ]
}

HuelvaRetryOf

{
  "type": "object",
  "properties": {
    "sourcePlanId": {
      "type": "string"
    },
    "sourceArtifactDigest": {
      "type": "string"
    },
    "retryableShardDigest": {
      "type": "string"
    },
    "sourceOutcomeRef": {
      "type": "string"
    }
  },
  "required": [
    "sourcePlanId",
    "sourceArtifactDigest",
    "retryableShardDigest"
  ]
}

HuelvaRiskTier

{
  "type": "string",
  "enum": [
    "T0",
    "T1",
    "T2",
    "T3"
  ]
}

HuelvaShardOutcome

{
  "type": "object",
  "properties": {
    "shardId": {
      "type": "string"
    },
    "planStepId": {
      "type": "string"
    },
    "snapshotIndex": {
      "type": "number"
    },
    "targetRef": {
      "type": "string"
    },
    "outcome": {
      "type": "string",
      "enum": [
        "success",
        "failed",
        "reconciled",
        "blocked"
      ]
    },
    "receiptRef": {
      "type": "string"
    },
    "failureCode": {
      "type": "string"
    },
    "blockedByStepId": {
      "type": "string"
    },
    "retrySameInputs": {
      "type": "boolean",
      "const": true
    }
  },
  "required": [
    "shardId",
    "planStepId",
    "snapshotIndex",
    "outcome"
  ]
}

HuelvaShellOwnerMapEntry

{
  "type": "object",
  "properties": {
    "stage": {
      "$ref": "#/components/schemas/HuelvaShellStage"
    },
    "nextOwner": {
      "type": "string"
    },
    "truthHome": {
      "type": "string"
    }
  },
  "required": [
    "stage",
    "nextOwner",
    "truthHome"
  ]
}

HuelvaShellResult

{
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "const": "resolution"
        },
        "message": {
          "type": "string"
        },
        "citations": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/HuelvaResolutionCitation"
          }
        },
        "supportingPacketKinds": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/HuelvaContextPacketKind"
          }
        },
        "staged": {
          "$ref": "#/components/schemas/HuelvaResolutionStagedArtifact"
        },
        "settlement": {
          "$ref": "#/components/schemas/HuelvaResolutionSettlement"
        },
        "surfaceEffects": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/HuelvaSurfaceEffect"
          }
        }
      },
      "required": [
        "kind",
        "message",
        "citations",
        "supportingPacketKinds"
      ]
    },
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "const": "explanation"
        },
        "summary": {
          "type": "string"
        },
        "supportingPacketKinds": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/HuelvaContextPacketKind"
          }
        }
      },
      "required": [
        "kind",
        "summary",
        "supportingPacketKinds"
      ]
    },
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "const": "consult_summary"
        },
        "summary": {
          "type": "string"
        },
        "consultRefs": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "kind",
        "summary",
        "consultRefs"
      ]
    },
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "const": "navigation_handoff"
        },
        "message": {
          "type": "string"
        },
        "command": {
          "type": "string"
        },
        "capabilityRef": {
          "type": "string"
        },
        "targetWorldId": {
          "type": "string"
        },
        "targetRef": {
          "type": "string"
        }
      },
      "required": [
        "kind",
        "message",
        "command",
        "capabilityRef"
      ]
    },
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "const": "proposal"
        },
        "proposal": {
          "$ref": "#/components/schemas/HuelvaActionProposal"
        }
      },
      "required": [
        "kind",
        "proposal"
      ]
    },
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "const": "plan"
        },
        "plan": {
          "$ref": "#/components/schemas/HuelvaPlan"
        }
      },
      "required": [
        "kind",
        "plan"
      ]
    },
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "const": "clarification"
        },
        "clarification": {
          "$ref": "#/components/schemas/HuelvaClarificationRequest"
        }
      },
      "required": [
        "kind",
        "clarification"
      ]
    },
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "const": "honest_insufficiency"
        },
        "summary": {
          "type": "string"
        },
        "insufficiencyGroups": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/HuelvaParentInsufficiencyGroup"
          }
        },
        "insufficiencyCode": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/HuelvaParentInsufficiencyCode"
            },
            {
              "type": "string",
              "const": "multiple"
            }
          ]
        },
        "blockedRequirementIds": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "kind",
        "summary",
        "insufficiencyGroups",
        "insufficiencyCode",
        "blockedRequirementIds"
      ]
    },
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "const": "internal_error"
        },
        "traceId": {
          "type": "string"
        },
        "workstreamId": {
          "$ref": "#/components/schemas/HuelvaWorkstreamId"
        },
        "sourceActionRef": {
          "type": "string"
        },
        "failureClass": {
          "type": "string",
          "const": "implementation_failure"
        },
        "diagnosticProofRefs": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "minItems": 1
        },
        "receiptRefs": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "minItems": 1
        }
      },
      "required": [
        "kind",
        "traceId",
        "sourceActionRef",
        "failureClass",
        "diagnosticProofRefs",
        "receiptRefs"
      ]
    },
    {
      "$ref": "#/components/schemas/HuelvaApprovalStatusResult"
    },
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "const": "allowance_change"
        },
        "status": {
          "type": "string",
          "const": "staged"
        },
        "allowanceMode": {
          "$ref": "#/components/schemas/HuelvaAllowanceMode"
        },
        "approval": {
          "type": "object",
          "properties": {
            "approvalClass": {
              "type": "string",
              "const": "confirm_required"
            },
            "clearsPlaneId": {
              "type": "string",
              "const": "huelva.user_confirm"
            },
            "remainingPlaneIds": {
              "type": "array",
              "items": {
                "type": "string",
                "const": "huelva.user_confirm"
              },
              "minItems": 1,
              "maxItems": 1
            },
            "autoRunnable": {
              "type": "boolean",
              "const": false
            }
          },
          "required": [
            "approvalClass",
            "clearsPlaneId",
            "remainingPlaneIds",
            "autoRunnable"
          ]
        },
        "summary": {
          "type": "string"
        },
        "confirmHomeAction": {
          "$ref": "#/components/schemas/HuelvaConfirmAllowanceChangeAction"
        }
      },
      "required": [
        "kind",
        "status",
        "allowanceMode",
        "approval",
        "summary",
        "confirmHomeAction"
      ]
    },
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "const": "outcome_summary"
        },
        "record": {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "outcome_summary"
            },
            "createdAt": {
              "type": "string"
            },
            "workstreamId": {
              "$ref": "#/components/schemas/HuelvaWorkstreamId"
            },
            "referent": {
              "$ref": "#/components/schemas/HuelvaReferentAddress"
            },
            "body": {
              "type": "string"
            },
            "producedTurnIds": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "receiptRefs": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "settlementRefs": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "stageReceiptRef": {
              "type": "string"
            },
            "reviewRef": {
              "type": "string"
            },
            "settlementRef": {
              "type": "string"
            },
            "rootTaskRefs": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "minItems": 1
            },
            "planId": {
              "type": "string"
            },
            "perStepReceiptRefs": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "stepId": {
                    "type": "string"
                  },
                  "receiptRef": {
                    "type": "string"
                  }
                },
                "required": [
                  "stepId",
                  "receiptRef"
                ]
              }
            },
            "partialExecution": {
              "$ref": "#/components/schemas/HuelvaPartialExecutionReport"
            },
            "executionStrategy": {
              "$ref": "#/components/schemas/HuelvaExecutionStrategySummary"
            },
            "repairDispositions": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/HuelvaDrivenRepairDisposition"
              }
            },
            "executionAttemptAxes": {
              "$ref": "#/components/schemas/HuelvaExecutionAttemptAxes"
            }
          },
          "required": [
            "kind",
            "createdAt",
            "workstreamId",
            "referent",
            "body",
            "producedTurnIds",
            "receiptRefs"
          ]
        }
      },
      "required": [
        "kind",
        "record"
      ]
    }
  ]
}

HuelvaShellStage

{
  "type": "string",
  "enum": [
    "surface_ingress",
    "observation_collection",
    "operator_enrichment",
    "question_resolution",
    "route_crosswalk",
    "proposal_staging",
    "approval_resolution",
    "execution_bridge",
    "continuity_reporting",
    "surface_transport"
  ]
}

HuelvaShellStageAccounting

{
  "type": "object",
  "properties": {
    "enteredStages": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/HuelvaShellStage"
      }
    },
    "skippedStages": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/HuelvaShellStage"
      }
    },
    "terminalStage": {
      "$ref": "#/components/schemas/HuelvaShellStage"
    }
  },
  "required": [
    "enteredStages",
    "skippedStages",
    "terminalStage"
  ]
}

HuelvaStepOutputKind

{
  "type": "string",
  "enum": [
    "surface_bundle_ref",
    "receipt_ref",
    "artifact_ref",
    "message_ref",
    "settlement_ref",
    "authorization_ref",
    "review_item_ref",
    "operand_ref"
  ]
}

HuelvaSurfaceEffect

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "tool"
    },
    "executionId": {
      "type": "string"
    },
    "data": {
      "type": "object",
      "properties": {
        "action": {
          "type": "string"
        },
        "payload": {
          "type": "object",
          "additionalProperties": {}
        }
      },
      "required": [
        "action"
      ]
    }
  },
  "required": [
    "type",
    "data"
  ],
  "description": "Owner-emitted UI effect carried through a Huelva owner read. These are already-authored Hub tool envelopes (for example search modal/results), not shell-invented surface commands."
}

HuelvaSurfaceKind

{
  "type": "string",
  "enum": [
    "chat_room",
    "world_session",
    "guide",
    "mobile"
  ]
}

HuelvaTargetSelectionProof

{
  "type": "object",
  "properties": {
    "selectionKey": {
      "type": "string"
    },
    "selectionKind": {
      "type": "string",
      "enum": [
        "owner_query",
        "explicit_membership"
      ]
    },
    "selectorDigest": {
      "type": "string"
    },
    "targetRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "taskKeys": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "sourceCapabilityRef": {
      "type": "string"
    },
    "sourceFlowId": {
      "type": "string"
    },
    "sourceEvidenceRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "sourceEvidenceDigest": {
      "type": "string"
    },
    "coverage": {
      "type": "object",
      "properties": {
        "completeness": {
          "type": "string",
          "enum": [
            "complete",
            "partial"
          ]
        },
        "supportsAbsenceClaims": {
          "type": "boolean"
        }
      },
      "required": [
        "completeness",
        "supportsAbsenceClaims"
      ]
    }
  },
  "required": [
    "selectionKey",
    "selectionKind",
    "selectorDigest",
    "targetRefs",
    "taskKeys",
    "sourceCapabilityRef",
    "sourceFlowId",
    "sourceEvidenceRefs",
    "sourceEvidenceDigest",
    "coverage"
  ]
}

HuelvaTargetSnapshot

{
  "type": "object",
  "properties": {
    "targetSetDigest": {
      "type": "string"
    },
    "targetRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "sourceEvidenceRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "sourceEvidenceDigest": {
      "type": "string"
    },
    "truncated": {
      "type": "boolean",
      "const": false
    }
  },
  "required": [
    "targetSetDigest",
    "targetRefs",
    "sourceEvidenceRefs",
    "sourceEvidenceDigest",
    "truncated"
  ]
}

HuelvaTextWorkbenchDraftRequest

{
  "type": "object",
  "properties": {
    "userMessage": {
      "type": "string"
    },
    "voicePolicyId": {
      "type": "string"
    },
    "editType": {
      "type": "string",
      "const": "full_document"
    },
    "documentContent": {
      "type": "string"
    }
  },
  "required": [
    "userMessage",
    "voicePolicyId",
    "editType",
    "documentContent"
  ],
  "description": "Same-turn settlement of a staged artifact whose approval metadata carries no remaining planes (`approval.autoRunnable === true`, §13.7 mapping). The permission boundary (§25.7) places sub-mutation work below the confirmation obligation, so the shell must not stop at staging for it.\n\n- `client_follow`: the product effect is viewer navigation; the surface   executes the user's own command through its canonical focused-action   lane. `command` is the user's literal ask text — never manufactured.\n- `client_textworkbench`: the product effect is a local drafting handoff;   the surface opens TextWorkbench and starts the draft stream there.\n- `client_story_workspace`: the product effect is a local story-reader   handoff; the surface opens the canonical Story workspace for the exact   published TextRoot the staged row already bound, optionally carrying one   supporting passage anchor returned by story inference or passage-mode   story read.\n- `client_media_workspace`: the product effect is a local media-browser   handoff; the surface opens the canonical Media workspace for the exact   media search result set the owner already produced.\n- `client_make_prompt`: the product effect is a local Make / generator   handoff; the surface opens the generator and submits prompt-build there.\n- `client_make_execute`: the product effect is confirmation of the current   prompt-ready Make state; the surface submits the existing generate-execute   flow with that state rather than rebuilding the prompt.\n- `auto_run`: the shell already invoked the canonical approval   followthrough owner in this turn; `status` is that owner's verdict,   receipts included."
}

HuelvaTransportCarriedRef

{
  "type": "object",
  "properties": {
    "ref": {
      "type": "string"
    },
    "label": {
      "type": "string"
    },
    "mediaType": {
      "type": "string",
      "enum": [
        "img",
        "vid",
        "aud",
        "txt",
        "obj",
        "ent",
        "set",
        "scn",
        "topic"
      ]
    },
    "operandKind": {
      "$ref": "#/components/schemas/HuelvaResolvedRefOperandKind"
    },
    "semanticTypeRef": {
      "type": "string"
    },
    "worldId": {
      "type": "string"
    }
  },
  "required": [
    "ref",
    "label",
    "mediaType",
    "operandKind",
    "semanticTypeRef"
  ]
}

HuelvaTransportClientProfile

{
  "$ref": "#/components/schemas/HuelvaClientProfile"
}

HuelvaTransportEnvelope

{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "const": "ok"
    },
    "checkedAt": {
      "type": "string"
    },
    "transport": {
      "type": "object",
      "properties": {
        "clientProfile": {
          "$ref": "#/components/schemas/HuelvaTransportClientProfile"
        },
        "surfaceKind": {
          "$ref": "#/components/schemas/HuelvaSurfaceKind"
        },
        "requestIdentity": {
          "$ref": "#/components/schemas/HuelvaTransportRequestIdentity"
        },
        "resultIdentity": {
          "$ref": "#/components/schemas/HuelvaTransportResultIdentity"
        }
      },
      "required": [
        "clientProfile",
        "surfaceKind",
        "requestIdentity",
        "resultIdentity"
      ]
    },
    "performanceTrace": {
      "$ref": "#/components/schemas/HuelvaPerformanceTrace"
    },
    "shell": {
      "type": "object",
      "properties": {
        "questionClass": {
          "$ref": "#/components/schemas/HuelvaQuestionClass"
        },
        "ownerMap": {
          "anyOf": [
            {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "stage": {
                    "type": "string"
                  },
                  "owner": {
                    "type": "string"
                  },
                  "disposition": {
                    "type": "string",
                    "enum": [
                      "called",
                      "skipped"
                    ]
                  }
                },
                "required": [
                  "stage",
                  "owner",
                  "disposition"
                ]
              }
            },
            {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/HuelvaShellOwnerMapEntry"
              }
            }
          ]
        },
        "stageAccounting": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "enteredStages": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "skippedStages": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "terminalStage": {
                  "type": "string"
                }
              },
              "required": [
                "enteredStages",
                "skippedStages",
                "terminalStage"
              ]
            },
            {
              "$ref": "#/components/schemas/HuelvaShellStageAccounting"
            }
          ]
        },
        "operatorHints": {
          "$ref": "#/components/schemas/HuelvaOperatorHints"
        },
        "prototype": {
          "$ref": "#/components/schemas/HuelvaPrototypeTrace"
        },
        "traceSummary": {
          "$ref": "#/components/schemas/HuelvaTransportShellTraceSummary"
        },
        "result": {
          "$ref": "#/components/schemas/HuelvaShellResult"
        }
      },
      "required": [
        "questionClass",
        "ownerMap",
        "stageAccounting",
        "traceSummary",
        "result"
      ]
    }
  },
  "required": [
    "status",
    "checkedAt",
    "transport",
    "shell"
  ]
}

HuelvaTransportOwnerReadReplay

{
  "type": "object",
  "properties": {
    "evidenceSetDigest": {
      "type": "string"
    },
    "capabilityRef": {
      "type": "string"
    },
    "owner": {
      "$ref": "#/components/schemas/HuelvaCapabilityReadOwnerCoordinate"
    },
    "flowId": {
      "$ref": "#/components/schemas/FlowId"
    },
    "query": {
      "type": "string"
    },
    "lookupQuery": {
      "type": "string"
    },
    "mode": {
      "type": "string"
    },
    "subjectRef": {
      "type": "string"
    },
    "subjectKind": {
      "type": "string"
    },
    "subjectLabel": {
      "type": "string"
    },
    "continuationFocusWorldId": {
      "type": "string"
    },
    "asOfEventId": {
      "type": "string"
    },
    "latestKnownEventId": {
      "type": "string"
    },
    "ownerSnapshotDigest": {
      "type": "string"
    }
  },
  "required": [
    "evidenceSetDigest",
    "capabilityRef",
    "owner"
  ]
}

HuelvaTransportRequestIdentity

{
  "type": "object",
  "properties": {
    "proposalId": {
      "type": "string"
    },
    "planId": {
      "type": "string"
    },
    "outcomeRef": {
      "type": "string"
    },
    "sourceRevision": {
      "type": "number"
    },
    "workstreamId": {
      "$ref": "#/components/schemas/HuelvaWorkstreamId"
    },
    "referentUri": {
      "type": "string"
    },
    "ownerReadReplay": {
      "$ref": "#/components/schemas/HuelvaTransportOwnerReadReplay"
    }
  }
}

HuelvaTransportResultIdentity

{
  "type": "object",
  "properties": {
    "proposalId": {
      "type": "string"
    },
    "planId": {
      "type": "string"
    },
    "subjectId": {
      "type": "string"
    },
    "outcomeRef": {
      "type": "string"
    },
    "workstreamId": {
      "$ref": "#/components/schemas/HuelvaWorkstreamId"
    },
    "referentUri": {
      "type": "string"
    },
    "ownerReadReplay": {
      "$ref": "#/components/schemas/HuelvaTransportOwnerReadReplay"
    },
    "carriedRefs": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/HuelvaTransportCarriedRef"
      }
    }
  }
}

HuelvaTransportShellTraceSummary

{
  "type": "object",
  "properties": {
    "operatorCapabilityRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "operatorEntryRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "operatorCapabilityRefs",
    "operatorEntryRefs"
  ]
}

HuelvaWorkstreamId

{
  "type": "string"
}

HuelvaWorldAuthorityRow

{
  "type": "object",
  "properties": {
    "worldId": {
      "type": "string"
    },
    "relationship": {
      "type": "string",
      "enum": [
        "owner",
        "editor",
        "viewer",
        "public",
        "none"
      ]
    },
    "canRead": {
      "type": "boolean"
    },
    "canAct": {
      "type": "boolean"
    },
    "sourceRef": {
      "type": "string"
    },
    "worldHandle": {
      "type": "string"
    },
    "worldName": {
      "type": "string"
    },
    "lifecycleState": {
      "type": "string",
      "enum": [
        "provisioning",
        "active",
        "paused",
        "archived",
        "deleted"
      ]
    }
  },
  "required": [
    "worldId",
    "relationship",
    "canRead",
    "canAct",
    "sourceRef"
  ]
}

HuelvaWorldRoleBindings

{
  "type": "object",
  "properties": {
    "conversationHome": {
      "type": "object",
      "properties": {
        "worldId": {
          "type": "string"
        },
        "sessionId": {
          "type": "string"
        },
        "sourceRef": {
          "type": "string"
        }
      },
      "required": [
        "worldId",
        "sourceRef"
      ]
    },
    "focusedWorld": {
      "type": "object",
      "properties": {
        "worldId": {
          "type": "string"
        },
        "sessionId": {
          "type": "string"
        },
        "mountRevision": {
          "type": "string"
        },
        "sourceRef": {
          "type": "string"
        }
      },
      "required": [
        "worldId",
        "sourceRef"
      ]
    },
    "discussedWorlds": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "worldId": {
            "type": "string"
          },
          "sessionId": {
            "type": "string"
          },
          "sourceRef": {
            "type": "string"
          }
        },
        "required": [
          "worldId",
          "sourceRef"
        ]
      }
    },
    "authoritativeWorlds": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/HuelvaWorldAuthorityRow"
      }
    },
    "targetWorldIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "workHomeWorldIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "discussedWorlds",
    "targetWorldIds",
    "workHomeWorldIds"
  ]
}

IdentityLayer

{
  "type": "object",
  "properties": {
    "turnId": {
      "type": "string"
    },
    "executionId": {
      "type": "string"
    },
    "packetId": {
      "type": [
        "string",
        "null"
      ]
    },
    "worldId": {
      "type": "string"
    },
    "sessionId": {
      "type": "string"
    },
    "timestamp": {
      "type": "string"
    },
    "turnDurationMs": {
      "type": "number"
    },
    "ownerUserId": {
      "type": "string"
    },
    "actorId": {
      "type": "string"
    },
    "actorKind": {
      "type": "string",
      "enum": [
        "human",
        "persona",
        "external_agent"
      ]
    },
    "voiceRef": {
      "type": "string"
    },
    "ham": {
      "type": "object",
      "properties": {
        "turnId": {
          "type": "string"
        },
        "sessionId": {
          "type": "string"
        },
        "receiptRef": {
          "type": "string"
        }
      },
      "required": [
        "turnId",
        "sessionId"
      ]
    },
    "runtime": {
      "type": "object",
      "properties": {
        "scopeKey": {
          "type": "string"
        },
        "contextId": {
          "type": "string"
        },
        "sessionId": {
          "type": [
            "string",
            "null"
          ],
          "description": "Null when the fallback assembly runs without a canonical session."
        },
        "worldRef": {
          "type": "string"
        },
        "actorRef": {
          "type": "string"
        }
      },
      "required": [
        "scopeKey",
        "contextId",
        "sessionId",
        "worldRef",
        "actorRef"
      ]
    },
    "apiKeyId": {
      "type": "string"
    },
    "originSystem": {
      "type": "string"
    },
    "directive": {
      "$ref": "#/components/schemas/DirectiveIdentity"
    }
  },
  "required": [
    "turnId",
    "executionId",
    "worldId",
    "sessionId",
    "timestamp",
    "turnDurationMs",
    "ownerUserId",
    "actorId",
    "actorKind"
  ]
}

InteractionInstance

{
  "type": "string",
  "enum": [
    "world_chat",
    "agent_directive",
    "universe_personality_card",
    "textroot_foundry_compose",
    "gap_explore",
    "bounty_fulfillment",
    "propose_inference",
    "drop_in",
    "governance_batch",
    "preflight_warm"
  ]
}

KslpApiErrorV1

{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "$ref": "#/components/schemas/KslpErrorCode"
        },
        "message": {
          "type": "string"
        },
        "currentRevision": {
          "type": "number"
        }
      },
      "required": [
        "code",
        "message"
      ]
    }
  },
  "required": [
    "error"
  ]
}

KslpErrorCode

{
  "type": "string",
  "enum": [
    "KSLP_AUTH_REQUIRED",
    "KSLP_REQUEST_INVALID",
    "KSLP_SESSION_AUDIO_HOST_MISSING",
    "KSLP_RADIO_UNAVAILABLE",
    "KSLP_REF_INVALID",
    "KSLP_MEDIA_NOT_FOUND",
    "KSLP_MEDIA_NOT_AUDIO",
    "KSLP_MEDIA_NOT_PLAYABLE",
    "KSLP_MEDIA_RESOLUTION_FAILED",
    "KSLP_MEDIA_RESOLUTION_INCOMPLETE",
    "KSLP_NO_PLAYABLE_TRACKS",
    "KSLP_AUTOPLAY_BLOCKED",
    "KSLP_AUDIO_PLAYBACK_FAILED",
    "KSLP_BROWSER_SNAPSHOT_INVALID",
    "KSLP_BROWSER_PERSISTENCE_FAILED",
    "KSLP_PUBLIC_SCOPE_OVERRIDE_FORBIDDEN",
    "KSLP_PUBLIC_SCOPE_UNAVAILABLE",
    "KSLP_SEARCH_CURSOR_INVALID",
    "KSLP_SEARCH_FAILED",
    "KSLP_SEARCH_CONTINUATION_FAILED",
    "KSLP_PLAYLIST_NAME_REQUIRED",
    "KSLP_PLAYLIST_REFS_INVALID",
    "KSLP_PLAYLIST_NOT_FOUND",
    "KSLP_PLAYLIST_REVISION_CONFLICT",
    "KSLP_IDEMPOTENCY_KEY_REQUIRED",
    "KSLP_IDEMPOTENCY_KEY_REUSED",
    "KSLP_PLAYLIST_CONCURRENCY_BUSY",
    "KSLP_PLAYLIST_STORAGE_FAILED",
    "KSLP_CHAT_SOURCE_PLAYLIST_NOT_FOUND",
    "KSLP_CHAT_SOURCE_REVISION_CONFLICT",
    "KSLP_CHAT_SNAPSHOT_INVALID",
    "KSLP_CHAT_MESSAGE_COMMIT_FAILED"
  ]
}

KslpPlaylistListItemV1

{
  "type": "object",
  "properties": {
    "playlistId": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "revision": {
      "type": "number"
    },
    "trackCount": {
      "type": "number"
    },
    "updatedAt": {
      "type": "string"
    }
  },
  "required": [
    "playlistId",
    "name",
    "revision",
    "trackCount",
    "updatedAt"
  ]
}

KslpPlaylistListResponseV1

{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/KslpPlaylistListItemV1"
      }
    },
    "nextCursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "items",
    "nextCursor"
  ]
}

KslpRadioPlaylistRecordV1

{
  "type": "object",
  "properties": {
    "version": {
      "type": "number",
      "const": 1
    },
    "playlistId": {
      "type": "string"
    },
    "ownerUserId": {
      "type": "string"
    },
    "ownerUsername": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "orderedRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "revision": {
      "type": "number"
    },
    "createdAt": {
      "type": "string"
    },
    "updatedAt": {
      "type": "string"
    },
    "createIdempotency": {
      "type": "object",
      "properties": {
        "keyHash": {
          "type": "string"
        },
        "requestHash": {
          "type": "string"
        }
      },
      "required": [
        "keyHash",
        "requestHash"
      ]
    },
    "lastMutation": {
      "anyOf": [
        {
          "type": "null"
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "patch"
            },
            "keyHash": {
              "type": "string"
            },
            "requestHash": {
              "type": "string"
            },
            "expectedRevision": {
              "type": "number"
            },
            "resultingRevision": {
              "type": "number"
            },
            "appliedAt": {
              "type": "string"
            }
          },
          "required": [
            "kind",
            "keyHash",
            "requestHash",
            "expectedRevision",
            "resultingRevision",
            "appliedAt"
          ]
        }
      ]
    }
  },
  "required": [
    "version",
    "playlistId",
    "ownerUserId",
    "ownerUsername",
    "name",
    "orderedRefs",
    "revision",
    "createdAt",
    "updatedAt",
    "createIdempotency",
    "lastMutation"
  ]
}

LedgerAccountType

{
  "type": "string",
  "enum": [
    "issuance_reserve",
    "platform_treasury",
    "user_wallet",
    "world_reward_pool",
    "bounty_escrow",
    "seed_escrow",
    "withdrawal_holding",
    "deposit_holding",
    "system_reclaim"
  ]
}

LedgerReceipt

{
  "type": "object",
  "properties": {
    "receiptId": {
      "type": "string"
    },
    "journalId": {
      "type": "string"
    },
    "receiptType": {
      "$ref": "#/components/schemas/ReceiptType"
    },
    "asset": {
      "type": "string",
      "const": "STAR"
    },
    "fromAccountId": {
      "type": "string"
    },
    "fromOwnerId": {
      "type": "string"
    },
    "toAccountId": {
      "type": "string"
    },
    "toOwnerId": {
      "type": "string"
    },
    "amount": {
      "$ref": "#/components/schemas/StarAmount"
    },
    "transactionType": {
      "$ref": "#/components/schemas/TransactionType"
    },
    "causalObjectType": {
      "type": "string"
    },
    "causalObjectId": {
      "type": "string"
    },
    "provenance": {
      "$ref": "#/components/schemas/ReceiptProvenance"
    },
    "memo": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "completed",
        "reversed"
      ]
    },
    "reversedByReceiptId": {
      "type": "string",
      "description": "Present when `status === 'reversed'` (§16.2 compensating receipt)."
    },
    "occurredAt": {
      "type": "string"
    },
    "createdAt": {
      "type": "string"
    }
  },
  "required": [
    "receiptId",
    "journalId",
    "receiptType",
    "asset",
    "fromAccountId",
    "fromOwnerId",
    "toAccountId",
    "toOwnerId",
    "amount",
    "transactionType",
    "status",
    "occurredAt",
    "createdAt"
  ]
}

LedgerStatus

{
  "type": "string",
  "enum": [
    "not_started",
    "running",
    "failed",
    "complete"
  ]
}

MediaBundle

{
  "type": "object",
  "properties": {
    "ref": {
      "type": "string"
    },
    "authority": {
      "$ref": "#/components/schemas/CEREMediaAuthority"
    },
    "replacementKey": {
      "type": "string"
    },
    "revision": {
      "type": "number"
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/MediaBundleItem"
      }
    }
  },
  "required": [
    "ref",
    "items"
  ]
}

MediaBundleItem

{
  "type": "object",
  "properties": {
    "mediaRef": {
      "type": "string"
    },
    "score": {
      "type": "number"
    },
    "tier": {
      "type": "number",
      "enum": [
        0,
        1,
        2
      ]
    },
    "provenance": {
      "type": "string",
      "enum": [
        "direct",
        "semantic",
        "fallback"
      ]
    },
    "resolveHref": {
      "type": "string"
    }
  },
  "required": [
    "mediaRef",
    "score",
    "tier",
    "provenance",
    "resolveHref"
  ]
}

MediaImportResult

{
  "type": "object",
  "properties": {
    "imported": {
      "type": "number"
    },
    "failed": {
      "type": "number"
    },
    "fullSuccess": {
      "type": "boolean",
      "description": "True when every submitted item was upserted and linked successfully (non-empty input)."
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string"
          },
          "mediaId": {
            "type": "string"
          },
          "ok": {
            "type": "boolean"
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "itemId",
          "mediaId",
          "ok"
        ]
      }
    }
  },
  "required": [
    "imported",
    "failed",
    "fullSuccess",
    "results"
  ]
}

MediaItemFeedback

{
  "type": "object",
  "properties": {
    "mediaId": {
      "type": "string"
    },
    "code": {
      "type": "string"
    },
    "message": {
      "type": "string"
    }
  },
  "required": [
    "mediaId",
    "code"
  ]
}

MediaLayer

{
  "type": "object",
  "properties": {
    "bundles": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/MediaBundle"
      }
    },
    "placements": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/MediaPlacement"
      }
    },
    "outcomes": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/MediaOutcome"
      }
    }
  },
  "required": [
    "bundles",
    "placements"
  ]
}

MediaOutcome

{
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "ref": {
          "type": "string"
        },
        "outcome": {
          "type": "string",
          "const": "resolved"
        },
        "finalReplacementKey": {
          "type": "string"
        },
        "finalRevision": {
          "type": "number"
        },
        "finalCandidateKey": {
          "type": "string"
        },
        "finalMediaRef": {
          "type": "string"
        },
        "finalAuthority": {
          "type": "string",
          "const": "runtime_explicit"
        },
        "reasonCode": {
          "type": "string",
          "const": "resolved_explicit"
        }
      },
      "required": [
        "ref",
        "outcome",
        "finalReplacementKey",
        "finalRevision",
        "finalCandidateKey",
        "finalMediaRef",
        "finalAuthority",
        "reasonCode"
      ]
    },
    {
      "type": "object",
      "properties": {
        "ref": {
          "type": "string"
        },
        "outcome": {
          "type": "string",
          "const": "provisional_only"
        },
        "finalReplacementKey": {
          "type": "string"
        },
        "finalRevision": {
          "type": "number"
        },
        "finalCandidateKey": {
          "type": "string"
        },
        "finalMediaRef": {
          "type": "string"
        },
        "finalAuthority": {
          "type": "string",
          "const": "runtime_provisional"
        },
        "reasonCode": {
          "type": "string",
          "const": "retained_provisional"
        }
      },
      "required": [
        "ref",
        "outcome",
        "finalReplacementKey",
        "finalRevision",
        "finalCandidateKey",
        "finalMediaRef",
        "finalAuthority",
        "reasonCode"
      ]
    },
    {
      "type": "object",
      "properties": {
        "ref": {
          "type": "string"
        },
        "outcome": {
          "type": "string",
          "const": "no_media"
        },
        "reasonCode": {
          "type": "string",
          "const": "legitimate_no_media"
        }
      },
      "required": [
        "ref",
        "outcome",
        "reasonCode"
      ]
    },
    {
      "type": "object",
      "properties": {
        "ref": {
          "type": "string"
        },
        "outcome": {
          "type": "string",
          "const": "failed"
        },
        "reasonCode": {
          "type": "string",
          "enum": [
            "inventory_miss",
            "resolver_miss",
            "exposure_omission",
            "incomplete"
          ]
        }
      },
      "required": [
        "ref",
        "outcome",
        "reasonCode"
      ]
    }
  ]
}

MediaPlacement

{
  "type": "object",
  "properties": {
    "mentionKey": {
      "type": "string"
    },
    "ref": {
      "type": "string"
    },
    "mentionIndex": {
      "type": "number"
    },
    "phrase": {
      "type": "string"
    },
    "authority": {
      "type": "string",
      "const": "runtime_provisional"
    },
    "replacementKey": {
      "type": "string"
    },
    "revision": {
      "type": "number"
    },
    "role": {
      "type": "string",
      "enum": [
        "context_anchor",
        "mention_support"
      ]
    },
    "primaryMediaRef": {
      "type": "string"
    },
    "primary": {
      "$ref": "#/components/schemas/MediaBundleItem"
    },
    "score": {
      "type": "number"
    },
    "alternates": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "mediaRef": {
            "type": "string"
          },
          "score": {
            "type": "number"
          }
        },
        "required": [
          "mediaRef",
          "score"
        ]
      }
    }
  },
  "required": [
    "ref",
    "mentionIndex",
    "phrase",
    "primaryMediaRef",
    "score",
    "alternates"
  ]
}

MediaProductionDeliverable

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "media_production"
    },
    "fulfillmentId": {
      "type": "string"
    },
    "deliveredAssetIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "contentHash": {
      "type": "string"
    },
    "itemsFulfilled": {
      "type": "number"
    }
  },
  "required": [
    "type",
    "fulfillmentId",
    "deliveredAssetIds",
    "contentHash",
    "itemsFulfilled"
  ]
}

MediaProductionPayload

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "media_production"
    },
    "fulfillmentMode": {
      "type": "string",
      "const": "all_or_nothing_bundle"
    },
    "sourceSubmissionId": {
      "type": "string"
    },
    "sourceTextRootId": {
      "type": "string"
    },
    "workManifestId": {
      "type": "string"
    },
    "itemCount": {
      "type": "number"
    },
    "sourceNarrativeOwnerUserId": {
      "type": "string"
    },
    "maxRevisions": {
      "type": "number"
    }
  },
  "required": [
    "type",
    "fulfillmentMode",
    "sourceSubmissionId",
    "sourceTextRootId",
    "workManifestId",
    "itemCount",
    "sourceNarrativeOwnerUserId",
    "maxRevisions"
  ]
}

MediaPurposeCategory

{
  "type": "string",
  "enum": [
    "canonical_reference",
    "narrative_moment",
    "product_display"
  ]
}

MediaRefUrlPair

{
  "type": "object",
  "properties": {
    "ref": {
      "type": [
        "string",
        "null"
      ],
      "description": "Canonical ref for the media (control-plane compatible)."
    },
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "A directly renderable URL for fast display."
    },
    "legacyId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Optional legacyId (Media.id) used to locate the MediaXRef."
    }
  },
  "required": [
    "ref",
    "url"
  ]
}

MediaRole

{
  "type": "string"
}
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "ref": {
      "type": "string"
    },
    "canonicalName": {
      "type": [
        "string",
        "null"
      ]
    },
    "type": {
      "type": [
        "string",
        "null"
      ]
    },
    "canonicalVisual": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/MediaRefUrlPair"
        },
        {
          "type": "null"
        }
      ],
      "description": "Optional canonical visual attachment for this entity, as a (ref,url) pair. This is intended for control-plane compatibility + fast render."
    },
    "attachedMedia": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/AttachedMediaRefUrlPair"
      },
      "description": "All attached media for this entity (often dozens/hundreds), as (ref,url) pairs. This is intended for control-plane compatibility + fast render."
    }
  },
  "required": [
    "id",
    "ref"
  ]
}

MediaXRefMediaSummary

{
  "type": "object",
  "properties": {
    "legacyId": {
      "type": "string"
    },
    "mediaType": {
      "type": [
        "string",
        "null"
      ]
    },
    "ownerUserId": {
      "type": [
        "string",
        "null"
      ]
    },
    "ownerUserSpace": {
      "type": [
        "string",
        "null"
      ]
    },
    "displayUrl": {
      "type": [
        "string",
        "null"
      ],
      "description": "Best-effort render URL for this media (fast display; resolver still authoritative)."
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "primaryGenre": {
      "type": [
        "string",
        "null"
      ]
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "heroImageRef": {
      "type": [
        "string",
        "null"
      ],
      "description": "Topic profiles only (docs/TOPICS.md): canonical hero media ref from the topic manifest. Not used by embedding; carried for display/debug."
    },
    "generationPrompt": {
      "type": [
        "string",
        "null"
      ]
    },
    "searchableText": {
      "type": [
        "string",
        "null"
      ]
    },
    "scenes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "objects": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "styles": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "moods": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "themes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "vspPropId": {
      "type": [
        "string",
        "null"
      ]
    },
    "vspSpzUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "vspDepthUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "lyrics": {
      "type": [
        "string",
        "null"
      ],
      "description": "Lyrics for audio assets (from S3 JSON)."
    },
    "characters": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Characters (persons) for txt assets (from TextRoot→Chapter→Scene→Entity graph)."
    },
    "settings": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Setting names for txt assets (from TextRoot→Chapter→Scene→Setting graph)."
    },
    "sceneVisuals": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/MediaXRefSceneVisuals"
      },
      "description": "Scene illustrations for txt assets, in narrative order (Scene -[:POINTS_TO]-> TextRoot, Scene -[:HAS_SCENE_VISUAL]-> Media)."
    },
    "aliases": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "CanonicalSetting aliases (S3: aliases[])"
    },
    "scale": {
      "type": [
        "string",
        "null"
      ],
      "description": "CanonicalSetting scale (S3: scale)"
    },
    "environmentalRelationship": {
      "type": [
        "string",
        "null"
      ],
      "description": "CanonicalSetting environmental relationship (S3: description.environmental_relationship)"
    },
    "visualPillars": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "CanonicalSetting visual pillars (S3: description.visual_pillars)"
    },
    "comparableRealWorld": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "CanonicalSetting comparable real-world examples (S3: description.comparable_real_world)"
    },
    "macroEnvironment": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "world": {
              "type": [
                "string",
                "null"
              ]
            },
            "realm": {
              "type": [
                "string",
                "null"
              ]
            },
            "region": {
              "type": [
                "string",
                "null"
              ]
            },
            "biome": {
              "type": [
                "string",
                "null"
              ]
            },
            "climate": {
              "type": [
                "string",
                "null"
              ]
            },
            "terrain": {
              "type": [
                "string",
                "null"
              ]
            },
            "sky": {
              "type": [
                "string",
                "null"
              ]
            },
            "culturalContext": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        },
        {
          "type": "null"
        }
      ],
      "description": "CanonicalSetting macro environment (S3: macro_environment)"
    },
    "aura": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "paragraphs": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ]
            },
            "essence": {
              "type": [
                "string",
                "null"
              ]
            },
            "visualSignature": {
              "type": [
                "string",
                "null"
              ]
            },
            "styleTags": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ]
            },
            "moodBaseline": {
              "type": [
                "string",
                "null"
              ]
            },
            "generationEmphasis": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ]
            },
            "generationAvoid": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ]
            },
            "promptSeed": {
              "type": [
                "string",
                "null"
              ]
            },
            "comparableRealWorld": {
              "anyOf": [
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                {
                  "type": "null"
                }
              ]
            }
          }
        },
        {
          "type": "null"
        }
      ],
      "description": "CanonicalSetting aura (S3: aura)"
    },
    "s3Url": {
      "type": [
        "string",
        "null"
      ],
      "description": "CanonicalSetting S3 URL (S3: s3_url) - provenance only."
    },
    "settingType": {
      "type": [
        "string",
        "null"
      ],
      "description": "CanonicalSetting setting type (S3: setting_type)"
    },
    "sceneTitles": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Scene titles associated with this setting (from Neo4j graph)."
    },
    "textRootTitles": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "TextRoot titles associated with this setting (from Neo4j graph)."
    },
    "entityType": {
      "type": [
        "string",
        "null"
      ],
      "description": "UniversalEntity type (person, place, object, concept, etc.)"
    },
    "personalityCore": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Personality core traits (from universal_profile.personality_core)"
    },
    "abilities": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Abilities (from universal_profile.abilities)"
    },
    "storyTitles": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Story titles this entity appears in (from Neo4j graph)"
    }
  },
  "required": [
    "legacyId"
  ]
}

MediaXRefNarrativeContext

{
  "type": "object",
  "properties": {
    "textRootId": {
      "type": [
        "string",
        "null"
      ]
    },
    "textRootRef": {
      "type": [
        "string",
        "null"
      ]
    },
    "textRootTitle": {
      "type": [
        "string",
        "null"
      ]
    },
    "year": {
      "type": [
        "string",
        "null"
      ]
    },
    "era": {
      "type": [
        "string",
        "null"
      ]
    },
    "contentTypes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}

MediaXRefProfile

{
  "type": "object",
  "properties": {
    "version": {
      "type": "number"
    },
    "computedAt": {
      "type": "string"
    },
    "xref": {
      "type": "object",
      "properties": {
        "legacyId": {
          "type": "string"
        },
        "ref": {
          "type": "string"
        },
        "mediaType": {
          "type": "string"
        },
        "namespace": {
          "type": "string"
        },
        "ownerUserId": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "legacyId",
        "ref",
        "mediaType",
        "namespace",
        "ownerUserId"
      ]
    },
    "media": {
      "$ref": "#/components/schemas/MediaXRefMediaSummary"
    },
    "narrative": {
      "$ref": "#/components/schemas/MediaXRefNarrativeContext"
    },
    "entities": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/MediaXRefEntityLink"
      }
    },
    "settings": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/MediaXRefSettingLink"
      }
    }
  },
  "required": [
    "version",
    "computedAt",
    "xref",
    "media",
    "narrative",
    "entities",
    "settings"
  ]
}

MediaXRefSceneVisuals

{
  "type": "object",
  "properties": {
    "sceneId": {
      "type": "string"
    },
    "title": {
      "type": [
        "string",
        "null"
      ]
    },
    "media": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/MediaRefUrlPair"
      }
    }
  },
  "required": [
    "sceneId",
    "title",
    "media"
  ]
}
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "ref": {
      "type": "string"
    },
    "canonicalName": {
      "type": [
        "string",
        "null"
      ]
    },
    "settingType": {
      "type": [
        "string",
        "null"
      ]
    },
    "canonicalVisual": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/MediaRefUrlPair"
        },
        {
          "type": "null"
        }
      ],
      "description": "Optional canonical visual attachment for this setting, as a (ref,url) pair. This is intended for control-plane compatibility + fast render."
    },
    "attachedMedia": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/AttachedMediaRefUrlPair"
      },
      "description": "All attached media for this setting (often dozens/hundreds), as (ref,url) pairs. This is intended for control-plane compatibility + fast render."
    }
  },
  "required": [
    "id",
    "ref"
  ]
}

Mention

{
  "type": "object",
  "properties": {
    "ref": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "enum": [
        "ent",
        "set",
        "txt"
      ]
    },
    "label": {
      "type": "string"
    },
    "surfaceText": {
      "type": "string"
    },
    "start": {
      "type": "number"
    },
    "end": {
      "type": "number"
    },
    "mentionIndex": {
      "type": "number"
    },
    "mentionKey": {
      "type": "string"
    }
  },
  "required": [
    "ref",
    "type",
    "label",
    "surfaceText",
    "start",
    "end",
    "mentionIndex"
  ]
}

MomentumEntry

{
  "type": "object",
  "properties": {
    "ref": {
      "type": "string"
    },
    "weight": {
      "type": "number"
    }
  },
  "required": [
    "ref",
    "weight"
  ]
}

MusicRef

{
  "type": "object",
  "properties": {
    "ref": {
      "type": "string"
    },
    "resolveHref": {
      "type": "string"
    },
    "confidence": {
      "type": "number"
    },
    "queryPhrase": {
      "type": "string"
    }
  },
  "required": [
    "ref",
    "resolveHref",
    "confidence",
    "queryPhrase"
  ]
}

MutationClass

{
  "type": "string",
  "enum": [
    "none",
    "inference_propose",
    "inference_commit",
    "materialization_request",
    "materialization_commit",
    "bundle_submit",
    "bundle_admit",
    "bounty_write"
  ],
  "description": "Mutation class for route authorization per AES §6.5."
}

NarrativeGuideChapter

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "synopsis": {
      "type": "string"
    },
    "narrative_sequence": {
      "type": "number"
    },
    "start_char": {
      "type": [
        "number",
        "null"
      ]
    },
    "end_char": {
      "type": [
        "number",
        "null"
      ]
    },
    "scenes": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/NarrativeGuideScene"
      }
    }
  },
  "required": [
    "id",
    "title",
    "synopsis",
    "narrative_sequence",
    "start_char",
    "end_char",
    "scenes"
  ]
}

NarrativeGuideEntity

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "canonical_name": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "aliases": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "description": {
      "type": "string"
    },
    "significance": {
      "type": "number"
    },
    "instance_id": {
      "type": "string"
    },
    "asset_profile": {
      "type": "object"
    }
  },
  "required": [
    "id",
    "canonical_name",
    "type",
    "aliases",
    "description",
    "significance",
    "instance_id",
    "asset_profile"
  ]
}

NarrativeGuideScene

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "summary": {
      "type": "string"
    },
    "narrative_sequence": {
      "type": "number"
    },
    "start_char": {
      "type": [
        "number",
        "null"
      ]
    },
    "end_char": {
      "type": [
        "number",
        "null"
      ]
    },
    "emotional_tone": {
      "type": [
        "string",
        "null"
      ]
    },
    "pacing": {
      "type": [
        "string",
        "null"
      ]
    },
    "narrative_function": {
      "type": [
        "string",
        "null"
      ]
    },
    "characters_present": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "actor_roster": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "collective_roster": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "key_objects": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "dialogue_snippets": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "mood_trajectory": {
      "type": [
        "string",
        "null"
      ]
    },
    "key_actions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "proper_names_mentioned": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "estimated_duration": {
      "type": [
        "string",
        "null"
      ]
    },
    "scene_actions_json": {},
    "atmosphere_evidence_json": {},
    "environment_hints_json": {},
    "manifestation_potential": {
      "type": "object",
      "properties": {
        "visual": {
          "type": [
            "number",
            "null"
          ]
        },
        "audio": {
          "type": [
            "number",
            "null"
          ]
        },
        "spatial": {
          "type": [
            "number",
            "null"
          ]
        }
      },
      "required": [
        "visual",
        "audio",
        "spatial"
      ]
    },
    "location": {
      "type": [
        "string",
        "null"
      ]
    },
    "temporal_marker": {
      "type": [
        "string",
        "null"
      ]
    },
    "chapter_id": {
      "type": "string"
    },
    "chapter_title": {
      "type": "string"
    },
    "entities": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/NarrativeGuideEntity"
      }
    },
    "entity_summaries": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "synopsis": {
            "type": "string"
          },
          "emotional_states": {}
        },
        "required": [
          "name",
          "type"
        ]
      }
    },
    "sceneText": {
      "type": "string"
    },
    "environment_context": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/SceneEnvironment"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "id",
    "title",
    "summary",
    "narrative_sequence",
    "start_char",
    "end_char",
    "emotional_tone",
    "pacing",
    "characters_present",
    "key_objects",
    "dialogue_snippets",
    "mood_trajectory",
    "key_actions",
    "location",
    "temporal_marker",
    "chapter_id",
    "chapter_title",
    "entities",
    "entity_summaries"
  ]
}

OAuthGrantPublic

{
  "type": "object",
  "properties": {
    "clientId": {
      "type": "string"
    },
    "clientName": {
      "type": "string"
    },
    "clientHost": {
      "type": [
        "string",
        "null"
      ]
    },
    "scopes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "connectedAtMs": {
      "type": "number"
    },
    "lastRefreshedAtMs": {
      "type": "number"
    }
  },
  "required": [
    "clientId",
    "clientName",
    "clientHost",
    "scopes",
    "connectedAtMs"
  ],
  "description": "Display fields of a connection key's grant (§5.6.1); never token hashes."
}

OpenWorldLineRoomResult

{
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "reuse",
            "create",
            "repair"
          ]
        },
        "chatRoomId": {
          "type": "string"
        },
        "currentSessionId": {
          "type": "string"
        },
        "roomHomeWorldId": {
          "type": "string"
        },
        "roomHomeOwnerUserId": {
          "type": "string"
        },
        "admittedWorldId": {
          "type": "string"
        },
        "worldPersonaRef": {
          "type": "string"
        },
        "roomLifecycleState": {
          "type": "string",
          "enum": [
            "open",
            "closed"
          ]
        },
        "createdRoom": {
          "type": "boolean"
        },
        "createdAdmission": {
          "type": "boolean"
        },
        "repair": {
          "$ref": "#/components/schemas/WorldLineRepairDecision"
        }
      },
      "required": [
        "kind",
        "chatRoomId",
        "currentSessionId",
        "roomHomeWorldId",
        "roomHomeOwnerUserId",
        "admittedWorldId",
        "worldPersonaRef",
        "roomLifecycleState",
        "createdRoom",
        "createdAdmission"
      ]
    },
    {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "const": "blocked"
        },
        "failure": {
          "$ref": "#/components/schemas/WorldLineBlockedFailure"
        },
        "recoverable": {
          "type": "boolean"
        },
        "routeTo": {
          "type": "string",
          "const": "chat_launcher"
        },
        "existingChatRoomId": {
          "type": "string"
        },
        "existingSessionId": {
          "type": "string"
        }
      },
      "required": [
        "kind",
        "failure",
        "recoverable"
      ]
    }
  ]
}

OperatorCatalogAnswerCardRow

{
  "type": "object",
  "properties": {
    "answerId": {
      "type": "string"
    },
    "clusterId": {
      "type": "string"
    },
    "answerOrdinal": {
      "type": "number"
    },
    "likelyUserPhrasingsJson": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "shortAnswer": {
      "type": "string"
    },
    "fullAnswer": {
      "type": "string"
    },
    "linkedEntryRefsJson": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "suggestedFollowOnsJson": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "sourceRefsJson": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "answerFieldsJson": {
      "type": "object",
      "additionalProperties": {}
    }
  },
  "required": [
    "answerId",
    "clusterId",
    "answerOrdinal",
    "likelyUserPhrasingsJson",
    "shortAnswer",
    "fullAnswer",
    "linkedEntryRefsJson",
    "suggestedFollowOnsJson",
    "sourceRefsJson",
    "answerFieldsJson"
  ]
}

OperatorCatalogClusterRow

{
  "type": "object",
  "properties": {
    "clusterId": {
      "type": "string"
    },
    "sectionOrdinal": {
      "type": "number"
    },
    "title": {
      "type": "string"
    },
    "purpose": {
      "type": "string"
    },
    "introBody": {
      "type": "string"
    },
    "retrievalPosture": {
      "type": "string"
    },
    "primaryUserQuestionsJson": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "includedEntryRefsJson": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "scopeAndRoutingNote": {
      "type": "string"
    },
    "provenanceNote": {
      "type": "string"
    },
    "retrievalSlicesJson": {
      "type": "array",
      "items": {}
    },
    "sourcePath": {
      "type": "string"
    },
    "sourceHash": {
      "type": "string"
    }
  },
  "required": [
    "clusterId",
    "sectionOrdinal",
    "title",
    "purpose",
    "introBody",
    "retrievalPosture",
    "primaryUserQuestionsJson",
    "includedEntryRefsJson",
    "scopeAndRoutingNote",
    "provenanceNote",
    "retrievalSlicesJson",
    "sourcePath",
    "sourceHash"
  ]
}

OperatorCatalogEntryRow

{
  "type": "object",
  "properties": {
    "entryId": {
      "type": "string"
    },
    "clusterId": {
      "type": "string"
    },
    "clusterOrdinal": {
      "type": "number"
    },
    "entryOrdinal": {
      "type": "number"
    },
    "entryKind": {
      "type": "string"
    },
    "canonicalName": {
      "type": "string"
    },
    "body": {
      "type": "string"
    },
    "sourceHash": {
      "type": "string"
    },
    "authorityTier": {
      "type": [
        "string",
        "null"
      ]
    },
    "liveStatus": {
      "type": [
        "string",
        "null"
      ]
    },
    "owner": {
      "type": [
        "string",
        "null"
      ]
    },
    "aliasesJson": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "interfacesJson": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "constraintsJson": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "evidenceRefsJson": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "dependencyRefsJson": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "sourceRefsJson": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "gateRefsJson": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "driftNotesJson": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "structuredFieldsJson": {
      "type": "object",
      "additionalProperties": {}
    }
  },
  "required": [
    "entryId",
    "clusterId",
    "clusterOrdinal",
    "entryOrdinal",
    "entryKind",
    "canonicalName",
    "body",
    "sourceHash",
    "authorityTier",
    "liveStatus",
    "owner",
    "aliasesJson",
    "interfacesJson",
    "constraintsJson",
    "evidenceRefsJson",
    "dependencyRefsJson",
    "sourceRefsJson",
    "gateRefsJson",
    "driftNotesJson",
    "structuredFieldsJson"
  ]
}

OperatorCatalogLookupMatch

{
  "type": "object",
  "properties": {
    "lookupKey": {
      "type": "string"
    },
    "lookupText": {
      "type": "string"
    },
    "targetKind": {
      "type": "string",
      "enum": [
        "entry",
        "answer_card"
      ]
    },
    "targetRef": {
      "type": "string"
    },
    "clusterId": {
      "type": "string"
    },
    "entryKind": {
      "type": "string"
    },
    "canonicalName": {
      "type": "string"
    },
    "authorityTier": {
      "type": [
        "string",
        "null"
      ]
    },
    "liveStatus": {
      "type": [
        "string",
        "null"
      ]
    },
    "owner": {
      "type": [
        "string",
        "null"
      ]
    },
    "bodyText": {
      "type": "string"
    }
  },
  "required": [
    "lookupKey",
    "lookupText",
    "targetKind",
    "targetRef",
    "clusterId",
    "entryKind",
    "canonicalName",
    "authorityTier",
    "liveStatus",
    "owner",
    "bodyText"
  ]
}

OperatorCatalogRelationshipRow

{
  "type": "object",
  "properties": {
    "clusterId": {
      "type": "string"
    },
    "relationshipOrdinal": {
      "type": "number"
    },
    "fromRef": {
      "type": "string"
    },
    "edgeType": {
      "type": "string"
    },
    "toRef": {
      "type": "string"
    },
    "rawLine": {
      "type": "string"
    },
    "sourcePath": {
      "type": "string"
    }
  },
  "required": [
    "clusterId",
    "relationshipOrdinal",
    "fromRef",
    "edgeType",
    "toRef",
    "rawLine"
  ]
}

OperatorCatalogSourceRow

{
  "type": "object",
  "properties": {
    "ownerKind": {
      "type": "string",
      "enum": [
        "cluster",
        "entry",
        "answer_card"
      ]
    },
    "ownerRef": {
      "type": "string"
    },
    "sourceRole": {
      "type": "string",
      "enum": [
        "source_ref",
        "gate_ref",
        "provenance_ref"
      ]
    },
    "sourceOrdinal": {
      "type": "number"
    },
    "sourceRef": {
      "type": "string"
    }
  },
  "required": [
    "ownerKind",
    "ownerRef",
    "sourceRole",
    "sourceOrdinal",
    "sourceRef"
  ]
}

OperatorRuntimeFactRow

{
  "type": "object",
  "properties": {
    "entryId": {
      "type": "string"
    },
    "projectorKey": {
      "type": "string"
    },
    "factOrdinal": {
      "type": "number"
    },
    "factKind": {
      "type": "string"
    },
    "summary": {
      "type": "string"
    },
    "detailsJson": {
      "type": "object",
      "additionalProperties": {}
    },
    "sourceRefsJson": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "entryId",
    "projectorKey",
    "factOrdinal",
    "factKind",
    "summary",
    "detailsJson",
    "sourceRefsJson"
  ]
}

OperatorRuntimeSlicePacket

{
  "type": "object",
  "properties": {
    "schema": {
      "type": "string",
      "const": "starholder.huelva.operator.slice.packet.v1"
    },
    "generatedAt": {
      "type": "string"
    },
    "packetClass": {
      "$ref": "#/components/schemas/OperatorSlicePacketClass"
    },
    "queryText": {
      "type": [
        "string",
        "null"
      ]
    },
    "lookupMatches": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/OperatorCatalogLookupMatch"
      }
    },
    "libraryTrace": {
      "$ref": "#/components/schemas/HuelvaLibraryRetrievalTrace"
    },
    "clusters": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/OperatorCatalogClusterRow"
      }
    },
    "entries": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/OperatorCatalogEntryRow"
      }
    },
    "answerCards": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/OperatorCatalogAnswerCardRow"
      }
    },
    "relationships": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/OperatorCatalogRelationshipRow"
      }
    },
    "sources": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/OperatorCatalogSourceRow"
      }
    },
    "runtimeFacts": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/OperatorRuntimeFactRow"
      }
    },
    "capabilityRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "operandRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "constraintRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "proofRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "recipeRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "uiAffordanceRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "driftNotes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "schema",
    "generatedAt",
    "packetClass",
    "queryText",
    "lookupMatches",
    "clusters",
    "entries",
    "answerCards",
    "relationships",
    "sources",
    "runtimeFacts",
    "capabilityRefs",
    "operandRefs",
    "constraintRefs",
    "proofRefs",
    "recipeRefs",
    "uiAffordanceRefs",
    "driftNotes"
  ]
}

OperatorSemanticNeighborhoodAdmission

{
  "type": "object",
  "properties": {
    "rootSource": {
      "$ref": "#/components/schemas/HuelvaLibraryRootSource"
    },
    "graphDistance": {
      "type": "number"
    },
    "admittedByEdgeTypes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "semanticScore": {
      "type": "number"
    },
    "parentEntryIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "rootSource",
    "graphDistance",
    "admittedByEdgeTypes",
    "parentEntryIds"
  ]
}

OperatorSemanticNeighborhoodEdge

{
  "type": "object",
  "properties": {
    "fromRef": {
      "type": "string"
    },
    "edgeType": {
      "type": "string"
    },
    "toRef": {
      "type": "string"
    },
    "clusterId": {
      "type": "string"
    },
    "relationshipOrdinal": {
      "type": "number"
    },
    "rawLine": {
      "type": "string"
    }
  },
  "required": [
    "fromRef",
    "edgeType",
    "toRef"
  ]
}

OperatorSlicePacketClass

{
  "type": "string",
  "enum": [
    "explanation",
    "planning",
    "approval",
    "outcome"
  ]
}

PayloadGuidedDirectiveIdentity

{
  "type": "object",
  "properties": {
    "schemaVersion": {
      "type": "string",
      "const": "directive.identity.v2"
    },
    "directiveId": {
      "type": "string"
    },
    "intent": {
      "type": "string"
    },
    "anchorRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "sourceGapId": {
      "type": "string"
    },
    "targetBountyId": {
      "type": "string"
    },
    "mode": {
      "type": "string",
      "enum": [
        "answer",
        "explore",
        "bridge",
        "canonize"
      ]
    },
    "creativeDirection": {
      "type": "string"
    },
    "interactionMode": {
      "type": "string",
      "const": "payload_guided"
    },
    "instance": {
      "$ref": "#/components/schemas/InteractionInstance"
    },
    "payloadGuided": {
      "type": "object",
      "properties": {
        "instance": {
          "$ref": "#/components/schemas/InteractionInstance"
        },
        "identityHash": {
          "type": "string"
        },
        "sessionHash": {
          "type": "string"
        }
      },
      "required": [
        "instance"
      ]
    }
  },
  "required": [
    "directiveId",
    "instance",
    "intent",
    "interactionMode",
    "schemaVersion"
  ]
}

PEEAtmosphereContextEvent

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "atmosphere_context"
    },
    "context": {
      "$ref": "#/components/schemas/ContextLayer"
    },
    "progressive": {
      "$ref": "#/components/schemas/PEEProgressiveSurfacePatch"
    }
  },
  "required": [
    "type",
    "context"
  ]
}

PEEBudgetWarningEvent

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "budget_warning"
    },
    "dimension": {
      "$ref": "#/components/schemas/BudgetDimension"
    },
    "remaining": {
      "type": "number"
    },
    "threshold": {
      "type": "number"
    }
  },
  "required": [
    "type",
    "dimension",
    "remaining",
    "threshold"
  ]
}

PEECommitDeferredEvent

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "commit_deferred"
    },
    "reason": {
      "type": "string"
    },
    "retryEligible": {
      "type": "boolean"
    }
  },
  "required": [
    "type",
    "reason",
    "retryEligible"
  ]
}

PEEContextAnchorPreviewEvent

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "context_anchor_preview"
    },
    "context": {
      "type": "object",
      "properties": {
        "contextText": {
          "type": "string"
        },
        "semanticInputConcepts": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/SourceConceptPhrase"
          },
          "description": "Canonical user-input phrase evidence, available from the first preview."
        },
        "primarySubject": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "ref": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "entity",
                    "setting"
                  ]
                }
              },
              "required": [
                "ref",
                "label",
                "type"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "canonicalSetting": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/CanonicalSetting"
            },
            {
              "type": "null"
            }
          ]
        },
        "atmosphere": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/AtmosphereSignals"
            },
            {
              "type": "null"
            }
          ]
        },
        "priorityTerms": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "visualSignature": {
          "type": [
            "string",
            "null"
          ]
        },
        "essence": {
          "type": [
            "string",
            "null"
          ]
        },
        "semanticSceneProfile": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/SemanticSceneProfile"
            },
            {
              "type": "null"
            }
          ]
        },
        "derivationMode": {
          "$ref": "#/components/schemas/DerivationMode"
        }
      }
    },
    "confidence": {
      "type": "number"
    },
    "progressive": {
      "$ref": "#/components/schemas/PEEProgressiveSurfacePatch"
    }
  },
  "required": [
    "type",
    "context",
    "confidence",
    "progressive"
  ]
}

PEEContradictionDetectedEvent

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "contradiction_detected"
    },
    "claimA": {
      "type": "string"
    },
    "claimB": {
      "type": "string"
    },
    "severity": {
      "$ref": "#/components/schemas/ContradictionSeverity"
    }
  },
  "required": [
    "type",
    "claimA",
    "claimB",
    "severity"
  ]
}

PEEDraftCompleteEvent

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "thoughtpacket:draft:complete"
    },
    "assetId": {
      "type": "string"
    },
    "subtype": {
      "type": "string",
      "const": "blob"
    },
    "status": {
      "type": "string",
      "const": "published"
    },
    "packetId": {
      "type": "string"
    },
    "turnId": {
      "type": "string"
    },
    "executionId": {
      "type": "string"
    }
  },
  "required": [
    "type",
    "assetId",
    "subtype",
    "status",
    "packetId",
    "turnId",
    "executionId"
  ]
}

PEEEngineErrorEvent

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "engine_error"
    },
    "code": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "recoverable": {
      "type": "boolean"
    }
  },
  "required": [
    "type",
    "code",
    "message",
    "recoverable"
  ]
}

PEEEvent

{
  "anyOf": [
    {
      "$ref": "#/components/schemas/PEETextDeltaEvent"
    },
    {
      "$ref": "#/components/schemas/PEERefAcceptedEvent"
    },
    {
      "$ref": "#/components/schemas/PEERefMediaBundleEvent"
    },
    {
      "$ref": "#/components/schemas/PEEMediaPlacementMapEvent"
    },
    {
      "$ref": "#/components/schemas/PEERefAnomalyEvent"
    },
    {
      "$ref": "#/components/schemas/PEERefInlineMetadataEvent"
    },
    {
      "$ref": "#/components/schemas/PEEBudgetWarningEvent"
    },
    {
      "$ref": "#/components/schemas/PEEEngineErrorEvent"
    },
    {
      "$ref": "#/components/schemas/PEETurnAbortedEvent"
    },
    {
      "$ref": "#/components/schemas/PEEContradictionDetectedEvent"
    },
    {
      "$ref": "#/components/schemas/PEETurnCommittedEvent"
    },
    {
      "$ref": "#/components/schemas/PEECommitDeferredEvent"
    },
    {
      "$ref": "#/components/schemas/PEEStoryMaterializationReadyEvent"
    },
    {
      "$ref": "#/components/schemas/PEEThoughtPacketCommittedEvent"
    },
    {
      "$ref": "#/components/schemas/PEEDraftCompleteEvent"
    },
    {
      "$ref": "#/components/schemas/PEEContextAnchorPreviewEvent"
    },
    {
      "$ref": "#/components/schemas/PEEThoughtPacketPreviewEvent"
    },
    {
      "$ref": "#/components/schemas/PEEAtmosphereContextEvent"
    }
  ]
}

PEEEventEnvelope

{
  "type": "object",
  "properties": {
    "protocolVersion": {
      "type": "string",
      "const": "1.2"
    },
    "turnId": {
      "type": "string"
    },
    "executionId": {
      "type": "string"
    },
    "sessionId": {
      "type": "string"
    },
    "worldId": {
      "type": "string"
    },
    "sequence": {
      "type": "number"
    },
    "ts": {
      "type": "string"
    },
    "packetId": {
      "type": "string"
    },
    "event": {
      "$ref": "#/components/schemas/PEEEvent"
    }
  },
  "required": [
    "protocolVersion",
    "turnId",
    "executionId",
    "sessionId",
    "worldId",
    "sequence",
    "ts",
    "event"
  ]
}

PEEMediaPlacementItem

{
  "type": "object",
  "properties": {
    "mentionKey": {
      "type": "string"
    },
    "mentionIndex": {
      "type": "number"
    },
    "ref": {
      "type": "string"
    },
    "phrase": {
      "type": "string"
    },
    "authority": {
      "type": "string",
      "const": "runtime_provisional"
    },
    "replacementKey": {
      "type": "string"
    },
    "revision": {
      "type": "number"
    },
    "role": {
      "type": "string",
      "enum": [
        "context_anchor",
        "mention_support"
      ]
    },
    "primaryMediaRef": {
      "type": "string"
    },
    "primary": {
      "$ref": "#/components/schemas/PEERefMediaBundleItem"
    },
    "score": {
      "type": "number"
    },
    "alternates": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "mediaRef": {
            "type": "string"
          },
          "score": {
            "type": "number"
          }
        },
        "required": [
          "mediaRef",
          "score"
        ]
      }
    }
  },
  "required": [
    "mentionKey",
    "mentionIndex",
    "ref",
    "phrase",
    "authority",
    "replacementKey",
    "revision",
    "role",
    "primaryMediaRef",
    "score",
    "alternates"
  ]
}

PEEMediaPlacementMapEvent

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "media_placement_map"
    },
    "placements": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PEEMediaPlacementItem"
      }
    },
    "progressive": {
      "$ref": "#/components/schemas/PEEProgressiveSurfacePatch"
    }
  },
  "required": [
    "type",
    "placements"
  ]
}

PEEProgressiveSurfaceAuthority

{
  "type": "string",
  "enum": [
    "runtime_explicit",
    "runtime_provisional",
    "runtime_derived",
    "client_fallback"
  ]
}

PEEProgressiveSurfacePatch

{
  "type": "object",
  "properties": {
    "authority": {
      "$ref": "#/components/schemas/PEEProgressiveSurfaceAuthority"
    },
    "derivationMode": {
      "type": "string",
      "enum": [
        "ref_acceptance",
        "media_bundle",
        "media_placement",
        "atmosphere_context",
        "thoughtpacket_commit",
        "context_anchor_preview",
        "retrieval_attention",
        "thoughtpacket_preview",
        "surface_complete",
        "client_session_fallback"
      ],
      "description": "Names the deterministic source pathway that produced this patch. This lets clients distinguish final explicit surface fields from preview material without inferring authority from event names."
    },
    "provisionalId": {
      "type": "string",
      "description": "Stable id for provisional material that can later upgrade in place."
    },
    "source": {
      "type": "string"
    }
  },
  "required": [
    "authority",
    "derivationMode"
  ]
}

PEERefAcceptedEvent

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "ref_accepted"
    },
    "ref": {
      "type": "string"
    },
    "renderState": {
      "type": "string",
      "enum": [
        "render_provisional",
        "commit_validated"
      ]
    },
    "progressive": {
      "$ref": "#/components/schemas/PEEProgressiveSurfacePatch"
    },
    "label": {
      "type": "string",
      "description": "Optional canonical label for the ref. When provided, the client surface accumulator paints the dock tile / mention chip with this label during streaming instead of waiting for `surface_complete` to authoritatively fill it in. Spec: docs/design/CONSOLE_CENTER_DIV.md §1, §9.4 — progressive rendering during live turns."
    },
    "refType": {
      "type": "string",
      "enum": [
        "entity",
        "setting",
        "textroot",
        "packet"
      ],
      "description": "Optional ref type derived from the canonical ref prefix. Carried alongside `label` so the dock can pick the right typographic affordance during streaming. Mirrors  {@link  AcceptedRef.type  }  from the client surface."
    },
    "provenance": {
      "type": "string",
      "description": "Optional provenance string for diagnostic / lifecycle telemetry. Mirrors the `RefEdge.provenance` enum at the point of acceptance."
    },
    "href": {
      "type": "string",
      "description": "Optional canonical href (link target) for the ref. The classic console uses this to wire ref chip clicks; the new console honors the same payload for parity."
    }
  },
  "required": [
    "type",
    "ref",
    "renderState"
  ]
}

PEERefAnomalyEvent

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "ref_anomaly"
    },
    "ref": {
      "type": "string"
    },
    "reason": {
      "type": "string",
      "enum": [
        "not_in_traversal_outputs",
        "forbidden_by_policy"
      ]
    },
    "progressive": {
      "$ref": "#/components/schemas/PEEProgressiveSurfacePatch"
    }
  },
  "required": [
    "type",
    "ref",
    "reason"
  ]
}

PEERefInlineMetadataEvent

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "ref_inline_metadata"
    },
    "ref": {
      "type": "string"
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Human-readable labels of refs bridged to this ref (entity + setting names)."
    }
  },
  "required": [
    "type",
    "ref",
    "tags"
  ]
}

PEERefMediaBundleEvent

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "ref_media_bundle"
    },
    "ref": {
      "type": "string"
    },
    "authority": {
      "type": "string",
      "enum": [
        "runtime_provisional",
        "runtime_explicit"
      ]
    },
    "replacementKey": {
      "type": "string"
    },
    "revision": {
      "type": "number"
    },
    "bundle": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PEERefMediaBundleItem"
      }
    },
    "progressive": {
      "$ref": "#/components/schemas/PEEProgressiveSurfacePatch"
    }
  },
  "required": [
    "type",
    "ref",
    "authority",
    "replacementKey",
    "revision",
    "bundle"
  ]
}

PEERefMediaBundleItem

{
  "type": "object",
  "properties": {
    "mediaRef": {
      "type": "string"
    },
    "score": {
      "type": "number"
    },
    "tier": {
      "type": "number",
      "enum": [
        0,
        1,
        2
      ]
    },
    "provenance": {
      "type": "string",
      "enum": [
        "direct",
        "fallback",
        "semantic"
      ]
    },
    "resolveHref": {
      "type": "string"
    }
  },
  "required": [
    "mediaRef",
    "score"
  ]
}

PEEStoryMaterializationReadyEvent

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "story_materialization_ready"
    },
    "materializationId": {
      "type": "string"
    },
    "topicRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "constituentPacketCount": {
      "type": "number"
    },
    "readinessScore": {
      "type": "number"
    },
    "estimatedReward": {
      "type": "number"
    }
  },
  "required": [
    "type",
    "materializationId",
    "topicRefs",
    "constituentPacketCount",
    "readinessScore"
  ]
}

PEETextDeltaEvent

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "text_delta"
    },
    "delta": {
      "type": "string"
    }
  },
  "required": [
    "type",
    "delta"
  ]
}

PEEThoughtPacketCommittedEvent

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "thoughtpacket_committed"
    },
    "packetId": {
      "type": "string"
    },
    "worldId": {
      "type": "string"
    },
    "sessionId": {
      "type": "string"
    },
    "turnId": {
      "type": "string"
    },
    "executionId": {
      "type": "string"
    },
    "actorId": {
      "type": "string"
    },
    "actorKind": {
      "type": "string",
      "enum": [
        "human",
        "persona",
        "external_agent"
      ]
    },
    "principalUserId": {
      "type": "string"
    },
    "voiceRef": {
      "type": "string"
    },
    "runtime": {
      "type": "object",
      "properties": {
        "scopeKey": {
          "type": "string"
        },
        "contextId": {
          "type": "string"
        },
        "sessionId": {
          "type": "string"
        },
        "worldRef": {
          "type": "string"
        },
        "actorRef": {
          "type": "string"
        }
      },
      "required": [
        "scopeKey",
        "contextId"
      ]
    },
    "mode": {
      "$ref": "#/components/schemas/ExecutionMode"
    },
    "claimCount": {
      "type": "number"
    },
    "uncertaintyScore": {
      "type": "number"
    },
    "acceptedRefCount": {
      "type": "number"
    },
    "anomalyRefCount": {
      "type": "number"
    },
    "materializationReady": {
      "type": "boolean"
    },
    "claims": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string"
          },
          "refs": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "confidence": {
            "type": "number"
          },
          "provenance": {
            "type": "string",
            "enum": [
              "committer",
              "validator"
            ]
          }
        },
        "required": [
          "text",
          "refs",
          "confidence"
        ]
      }
    },
    "supportScore": {
      "type": "number"
    },
    "intentTags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "progressive": {
      "$ref": "#/components/schemas/PEEProgressiveSurfacePatch"
    }
  },
  "required": [
    "type",
    "packetId",
    "worldId",
    "sessionId",
    "turnId",
    "executionId",
    "mode",
    "claimCount",
    "uncertaintyScore",
    "acceptedRefCount",
    "anomalyRefCount",
    "materializationReady"
  ]
}

PEEThoughtPacketPreviewEvent

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "thoughtpacket_preview"
    },
    "claims": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string"
          },
          "refs": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "confidence": {
            "type": "number"
          },
          "status": {
            "type": "string",
            "enum": [
              "forming",
              "rejected"
            ]
          }
        },
        "required": [
          "text",
          "refs",
          "confidence"
        ]
      }
    },
    "uncertaintyScore": {
      "type": "number"
    },
    "supportScore": {
      "type": "number"
    },
    "source": {
      "type": "string",
      "enum": [
        "stream_extraction",
        "rule_based_candidate",
        "retrieval_attention",
        "stream_attention"
      ]
    },
    "progressive": {
      "$ref": "#/components/schemas/PEEProgressiveSurfacePatch"
    }
  },
  "required": [
    "type",
    "claims",
    "source",
    "progressive"
  ]
}

PEETurnAbortedEvent

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "turn_aborted"
    },
    "failure": {
      "$ref": "#/components/schemas/TurnFailure"
    }
  },
  "required": [
    "type",
    "failure"
  ]
}

PEETurnCommittedEvent

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "turn_committed"
    },
    "acceptedRefCount": {
      "type": "number"
    },
    "packetId": {
      "type": [
        "string",
        "null"
      ]
    },
    "turnDurationMs": {
      "type": "number"
    }
  },
  "required": [
    "type",
    "acceptedRefCount",
    "packetId",
    "turnDurationMs"
  ]
}

PendingSubmissionReadResponse

{
  "type": "object",
  "properties": {
    "submissionId": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "const": "pending"
    },
    "submissionStatus": {
      "$ref": "#/components/schemas/SubmissionStatus"
    },
    "blockingReason": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/SubmissionBlockingReason"
        },
        {
          "type": "null"
        }
      ],
      "description": "Same as workflow.blockingReason."
    },
    "workflow": {
      "$ref": "#/components/schemas/SubmissionWorkflowView",
      "description": "The submission workflow view (ECA §6.3), as on every submission read."
    },
    "retryAfterMs": {
      "type": "number"
    }
  },
  "required": [
    "submissionId",
    "status",
    "submissionStatus",
    "blockingReason",
    "workflow",
    "retryAfterMs"
  ],
  "description": "ECA §6.3 — a submission read answered while extraction is still running (HTTP 202 with Retry-After): GET .../manifest, and GET .../extraction before extraction has written output. What it reads does not exist yet; read again after retryAfterMs."
}

ProtocolAttributionEnvelope

{
  "type": "object",
  "properties": {
    "ownerUserId": {
      "type": "string",
      "minLength": 1
    },
    "actorId": {
      "type": "string",
      "minLength": 1
    },
    "apiKeyId": {
      "type": "string",
      "minLength": 1
    },
    "originSystem": {
      "type": "string",
      "minLength": 1
    }
  },
  "required": [
    "ownerUserId"
  ],
  "additionalProperties": false
}

PublicWorkManifest

{
  "type": "object",
  "properties": {
    "workManifestId": {
      "type": "string"
    },
    "bountyId": {
      "type": "string"
    },
    "sourceTextRootId": {
      "type": "string"
    },
    "sourceSubmissionId": {
      "type": "string"
    },
    "creativeBrief": {
      "type": "string"
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PublicWorkManifestItem"
      }
    },
    "totals": {
      "type": "object",
      "properties": {
        "totalItems": {
          "type": "number"
        }
      },
      "required": [
        "totalItems"
      ]
    },
    "source": {
      "type": "object",
      "properties": {
        "origin": {
          "type": "string",
          "const": "materialized_from_extraction"
        },
        "extractionTextRootId": {
          "type": "string"
        },
        "materializedAt": {
          "type": "string"
        }
      },
      "required": [
        "origin",
        "extractionTextRootId",
        "materializedAt"
      ]
    },
    "createdAt": {
      "type": "string"
    },
    "updatedAt": {
      "type": "string"
    }
  },
  "required": [
    "workManifestId",
    "sourceTextRootId",
    "items",
    "totals",
    "source",
    "createdAt",
    "updatedAt"
  ]
}

PublicWorkManifestItem

{
  "type": "object",
  "properties": {
    "itemId": {
      "type": "string"
    },
    "anchorRef": {
      "type": "string"
    },
    "sceneId": {
      "type": "string"
    },
    "chapterId": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "referenceRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "deliverySpec": {
      "type": "object",
      "properties": {
        "mediaType": {
          "type": "string",
          "enum": [
            "image",
            "video"
          ]
        },
        "format": {
          "type": "string",
          "enum": [
            "png",
            "jpg",
            "jpeg",
            "webp",
            "mp4",
            "webm"
          ]
        },
        "aspectRatio": {
          "type": "string"
        },
        "variantCount": {
          "type": "number"
        }
      },
      "required": [
        "mediaType"
      ]
    },
    "intent": {
      "type": "object",
      "properties": {
        "purpose": {
          "type": "object",
          "properties": {
            "category": {
              "$ref": "#/components/schemas/MediaPurposeCategory"
            },
            "role": {
              "$ref": "#/components/schemas/MediaRole"
            }
          },
          "required": [
            "category",
            "role"
          ]
        },
        "composition": {
          "type": "object",
          "properties": {
            "framing": {
              "type": "string"
            },
            "orientation": {
              "type": "string"
            },
            "hints": {
              "type": "string"
            }
          },
          "required": [
            "framing"
          ]
        }
      },
      "required": [
        "purpose",
        "composition"
      ]
    },
    "worldContext": {
      "type": "object",
      "properties": {
        "subject": {
          "type": "object",
          "properties": {
            "description": {
              "type": "string"
            },
            "entityRefs": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "description"
          ]
        },
        "environment": {
          "type": "object",
          "properties": {
            "description": {
              "type": "string"
            },
            "locationRef": {
              "type": "string"
            },
            "era": {
              "type": "string"
            },
            "timeOfDay": {
              "type": "string"
            }
          },
          "required": [
            "description"
          ]
        },
        "action": {
          "type": "object",
          "properties": {
            "description": {
              "type": "string"
            }
          },
          "required": [
            "description"
          ]
        },
        "constraints": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/SlotConstraint"
          }
        }
      },
      "required": [
        "subject"
      ]
    },
    "placement": {
      "type": "object",
      "properties": {
        "slotType": {
          "type": "string"
        },
        "targetNodeLabel": {
          "type": "string"
        },
        "targetNodeId": {
          "type": "string"
        }
      },
      "required": [
        "slotType",
        "targetNodeLabel",
        "targetNodeId"
      ]
    },
    "status": {
      "$ref": "#/components/schemas/SlotStatus"
    }
  },
  "required": [
    "itemId",
    "anchorRef",
    "title",
    "description",
    "intent",
    "worldContext",
    "placement",
    "status"
  ]
}

PublicWorldSearchResult

{
  "type": "object",
  "properties": {
    "worldId": {
      "type": "string"
    },
    "worldHandle": {
      "type": "string"
    },
    "displayName": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "publicSummary": {
      "type": [
        "string",
        "null"
      ]
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "ownerUsername": {
      "type": "string"
    },
    "visibility": {
      "type": "string",
      "const": "public"
    },
    "readMode": {
      "type": "string",
      "const": "public_query"
    },
    "publishMode": {
      "type": "string",
      "enum": [
        "owner_only",
        "members_with_publish",
        "open_to_authenticated"
      ]
    },
    "lifecycleState": {
      "type": "string",
      "const": "active"
    },
    "isBookmarked": {
      "type": "boolean"
    },
    "isMember": {
      "type": "boolean"
    },
    "hasPendingInvite": {
      "type": "boolean"
    }
  },
  "required": [
    "worldId",
    "worldHandle",
    "displayName",
    "description",
    "tags",
    "ownerUsername",
    "visibility",
    "readMode",
    "publishMode",
    "lifecycleState",
    "isBookmarked",
    "isMember",
    "hasPendingInvite"
  ]
}

PublishTargetOption

{
  "type": "object",
  "properties": {
    "worldId": {
      "type": "string"
    },
    "worldHandle": {
      "type": "string"
    },
    "displayName": {
      "type": "string"
    },
    "relationship": {
      "type": "string",
      "enum": [
        "owner",
        "member",
        "discoverable_public"
      ]
    },
    "canPublish": {
      "type": "boolean"
    },
    "publishMode": {
      "type": "string",
      "enum": [
        "owner_only",
        "members_with_publish",
        "open_to_authenticated"
      ]
    },
    "explanation": {
      "type": "string"
    },
    "isDefaultSelection": {
      "type": "boolean"
    }
  },
  "required": [
    "worldId",
    "worldHandle",
    "displayName",
    "relationship",
    "canPublish",
    "publishMode",
    "explanation",
    "isDefaultSelection"
  ]
}

QuotaProfile

{
  "type": "object",
  "properties": {
    "requestsPerMinute": {
      "type": "integer",
      "minimum": 0
    },
    "requestsPerDay": {
      "type": "integer",
      "minimum": 0
    },
    "maxRetrievalDepth": {
      "type": "integer",
      "minimum": 0
    },
    "maxTokenBudgetPerTurn": {
      "type": "integer",
      "minimum": 0
    },
    "maxMidReasoningCalls": {
      "type": "integer",
      "minimum": 0
    },
    "inferenceSubmitsPerDay": {
      "type": "integer",
      "minimum": 0
    },
    "ecaSubmissionsPerDay": {
      "type": "integer",
      "minimum": 0
    },
    "ecaFulfillmentsPerDay": {
      "type": "integer",
      "minimum": 0
    }
  },
  "required": [
    "requestsPerMinute",
    "requestsPerDay",
    "maxRetrievalDepth",
    "maxTokenBudgetPerTurn",
    "maxMidReasoningCalls",
    "inferenceSubmitsPerDay"
  ],
  "additionalProperties": false
}

RankedUserLookupCandidate

{
  "type": "object",
  "properties": {
    "userId": {
      "type": "string"
    },
    "userSpace": {
      "type": "string"
    },
    "handle": {
      "type": [
        "string",
        "null"
      ]
    },
    "matchKind": {
      "$ref": "#/components/schemas/UserLookupListMatchKind"
    }
  },
  "required": [
    "matchKind",
    "userId",
    "userSpace"
  ]
}

ReceiptOpStatus

{
  "type": "string",
  "enum": [
    "committed",
    "pending",
    "failed",
    "skipped"
  ]
}

ReceiptProvenance

{
  "type": "object",
  "properties": {
    "rewardEventId": {
      "type": "string"
    },
    "rewardLane": {
      "type": "string"
    },
    "bountyId": {
      "type": "string"
    },
    "bountyAmount": {
      "type": "string"
    },
    "rewardAmount": {
      "type": "string"
    },
    "computedReward": {
      "type": "string"
    },
    "worldId": {
      "type": "string"
    },
    "submissionId": {
      "type": "string"
    },
    "fulfillmentId": {
      "type": "string"
    },
    "seedId": {
      "type": "string"
    },
    "gapId": {
      "type": "string"
    },
    "textRootId": {
      "type": "string"
    },
    "thoughtPacketId": {
      "type": "string"
    },
    "bundleId": {
      "type": "string"
    },
    "configVersionId": {
      "type": "string"
    },
    "reusedRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "originalOwnerTextRootIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "description": "Optional receipt provenance fields (§9.1)."
}

ReceiptStatus

{
  "type": "string",
  "enum": [
    "success",
    "partial_success",
    "failed",
    "pending"
  ]
}

ReceiptType

{
  "type": "string",
  "enum": [
    "reward_receipt",
    "transfer_receipt",
    "tip_receipt",
    "escrow_funding_receipt",
    "escrow_release_receipt",
    "escrow_return_receipt",
    "adjustment_receipt"
  ],
  "description": "STAR_LEDGER_SYSTEM.md §9.1"
}

RefMediaType

{
  "type": "string",
  "enum": [
    "img",
    "vid",
    "aud",
    "txt",
    "obj",
    "ent",
    "set",
    "scn",
    "topic"
  ]
}

RefsLayer

{
  "type": "object",
  "properties": {
    "catalog": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CatalogEntry"
      }
    },
    "accepted": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/AcceptedRef"
      }
    },
    "anomalies": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/AnomalyRef"
      }
    }
  },
  "required": [
    "catalog",
    "accepted",
    "anomalies"
  ]
}

Revision

{
  "type": "number"
}

RiskTier

{
  "type": "string",
  "enum": [
    "T0",
    "T1",
    "T2",
    "T3"
  ],
  "description": "Risk tier values per AES §3. Duplicated here to avoid circular imports; canonical source is types/agentExecution.ts."
}

RoomActorSourceCompletion

{
  "type": "object",
  "properties": {
    "actorHandle": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "standing_participant"
            },
            "participantRef": {
              "type": "string"
            }
          },
          "required": [
            "kind",
            "participantRef"
          ]
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "imported_voice"
            },
            "importedVoiceId": {
              "type": "string"
            },
            "surfacedParticipantRef": {
              "type": "string"
            }
          },
          "required": [
            "importedVoiceId",
            "kind",
            "surfacedParticipantRef"
          ]
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "introduced_helper"
            },
            "introductionRef": {
              "type": "string"
            },
            "surfacedParticipantRef": {
              "type": "string"
            }
          },
          "required": [
            "introductionRef",
            "kind",
            "surfacedParticipantRef"
          ]
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "standing_participant"
            },
            "participantRef": {
              "type": "string"
            }
          },
          "required": [
            "kind",
            "participantRef"
          ]
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "introduced_helper"
            },
            "introductionRef": {
              "type": "string"
            },
            "surfacedParticipantRef": {
              "type": "string"
            }
          },
          "required": [
            "introductionRef",
            "kind",
            "surfacedParticipantRef"
          ]
        }
      ]
    },
    "sourceKind": {
      "type": "string",
      "enum": [
        "world_continuation",
        "upc_card_turn",
        "introduced_helper_turn",
        "worker_turn"
      ]
    },
    "sourceWorldId": {
      "type": "string"
    },
    "sourceSessionId": {
      "type": "string"
    },
    "sourceTurnId": {
      "type": "string"
    },
    "cardSessionId": {
      "type": "string"
    },
    "bodyText": {
      "type": "string"
    },
    "sourceRecordingState": {
      "type": "string",
      "enum": [
        "committed",
        "recovery_pending"
      ]
    },
    "projectionRecoveryState": {
      "type": "string",
      "const": "pending"
    },
    "annotationRef": {
      "type": "string"
    },
    "assistantMessageRef": {
      "type": "string"
    },
    "assistantArtifactRef": {
      "type": "string"
    },
    "transcriptArtifactRef": {
      "type": "string"
    },
    "surfaceArtifactRef": {
      "type": "string"
    },
    "sourceTurnSnapshotRef": {
      "type": "string"
    },
    "recoveryPendingSourceRecording": {
      "type": "object",
      "additionalProperties": {}
    },
    "recoveryPendingProjection": {
      "type": "object",
      "additionalProperties": {}
    },
    "contributorRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "terminalReceiptRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "roomActorReportDraft": {
      "$ref": "#/components/schemas/ChatActorTurnReportDraft"
    },
    "roomActorReportVerdict": {
      "$ref": "#/components/schemas/ChatDirectionDraftVerdict"
    }
  },
  "required": [
    "actorHandle",
    "sourceKind",
    "bodyText",
    "contributorRefs"
  ]
}

RoomDirectoryOperation

{
  "type": "object",
  "properties": {
    "operationId": {
      "type": "string"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET",
        "POST",
        "PUT",
        "PATCH",
        "DELETE"
      ]
    },
    "pathTemplate": {
      "type": "string"
    },
    "roomLinkAccess": {
      "type": "string",
      "enum": [
        "read",
        "search",
        "post"
      ],
      "description": "The access level the room token needs; absent where the invite token in the path is the credential."
    },
    "credentialRule": {
      "type": "string"
    }
  },
  "required": [
    "operationId",
    "method",
    "pathTemplate",
    "credentialRule"
  ],
  "description": "CHAT §2.10: one operation a room link opens, with the AES §8.9 credentialRule it enforces."
}

SceneEnvironment

{
  "type": "object",
  "properties": {
    "scene_id": {
      "type": "string"
    },
    "text_root_id": {
      "type": "string"
    },
    "summary": {
      "type": "string"
    },
    "world": {
      "type": "string"
    },
    "realm": {
      "type": "string"
    },
    "region": {
      "type": "string"
    },
    "biome": {
      "type": "string"
    },
    "climate": {
      "type": "string"
    },
    "terrain": {
      "type": "string"
    },
    "sky": {
      "type": "string"
    },
    "ambient_conditions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "cultural_context": {
      "type": "string"
    },
    "era": {
      "type": "string"
    },
    "confidence": {
      "type": "number"
    },
    "source": {
      "type": "string",
      "enum": [
        "llm",
        "inherit",
        "manual"
      ]
    },
    "change_reason": {
      "type": "string"
    },
    "inherited_from_scene_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "generated_at": {
      "type": "string"
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "scene_id",
    "text_root_id",
    "summary",
    "ambient_conditions",
    "confidence",
    "source",
    "generated_at"
  ]
}

SeedDensityEstimate

{
  "type": "string",
  "enum": [
    "dense",
    "moderate",
    "sparse",
    "void"
  ]
}

SeedFeedEntry

{
  "type": "object",
  "properties": {
    "seedId": {
      "type": "string"
    },
    "seederUserId": {
      "type": "string"
    },
    "thought": {
      "type": "string"
    },
    "matchThreshold": {
      "type": "number"
    },
    "amount": {
      "type": "number"
    },
    "bonusAmount": {
      "type": "number"
    },
    "placedAt": {
      "type": "number"
    },
    "activatedAt": {
      "type": "number"
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "claimed",
        "withdrawn"
      ]
    },
    "densityEstimate": {
      "$ref": "#/components/schemas/SeedDensityEstimate"
    },
    "nearbyGapIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "claimedAt": {
      "type": "number"
    },
    "claimedByBundleId": {
      "type": "string"
    },
    "claimedByUserId": {
      "type": "string"
    }
  },
  "required": [
    "seedId",
    "seederUserId",
    "thought",
    "matchThreshold",
    "amount",
    "bonusAmount",
    "placedAt",
    "status"
  ]
}

SeedSlotViewRow

{
  "type": "object",
  "properties": {
    "slotIndex": {
      "type": "number"
    },
    "state": {
      "type": "string",
      "enum": [
        "empty",
        "queued",
        "active"
      ]
    },
    "cooldownUntil": {
      "type": [
        "number",
        "null"
      ]
    },
    "seed": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "seedId": {
              "type": "string"
            },
            "thought": {
              "type": "string"
            },
            "status": {
              "$ref": "#/components/schemas/VectorSpaceSeedStatus"
            },
            "amount": {
              "type": "number"
            },
            "bonusAmount": {
              "type": "number"
            },
            "matchThreshold": {
              "type": "number"
            },
            "placedAt": {
              "type": "number"
            },
            "activatedAt": {
              "type": [
                "number",
                "null"
              ]
            }
          },
          "required": [
            "seedId",
            "thought",
            "status",
            "amount",
            "bonusAmount",
            "matchThreshold",
            "placedAt",
            "activatedAt"
          ]
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "slotIndex",
    "state",
    "cooldownUntil",
    "seed"
  ]
}

SemanticSceneProfile

{
  "type": "object",
  "properties": {
    "phrasesByCategory": {
      "type": "object",
      "additionalProperties": {
        "type": "array",
        "items": {
          "type": "string"
        }
      }
    },
    "signaturesByCategory": {
      "type": "object",
      "additionalProperties": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/SemanticSceneSignature"
        }
      }
    }
  },
  "required": [
    "phrasesByCategory"
  ]
}

SemanticSceneSignature

{
  "type": "object",
  "properties": {
    "phrase": {
      "type": "string"
    },
    "score": {
      "type": "number"
    },
    "phraseType": {
      "type": "string"
    },
    "sourceText": {
      "type": "string"
    },
    "sourceSegmentId": {
      "type": "string"
    },
    "sentenceImportance": {
      "type": "number"
    }
  },
  "required": [
    "phrase",
    "score",
    "phraseType",
    "sourceText",
    "sourceSegmentId"
  ]
}

SessionClaim

{
  "type": "object",
  "properties": {
    "text": {
      "type": "string"
    },
    "refs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "confidence": {
      "type": "number"
    },
    "turn": {
      "type": "number"
    }
  },
  "required": [
    "text",
    "refs",
    "confidence",
    "turn"
  ]
}

SessionCloseReason

{
  "type": "string",
  "enum": [
    "completed",
    "abandoned",
    "timeout",
    "revoked"
  ]
}

SessionLayer

{
  "type": "object",
  "properties": {
    "turnCount": {
      "type": "number"
    },
    "activeFacts": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "entityMomentum": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/MomentumEntry"
      }
    },
    "accumulatedClaims": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/SessionClaim"
      }
    },
    "openThreads": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/SessionThread"
      }
    },
    "warmSummaries": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/WarmSummary"
      }
    }
  },
  "required": [
    "turnCount",
    "activeFacts",
    "entityMomentum",
    "accumulatedClaims",
    "openThreads",
    "warmSummaries"
  ]
}

SessionParticipant

{
  "type": "object",
  "properties": {
    "userId": {
      "type": "string"
    },
    "actorId": {
      "type": "string"
    },
    "joinedAt": {
      "type": "string"
    },
    "role": {
      "type": "string",
      "enum": [
        "owner",
        "participant",
        "observer"
      ]
    }
  },
  "required": [
    "userId",
    "actorId",
    "joinedAt",
    "role"
  ]
}

SessionThread

{
  "type": "object",
  "properties": {
    "text": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "open",
        "partially_addressed",
        "resolved"
      ]
    },
    "introducedAtTurn": {
      "type": "number"
    }
  },
  "required": [
    "text",
    "status",
    "introducedAtTurn"
  ]
}

SettlementRef

{
  "type": "object",
  "properties": {
    "kind": {
      "type": "string",
      "const": "ham.settlement.ref"
    },
    "settlementRefId": {
      "type": "string"
    },
    "turnId": {
      "type": "string"
    },
    "evidenceKind": {
      "type": "string",
      "enum": [
        "cost_report",
        "artifact_written",
        "receipt_committed",
        "work_order_committed"
      ]
    },
    "evidenceRef": {
      "type": "string"
    },
    "committedAt": {
      "type": "string"
    },
    "settlementSystem": {
      "type": "string"
    }
  },
  "required": [
    "kind",
    "settlementRefId",
    "turnId",
    "evidenceKind",
    "evidenceRef",
    "committedAt",
    "settlementSystem"
  ],
  "description": "C.PACKAGING.settlement.ref.v1 — SettlementRef\n\nSpec:  PACKAGING_V1.md §2 C.PACKAGING.settlement.ref.v1; HAM_PACKAGING §8.4 Ledger: PKG-B-13\n\nA reference from a HAM turn record to a piece of committed evidence that settlement can use to attribute cost, usage, or resource consumption. MUST point to a committed record. MUST NOT be emitted if the only evidence is an in-flight or speculative Hub state."
}

SkillRouterOutputV1

{
  "type": "object",
  "properties": {
    "schemaVersion": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1,
      "default": 1
    },
    "intent": {
      "type": "string"
    },
    "confidence": {
      "type": "number",
      "minimum": 0,
      "maximum": 1
    },
    "invocations": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "skill": {
            "type": "string",
            "minLength": 3
          },
          "args": {
            "type": "object",
            "additionalProperties": {},
            "default": {}
          }
        },
        "required": [
          "skill"
        ],
        "additionalProperties": false
      },
      "maxItems": 8
    },
    "visualReasoning": {
      "type": "object",
      "properties": {
        "usedVisualContext": {
          "type": "boolean",
          "default": false
        },
        "resolvedTargets": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "default": []
        },
        "notes": {
          "type": "string",
          "maxLength": 800,
          "default": ""
        }
      },
      "additionalProperties": false
    },
    "parameterResolution": {
      "type": "object",
      "properties": {
        "priority": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "explicit_user",
              "classifier_entities",
              "observation_indexes",
              "learned_defaults",
              "safe_defaults"
            ]
          },
          "default": [
            "explicit_user",
            "classifier_entities",
            "observation_indexes",
            "learned_defaults",
            "safe_defaults"
          ]
        },
        "notes": {
          "type": "string",
          "maxLength": 800,
          "default": ""
        }
      },
      "additionalProperties": false
    },
    "needs": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "scope",
              "ref",
              "index",
              "permission"
            ]
          },
          "detail": {
            "type": "string"
          }
        },
        "required": [
          "kind",
          "detail"
        ],
        "additionalProperties": false
      },
      "default": []
    },
    "rationale": {
      "type": "string",
      "maxLength": 800,
      "default": ""
    }
  },
  "required": [
    "intent",
    "confidence",
    "invocations"
  ],
  "additionalProperties": false
}

SlotConstraint

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "rule": {
      "type": "string"
    }
  },
  "required": [
    "type",
    "rule"
  ]
}

SlotFinalizePhase

{
  "type": "string",
  "enum": [
    "copied",
    "imported",
    "graph_written",
    "linked",
    "linked_partial",
    "complete",
    "failed"
  ],
  "description": "SubmissionFinalizationLedger — FULFILLMENT_FLOW_REDESIGN §8.4\n\nDurable per-slot ledger for idempotent finalize retries. Persisted as `finalizationLedger` on BountySubmissionManifest."
}

SlotResult

{
  "type": "object",
  "properties": {
    "slotId": {
      "type": "string"
    },
    "finalAssetKey": {
      "type": "string"
    },
    "importedAssetId": {
      "type": "string"
    },
    "importedUrl": {
      "type": "string"
    },
    "phase": {
      "$ref": "#/components/schemas/SlotFinalizePhase"
    },
    "lastError": {
      "type": "string"
    },
    "bindingError": {
      "type": "string"
    },
    "updatedAt": {
      "type": "string"
    }
  },
  "required": [
    "slotId",
    "finalAssetKey",
    "phase",
    "updatedAt"
  ]
}

SlotStatus

{
  "type": "string",
  "enum": [
    "pending",
    "submitted",
    "accepted",
    "rejected"
  ]
}

SourceConceptPhrase

{
  "type": "object",
  "properties": {
    "text": {
      "type": "string"
    },
    "phraseType": {
      "$ref": "#/components/schemas/ExtractedLexicalSignaturePhraseType"
    }
  },
  "required": [
    "text",
    "phraseType"
  ],
  "description": "Source-ordered lexical concept emitted before category classification. This is the shared online text-understanding boundary for consumers that need concrete phrase evidence without paying for a second model call."
}

StarActivityCounterpartyRole

{
  "type": "string",
  "enum": [
    "sender",
    "recipient"
  ]
}

StarActivityItem

{
  "type": "object",
  "properties": {
    "receiptId": {
      "type": "string"
    },
    "type": {
      "$ref": "#/components/schemas/ReceiptType"
    },
    "typeLabel": {
      "type": "string",
      "description": "User-facing receipt type (e.g. Tip, Reward)."
    },
    "direction": {
      "type": "string",
      "enum": [
        "earned",
        "spent",
        "returned",
        "sent",
        "received"
      ]
    },
    "amount": {
      "$ref": "#/components/schemas/StarAmount"
    },
    "description": {
      "type": "string"
    },
    "memo": {
      "type": "string"
    },
    "counterpartyUserId": {
      "type": "string"
    },
    "counterpartyLabel": {
      "type": "string",
      "description": "Display name or"
    },
    "counterpartyRole": {
      "$ref": "#/components/schemas/StarActivityCounterpartyRole",
      "description": "Direction-aware person role for the counterparty seat."
    },
    "causalObjectType": {
      "type": "string"
    },
    "causalObjectId": {
      "type": "string"
    },
    "causeLabel": {
      "type": "string",
      "description": "Friendly related-object kind (no raw ids)."
    },
    "occurredAt": {
      "type": "string"
    }
  },
  "required": [
    "receiptId",
    "type",
    "typeLabel",
    "direction",
    "amount",
    "description",
    "occurredAt"
  ]
}

StarAmount

{
  "type": "string"
}

SubmissionBlockingReason

{
  "type": "object",
  "properties": {
    "code": {
      "$ref": "#/components/schemas/SubmissionBlockingReasonCode"
    },
    "description": {
      "type": "string"
    }
  },
  "required": [
    "code",
    "description"
  ]
}

SubmissionBlockingReasonCode

{
  "type": "string",
  "enum": [
    "extraction_running",
    "extraction_review_required",
    "strategy_required",
    "media_production_running",
    "media_generation_stalled",
    "media_upload_required",
    "bounty_fulfillment_pending",
    "completion_required",
    "registration_running",
    "rejected"
  ],
  "description": "ECA §6.3 — the one condition the submission is blocked on, as a stable code. `null` once the story is registered."
}

SubmissionExtractionRelationship

{
  "type": "object",
  "properties": {
    "sourceId": {
      "type": "string"
    },
    "targetId": {
      "type": "string"
    },
    "relationshipType": {
      "type": "string"
    },
    "weight": {
      "type": "number"
    },
    "confidence": {
      "type": [
        "number",
        "null"
      ]
    },
    "evidence": {},
    "sceneId": {
      "type": [
        "string",
        "null"
      ]
    },
    "bidirectional": {
      "type": [
        "boolean",
        "null"
      ]
    }
  },
  "required": [
    "sourceId",
    "targetId",
    "relationshipType",
    "weight"
  ]
}

SubmissionExtractionReviewState

{
  "type": "string",
  "enum": [
    "not_applicable",
    "pending",
    "awaiting_creator",
    "correction_in_progress",
    "approved",
    "skipped"
  ]
}

SubmissionFinalizationLedger

{
  "type": "object",
  "properties": {
    "schemaVersion": {
      "type": "number",
      "const": 1
    },
    "status": {
      "$ref": "#/components/schemas/LedgerStatus"
    },
    "currentAttemptId": {
      "type": "string"
    },
    "finalizedAt": {
      "type": "string"
    },
    "lastUpdatedAt": {
      "type": "string"
    },
    "slotResults": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/SlotResult"
      },
      "description": "Keyed by slotId (never by a legacy-only itemId).\n\nRetry rules (§8.4): 1. If phase >= 'imported', retry reuses importedAssetId/importedUrl. 2. If phase >= 'graph_written', retry skips the authoritative Cypher. 3. If phase >= 'linked', retry does not relink.\n\nConcurrency (§8.4):\n- Each attempt generates a new attemptId.\n- A concurrent request seeing status='running' + different attemptId +   lastUpdatedAt newer than 15min fails with ERR_FINALIZE_ALREADY_RUNNING.\n- Stale attempts older than 15min may be reclaimed."
    }
  },
  "required": [
    "schemaVersion",
    "status",
    "lastUpdatedAt",
    "slotResults"
  ]
}

SubmissionProductionLane

{
  "type": "string",
  "enum": [
    "lazy_lane",
    "attended",
    "undecided"
  ],
  "description": "ECA §6.2 production lanes. `lazy_lane` is `platform_default`: the platform produces everything, pausing only for an extraction review the submitter requested. `attended` is `self_fulfill` / `post_bounty`: the platform produces extraction, graph, TTS, and the work manifest; media comes from the submitter or a bounty. `undecided` has no strategy yet. The lane can change until media production starts (ECA §6.2.3)."
}

SubmissionStatus

{
  "type": "string",
  "enum": [
    "submitted",
    "accepted",
    "rejected",
    "correction_requested",
    "draft_saved",
    "published",
    "pipeline_running",
    "extraction_complete",
    "awaiting_extraction_review",
    "manifest_issued",
    "media_generating",
    "media_generation_stalled",
    "media_fulfilled",
    "finalized",
    "registered"
  ]
}

SubmissionWaitingOn

{
  "type": "string",
  "enum": [
    "extraction",
    "platform",
    "creator",
    "bounty_fulfillers",
    "none"
  ],
  "description": "Who must act before the submission advances. `extraction`: the extraction pipeline is still running, so extraction, manifest, and fulfillment reads are not yet meaningful. `platform`: platform media production, assembly, or registration. `creator`: the submitter. `bounty_fulfillers`: a posted media bounty. `none`: terminal."
}

SubmissionWorkflowAction

{
  "type": "object",
  "properties": {
    "action": {
      "type": "string",
      "description": "Stable id: poll_submission, get_extraction, submit_correction, approve_extraction, set_brief, choose_strategy, get_manifest, request_upload_url, submit_media, review_media, get_fulfillment, review_bounty_submission, complete, get_playback."
    },
    "method": {
      "type": "string",
      "enum": [
        "GET",
        "POST",
        "PUT"
      ]
    },
    "path": {
      "type": "string",
      "description": "Absolute API path. Submission routes, except review_bounty_submission, which is the linked marketplace bounty's review route, and get_playback, which is the registered story's TextRoot read (`textroot_get`)."
    },
    "description": {
      "type": "string"
    },
    "allowedStrategies": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/FulfillmentStrategy"
      },
      "description": "choose_strategy only: the strategies the submission can still take (ECA §6.2.3). The orchestrator refuses a selection once media production starts (ERR_STRATEGY_SELECTION_CLOSED)."
    },
    "body": {
      "type": "object",
      "properties": {
        "required": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/AgentWorkflowBodyField"
          }
        },
        "optional": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/AgentWorkflowBodyField"
          }
        }
      },
      "required": [
        "required",
        "optional"
      ],
      "description": "The request body, in the AES §8.10.7 workflow-step field form, where the path alone does not make the call (review_bounty_submission)."
    },
    "requires": {
      "type": "object",
      "properties": {
        "action": {
          "type": "string"
        },
        "field": {
          "type": "string"
        },
        "in": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "action",
        "field",
        "in"
      ],
      "description": "The action is legal only once the read the named nextActions entry makes reports `field` in `in`; before that its route refuses it. Listed actions without `requires` are valid as soon as they are listed."
    }
  },
  "required": [
    "action",
    "method",
    "path",
    "description"
  ]
}

SubmissionWorkflowView

{
  "type": "object",
  "properties": {
    "lane": {
      "$ref": "#/components/schemas/SubmissionProductionLane"
    },
    "strategy": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/FulfillmentStrategy"
        },
        {
          "type": "null"
        }
      ],
      "description": "fulfillmentStrategy ?? requestedWorkStrategy."
    },
    "strategySource": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "selected",
        "requested",
        null
      ],
      "description": "`selected`: recorded as fulfillmentStrategy. `requested`: named at submit as requestedWorkStrategy; it is the decision, and the platform applies it when extraction completes (or at approval when reviewed) with no further call. `null`: undecided."
    },
    "extractionReview": {
      "$ref": "#/components/schemas/SubmissionExtractionReviewState"
    },
    "waitingOn": {
      "$ref": "#/components/schemas/SubmissionWaitingOn"
    },
    "blockingReason": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/SubmissionBlockingReason"
        },
        {
          "type": "null"
        }
      ]
    },
    "nextActions": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/SubmissionWorkflowAction"
      }
    }
  },
  "required": [
    "lane",
    "strategy",
    "strategySource",
    "extractionReview",
    "waitingOn",
    "blockingReason",
    "nextActions"
  ],
  "description": "ECA §6.3 — the submission's workflow contract, derived from the record: the production lane, extraction-review state, who it waits on, the one reason it is blocked, and the calls valid now. Follow `nextActions`; an empty list means the submission is terminal."
}

TextLayer

{
  "type": "object",
  "properties": {
    "streamingRaw": {
      "type": "string"
    },
    "annotated": {
      "type": "string"
    },
    "clean": {
      "type": "string"
    },
    "mentions": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Mention"
      }
    }
  },
  "required": [
    "annotated",
    "clean",
    "mentions"
  ]
}

TextStoryDeliverable

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "text_story"
    },
    "textAssetId": {
      "type": "string"
    },
    "narrativeSubmissionId": {
      "type": "string"
    },
    "contentHash": {
      "type": "string"
    },
    "wordCount": {
      "type": "number"
    }
  },
  "required": [
    "type",
    "textAssetId",
    "contentHash",
    "wordCount"
  ]
}

TextStoryPayload

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "text_story"
    },
    "ownershipMode": {
      "type": "string",
      "const": "work_for_hire"
    },
    "suggestedEra": {
      "type": "string"
    },
    "suggestedEntities": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "suggestedSettings": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "maxRevisions": {
      "type": "number"
    }
  },
  "required": [
    "type",
    "ownershipMode",
    "maxRevisions"
  ]
}

TextWorkbenchOpenPayload

{
  "type": "object",
  "properties": {
    "initialContent": {
      "type": "string",
      "description": "Initial content - use this OR `content`"
    },
    "content": {
      "type": "string",
      "description": "Alternative content field (same as initialContent)"
    },
    "snippet": {
      "type": "string",
      "description": "Optional preview snippet (e.g. story list)"
    },
    "title": {
      "type": "string",
      "description": "Title of the document"
    },
    "assetId": {
      "type": "string",
      "description": "Existing asset ID for drafts being reopened"
    },
    "openMode": {
      "type": "string",
      "enum": [
        "focus",
        "minimized"
      ],
      "description": "Optional open mode hint (default: minimized unless autoFocus/openMode=focus)"
    },
    "autoFocus": {
      "type": "boolean",
      "description": "If true, open focus mode immediately"
    },
    "publishedTextRootId": {
      "type": "string",
      "description": "If provided, the minimized card should behave as a published story (open TRBV)"
    },
    "publishedCanonId": {
      "type": "string",
      "description": "Canon id for TRBV when publishedTextRootId is provided"
    },
    "sourceAssetId": {
      "type": "string",
      "description": "Optional linkage back to the source draft asset"
    },
    "creativeBrief": {
      "type": "string",
      "description": "Optional creative brief for workbench focus mode"
    },
    "sourceType": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/TextWorkbenchSourceType"
        },
        {
          "$ref": "#/components/schemas/TextWorkbenchOpenSourceType"
        }
      ]
    },
    "voicePolicyId": {
      "type": "string"
    },
    "provenance": {
      "type": "object",
      "properties": {
        "conversationId": {
          "type": "string"
        },
        "messageIndex": {
          "type": "number"
        },
        "messageId": {
          "type": "string",
          "description": "id of the ChatMessageModel that was opened into TextWorkbench"
        },
        "turnId": {
          "type": "string",
          "description": "HAM turnId of the source assistant message"
        },
        "bountyId": {
          "type": "string"
        },
        "claimId": {
          "type": "string"
        },
        "sourceGapId": {
          "type": "string"
        },
        "worldId": {
          "type": [
            "string",
            "null"
          ],
          "description": "worldId from the console surface at open time. Null when the flyout model lacks a worldId at dispatch time; the HAM open seam (TWB-C-01) records worldResolution:'missing_from_flyout_model' when this field is null."
        }
      }
    }
  }
}

TextWorkbenchOpenSourceType

{
  "type": "string"
}

TextWorkbenchSourceType

{
  "type": "string"
}

TopologicalImpact

{
  "type": "object",
  "properties": {
    "nodesTouched": {
      "type": "number"
    },
    "edgesTouched": {
      "type": "number"
    },
    "refsAccepted": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "nodesTouched",
    "edgesTouched",
    "refsAccepted"
  ]
}

TopologicalImpactSummary

{
  "type": "object",
  "properties": {
    "nodesTouched": {
      "type": "number"
    },
    "edgesTouched": {
      "type": "number"
    },
    "detail": {
      "type": "string"
    }
  }
}

TopologyLayer

{
  "type": "object",
  "properties": {
    "resultCount": {
      "type": "number"
    },
    "meanScore": {
      "type": "number"
    },
    "topScore": {
      "type": "number"
    },
    "bottomScore": {
      "type": "number"
    },
    "scoreStdDev": {
      "type": "number"
    },
    "sparsity": {
      "type": "string",
      "enum": [
        "dense",
        "moderate",
        "sparse",
        "void"
      ]
    },
    "perIndex": {
      "type": "object",
      "properties": {
        "entity": {
          "type": "number"
        },
        "setting": {
          "type": "number"
        },
        "textchunk": {
          "type": "number"
        }
      },
      "required": [
        "entity",
        "setting",
        "textchunk"
      ]
    },
    "seedCount": {
      "type": "number"
    },
    "expandedCount": {
      "type": "number"
    },
    "inferentialCount": {
      "type": "number"
    },
    "anchors": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/AnchorEntry"
      }
    }
  },
  "required": [
    "resultCount",
    "meanScore",
    "topScore",
    "bottomScore",
    "scoreStdDev",
    "sparsity",
    "perIndex",
    "seedCount",
    "expandedCount",
    "inferentialCount",
    "anchors"
  ]
}

TransactionType

{
  "type": "string",
  "enum": [
    "reward_issue",
    "peer_transfer",
    "tip",
    "bounty_escrow_fund",
    "bounty_escrow_release",
    "bounty_escrow_return",
    "seed_escrow_hold",
    "seed_escrow_claim_release",
    "seed_escrow_return",
    "admin_adjustment",
    "migration_seed"
  ]
}

TurnFailure

{
  "type": "object",
  "properties": {
    "code": {
      "$ref": "#/components/schemas/TurnFailureCode"
    },
    "detail": {
      "type": "string"
    },
    "recoverable": {
      "type": "boolean"
    },
    "timestamp": {
      "type": "number"
    }
  },
  "required": [
    "code",
    "detail",
    "recoverable",
    "timestamp"
  ]
}

TurnFailureCode

{
  "type": "string",
  "enum": [
    "RETRIEVAL_TIMEOUT",
    "GRAPH_UNREACHABLE",
    "LLM_PROVIDER_FAILURE",
    "LLM_CONTENT_FILTER",
    "VALIDATION_FATAL",
    "COMMIT_NEO4J_FAILURE",
    "COMMIT_SCS_FAILURE",
    "COMMIT_IDEMPOTENCY_CONFLICT",
    "COMMIT_STAGE_REGRESSION",
    "BUDGET_HARD_EXCEEDED",
    "UNKNOWN"
  ]
}

UniversePersonalityCardDirectiveIdentity

{
  "type": "object",
  "properties": {
    "schemaVersion": {
      "type": "string",
      "const": "directive.identity.v2"
    },
    "directiveId": {
      "type": "string"
    },
    "intent": {
      "type": "string"
    },
    "anchorRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "sourceGapId": {
      "type": "string"
    },
    "targetBountyId": {
      "type": "string"
    },
    "mode": {
      "type": "string",
      "enum": [
        "answer",
        "explore",
        "bridge",
        "canonize"
      ]
    },
    "creativeDirection": {
      "type": "string"
    },
    "interactionMode": {
      "type": "string",
      "const": "payload_guided"
    },
    "instance": {
      "type": "string",
      "const": "universe_personality_card"
    },
    "payloadGuided": {
      "type": "object",
      "properties": {
        "instance": {
          "$ref": "#/components/schemas/InteractionInstance"
        },
        "identityHash": {
          "type": "string"
        },
        "sessionHash": {
          "type": "string"
        }
      },
      "required": [
        "instance"
      ]
    },
    "card": {
      "type": "object",
      "properties": {
        "cardId": {
          "type": "string"
        },
        "cardSessionId": {
          "type": "string"
        },
        "nodeRef": {
          "type": "string"
        },
        "sourceSnapshotHash": {
          "type": "string"
        },
        "sentienceTier": {
          "type": "string"
        },
        "driftTurnIndex": {
          "type": "number"
        }
      },
      "required": [
        "cardId",
        "cardSessionId",
        "nodeRef",
        "driftTurnIndex"
      ]
    }
  },
  "required": [
    "card",
    "directiveId",
    "instance",
    "intent",
    "interactionMode",
    "schemaVersion"
  ]
}

UpdateWorldPromptPolicyResponse

{
  "type": "object",
  "properties": {
    "receiptRef": {
      "type": "string"
    },
    "receiptId": {
      "type": "string"
    },
    "worldId": {
      "type": "string"
    },
    "worldHandle": {
      "type": "string"
    },
    "configRef": {
      "type": "string"
    },
    "configHash": {
      "type": "string"
    },
    "source": {
      "$ref": "#/components/schemas/WorldPromptPolicySource"
    },
    "promptPolicy": {
      "$ref": "#/components/schemas/WorldPromptPolicy"
    }
  },
  "required": [
    "configHash",
    "configRef",
    "promptPolicy",
    "receiptId",
    "receiptRef",
    "source",
    "worldHandle",
    "worldId"
  ]
}

UserInboxAction

{
  "type": "string",
  "enum": [
    "accept",
    "decline",
    "block",
    "report",
    "archive"
  ]
}

UserInboxArchiveResponse

{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "const": "ok"
    },
    "archivedMessageHash": {
      "type": "string"
    },
    "summary": {
      "$ref": "#/components/schemas/UserInboxSummaryResponse"
    }
  },
  "required": [
    "status",
    "archivedMessageHash",
    "summary"
  ]
}

UserInboxMessage

{
  "type": "object",
  "properties": {
    "messageRef": {
      "type": "string"
    },
    "messageHash": {
      "type": "string"
    },
    "ownerUserId": {
      "type": "string"
    },
    "sourceKind": {
      "$ref": "#/components/schemas/UserInboxSourceKind"
    },
    "sourceRef": {
      "type": "string"
    },
    "sourceStatus": {
      "$ref": "#/components/schemas/UserInboxSourceStatus"
    },
    "createdAt": {
      "type": "string"
    },
    "sourceUpdatedAt": {
      "type": "string"
    },
    "archivedAt": {
      "type": [
        "string",
        "null"
      ]
    },
    "fromAddressRef": {
      "type": "string"
    },
    "fromDisplayLabel": {
      "type": "string"
    },
    "toUserId": {
      "type": "string"
    },
    "toDisplayLabel": {
      "type": "string"
    },
    "subject": {
      "type": "string"
    },
    "bodyText": {
      "type": [
        "string",
        "null"
      ]
    },
    "previewText": {
      "type": [
        "string",
        "null"
      ]
    },
    "chatRoomId": {
      "type": "string"
    },
    "chatRoomTitle": {
      "type": "string"
    },
    "worldId": {
      "type": "string"
    },
    "worldHandle": {
      "type": "string"
    },
    "worldDisplayName": {
      "type": "string"
    },
    "proposedRole": {
      "type": [
        "string",
        "null"
      ]
    },
    "expiresAt": {
      "type": [
        "string",
        "null"
      ]
    },
    "availableActions": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/UserInboxAction"
      }
    }
  },
  "required": [
    "messageRef",
    "messageHash",
    "ownerUserId",
    "sourceKind",
    "sourceRef",
    "sourceStatus",
    "createdAt",
    "sourceUpdatedAt",
    "archivedAt",
    "fromAddressRef",
    "fromDisplayLabel",
    "toUserId",
    "toDisplayLabel",
    "subject",
    "bodyText",
    "previewText",
    "availableActions"
  ]
}

UserInboxMessagesPage

{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/UserInboxMessage"
      }
    },
    "nextCursor": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "items",
    "nextCursor"
  ]
}

UserInboxOpenResponse

{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "const": "ok"
    },
    "summary": {
      "$ref": "#/components/schemas/UserInboxSummaryResponse"
    }
  },
  "required": [
    "status",
    "summary"
  ]
}

UserInboxSourceKind

{
  "type": "string",
  "enum": [
    "first_contact_request",
    "room_invite",
    "world_invite"
  ],
  "description": "USER_INBOX Lane — Canonical Contract Types (C.USER_INBOX.*)\n\nSpec:   docs/HAM/build/USER_INBOX.md §2 Owner:  product / recipient inbox conformance File:   lib/ham/user-inbox/contracts/types.ts\n\nThis file is the single source of truth for every C.USER_INBOX.* contract shape. All USER_INBOX lane modules and all downstream consumers import from here.\n\nPure types only — no runtime values, no runtime imports.\n\nBuild order matches UIN-A-* ticket dependency chain:   A-02  C.USER_INBOX.source.materialization.v1   A-03  C.USER_INBOX.message.row.v1   A-04  C.USER_INBOX.state.cursor.v1   A-05  C.USER_INBOX.message.read.v1   A-06  C.USER_INBOX.console.view.v1   A-07  C.USER_INBOX.summary.response.v1   A-08  C.USER_INBOX.list.page.v1   A-09  C.USER_INBOX.open.mutation.v1   A-10  C.USER_INBOX.archive.mutation.v1\n\nBoundary:   - USER_INBOX owns the recipient-global normalized contracts below.   - CHAT and WORLDS remain the canonical source-truth owners and must not     redefine these recipient-facing shapes locally."
}

UserInboxSourceStatus

{
  "type": "string",
  "enum": [
    "pending",
    "accepted",
    "declined",
    "revoked",
    "expired",
    "blocked",
    "reported_spam"
  ]
}

UserInboxSummaryResponse

{
  "type": "object",
  "properties": {
    "messagesCount": {
      "type": "number"
    },
    "newCount": {
      "type": "number"
    },
    "newestActiveMessageHash": {
      "type": [
        "string",
        "null"
      ]
    },
    "newestActiveCreatedAt": {
      "type": [
        "string",
        "null"
      ]
    },
    "lastSeenMessageHash": {
      "type": [
        "string",
        "null"
      ]
    },
    "lastSeenCreatedAt": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "messagesCount",
    "newCount",
    "newestActiveMessageHash",
    "newestActiveCreatedAt",
    "lastSeenMessageHash",
    "lastSeenCreatedAt"
  ]
}

UserLookupCandidate

{
  "type": "object",
  "properties": {
    "userId": {
      "type": "string"
    },
    "userSpace": {
      "type": "string"
    },
    "handle": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "userId",
    "userSpace"
  ]
}

UserLookupListMatchKind

{
  "anyOf": [
    {
      "$ref": "#/components/schemas/UserLookupMatchKind"
    },
    {
      "type": "string",
      "const": "partial"
    }
  ]
}

UserLookupMatchKind

{
  "type": "string",
  "enum": [
    "exact_user_space",
    "exact_handle",
    "sole_candidate"
  ]
}

UserLookupResponsePayload

{
  "type": "object",
  "properties": {
    "users": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/RankedUserLookupCandidate"
      }
    },
    "resolution": {
      "$ref": "#/components/schemas/UserLookupSelection"
    }
  },
  "required": [
    "users",
    "resolution"
  ]
}

UserLookupSelection

{
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "const": "resolved"
        },
        "candidate": {
          "$ref": "#/components/schemas/UserLookupCandidate"
        },
        "matchKind": {
          "$ref": "#/components/schemas/UserLookupMatchKind"
        }
      },
      "required": [
        "status",
        "candidate",
        "matchKind"
      ]
    },
    {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "const": "excluded_self"
        },
        "candidate": {
          "$ref": "#/components/schemas/UserLookupCandidate"
        },
        "matchKind": {
          "$ref": "#/components/schemas/UserLookupMatchKind"
        }
      },
      "required": [
        "status",
        "candidate",
        "matchKind"
      ]
    },
    {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "const": "no_match"
        }
      },
      "required": [
        "status"
      ]
    },
    {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "const": "ambiguous"
        },
        "candidates": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/UserLookupCandidate"
          }
        }
      },
      "required": [
        "status",
        "candidates"
      ]
    }
  ]
}

VectorSpaceSeedStatus

{
  "type": "string",
  "enum": [
    "queued",
    "active",
    "claimed",
    "withdrawn"
  ]
}

VisibilityTier

{
  "type": "string",
  "enum": [
    "private",
    "principal",
    "world_internal",
    "world",
    "world_public",
    "cross_world"
  ]
}

WarmSummary

{
  "type": "object",
  "properties": {
    "turn": {
      "type": "number"
    },
    "queryIntent": {
      "type": "string"
    },
    "summary": {
      "type": "string"
    },
    "coveredRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "turn",
    "queryIntent",
    "summary",
    "coveredRefs"
  ]
}

WireContextLayer

{
  "type": "object",
  "properties": {
    "contextText": {
      "type": "string"
    },
    "semanticInputConcepts": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/SourceConceptPhrase"
      },
      "description": "Canonical user-input phrase evidence, available from the first preview."
    },
    "semanticOutputConcepts": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/SourceConceptPhrase"
      },
      "description": "Canonical assistant-output phrase evidence, available at settlement."
    },
    "priorityRefKeys": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "atmosphere": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/AtmosphereSignals"
        },
        {
          "type": "null"
        }
      ]
    },
    "musicRef": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/MusicRef"
        },
        {
          "type": "null"
        }
      ]
    },
    "primarySubjectRef": {
      "type": [
        "string",
        "null"
      ]
    },
    "primarySubjectLabel": {
      "type": "string",
      "description": "Human-readable label for `primarySubjectRef` when the server resolved one. Omitted means the client will humanize the ref."
    },
    "canonicalSetting": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/CanonicalSetting"
        },
        {
          "type": "null"
        }
      ]
    },
    "visualSignature": {
      "type": [
        "string",
        "null"
      ]
    },
    "essence": {
      "type": [
        "string",
        "null"
      ]
    },
    "semanticSceneProfile": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/SemanticSceneProfile"
        },
        {
          "type": "null"
        }
      ]
    },
    "derivationMode": {
      "$ref": "#/components/schemas/DerivationMode"
    }
  },
  "required": [
    "priorityRefKeys",
    "atmosphere",
    "musicRef",
    "primarySubjectRef",
    "canonicalSetting",
    "visualSignature",
    "essence",
    "semanticSceneProfile"
  ]
}

WireEmissionSurface

{
  "type": "object",
  "properties": {
    "schema": {
      "$ref": "#/components/schemas/EmissionSurfaceSchema"
    },
    "identity": {
      "$ref": "#/components/schemas/IdentityLayer"
    },
    "text": {
      "$ref": "#/components/schemas/WireTextLayer"
    },
    "refs": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/components/schemas/WireSurfaceRef"
      }
    },
    "media": {
      "type": "object",
      "properties": {
        "bundles": {
          "type": "object",
          "additionalProperties": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/MediaBundleItem"
                }
              },
              {
                "type": "object",
                "properties": {
                  "authority": {
                    "$ref": "#/components/schemas/CEREMediaAuthority"
                  },
                  "replacementKey": {
                    "type": "string"
                  },
                  "revision": {
                    "type": "number"
                  },
                  "items": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/MediaBundleItem"
                    }
                  }
                },
                "required": [
                  "items"
                ]
              }
            ]
          }
        },
        "placements": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "mentionKey": {
                "type": "string"
              },
              "ref": {
                "type": "string"
              },
              "spanIndex": {
                "type": "number"
              },
              "phrase": {
                "type": "string"
              },
              "authority": {
                "type": "string",
                "const": "runtime_provisional"
              },
              "replacementKey": {
                "type": "string"
              },
              "revision": {
                "type": "number"
              },
              "role": {
                "type": "string",
                "enum": [
                  "context_anchor",
                  "mention_support"
                ]
              },
              "primaryMediaRef": {
                "type": "string"
              },
              "primary": {
                "$ref": "#/components/schemas/MediaBundleItem"
              },
              "score": {
                "type": "number"
              },
              "alternates": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "mediaRef": {
                      "type": "string"
                    },
                    "score": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "mediaRef",
                    "score"
                  ]
                }
              }
            },
            "required": [
              "ref",
              "spanIndex",
              "phrase",
              "primaryMediaRef",
              "score",
              "alternates"
            ]
          }
        },
        "outcomes": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/MediaOutcome"
          }
        }
      },
      "required": [
        "bundles",
        "placements"
      ]
    },
    "context": {
      "$ref": "#/components/schemas/WireContextLayer"
    },
    "topology": {
      "$ref": "#/components/schemas/WireTopologyLayer"
    },
    "epistemic": {
      "$ref": "#/components/schemas/EpistemicLayer"
    },
    "session": {
      "type": "object",
      "properties": {
        "turnCount": {
          "type": "number"
        },
        "activeFactKeys": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "entityMomentum": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/MomentumEntry"
          }
        },
        "accumulatedClaims": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/SessionClaim"
          }
        },
        "openThreads": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/SessionThread"
          }
        },
        "warmSummaries": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "turn": {
                "type": "number"
              },
              "queryIntent": {
                "type": "string"
              },
              "summary": {
                "type": "string"
              },
              "coveredRefKeys": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "turn",
              "queryIntent",
              "summary",
              "coveredRefKeys"
            ]
          }
        }
      },
      "required": [
        "turnCount",
        "activeFactKeys",
        "entityMomentum",
        "accumulatedClaims",
        "openThreads",
        "warmSummaries"
      ]
    }
  },
  "required": [
    "schema",
    "identity",
    "text",
    "refs",
    "media",
    "context",
    "topology",
    "epistemic",
    "session"
  ]
}

WireEmissionSurfaceProjection

{
  "type": "object",
  "properties": {
    "schema": {
      "$ref": "#/components/schemas/EmissionSurfaceProjectionSchema"
    },
    "requestedLayers": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "identity",
          "text",
          "refs",
          "media",
          "context",
          "topology",
          "epistemic",
          "session"
        ]
      }
    },
    "surface": {
      "type": "object",
      "properties": {
        "identity": {
          "$ref": "#/components/schemas/IdentityLayer"
        },
        "schema": {
          "$ref": "#/components/schemas/EmissionSurfaceSchema"
        },
        "text": {
          "$ref": "#/components/schemas/WireTextLayer"
        },
        "refs": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/components/schemas/WireSurfaceRef"
          }
        },
        "media": {
          "type": "object",
          "properties": {
            "bundles": {
              "type": "object",
              "additionalProperties": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/MediaBundleItem"
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "authority": {
                        "$ref": "#/components/schemas/CEREMediaAuthority"
                      },
                      "replacementKey": {
                        "type": "string"
                      },
                      "revision": {
                        "type": "number"
                      },
                      "items": {
                        "type": "array",
                        "items": {
                          "$ref": "#/components/schemas/MediaBundleItem"
                        }
                      }
                    },
                    "required": [
                      "items"
                    ]
                  }
                ]
              }
            },
            "placements": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "mentionKey": {
                    "type": "string"
                  },
                  "ref": {
                    "type": "string"
                  },
                  "spanIndex": {
                    "type": "number"
                  },
                  "phrase": {
                    "type": "string"
                  },
                  "authority": {
                    "type": "string",
                    "const": "runtime_provisional"
                  },
                  "replacementKey": {
                    "type": "string"
                  },
                  "revision": {
                    "type": "number"
                  },
                  "role": {
                    "type": "string",
                    "enum": [
                      "context_anchor",
                      "mention_support"
                    ]
                  },
                  "primaryMediaRef": {
                    "type": "string"
                  },
                  "primary": {
                    "$ref": "#/components/schemas/MediaBundleItem"
                  },
                  "score": {
                    "type": "number"
                  },
                  "alternates": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "mediaRef": {
                          "type": "string"
                        },
                        "score": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "mediaRef",
                        "score"
                      ]
                    }
                  }
                },
                "required": [
                  "ref",
                  "spanIndex",
                  "phrase",
                  "primaryMediaRef",
                  "score",
                  "alternates"
                ]
              }
            },
            "outcomes": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MediaOutcome"
              }
            }
          },
          "required": [
            "bundles",
            "placements"
          ]
        },
        "context": {
          "$ref": "#/components/schemas/WireContextLayer"
        },
        "topology": {
          "$ref": "#/components/schemas/WireTopologyLayer"
        },
        "epistemic": {
          "$ref": "#/components/schemas/EpistemicLayer"
        },
        "session": {
          "type": "object",
          "properties": {
            "turnCount": {
              "type": "number"
            },
            "activeFactKeys": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "entityMomentum": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/MomentumEntry"
              }
            },
            "accumulatedClaims": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SessionClaim"
              }
            },
            "openThreads": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/SessionThread"
              }
            },
            "warmSummaries": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "turn": {
                    "type": "number"
                  },
                  "queryIntent": {
                    "type": "string"
                  },
                  "summary": {
                    "type": "string"
                  },
                  "coveredRefKeys": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "required": [
                  "turn",
                  "queryIntent",
                  "summary",
                  "coveredRefKeys"
                ]
              }
            }
          },
          "required": [
            "turnCount",
            "activeFactKeys",
            "entityMomentum",
            "accumulatedClaims",
            "openThreads",
            "warmSummaries"
          ]
        }
      },
      "required": [
        "identity"
      ]
    }
  },
  "required": [
    "schema",
    "requestedLayers",
    "surface"
  ]
}

WireRefSpan

{
  "type": "array",
  "items": {
    "type": "number"
  },
  "minItems": 2,
  "maxItems": 2
}

WireSurfaceRef

{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "const": "anomaly"
    },
    "score": {
      "type": "number"
    },
    "href": {
      "type": "string"
    },
    "spans": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/WireRefSpan"
      }
    },
    "reason": {
      "type": "string",
      "enum": [
        "not_in_traversal_outputs",
        "forbidden_by_policy"
      ]
    },
    "label": {
      "type": "string",
      "description": "Human-readable caption when the server resolved a canonical name for this ref (e.g. via `OpenedUniverseCatalog.canonicalName`). Omitted when the server has nothing better than the ref key itself — the client inflater will then humanize the ref (IMPL §7.5)."
    }
  },
  "required": [
    "href",
    "spans"
  ]
}

WireTextLayer

{
  "type": "object",
  "properties": {
    "annotated": {
      "type": "string"
    },
    "clean": {
      "type": "string"
    }
  },
  "required": [
    "annotated",
    "clean"
  ]
}

WireTopologyAnchor

{
  "type": "object",
  "properties": {
    "ref": {
      "type": "string"
    },
    "source": {
      "type": "string",
      "enum": [
        "direct_canonical_name",
        "hot_frontier",
        "seed"
      ]
    },
    "label": {
      "type": "string",
      "description": "Human-readable label for the anchor when the server has one. Omitted means the client will humanize the ref."
    }
  },
  "required": [
    "ref",
    "source"
  ]
}

WireTopologyLayer

{
  "type": "object",
  "properties": {
    "resultCount": {
      "type": "number"
    },
    "meanScore": {
      "type": "number"
    },
    "topScore": {
      "type": "number"
    },
    "bottomScore": {
      "type": "number"
    },
    "scoreStdDev": {
      "type": "number"
    },
    "sparsity": {
      "type": "string",
      "enum": [
        "dense",
        "moderate",
        "sparse",
        "void"
      ]
    },
    "perIndex": {
      "type": "object",
      "properties": {
        "entity": {
          "type": "number"
        },
        "setting": {
          "type": "number"
        },
        "textchunk": {
          "type": "number"
        }
      },
      "required": [
        "entity",
        "setting",
        "textchunk"
      ]
    },
    "seedCount": {
      "type": "number"
    },
    "expandedCount": {
      "type": "number"
    },
    "inferentialCount": {
      "type": "number"
    },
    "anchors": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/WireTopologyAnchor"
      }
    }
  },
  "required": [
    "resultCount",
    "meanScore",
    "topScore",
    "bottomScore",
    "scoreStdDev",
    "sparsity",
    "perIndex",
    "seedCount",
    "expandedCount",
    "inferentialCount",
    "anchors"
  ]
}

WorldBookmark

{
  "type": "object",
  "properties": {
    "bookmarkId": {
      "type": "string"
    },
    "userId": {
      "type": "string"
    },
    "worldId": {
      "type": "string"
    },
    "createdAt": {
      "type": "string"
    }
  },
  "required": [
    "bookmarkId",
    "userId",
    "worldId",
    "createdAt"
  ]
}

WorldCommitReceiptV1

{
  "type": "object",
  "properties": {
    "schemaVersion": {
      "type": "number",
      "const": 1
    },
    "executionId": {
      "type": "string"
    },
    "receiptId": {
      "type": "string"
    },
    "status": {
      "$ref": "#/components/schemas/ReceiptStatus"
    },
    "flowContext": {
      "type": "object",
      "properties": {
        "flowId": {
          "type": "string"
        },
        "nodeId": {
          "type": "string"
        }
      },
      "description": "Intelligence Hub flow context (Phase 4+)."
    },
    "committedRevision": {
      "$ref": "#/components/schemas/Revision",
      "description": "Only present for non-pending receipts. Pending means convergence has not produced a committed revision yet."
    },
    "supersedesReceiptId": {
      "type": "string",
      "description": "When status === 'pending', a follow-up receipt may supersede this one. Receipts are immutable; progression is represented as a second receipt."
    },
    "ops": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "opId": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/ReceiptOpStatus"
          },
          "durationMs": {
            "type": "number"
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "opId",
          "status"
        ]
      }
    },
    "durableIdMap": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "failures": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string"
          },
          "count": {
            "type": "number"
          },
          "retryable": {
            "type": "boolean"
          },
          "details": {}
        },
        "required": [
          "kind",
          "retryable"
        ]
      }
    },
    "rebase": {
      "type": "object",
      "properties": {
        "occurred": {
          "type": "boolean"
        },
        "overlayBaseRevision": {
          "$ref": "#/components/schemas/Revision"
        },
        "rebasedOntoRevision": {
          "$ref": "#/components/schemas/Revision"
        },
        "resolutions": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "path": {
                "type": "string"
              },
              "strategy": {
                "type": "string",
                "enum": [
                  "union",
                  "merge",
                  "lww"
                ]
              },
              "winner": {
                "type": "string",
                "enum": [
                  "overlay",
                  "committed"
                ]
              }
            },
            "required": [
              "path",
              "strategy"
            ]
          }
        }
      },
      "required": [
        "occurred",
        "overlayBaseRevision",
        "rebasedOntoRevision",
        "resolutions"
      ],
      "description": "Rebase audit information (present when optimistic rebase occurred). Spec: docs/INTELLIGENCE_HUB.md §18.5.5"
    },
    "pointers": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "createdAt": {
      "type": "string"
    }
  },
  "required": [
    "schemaVersion",
    "executionId",
    "receiptId",
    "status",
    "ops",
    "createdAt"
  ]
}

WorldConfigManagementSurface

{
  "type": "object",
  "properties": {
    "worldId": {
      "type": "string"
    },
    "configHash": {
      "type": "string"
    },
    "editablePaths": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "policyBundle": {
      "type": "object",
      "additionalProperties": {}
    },
    "publicDirectory": {
      "type": "object",
      "properties": {
        "searchable": {
          "type": "boolean"
        },
        "summary": {
          "type": [
            "string",
            "null"
          ]
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "avatarUrl": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "searchable",
        "summary",
        "tags",
        "avatarUrl"
      ]
    }
  },
  "required": [
    "worldId",
    "configHash",
    "editablePaths",
    "policyBundle",
    "publicDirectory"
  ]
}

WorldConfigPatchOperation

{
  "type": "object",
  "properties": {
    "op": {
      "type": "string",
      "enum": [
        "add",
        "remove",
        "replace",
        "move",
        "copy",
        "test"
      ]
    },
    "path": {
      "type": "string"
    },
    "value": {},
    "from": {
      "type": "string"
    }
  },
  "required": [
    "op",
    "path"
  ]
}

WorldConfigUpdateReceipt

{
  "type": "object",
  "properties": {
    "worldId": {
      "type": "string"
    },
    "worldRef": {
      "type": "string"
    },
    "configRef": {
      "type": "string"
    },
    "priorConfigHash": {
      "type": "string"
    },
    "newConfigHash": {
      "type": "string"
    },
    "changedPaths": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "receiptKind": {
      "type": "string",
      "const": "world.registry.updated"
    },
    "mirrorRefreshed": {
      "type": "boolean"
    },
    "directoryDisposition": {
      "type": "string",
      "enum": [
        "updated",
        "removed",
        "unchanged",
        "sync_failed"
      ],
      "description": "Outcome of the WorldDirectoryEntry sync that follows the config write.   updated     — entry was built and upserted into the public directory (world is now eligible)   removed     — entry was removed from the public directory (world no longer eligible)   unchanged   — store did not provide syncDirectoryEntry; sync was skipped for this call path   sync_failed — sync was attempted but failed (non-gating; repair required)"
    },
    "ham": {
      "type": "object",
      "properties": {
        "status": {
          "$ref": "#/components/schemas/WorldMutationHamStatus"
        },
        "turnId": {
          "type": "string"
        },
        "turnSnapshotRef": {
          "type": "string"
        },
        "receiptRef": {
          "type": "string"
        },
        "failureCode": {
          "$ref": "#/components/schemas/WorldMutationHamFailureCode"
        }
      },
      "required": [
        "status"
      ]
    }
  },
  "required": [
    "worldId",
    "configRef",
    "priorConfigHash",
    "newConfigHash",
    "changedPaths",
    "receiptKind",
    "mirrorRefreshed",
    "directoryDisposition",
    "ham"
  ]
}

WorldDraft

{
  "type": "object",
  "properties": {
    "draftId": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "content": {
      "type": "string"
    },
    "creativeBrief": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "draft",
        "published"
      ],
      "description": "`published` once a submit with this draftId has published it."
    },
    "version": {
      "type": "number",
      "description": "Quote as baseVersion to save, and as draftVersion to submit."
    },
    "wordCount": {
      "type": "number",
      "description": "Whitespace-separated words of the trimmed content; a submit needs 50 to 50,000."
    },
    "createdAt": {
      "type": [
        "string",
        "null"
      ]
    },
    "updatedAt": {
      "type": [
        "string",
        "null"
      ]
    },
    "submissionId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Set once published: the submission that published the draft."
    },
    "worldId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Set once published: the world the draft was published into."
    }
  },
  "required": [
    "draftId",
    "title",
    "content",
    "creativeBrief",
    "status",
    "version",
    "wordCount",
    "createdAt",
    "updatedAt",
    "submissionId",
    "worldId"
  ],
  "description": "A writing-workspace draft as the narrative draft operations return it."
}

WorldDraftDeleted

{
  "type": "object",
  "properties": {
    "draftId": {
      "type": "string"
    },
    "deleted": {
      "type": "boolean",
      "const": true
    }
  },
  "required": [
    "draftId",
    "deleted"
  ]
}

WorldDraftList

{
  "type": "object",
  "properties": {
    "drafts": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/WorldDraftListItem"
      }
    },
    "page": {
      "type": "number"
    },
    "limit": {
      "type": "number"
    },
    "total": {
      "type": "number"
    },
    "hasMore": {
      "type": "boolean"
    }
  },
  "required": [
    "drafts",
    "page",
    "limit",
    "total",
    "hasMore"
  ]
}

WorldDraftListItem

{
  "type": "object",
  "properties": {
    "draftId": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "snippet": {
      "type": [
        "string",
        "null"
      ]
    },
    "createdAt": {
      "type": [
        "string",
        "null"
      ]
    },
    "updatedAt": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "draftId",
    "title",
    "snippet",
    "createdAt",
    "updatedAt"
  ]
}

WorldEntityListItem

{
  "type": "object",
  "properties": {
    "ref": {
      "type": "string"
    },
    "entityId": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "entityType": {
      "type": [
        "string",
        "null"
      ]
    },
    "canonicalVisualUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "textRootCount": {
      "type": "number",
      "description": "Distinct world stories that contain the entity."
    },
    "sustainedTextRootCount": {
      "type": "number",
      "description": "Distinct stories where the entity lands in at least two scenes."
    },
    "sceneCount": {
      "type": "number",
      "description": "Distinct world scenes containing the entity."
    },
    "latestStoryCreatedAt": {
      "type": "string",
      "description": "Latest supporting story creation timestamp, strict recency tiebreaker."
    }
  },
  "required": [
    "ref",
    "entityId",
    "name",
    "entityType",
    "canonicalVisualUrl",
    "textRootCount",
    "sustainedTextRootCount",
    "sceneCount",
    "latestStoryCreatedAt"
  ],
  "description": "World entity roster read for the world profile surface (docs/design/mocks/world-panel-2026-07-19 — \"Ranking contract\").\n\nEntities are the world-scoped MediaXRef rows with mediaType `ent`, backed by UniversalEntity graph nodes and ranked by narrative reach instead of display-adjacent media counts. The featured rail only admits canonical people / groups / places and never persists its ranking inputs."
}

WorldEntityListResult

{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/WorldEntityListItem"
      }
    },
    "total": {
      "type": "number",
      "description": "Total eligible featured entities in the world (profile stats read this)."
    }
  },
  "required": [
    "items",
    "total"
  ]
}

WorldEnvironmentOptions

{
  "type": "object",
  "properties": {
    "mode": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/EnvironmentOption"
      }
    },
    "packRef": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/EnvironmentOption"
      }
    },
    "splatRef": {
      "type": "object",
      "properties": {
        "mine": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/EnvironmentOption"
          }
        },
        "all": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/EnvironmentOption"
          }
        }
      },
      "required": [
        "mine",
        "all"
      ]
    },
    "backgroundProgram": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/EnvironmentOption"
      }
    },
    "activeBundle": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/EnvironmentOption"
      }
    },
    "ambientMode": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/EnvironmentOption"
      }
    },
    "meshOpacity": {
      "type": "object",
      "properties": {
        "min": {
          "type": "number"
        },
        "max": {
          "type": "number"
        },
        "step": {
          "type": "number"
        }
      },
      "required": [
        "min",
        "max",
        "step"
      ]
    }
  },
  "required": [
    "mode",
    "packRef",
    "splatRef",
    "backgroundProgram",
    "activeBundle",
    "ambientMode",
    "meshOpacity"
  ]
}

WorldEnvironmentSelection

{
  "type": "object",
  "properties": {
    "mode": {
      "$ref": "#/components/schemas/EnvironmentAuthoringMode"
    },
    "packRef": {
      "type": [
        "string",
        "null"
      ]
    },
    "splatRef": {
      "type": [
        "string",
        "null"
      ]
    },
    "backgroundProgram": {
      "type": [
        "string",
        "null"
      ]
    },
    "activeBundle": {
      "type": [
        "string",
        "null"
      ]
    },
    "ambientMode": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/AmbientModeValue"
        },
        {
          "type": "null"
        }
      ]
    },
    "creaturesEnabled": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "showNodes": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "showHemisphereMesh": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "meshOpacity": {
      "type": [
        "number",
        "null"
      ]
    }
  },
  "required": [
    "mode",
    "packRef",
    "splatRef",
    "backgroundProgram",
    "activeBundle",
    "ambientMode",
    "creaturesEnabled",
    "showNodes",
    "showHemisphereMesh",
    "meshOpacity"
  ]
}

WorldEnvironmentSurface

{
  "type": "object",
  "properties": {
    "worldId": {
      "type": "string"
    },
    "revision": {
      "type": "number"
    },
    "selection": {
      "$ref": "#/components/schemas/WorldEnvironmentSelection"
    },
    "options": {
      "$ref": "#/components/schemas/WorldEnvironmentOptions"
    },
    "fieldsByMode": {
      "type": "object",
      "properties": {
        "pack": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/EnvironmentSelectionField"
          }
        },
        "splat": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/EnvironmentSelectionField"
          }
        },
        "custom": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/EnvironmentSelectionField"
          }
        }
      },
      "required": [
        "pack",
        "splat",
        "custom"
      ]
    }
  },
  "required": [
    "worldId",
    "revision",
    "selection",
    "options",
    "fieldsByMode"
  ]
}

WorldInviteRow

{
  "type": "object",
  "properties": {
    "inviteId": {
      "type": "string"
    },
    "worldId": {
      "type": "string"
    },
    "invitedByUserId": {
      "type": "string"
    },
    "invitedUserId": {
      "type": "string"
    },
    "invitedUsername": {
      "type": "string"
    },
    "invitedDisplayName": {
      "type": [
        "string",
        "null"
      ]
    },
    "subject": {
      "type": "string"
    },
    "proposedRole": {
      "type": "string",
      "enum": [
        "viewer",
        "editor"
      ]
    },
    "message": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "$ref": "#/components/schemas/WorldInviteStatus"
    },
    "createdAt": {
      "type": "string"
    },
    "updatedAt": {
      "type": "string"
    },
    "expiresAt": {
      "type": [
        "string",
        "null"
      ]
    },
    "respondedAt": {
      "type": [
        "string",
        "null"
      ]
    },
    "revokeReason": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "inviteId",
    "worldId",
    "invitedByUserId",
    "invitedUserId",
    "invitedUsername",
    "proposedRole",
    "message",
    "status",
    "createdAt",
    "updatedAt",
    "expiresAt",
    "respondedAt",
    "revokeReason"
  ]
}

WorldInviteStatus

{
  "type": "string",
  "enum": [
    "pending",
    "accepted",
    "declined",
    "revoked",
    "expired"
  ]
}

WorldLifecycleHamRecord

{
  "type": "object",
  "properties": {
    "status": {
      "$ref": "#/components/schemas/WorldMutationHamStatus"
    },
    "turnId": {
      "type": "string"
    },
    "turnSnapshotRef": {
      "type": "string"
    },
    "receiptRef": {
      "type": "string"
    },
    "failureCode": {
      "$ref": "#/components/schemas/WorldMutationHamFailureCode"
    }
  },
  "required": [
    "status"
  ]
}

WorldLineBlockedFailure

{
  "type": "string",
  "enum": [
    "chat_world_missing",
    "world_line_permission_denied",
    "world_persona_ref_unresolvable",
    "world_line_conflict"
  ]
}

WorldLineRepairDecision

{
  "type": "object",
  "properties": {
    "discardedCandidateChatRoomIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "discardedCandidateChatRoomIds"
  ]
}

WorldManagementRow

{
  "type": "object",
  "properties": {
    "worldId": {
      "type": "string"
    },
    "worldHandle": {
      "type": "string"
    },
    "displayName": {
      "type": "string"
    },
    "worldPersonaTitle": {
      "type": [
        "string",
        "null"
      ]
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "publicSummary": {
      "type": [
        "string",
        "null"
      ]
    },
    "ownerUsername": {
      "type": "string"
    },
    "createdAt": {
      "type": "string"
    },
    "relationship": {
      "type": "string",
      "enum": [
        "owner",
        "member",
        "invited",
        "bookmarked"
      ]
    },
    "canRead": {
      "type": "boolean"
    },
    "canPublish": {
      "type": "boolean"
    },
    "visibility": {
      "type": "string",
      "enum": [
        "public",
        "private"
      ]
    },
    "lifecycleState": {
      "type": "string",
      "enum": [
        "provisioning",
        "active",
        "paused",
        "archived",
        "deleted"
      ]
    },
    "isDefaultWorld": {
      "type": "boolean"
    },
    "isBootstrapWorld": {
      "type": "boolean"
    },
    "hasPendingInvite": {
      "type": "boolean"
    },
    "isBookmarked": {
      "type": "boolean"
    },
    "avatarUrl": {
      "type": [
        "string",
        "null"
      ],
      "description": "World identity image from config `publicDirectory.avatarUrl`. Null when unset. Chrome/roster may read this without a second config fetch."
    }
  },
  "required": [
    "worldId",
    "worldHandle",
    "displayName",
    "description",
    "ownerUsername",
    "createdAt",
    "relationship",
    "canRead",
    "canPublish",
    "visibility",
    "lifecycleState",
    "isDefaultWorld",
    "isBootstrapWorld",
    "hasPendingInvite",
    "isBookmarked",
    "avatarUrl"
  ]
}

WorldMembershipRow

{
  "type": "object",
  "properties": {
    "worldId": {
      "type": "string"
    },
    "userId": {
      "type": "string"
    },
    "username": {
      "type": [
        "string",
        "null"
      ]
    },
    "displayName": {
      "type": [
        "string",
        "null"
      ]
    },
    "role": {
      "type": "string",
      "enum": [
        "editor",
        "viewer"
      ]
    },
    "grantedByUserId": {
      "type": "string"
    },
    "grantedViaInviteId": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "revoked",
        "left"
      ]
    },
    "createdAt": {
      "type": "string"
    },
    "updatedAt": {
      "type": "string"
    },
    "endedAt": {
      "type": [
        "string",
        "null"
      ]
    },
    "endReason": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "revoked",
        "left",
        null
      ]
    }
  },
  "required": [
    "worldId",
    "userId",
    "role",
    "grantedByUserId",
    "grantedViaInviteId",
    "status",
    "createdAt",
    "updatedAt",
    "endedAt",
    "endReason"
  ]
}

WorldMutationHamFailureCode

{
  "type": "string",
  "enum": [
    "ham_prepare_failed",
    "ham_commit_failed",
    "ham_repair_enqueue_failed"
  ]
}

WorldMutationHamStatus

{
  "type": "string",
  "enum": [
    "recording_pending",
    "recorded",
    "recording_failed"
  ]
}

WorldPolicy

{
  "type": "object",
  "properties": {
    "worldId": {
      "type": "string",
      "minLength": 1
    },
    "ownerUserId": {
      "type": "string",
      "minLength": 1
    },
    "externalAgentAccessEnabled": {
      "type": "boolean"
    },
    "externalAgentReadEnabled": {
      "type": "boolean"
    },
    "publicGapFeedEnabled": {
      "type": "boolean"
    },
    "publicBountyFeedEnabled": {
      "type": "boolean"
    },
    "agentGapReadEnabled": {
      "type": "boolean"
    },
    "permissions": {
      "type": "object",
      "properties": {
        "editorsCanPostBounties": {
          "type": "boolean"
        },
        "editorsCanPromoteGapsToBounties": {
          "type": "boolean"
        },
        "editorsCanManageApiKeys": {
          "type": "boolean"
        }
      },
      "required": [
        "editorsCanPostBounties",
        "editorsCanPromoteGapsToBounties",
        "editorsCanManageApiKeys"
      ],
      "additionalProperties": false
    },
    "updatedAt": {
      "type": "integer",
      "minimum": 0
    }
  },
  "required": [
    "worldId",
    "ownerUserId",
    "externalAgentAccessEnabled",
    "publicGapFeedEnabled",
    "publicBountyFeedEnabled",
    "permissions",
    "updatedAt"
  ],
  "additionalProperties": false
}

WorldPolicyBooleanKey

{
  "description": "Top-level boolean gates on `WorldPolicy` used by §6.6 step 2."
}

WorldProgramEventEnvelope

{
  "type": "object",
  "properties": {
    "seq": {
      "type": "number"
    },
    "timestamp": {
      "type": "string"
    },
    "executionId": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "enum": [
        "ack",
        "obs",
        "content",
        "pee_event",
        "classify",
        "agent_event",
        "skill_select",
        "llm",
        "narrative_trace",
        "traversal_trace",
        "tool_trace",
        "tool",
        "op",
        "delta",
        "receipt",
        "error",
        "done",
        "world_proof",
        "flow_start",
        "flow_complete",
        "flow_failed",
        "node_start",
        "node_complete",
        "node_failed",
        "vsp_asset_load_failure",
        "chat_feed_event"
      ]
    },
    "data": {}
  },
  "required": [
    "seq",
    "timestamp",
    "executionId",
    "type",
    "data"
  ],
  "description": "REQUIRED: wrap streamed events so clients can reconnect and replay from seq. Spec: docs/AGENT_VSP_CONVERGENCE_PROPOSAL.md §10.3.4, §22.1."
}

WorldPromptPolicy

{
  "type": "object",
  "properties": {
    "schemaVersion": {
      "$ref": "#/components/schemas/WorldPromptPolicySchemaVersion"
    },
    "promptText": {
      "type": "string"
    },
    "updatedAt": {
      "type": "string"
    }
  },
  "required": [
    "schemaVersion",
    "promptText",
    "updatedAt"
  ]
}

WorldPromptPolicyPayload

{
  "type": "object",
  "properties": {
    "worldId": {
      "type": "string"
    },
    "worldHandle": {
      "type": "string"
    },
    "configRef": {
      "type": "string"
    },
    "configHash": {
      "type": "string"
    },
    "source": {
      "$ref": "#/components/schemas/WorldPromptPolicySource"
    },
    "promptPolicy": {
      "$ref": "#/components/schemas/WorldPromptPolicy"
    }
  },
  "required": [
    "worldId",
    "worldHandle",
    "configRef",
    "configHash",
    "source",
    "promptPolicy"
  ]
}

WorldPromptPolicySchemaVersion

{
  "type": "string",
  "const": "world_prompt.v1"
}

WorldPromptPolicySource

{
  "type": "string",
  "enum": [
    "world_config",
    "platform_default"
  ]
}

WorldProofCarrier

{
  "type": "string",
  "enum": [
    "post_pee_signal",
    "surface_snapshot_bundle"
  ]
}

WorldProofEventPayload

{
  "type": "object",
  "properties": {
    "schemaVersion": {
      "type": "number",
      "const": 1
    },
    "authoritative": {
      "type": "boolean",
      "const": true
    },
    "carrier": {
      "$ref": "#/components/schemas/WorldProofCarrier"
    },
    "sourceEvent": {
      "$ref": "#/components/schemas/WorldProofSourceEvent"
    },
    "packetId": {
      "type": [
        "string",
        "null"
      ]
    },
    "retrievalScopeHash": {
      "type": [
        "string",
        "null"
      ]
    },
    "requestedWorldRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "effectiveWorldRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "excludedWorlds": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "worldRef": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "worldRef",
          "reason"
        ]
      }
    },
    "acceptedRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "currentFocusRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "packetIntentTags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "packetClaimCount": {
      "type": [
        "number",
        "null"
      ]
    },
    "topicShifted": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "isFollowUp": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "isHotStart": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "idleGapMs": {
      "type": [
        "number",
        "null"
      ]
    },
    "uncertainty": {
      "type": [
        "number",
        "null"
      ]
    },
    "supportScore": {
      "type": [
        "number",
        "null"
      ]
    },
    "candidateCountsByWorld": {
      "anyOf": [
        {
          "type": "object",
          "additionalProperties": {
            "type": "number"
          }
        },
        {
          "type": "null"
        }
      ]
    },
    "rejectedCandidateCountsByWorld": {
      "anyOf": [
        {
          "type": "object",
          "additionalProperties": {
            "type": "number"
          }
        },
        {
          "type": "null"
        }
      ]
    },
    "citedWorlds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "bootstrapFullScopeMatch": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "prunedContinuityRefs": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "scopeOrigin": {
      "type": [
        "string",
        "null"
      ]
    },
    "surfaceIdentity": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "turnId": {
              "type": [
                "string",
                "null"
              ]
            },
            "executionId": {
              "type": [
                "string",
                "null"
              ]
            },
            "worldId": {
              "type": [
                "string",
                "null"
              ]
            },
            "sessionId": {
              "type": [
                "string",
                "null"
              ]
            },
            "packetId": {
              "type": [
                "string",
                "null"
              ]
            },
            "receiptRef": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "turnId",
            "executionId",
            "worldId",
            "sessionId",
            "packetId",
            "receiptRef"
          ]
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "schemaVersion",
    "authoritative",
    "carrier",
    "sourceEvent",
    "packetId",
    "retrievalScopeHash",
    "requestedWorldRefs",
    "effectiveWorldRefs",
    "excludedWorlds",
    "acceptedRefs",
    "currentFocusRefs",
    "packetIntentTags",
    "packetClaimCount",
    "topicShifted",
    "isFollowUp",
    "isHotStart",
    "idleGapMs",
    "uncertainty",
    "supportScore",
    "candidateCountsByWorld",
    "rejectedCandidateCountsByWorld",
    "citedWorlds",
    "bootstrapFullScopeMatch",
    "prunedContinuityRefs",
    "scopeOrigin",
    "surfaceIdentity"
  ]
}

WorldProofSourceEvent

{
  "type": "string",
  "enum": [
    "flow_complete",
    "node_complete"
  ]
}

On this page

AcceptedRefAccountStatementEntryActorKindAddWorldBookmarkResponseAesErrorEnvelopeAgentWorkflowAgentWorkflowBodyFieldAgentWorkflowConditionAgentWorkflowCredentialAgentWorkflowStepAmbientModeValueAnchorEntryAnomalyRefApiErrorEnvelopeApiKeyRecordPublicAsyncJobEnvelopeAsyncJobResultAsyncJobStatusAtmosphereSignalsAttachedMediaRefUrlPairBaseDirectiveIdentityBountyFeedEntryBountyFulfillmentWorkOrderRefBountyIndexEntryBountyManifestBountyMediaSourceLookupOutcomeSchemaBountyNoteManifestBountyPayloadBountyStatusBountySubmissionManifestBudgetDimensionCallerCredentialViewCallerDirectoryCallerDirectoryCallTimeCheckCallerDirectoryOperationCallerDirectoryRoomPointerCallerDirectoryWorkflowCallerDirectoryWorkflowStepCandidateRecordCandidateResultSetCanonicalSettingCapabilityBindingPathCapabilityBindingPathSegmentCapabilityCanonicalOutputCapabilityCanonicalOutputEnvelopeCapabilityCanonicalRefKindCapabilityDenialReasonCapabilitySetCatalogEntryCEREMediaAuthorityChatActorSelectorChatActorSourceRecordChatActorTurnReportChatActorTurnReportDraftChatAttendantClarificationArtifactChatAttendantDecisionChatAttendantHandleViewChatAttendantServiceStateChatAutonomyBudgetChatContinuationGrantChatDialogueHandleChatDialogueSceneChatDirectionControlOutcomeChatDirectionDecisionTraceChatDirectionDecisionTraceOutcomeChatDirectionDecisionTracePhaseChatDirectionDeclineCodeChatDirectionDeclineEvidenceChatDirectionDraftVerdictChatDirectionDraftVerdictCodeChatDirectionEligibilityFactChatEphemeralSignalChatFeedEntryChatFeedEventChatFeedEventKindChatFeedLiveEntryChatFeedLiveEventKindChatFeedStreamStatusChatFirstContactRequestChatFirstContactRequestStatusChatHeadlessCueEnvelopeChatHuelvaOverlayChatImportedVoiceBindingChatInteractionStylePlanChatInteractionStyleRefChatInteractionStyleRoleBindingChatInviteRowChatInviteStatusChatLauncherPayloadChatLauncherRoomChatLinkedWorkMarkerChatMembershipDecisionRecordChatMessageMutationChatParticipantRoleChatPrivateLaneAuthErrorDescriptorChatPrivateLaneConfirmDescriptorChatPrivateLaneCredentialDescriptorChatPrivateLaneDescriptorChatPrivateLaneResolvedTargetWorldChatPrivateLaneResponseEnvelopeDescriptorChatReactiveCueStateChatReactiveManualHintChatReactiveReaderStateChatRoomCallableStateChatRoomHandleRefChatRoomHeadSnapshotChatRoomLinkSurfaceChatRoomLinkUsageChatRoomManagementAdmissionRowChatRoomManagementDirectionChainChatRoomManagementDirectionSectionChatRoomManagementGrantRowChatRoomManagementImportedVoiceRowChatRoomManagementInviteRowChatRoomManagementParticipantRowChatRoomManagementSurfaceChatRoomPostureChatRoomSpeechActChatSearchPageChatSearchResultChatSessionChainEntryChatSessionMetaChatStoredMessageRecordChatSubscriberIdentityRefChatSubscriberRoomAttentionViewChatWorldAdmissionRecordClassifierOutputConfirmationChallengeContextLayerContradictionSeverityDerivationModeDirectiveIdentityDirectiveReceiptDirectiveReceiptStatusEligibleBountyMediaSourceSchemaEmissionSurfaceEmissionSurfaceProjectionSchemaEmissionSurfaceSchemaEnvironmentAuthoringModeEnvironmentOptionEnvironmentSelectionFieldEpistemicClaimEpistemicClaimPreviewEpistemicContradictionEpistemicLayerExecutionBudgetUsedExecutionErrorShapeExecutionIdExecutionModeExecutionOutputExecutionProvenanceExecutionResultExecutionResultErrorExecutionResultStatusExtractedLexicalSignaturePhraseTypeExtractionQualityAssessmentFlowExecutionResultFlowIdFulfillmentItemRowFulfillmentItemSurfaceStatusFulfillmentStatusPayloadFulfillmentStrategyFulfillmentSurfaceStatusGapFeedEntryHamSessionHeadlessChatHistoryPageHuelvaActionProposalHuelvaAllowanceChangeRequestHuelvaAllowanceModeHuelvaApprovalExecutionProofStepHuelvaApprovalFloorHuelvaApprovalPlaneIdHuelvaApprovalResolutionStateHuelvaApprovalStatusResultHuelvaArtifactRevisionRefHuelvaArtifactSupersessionHuelvaAttemptCancellationHuelvaAttemptOutcomeHuelvaAttemptPhaseHuelvaAttemptReconciliationHuelvaAttemptSettlementEmissionHuelvaBindingSourceKindHuelvaCapabilityAdmissionEventHuelvaCapabilityReadOwnerCoordinateHuelvaClarificationCandidateHuelvaClarificationRequestHuelvaClientProfileHuelvaClientSettlementPlanHuelvaConfirmAllowanceChangeActionHuelvaContextPacketKindHuelvaDirectoryFailureCodeHuelvaDrivenRepairDispositionHuelvaExecutionAttemptAxesHuelvaExecutionStrategySummaryHuelvaFanoutMemberHuelvaFollowthroughActionHuelvaLibraryDirectoryExposureHuelvaLibraryEdgeFamilyHuelvaLibraryNavigationHuelvaLibraryRelationshipEvidenceHuelvaLibraryRetrievalDriftFindingHuelvaLibraryRetrievalFailureCodeHuelvaLibraryRetrievalTraceHuelvaLibraryRootSourceHuelvaLibrarySelectionFindingHuelvaLibrarySliceRefHuelvaLookupPostureHuelvaModelOutreachPurposeHuelvaOperatorHintReasonHuelvaOperatorHintsHuelvaParentInsufficiencyCodeHuelvaParentInsufficiencyGroupHuelvaPartialExecutionReportHuelvaPerformanceSpanHuelvaPerformanceTraceHuelvaPlanHuelvaPlanApprovalHuelvaPlanStateHuelvaPlanStepApprovalHuelvaPlanStepFanoutHuelvaPlanStepOutputHuelvaProposalStateHuelvaPrototypeCapabilityAssemblyTraceHuelvaPrototypeCapabilityRowTraceHuelvaPrototypeDiagnosticCaptureHuelvaPrototypeEvidenceAuthorityClassHuelvaPrototypeEvidenceKindHuelvaPrototypeLibrarySearchTraceHuelvaPrototypeModelStepTraceHuelvaPrototypeOperatorTraceHuelvaPrototypeOwnerReadCoverageHuelvaPrototypeOwnerReadProjectionPolicyHuelvaPrototypeOwnerReadReplayDescriptorHuelvaPrototypeOwnerReadResolutionStatusHuelvaPrototypeOwnerReadSemanticsHuelvaPrototypeOwnerReadSetStateHuelvaPrototypeOwnerReadSupportModeHuelvaPrototypePlanAssemblyTraceHuelvaPrototypeProgressNoticeHuelvaPrototypePublicationTraceHuelvaPrototypeResearchAttemptTraceHuelvaPrototypeResearchOutcomeHuelvaPrototypeResearchToolNameHuelvaPrototypeRevealedEvidenceTraceHuelvaPrototypeScratchpadToolNameHuelvaPrototypeStageAttemptBindingTraceHuelvaPrototypeStageAttemptTraceHuelvaPrototypeToolNameHuelvaPrototypeTraceHuelvaPublicExecutionBlockerHuelvaPublicOperationExposureHuelvaPublicOperationStatusHuelvaQuestionClassHuelvaReachedCapabilityHuelvaReferentAddressHuelvaReferentScopeHuelvaResolutionCitationHuelvaResolutionSettlementHuelvaResolutionStagedArtifactHuelvaResolvedRefOperandKindHuelvaRetryOfHuelvaRiskTierHuelvaShardOutcomeHuelvaShellOwnerMapEntryHuelvaShellResultHuelvaShellStageHuelvaShellStageAccountingHuelvaStepOutputKindHuelvaSurfaceEffectHuelvaSurfaceKindHuelvaTargetSelectionProofHuelvaTargetSnapshotHuelvaTextWorkbenchDraftRequestHuelvaTransportCarriedRefHuelvaTransportClientProfileHuelvaTransportEnvelopeHuelvaTransportOwnerReadReplayHuelvaTransportRequestIdentityHuelvaTransportResultIdentityHuelvaTransportShellTraceSummaryHuelvaWorkstreamIdHuelvaWorldAuthorityRowHuelvaWorldRoleBindingsIdentityLayerInteractionInstanceKslpApiErrorV1KslpErrorCodeKslpPlaylistListItemV1KslpPlaylistListResponseV1KslpRadioPlaylistRecordV1LedgerAccountTypeLedgerReceiptLedgerStatusMediaBundleMediaBundleItemMediaImportResultMediaItemFeedbackMediaLayerMediaOutcomeMediaPlacementMediaProductionDeliverableMediaProductionPayloadMediaPurposeCategoryMediaRefUrlPairMediaRoleMediaXRefEntityLinkMediaXRefMediaSummaryMediaXRefNarrativeContextMediaXRefProfileMediaXRefSceneVisualsMediaXRefSettingLinkMentionMomentumEntryMusicRefMutationClassNarrativeGuideChapterNarrativeGuideEntityNarrativeGuideSceneOAuthGrantPublicOpenWorldLineRoomResultOperatorCatalogAnswerCardRowOperatorCatalogClusterRowOperatorCatalogEntryRowOperatorCatalogLookupMatchOperatorCatalogRelationshipRowOperatorCatalogSourceRowOperatorRuntimeFactRowOperatorRuntimeSlicePacketOperatorSemanticNeighborhoodAdmissionOperatorSemanticNeighborhoodEdgeOperatorSlicePacketClassPayloadGuidedDirectiveIdentityPEEAtmosphereContextEventPEEBudgetWarningEventPEECommitDeferredEventPEEContextAnchorPreviewEventPEEContradictionDetectedEventPEEDraftCompleteEventPEEEngineErrorEventPEEEventPEEEventEnvelopePEEMediaPlacementItemPEEMediaPlacementMapEventPEEProgressiveSurfaceAuthorityPEEProgressiveSurfacePatchPEERefAcceptedEventPEERefAnomalyEventPEERefInlineMetadataEventPEERefMediaBundleEventPEERefMediaBundleItemPEEStoryMaterializationReadyEventPEETextDeltaEventPEEThoughtPacketCommittedEventPEEThoughtPacketPreviewEventPEETurnAbortedEventPEETurnCommittedEventPendingSubmissionReadResponseProtocolAttributionEnvelopePublicWorkManifestPublicWorkManifestItemPublicWorldSearchResultPublishTargetOptionQuotaProfileRankedUserLookupCandidateReceiptOpStatusReceiptProvenanceReceiptStatusReceiptTypeRefMediaTypeRefsLayerRevisionRiskTierRoomActorSourceCompletionRoomDirectoryOperationSceneEnvironmentSeedDensityEstimateSeedFeedEntrySeedSlotViewRowSemanticSceneProfileSemanticSceneSignatureSessionClaimSessionCloseReasonSessionLayerSessionParticipantSessionThreadSettlementRefSkillRouterOutputV1SlotConstraintSlotFinalizePhaseSlotResultSlotStatusSourceConceptPhraseStarActivityCounterpartyRoleStarActivityItemStarAmountSubmissionBlockingReasonSubmissionBlockingReasonCodeSubmissionExtractionRelationshipSubmissionExtractionReviewStateSubmissionFinalizationLedgerSubmissionProductionLaneSubmissionStatusSubmissionWaitingOnSubmissionWorkflowActionSubmissionWorkflowViewTextLayerTextStoryDeliverableTextStoryPayloadTextWorkbenchOpenPayloadTextWorkbenchOpenSourceTypeTextWorkbenchSourceTypeTopologicalImpactTopologicalImpactSummaryTopologyLayerTransactionTypeTurnFailureTurnFailureCodeUniversePersonalityCardDirectiveIdentityUpdateWorldPromptPolicyResponseUserInboxActionUserInboxArchiveResponseUserInboxMessageUserInboxMessagesPageUserInboxOpenResponseUserInboxSourceKindUserInboxSourceStatusUserInboxSummaryResponseUserLookupCandidateUserLookupListMatchKindUserLookupMatchKindUserLookupResponsePayloadUserLookupSelectionVectorSpaceSeedStatusVisibilityTierWarmSummaryWireContextLayerWireEmissionSurfaceWireEmissionSurfaceProjectionWireRefSpanWireSurfaceRefWireTextLayerWireTopologyAnchorWireTopologyLayerWorldBookmarkWorldCommitReceiptV1WorldConfigManagementSurfaceWorldConfigPatchOperationWorldConfigUpdateReceiptWorldDraftWorldDraftDeletedWorldDraftListWorldDraftListItemWorldEntityListItemWorldEntityListResultWorldEnvironmentOptionsWorldEnvironmentSelectionWorldEnvironmentSurfaceWorldInviteRowWorldInviteStatusWorldLifecycleHamRecordWorldLineBlockedFailureWorldLineRepairDecisionWorldManagementRowWorldMembershipRowWorldMutationHamFailureCodeWorldMutationHamStatusWorldPolicyWorldPolicyBooleanKeyWorldProgramEventEnvelopeWorldPromptPolicyWorldPromptPolicyPayloadWorldPromptPolicySchemaVersionWorldPromptPolicySourceWorldProofCarrierWorldProofEventPayloadWorldProofSourceEvent