Claim-bound online verification observations with URL provenance, exact answer-basis references for citation-free governing-rule answers, and an explicit operator identity handoff before source transfer. Bounds resumed work by learning unit and refreshes pack manifest/contracts.
413 lines
9.0 KiB
JSON
413 lines
9.0 KiB
JSON
{
|
|
"$defs": {
|
|
"BudgetProfile": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"encoding": {
|
|
"maxLength": 100,
|
|
"minLength": 1,
|
|
"title": "Encoding",
|
|
"type": "string"
|
|
},
|
|
"schema_version": {
|
|
"const": 1,
|
|
"default": 1,
|
|
"title": "Schema Version",
|
|
"type": "integer"
|
|
},
|
|
"tokenizer": {
|
|
"maxLength": 100,
|
|
"minLength": 1,
|
|
"title": "Tokenizer",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"tokenizer",
|
|
"encoding"
|
|
],
|
|
"title": "BudgetProfile",
|
|
"type": "object"
|
|
},
|
|
"EvidenceReference": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"assertion_digest": {
|
|
"pattern": "^[a-f0-9]{64}$",
|
|
"title": "Assertion Digest",
|
|
"type": "string"
|
|
},
|
|
"assertion_path": {
|
|
"maxLength": 256,
|
|
"minLength": 1,
|
|
"title": "Assertion Path",
|
|
"type": "string"
|
|
},
|
|
"extraction_id": {
|
|
"pattern": "^[a-f0-9]{64}$",
|
|
"title": "Extraction Id",
|
|
"type": "string"
|
|
},
|
|
"locator": {
|
|
"$ref": "#/$defs/Locator"
|
|
},
|
|
"normalization_profile": {
|
|
"const": "unicode-nfc-lf-v1",
|
|
"title": "Normalization Profile",
|
|
"type": "string"
|
|
},
|
|
"quote": {
|
|
"maxLength": 8000,
|
|
"minLength": 1,
|
|
"title": "Quote",
|
|
"type": "string"
|
|
},
|
|
"schema_version": {
|
|
"const": 1,
|
|
"default": 1,
|
|
"title": "Schema Version",
|
|
"type": "integer"
|
|
},
|
|
"source_revision_id": {
|
|
"maxLength": 128,
|
|
"minLength": 1,
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
"title": "Source Revision Id",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"source_revision_id",
|
|
"extraction_id",
|
|
"assertion_path",
|
|
"assertion_digest",
|
|
"quote",
|
|
"locator",
|
|
"normalization_profile"
|
|
],
|
|
"title": "EvidenceReference",
|
|
"type": "object"
|
|
},
|
|
"Finding": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"code": {
|
|
"maxLength": 128,
|
|
"minLength": 1,
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
"title": "Code",
|
|
"type": "string"
|
|
},
|
|
"message": {
|
|
"maxLength": 1000,
|
|
"minLength": 1,
|
|
"title": "Message",
|
|
"type": "string"
|
|
},
|
|
"path": {
|
|
"anyOf": [
|
|
{
|
|
"maxLength": 256,
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"title": "Path"
|
|
},
|
|
"schema_version": {
|
|
"const": 1,
|
|
"default": 1,
|
|
"title": "Schema Version",
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"code",
|
|
"message"
|
|
],
|
|
"title": "Finding",
|
|
"type": "object"
|
|
},
|
|
"Locator": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"block_id": {
|
|
"maxLength": 128,
|
|
"minLength": 1,
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
"title": "Block Id",
|
|
"type": "string"
|
|
},
|
|
"end": {
|
|
"exclusiveMinimum": 0,
|
|
"title": "End",
|
|
"type": "integer"
|
|
},
|
|
"kind": {
|
|
"enum": [
|
|
"text_span",
|
|
"pdf_page_span",
|
|
"transcript_timestamp_span"
|
|
],
|
|
"title": "Kind",
|
|
"type": "string"
|
|
},
|
|
"page": {
|
|
"anyOf": [
|
|
{
|
|
"minimum": 1,
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"title": "Page"
|
|
},
|
|
"schema_version": {
|
|
"const": 1,
|
|
"default": 1,
|
|
"title": "Schema Version",
|
|
"type": "integer"
|
|
},
|
|
"start": {
|
|
"minimum": 0,
|
|
"title": "Start",
|
|
"type": "integer"
|
|
},
|
|
"time_end_ms": {
|
|
"anyOf": [
|
|
{
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"title": "Time End Ms"
|
|
},
|
|
"time_start_ms": {
|
|
"anyOf": [
|
|
{
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"title": "Time Start Ms"
|
|
}
|
|
},
|
|
"required": [
|
|
"kind",
|
|
"block_id",
|
|
"start",
|
|
"end"
|
|
],
|
|
"title": "Locator",
|
|
"type": "object"
|
|
},
|
|
"Scope": {
|
|
"additionalProperties": false,
|
|
"description": "Project context plus optional project includes; all-project access is deliberate.",
|
|
"properties": {
|
|
"all_projects": {
|
|
"default": false,
|
|
"title": "All Projects",
|
|
"type": "boolean"
|
|
},
|
|
"include_projects": {
|
|
"anyOf": [
|
|
{
|
|
"items": {
|
|
"maxLength": 128,
|
|
"minLength": 1,
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
"type": "string"
|
|
},
|
|
"maxItems": 50,
|
|
"type": "array"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"title": "Include Projects"
|
|
},
|
|
"include_shared": {
|
|
"default": true,
|
|
"title": "Include Shared",
|
|
"type": "boolean"
|
|
},
|
|
"projects": {
|
|
"items": {
|
|
"maxLength": 128,
|
|
"minLength": 1,
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
"type": "string"
|
|
},
|
|
"maxItems": 50,
|
|
"minItems": 1,
|
|
"title": "Projects",
|
|
"type": "array"
|
|
},
|
|
"schema_version": {
|
|
"const": 1,
|
|
"default": 1,
|
|
"title": "Schema Version",
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"projects"
|
|
],
|
|
"title": "Scope",
|
|
"type": "object"
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"api_version": {
|
|
"const": "v1",
|
|
"default": "v1",
|
|
"title": "Api Version",
|
|
"type": "string"
|
|
},
|
|
"budget_profile": {
|
|
"$ref": "#/$defs/BudgetProfile"
|
|
},
|
|
"canonical_revision": {
|
|
"anyOf": [
|
|
{
|
|
"pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Canonical Revision"
|
|
},
|
|
"citations": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/EvidenceReference"
|
|
},
|
|
"title": "Citations",
|
|
"type": "array"
|
|
},
|
|
"data": {
|
|
"items": {
|
|
"additionalProperties": true,
|
|
"type": "object"
|
|
},
|
|
"title": "Data",
|
|
"type": "array"
|
|
},
|
|
"filtered_count": {
|
|
"anyOf": [
|
|
{
|
|
"minimum": 0,
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"title": "Filtered Count"
|
|
},
|
|
"index_revision": {
|
|
"anyOf": [
|
|
{
|
|
"pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Index Revision"
|
|
},
|
|
"next_cursor": {
|
|
"anyOf": [
|
|
{
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"default": null,
|
|
"title": "Next Cursor"
|
|
},
|
|
"omissions": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/Finding"
|
|
},
|
|
"title": "Omissions",
|
|
"type": "array"
|
|
},
|
|
"request_id": {
|
|
"maxLength": 128,
|
|
"minLength": 1,
|
|
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
|
|
"title": "Request Id",
|
|
"type": "string"
|
|
},
|
|
"resolved_scope": {
|
|
"$ref": "#/$defs/Scope"
|
|
},
|
|
"retrieval_mode": {
|
|
"enum": [
|
|
"keyword",
|
|
"hybrid",
|
|
"canonical"
|
|
],
|
|
"title": "Retrieval Mode",
|
|
"type": "string"
|
|
},
|
|
"schema_version": {
|
|
"const": 1,
|
|
"default": 1,
|
|
"title": "Schema Version",
|
|
"type": "integer"
|
|
},
|
|
"tokens_used": {
|
|
"minimum": 0,
|
|
"title": "Tokens Used",
|
|
"type": "integer"
|
|
},
|
|
"warnings": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/$defs/Finding"
|
|
},
|
|
"title": "Warnings",
|
|
"type": "array"
|
|
}
|
|
},
|
|
"required": [
|
|
"request_id",
|
|
"resolved_scope",
|
|
"data",
|
|
"canonical_revision",
|
|
"index_revision",
|
|
"retrieval_mode",
|
|
"budget_profile",
|
|
"tokens_used"
|
|
],
|
|
"title": "ReadEnvelope",
|
|
"type": "object"
|
|
}
|