feat: add GEWU installer and service contracts

This commit is contained in:
vasily committed 2026-10-14 19:21:17 +08:00
1 parent 254edac2c5
commit 6c9653866c
36 files changed
+8953 -70

No files matched your search

@@ -0,0 +1,249 @@
{
"$defs": {
"ChangedFile": {
"additionalProperties": false,
"properties": {
"content_sha256": {
"pattern": "^[a-f0-9]{64}$",
"title": "Content Sha256",
"type": "string"
},
"path": {
"maxLength": 500,
"minLength": 1,
"title": "Path",
"type": "string"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
}
},
"required": [
"path",
"content_sha256"
],
"title": "ChangedFile",
"type": "object"
},
"OwnerDecisionReference": {
"additionalProperties": false,
"properties": {
"challenge_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Challenge Id",
"type": "string"
},
"decided_at": {
"format": "date-time",
"title": "Decided At",
"type": "string"
},
"decision": {
"const": "authorize",
"default": "authorize",
"title": "Decision",
"type": "string"
},
"decision_digest": {
"pattern": "^[a-f0-9]{64}$",
"title": "Decision Digest",
"type": "string"
},
"domains": {
"items": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"type": "string"
},
"maxItems": 100,
"minItems": 1,
"title": "Domains",
"type": "array"
},
"grant_version": {
"minimum": 1,
"title": "Grant Version",
"type": "integer"
},
"owner_principal_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Owner Principal Id",
"type": "string"
},
"owner_session_id": {
"pattern": "^[a-f0-9]{64}$",
"title": "Owner Session Id",
"type": "string"
},
"rationale": {
"maxLength": 2000,
"minLength": 1,
"title": "Rationale",
"type": "string"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
}
},
"required": [
"challenge_id",
"owner_principal_id",
"owner_session_id",
"decision_digest",
"domains",
"grant_version",
"rationale",
"decided_at"
],
"title": "OwnerDecisionReference",
"type": "object"
},
"PolicyBinding": {
"additionalProperties": false,
"properties": {
"policy_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Policy Id",
"type": "string"
},
"policy_version": {
"minimum": 1,
"title": "Policy Version",
"type": "integer"
},
"project_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Project Id",
"type": "string"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
}
},
"required": [
"project_id",
"policy_id",
"policy_version"
],
"title": "PolicyBinding",
"type": "object"
}
},
"additionalProperties": false,
"properties": {
"accepted_node_ids": {
"default": [],
"items": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"type": "string"
},
"title": "Accepted Node Ids",
"type": "array"
},
"actor_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Actor Id",
"type": "string"
},
"before_revision": {
"pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$",
"title": "Before Revision",
"type": "string"
},
"changed_files": {
"items": {
"$ref": "#/$defs/ChangedFile"
},
"maxItems": 200,
"minItems": 1,
"title": "Changed Files",
"type": "array"
},
"credential_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Credential Id",
"type": "string"
},
"decided_at": {
"format": "date-time",
"title": "Decided At",
"type": "string"
},
"owner_decisions": {
"default": [],
"items": {
"$ref": "#/$defs/OwnerDecisionReference"
},
"maxItems": 100,
"title": "Owner Decisions",
"type": "array"
},
"payload_digest": {
"pattern": "^[a-f0-9]{64}$",
"title": "Payload Digest",
"type": "string"
},
"policy_bindings": {
"items": {
"$ref": "#/$defs/PolicyBinding"
},
"title": "Policy Bindings",
"type": "array"
},
"proposal_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Proposal Id",
"type": "string"
},
"proposal_revision": {
"minimum": 1,
"title": "Proposal Revision",
"type": "integer"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
}
},
"required": [
"proposal_id",
"proposal_revision",
"payload_digest",
"before_revision",
"changed_files",
"actor_id",
"credential_id",
"policy_bindings",
"decided_at"
],
"title": "AcceptanceManifest",
"type": "object"
}
@@ -0,0 +1,109 @@
{
"additionalProperties": false,
"properties": {
"automatic_edge_types": {
"default": [],
"items": {
"enum": [
"solves",
"addresses",
"causes",
"supports",
"contradicts",
"instance_of",
"part_of",
"precedes",
"supersedes",
"compared_with",
"derived_from",
"applies_to"
],
"type": "string"
},
"title": "Automatic Edge Types",
"type": "array"
},
"automatic_node_types": {
"default": [],
"items": {
"enum": [
"finding",
"problem",
"technique",
"case",
"entity",
"event",
"concept",
"datapoint",
"synthesis"
],
"type": "string"
},
"title": "Automatic Node Types",
"type": "array"
},
"automatic_source_registration": {
"default": false,
"title": "Automatic Source Registration",
"type": "boolean"
},
"policy_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Policy Id",
"type": "string"
},
"policy_version": {
"minimum": 1,
"title": "Policy Version",
"type": "integer"
},
"project_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Project Id",
"type": "string"
},
"require_owner_decision_for": {
"default": [
"delete",
"merge",
"promote",
"intent",
"policy"
],
"items": {
"enum": [
"delete",
"merge",
"promote",
"intent",
"policy"
],
"type": "string"
},
"title": "Require Owner Decision For",
"type": "array"
},
"require_supported_assessment": {
"default": true,
"title": "Require Supported Assessment",
"type": "boolean"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
}
},
"required": [
"policy_id",
"policy_version",
"project_id"
],
"title": "AutoAcceptPolicy",
"type": "object"
}
+111
View File
@@ -0,0 +1,111 @@
{
"$defs": {
"ErrorCode": {
"enum": [
"SCOPE_REQUIRED",
"OUT_OF_SCOPE",
"UNAUTHORIZED",
"OWNER_DECISION_REQUIRED",
"POLICY_MISSING",
"EVIDENCE_MISMATCH",
"SUPPORT_UNAVAILABLE",
"BASE_CONFLICT",
"IDEMPOTENCY_CONFLICT",
"BUDGET_TOO_SMALL",
"UPLOAD_EXPIRED",
"BUSY",
"RECOVERY_REQUIRED"
],
"title": "ErrorCode",
"type": "string"
},
"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"
}
},
"additionalProperties": false,
"properties": {
"code": {
"$ref": "#/$defs/ErrorCode"
},
"findings": {
"default": [],
"items": {
"$ref": "#/$defs/Finding"
},
"title": "Findings",
"type": "array"
},
"message": {
"maxLength": 1000,
"minLength": 1,
"title": "Message",
"type": "string"
},
"request_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Request Id",
"type": "string"
},
"retryable": {
"title": "Retryable",
"type": "boolean"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
}
},
"required": [
"code",
"message",
"retryable",
"request_id"
],
"title": "DomainError",
"type": "object"
}
@@ -0,0 +1,183 @@
{
"$defs": {
"ExtractionBlock": {
"additionalProperties": false,
"properties": {
"block_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Block Id",
"type": "string"
},
"normalization_map": {
"items": {
"maxItems": 2,
"minItems": 2,
"prefixItems": [
{
"type": "integer"
},
{
"type": "integer"
}
],
"type": "array"
},
"maxItems": 100000,
"title": "Normalization Map",
"type": "array"
},
"normalized_text": {
"maxLength": 100000,
"title": "Normalized Text",
"type": "string"
},
"ordinal": {
"minimum": 0,
"title": "Ordinal",
"type": "integer"
},
"original_text": {
"maxLength": 100000,
"title": "Original Text",
"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"
},
"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": [
"block_id",
"ordinal",
"original_text",
"normalized_text",
"normalization_map"
],
"title": "ExtractionBlock",
"type": "object"
}
},
"additionalProperties": false,
"properties": {
"blocks": {
"items": {
"$ref": "#/$defs/ExtractionBlock"
},
"maxItems": 100000,
"title": "Blocks",
"type": "array"
},
"extraction_id": {
"pattern": "^[a-f0-9]{64}$",
"title": "Extraction Id",
"type": "string"
},
"normalization_profile": {
"const": "unicode-nfc-lf-v1",
"title": "Normalization Profile",
"type": "string"
},
"parser_config_sha256": {
"pattern": "^[a-f0-9]{64}$",
"title": "Parser Config Sha256",
"type": "string"
},
"parser_name": {
"maxLength": 100,
"minLength": 1,
"title": "Parser Name",
"type": "string"
},
"parser_version": {
"maxLength": 100,
"minLength": 1,
"title": "Parser Version",
"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"
},
"status": {
"enum": [
"complete",
"partial",
"unavailable"
],
"title": "Status",
"type": "string"
},
"warnings": {
"default": [],
"items": {
"type": "string"
},
"title": "Warnings",
"type": "array"
}
},
"required": [
"extraction_id",
"source_revision_id",
"parser_name",
"parser_version",
"parser_config_sha256",
"normalization_profile",
"status",
"blocks"
],
"title": "ExtractionRecord",
"type": "object"
}
+693
View File
@@ -0,0 +1,693 @@
{
"$defs": {
"Claim": {
"additionalProperties": false,
"properties": {
"assessment": {
"$ref": "#/$defs/SupportAssessment"
},
"claim_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Claim Id",
"type": "string"
},
"evidence": {
"items": {
"$ref": "#/$defs/EvidenceReference"
},
"maxItems": 20,
"minItems": 1,
"title": "Evidence",
"type": "array"
},
"evidence_type": {
"enum": [
"measured",
"reported",
"opinion",
"vendor_marketing"
],
"title": "Evidence Type",
"type": "string"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
},
"text": {
"maxLength": 4000,
"minLength": 1,
"title": "Text",
"type": "string"
}
},
"required": [
"claim_id",
"text",
"evidence_type",
"evidence",
"assessment"
],
"title": "Claim",
"type": "object"
},
"Confidence": {
"enum": [
"low",
"medium",
"high"
],
"title": "Confidence",
"type": "string"
},
"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"
},
"LensFit": {
"additionalProperties": false,
"properties": {
"horizon": {
"enum": [
"H1",
"H2",
"H3"
],
"title": "Horizon",
"type": "string"
},
"key_question": {
"anyOf": [
{
"maxLength": 1000,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Key Question"
},
"reason": {
"maxLength": 1000,
"minLength": 1,
"title": "Reason",
"type": "string"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
},
"score": {
"maximum": 1,
"minimum": 0,
"title": "Score",
"type": "number"
}
},
"required": [
"score",
"horizon",
"reason"
],
"title": "LensFit",
"type": "object"
},
"Lifecycle": {
"enum": [
"active",
"superseded"
],
"title": "Lifecycle",
"type": "string"
},
"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"
},
"NodeType": {
"enum": [
"finding",
"problem",
"technique",
"case",
"entity",
"event",
"concept",
"datapoint",
"synthesis"
],
"title": "NodeType",
"type": "string"
},
"ReviewState": {
"enum": [
"draft",
"reviewed"
],
"title": "ReviewState",
"type": "string"
},
"SupportAssessment": {
"additionalProperties": false,
"properties": {
"assertion_digest": {
"pattern": "^[a-f0-9]{64}$",
"title": "Assertion Digest",
"type": "string"
},
"assessment_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Assessment Id",
"type": "string"
},
"assessor_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Assessor Id",
"type": "string"
},
"evidence_digests": {
"items": {
"pattern": "^[a-f0-9]{64}$",
"type": "string"
},
"maxItems": 20,
"minItems": 1,
"title": "Evidence Digests",
"type": "array"
},
"method": {
"maxLength": 100,
"minLength": 1,
"title": "Method",
"type": "string"
},
"rationale": {
"maxLength": 4000,
"minLength": 1,
"title": "Rationale",
"type": "string"
},
"run_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Run Id",
"type": "string"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
},
"status": {
"$ref": "#/$defs/SupportStatus"
}
},
"required": [
"assessment_id",
"assertion_digest",
"evidence_digests",
"assessor_id",
"run_id",
"method",
"status",
"rationale"
],
"title": "SupportAssessment",
"type": "object"
},
"SupportStatus": {
"enum": [
"supported",
"unsupported",
"unavailable"
],
"title": "SupportStatus",
"type": "string"
}
},
"additionalProperties": false,
"properties": {
"agent_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Agent Id",
"type": "string"
},
"aliases": {
"default": [],
"items": {
"type": "string"
},
"maxItems": 100,
"title": "Aliases",
"type": "array"
},
"as_of": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "As Of"
},
"assumptions": {
"default": [],
"items": {
"$ref": "#/$defs/Claim"
},
"maxItems": 100,
"title": "Assumptions",
"type": "array"
},
"audience": {
"default": [],
"items": {
"type": "string"
},
"maxItems": 20,
"title": "Audience",
"type": "array"
},
"claim_support": {
"enum": [
"pending",
"supported",
"unsupported"
],
"title": "Claim Support",
"type": "string"
},
"claims": {
"items": {
"$ref": "#/$defs/Claim"
},
"maxItems": 100,
"minItems": 1,
"title": "Claims",
"type": "array"
},
"confidence": {
"$ref": "#/$defs/Confidence"
},
"created": {
"format": "date-time",
"title": "Created",
"type": "string"
},
"demographic": {
"anyOf": [
{
"maxLength": 1000,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Demographic"
},
"domain": {
"default": [],
"items": {
"type": "string"
},
"maxItems": 20,
"title": "Domain",
"type": "array"
},
"lens_fit": {
"maxProperties": 50,
"patternProperties": {
"^[a-zA-Z0-9][a-zA-Z0-9._:-]*$": {
"$ref": "#/$defs/LensFit"
}
},
"propertyNames": {
"maxLength": 128,
"minLength": 1
},
"title": "Lens Fit",
"type": "object"
},
"lifecycle": {
"$ref": "#/$defs/Lifecycle"
},
"limitations": {
"default": [],
"items": {
"$ref": "#/$defs/Claim"
},
"maxItems": 100,
"title": "Limitations",
"type": "array"
},
"merged_from": {
"default": [],
"items": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"type": "string"
},
"maxItems": 100,
"title": "Merged From",
"type": "array"
},
"model_id": {
"maxLength": 200,
"minLength": 1,
"title": "Model Id",
"type": "string"
},
"node_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Node Id",
"type": "string"
},
"node_type": {
"$ref": "#/$defs/NodeType"
},
"project_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Project Id",
"type": "string"
},
"reporting_year": {
"anyOf": [
{
"maximum": 9999,
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Reporting Year"
},
"review_state": {
"$ref": "#/$defs/ReviewState"
},
"run_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Run Id",
"type": "string"
},
"sample_size": {
"anyOf": [
{
"minimum": 0,
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Sample Size"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
},
"stale_after": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Stale After"
},
"summary": {
"maxLength": 8000,
"minLength": 1,
"title": "Summary",
"type": "string"
},
"superseded_by": {
"default": [],
"items": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"type": "string"
},
"title": "Superseded By",
"type": "array"
},
"supersedes": {
"default": [],
"items": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"type": "string"
},
"title": "Supersedes",
"type": "array"
},
"tags": {
"default": [],
"items": {
"type": "string"
},
"maxItems": 100,
"title": "Tags",
"type": "array"
},
"title": {
"maxLength": 300,
"minLength": 1,
"title": "Title",
"type": "string"
},
"unit": {
"anyOf": [
{
"maxLength": 100,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Unit"
},
"updated": {
"format": "date-time",
"title": "Updated",
"type": "string"
},
"use_for": {
"default": [],
"items": {
"type": "string"
},
"maxItems": 20,
"title": "Use For",
"type": "array"
},
"value": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"default": null,
"title": "Value"
}
},
"required": [
"node_id",
"project_id",
"node_type",
"title",
"summary",
"created",
"updated",
"review_state",
"lifecycle",
"confidence",
"claim_support",
"run_id",
"agent_id",
"model_id",
"claims"
],
"title": "KnowledgeNode",
"type": "object"
}
@@ -0,0 +1,137 @@
{
"$defs": {
"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": {
"budget_tokens": {
"maximum": 50000,
"minimum": 256,
"title": "Budget Tokens",
"type": "integer"
},
"cursor": {
"anyOf": [
{
"maxLength": 512,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Cursor"
},
"edge_types": {
"default": [],
"items": {
"enum": [
"solves",
"addresses",
"causes",
"supports",
"contradicts",
"instance_of",
"part_of",
"precedes",
"supersedes",
"compared_with",
"derived_from",
"applies_to"
],
"type": "string"
},
"maxItems": 12,
"title": "Edge Types",
"type": "array"
},
"limit": {
"default": 20,
"maximum": 50,
"minimum": 1,
"title": "Limit",
"type": "integer"
},
"node_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Node Id",
"type": "string"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
},
"scope": {
"$ref": "#/$defs/Scope"
}
},
"required": [
"node_id",
"scope",
"budget_tokens"
],
"title": "NeighborRequest",
"type": "object"
}
+120
View File
@@ -0,0 +1,120 @@
{
"$defs": {
"ProjectStatus": {
"enum": [
"active",
"paused",
"archived"
],
"title": "ProjectStatus",
"type": "string"
}
},
"additionalProperties": false,
"properties": {
"autonomy_policy_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Autonomy Policy Id",
"type": "string"
},
"default_includes": {
"default": [
"shared"
],
"items": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"type": "string"
},
"title": "Default Includes",
"type": "array"
},
"description": {
"default": "",
"maxLength": 4000,
"title": "Description",
"type": "string"
},
"key_questions": {
"items": {
"type": "string"
},
"maxItems": 30,
"minItems": 1,
"title": "Key Questions",
"type": "array"
},
"north_star": {
"maxLength": 4000,
"minLength": 1,
"title": "North Star",
"type": "string"
},
"owners": {
"default": [],
"items": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"type": "string"
},
"title": "Owners",
"type": "array"
},
"project_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Project Id",
"type": "string"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
},
"status": {
"$ref": "#/$defs/ProjectStatus"
},
"taxonomy_extensions": {
"additionalProperties": {
"items": {
"type": "string"
},
"type": "array"
},
"maxProperties": 100,
"title": "Taxonomy Extensions",
"type": "object"
},
"title": {
"maxLength": 200,
"minLength": 1,
"title": "Title",
"type": "string"
},
"watch_list": {
"default": [],
"items": {
"type": "string"
},
"maxItems": 100,
"title": "Watch List",
"type": "array"
}
},
"required": [
"project_id",
"title",
"status",
"north_star",
"key_questions",
"autonomy_policy_id"
],
"title": "ProjectRecord",
"type": "object"
}
@@ -0,0 +1,152 @@
{
"$defs": {
"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"
},
"ProposalState": {
"enum": [
"staged",
"validating",
"needs-review",
"accepted",
"rejected",
"withdrawn"
],
"title": "ProposalState",
"type": "string"
}
},
"additionalProperties": false,
"properties": {
"accepted_node_ids": {
"default": [],
"items": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"type": "string"
},
"title": "Accepted Node Ids",
"type": "array"
},
"commit_id": {
"anyOf": [
{
"pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Commit Id"
},
"decided_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Decided At"
},
"findings": {
"default": [],
"items": {
"$ref": "#/$defs/Finding"
},
"title": "Findings",
"type": "array"
},
"outcome": {
"enum": [
"accepted",
"held",
"rejected",
"validation-failed"
],
"title": "Outcome",
"type": "string"
},
"payload_digest": {
"pattern": "^[a-f0-9]{64}$",
"title": "Payload Digest",
"type": "string"
},
"proposal_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Proposal Id",
"type": "string"
},
"revision": {
"minimum": 1,
"title": "Revision",
"type": "integer"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
},
"state": {
"$ref": "#/$defs/ProposalState"
}
},
"required": [
"proposal_id",
"revision",
"payload_digest",
"state",
"outcome"
],
"title": "ProposalReceipt",
"type": "object"
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,257 @@
{
"$defs": {
"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"
},
"ProposalReceipt": {
"additionalProperties": false,
"properties": {
"accepted_node_ids": {
"default": [],
"items": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"type": "string"
},
"title": "Accepted Node Ids",
"type": "array"
},
"commit_id": {
"anyOf": [
{
"pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Commit Id"
},
"decided_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Decided At"
},
"findings": {
"default": [],
"items": {
"$ref": "#/$defs/Finding"
},
"title": "Findings",
"type": "array"
},
"outcome": {
"enum": [
"accepted",
"held",
"rejected",
"validation-failed"
],
"title": "Outcome",
"type": "string"
},
"payload_digest": {
"pattern": "^[a-f0-9]{64}$",
"title": "Payload Digest",
"type": "string"
},
"proposal_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Proposal Id",
"type": "string"
},
"revision": {
"minimum": 1,
"title": "Revision",
"type": "integer"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
},
"state": {
"$ref": "#/$defs/ProposalState"
}
},
"required": [
"proposal_id",
"revision",
"payload_digest",
"state",
"outcome"
],
"title": "ProposalReceipt",
"type": "object"
},
"ProposalState": {
"enum": [
"staged",
"validating",
"needs-review",
"accepted",
"rejected",
"withdrawn"
],
"title": "ProposalState",
"type": "string"
}
},
"additionalProperties": false,
"properties": {
"canonical_revision": {
"anyOf": [
{
"pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Canonical Revision"
},
"eligible_for_auto_accept": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": null,
"title": "Eligible For Auto Accept"
},
"findings": {
"default": [],
"items": {
"$ref": "#/$defs/Finding"
},
"maxItems": 200,
"title": "Findings",
"type": "array"
},
"lifecycle": {
"enum": [
"staged",
"evaluated",
"publishing",
"published-unreconciled",
"accepted",
"withdrawn"
],
"title": "Lifecycle",
"type": "string"
},
"proposal_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Proposal Id",
"type": "string"
},
"receipt": {
"anyOf": [
{
"$ref": "#/$defs/ProposalReceipt"
},
{
"type": "null"
}
],
"default": null
},
"revision": {
"minimum": 1,
"title": "Revision",
"type": "integer"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
},
"validation_status": {
"anyOf": [
{
"enum": [
"eligible",
"needs-review",
"invalid",
"conflict"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Validation Status"
}
},
"required": [
"proposal_id",
"revision",
"lifecycle"
],
"title": "ProposalStatus",
"type": "object"
}
+399
View File
@@ -0,0 +1,399 @@
{
"$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"
},
"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"
}
@@ -0,0 +1,503 @@
{
"$defs": {
"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"
},
"ProposalReceipt": {
"additionalProperties": false,
"properties": {
"accepted_node_ids": {
"default": [],
"items": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"type": "string"
},
"title": "Accepted Node Ids",
"type": "array"
},
"commit_id": {
"anyOf": [
{
"pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Commit Id"
},
"decided_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Decided At"
},
"findings": {
"default": [],
"items": {
"$ref": "#/$defs/Finding"
},
"title": "Findings",
"type": "array"
},
"outcome": {
"enum": [
"accepted",
"held",
"rejected",
"validation-failed"
],
"title": "Outcome",
"type": "string"
},
"payload_digest": {
"pattern": "^[a-f0-9]{64}$",
"title": "Payload Digest",
"type": "string"
},
"proposal_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Proposal Id",
"type": "string"
},
"revision": {
"minimum": 1,
"title": "Revision",
"type": "integer"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
},
"state": {
"$ref": "#/$defs/ProposalState"
}
},
"required": [
"proposal_id",
"revision",
"payload_digest",
"state",
"outcome"
],
"title": "ProposalReceipt",
"type": "object"
},
"ProposalState": {
"enum": [
"staged",
"validating",
"needs-review",
"accepted",
"rejected",
"withdrawn"
],
"title": "ProposalState",
"type": "string"
},
"RunCoverage": {
"additionalProperties": false,
"properties": {
"excluded": {
"default": [],
"items": {
"$ref": "#/$defs/RunCoverageItem"
},
"maxItems": 10000,
"title": "Excluded",
"type": "array"
},
"included": {
"default": [],
"items": {
"type": "string"
},
"maxItems": 10000,
"title": "Included",
"type": "array"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
},
"selected": {
"default": [],
"items": {
"type": "string"
},
"maxItems": 10000,
"title": "Selected",
"type": "array"
},
"skipped": {
"default": [],
"items": {
"$ref": "#/$defs/RunCoverageItem"
},
"maxItems": 10000,
"title": "Skipped",
"type": "array"
}
},
"title": "RunCoverage",
"type": "object"
},
"RunCoverageItem": {
"additionalProperties": false,
"properties": {
"item": {
"maxLength": 500,
"minLength": 1,
"title": "Item",
"type": "string"
},
"reason": {
"maxLength": 1000,
"minLength": 1,
"title": "Reason",
"type": "string"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
}
},
"required": [
"item",
"reason"
],
"title": "RunCoverageItem",
"type": "object"
},
"RunOperationReference": {
"additionalProperties": false,
"properties": {
"input_sha256": {
"pattern": "^[a-f0-9]{64}$",
"title": "Input Sha256",
"type": "string"
},
"operation_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Operation Id",
"type": "string"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
},
"status": {
"enum": [
"pending",
"uncertain",
"complete",
"failed"
],
"title": "Status",
"type": "string"
},
"tool_name": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Tool Name",
"type": "string"
}
},
"required": [
"operation_id",
"tool_name",
"input_sha256",
"status"
],
"title": "RunOperationReference",
"type": "object"
},
"RunProposalReference": {
"additionalProperties": false,
"properties": {
"proposal_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Proposal Id",
"type": "string"
},
"receipt": {
"anyOf": [
{
"$ref": "#/$defs/ProposalReceipt"
},
{
"type": "null"
}
],
"default": null
},
"revision": {
"minimum": 1,
"title": "Revision",
"type": "integer"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
},
"status": {
"enum": [
"staged",
"evaluated",
"eligible",
"needs-review",
"invalid",
"conflict",
"publishing",
"accepted",
"rejected",
"withdrawn",
"uncertain"
],
"title": "Status",
"type": "string"
}
},
"required": [
"proposal_id",
"revision",
"status"
],
"title": "RunProposalReference",
"type": "object"
},
"RunSourceReference": {
"additionalProperties": false,
"properties": {
"artifact_sha256": {
"anyOf": [
{
"pattern": "^[a-f0-9]{64}$",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Artifact Sha256"
},
"extraction_id": {
"anyOf": [
{
"pattern": "^[a-f0-9]{64}$",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Extraction Id"
},
"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"
},
"status": {
"enum": [
"selected",
"captured",
"extracted",
"unavailable",
"failed"
],
"title": "Status",
"type": "string"
}
},
"required": [
"source_revision_id",
"status"
],
"title": "RunSourceReference",
"type": "object"
},
"RunState": {
"enum": [
"active",
"completed",
"blocked"
],
"title": "RunState",
"type": "string"
}
},
"additionalProperties": false,
"properties": {
"budgets": {
"maxProperties": 100,
"patternProperties": {
"^[a-zA-Z0-9][a-zA-Z0-9._:-]*$": {
"minimum": 0,
"type": "integer"
}
},
"propertyNames": {
"maxLength": 128,
"minLength": 1
},
"title": "Budgets",
"type": "object"
},
"coverage": {
"$ref": "#/$defs/RunCoverage"
},
"expected_revision": {
"maximum": 2147483646,
"minimum": 0,
"title": "Expected Revision",
"type": "integer"
},
"output_hashes": {
"default": [],
"items": {
"pattern": "^[a-f0-9]{64}$",
"type": "string"
},
"maxItems": 1000,
"title": "Output Hashes",
"type": "array"
},
"pending_operations": {
"default": [],
"items": {
"$ref": "#/$defs/RunOperationReference"
},
"maxItems": 1000,
"title": "Pending Operations",
"type": "array"
},
"proposals": {
"default": [],
"items": {
"$ref": "#/$defs/RunProposalReference"
},
"maxItems": 1000,
"title": "Proposals",
"type": "array"
},
"run_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Run Id",
"type": "string"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
},
"sources": {
"default": [],
"items": {
"$ref": "#/$defs/RunSourceReference"
},
"maxItems": 500,
"title": "Sources",
"type": "array"
},
"stage": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Stage",
"type": "string"
},
"state": {
"$ref": "#/$defs/RunState",
"default": "active"
}
},
"required": [
"run_id",
"expected_revision",
"stage"
],
"title": "RunCheckpointRequest",
"type": "object"
}
@@ -0,0 +1,168 @@
{
"$defs": {
"RunModulePin": {
"additionalProperties": false,
"properties": {
"implementation_version": {
"maxLength": 64,
"minLength": 1,
"title": "Implementation Version",
"type": "string"
},
"module_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Module Id",
"type": "string"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
},
"sha256": {
"pattern": "^[a-f0-9]{64}$",
"title": "Sha256",
"type": "string"
}
},
"required": [
"module_id",
"implementation_version",
"sha256"
],
"title": "RunModulePin",
"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": {
"lens": {
"maxLength": 2000,
"minLength": 1,
"title": "Lens",
"type": "string"
},
"module_pins": {
"items": {
"$ref": "#/$defs/RunModulePin"
},
"maxItems": 100,
"minItems": 1,
"title": "Module Pins",
"type": "array"
},
"objective": {
"maxLength": 4000,
"minLength": 1,
"title": "Objective",
"type": "string"
},
"pack_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Pack Id",
"type": "string"
},
"pack_snapshot_digest": {
"pattern": "^[a-f0-9]{64}$",
"title": "Pack Snapshot Digest",
"type": "string"
},
"pack_version": {
"maxLength": 64,
"minLength": 1,
"title": "Pack Version",
"type": "string"
},
"run_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Run Id",
"type": "string"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
},
"scope": {
"$ref": "#/$defs/Scope"
}
},
"required": [
"run_id",
"objective",
"scope",
"lens",
"pack_id",
"pack_version",
"pack_snapshot_digest",
"module_pins"
],
"title": "RunCreateRequest",
"type": "object"
}
+670
View File
@@ -0,0 +1,670 @@
{
"$defs": {
"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"
},
"ProposalReceipt": {
"additionalProperties": false,
"properties": {
"accepted_node_ids": {
"default": [],
"items": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"type": "string"
},
"title": "Accepted Node Ids",
"type": "array"
},
"commit_id": {
"anyOf": [
{
"pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Commit Id"
},
"decided_at": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Decided At"
},
"findings": {
"default": [],
"items": {
"$ref": "#/$defs/Finding"
},
"title": "Findings",
"type": "array"
},
"outcome": {
"enum": [
"accepted",
"held",
"rejected",
"validation-failed"
],
"title": "Outcome",
"type": "string"
},
"payload_digest": {
"pattern": "^[a-f0-9]{64}$",
"title": "Payload Digest",
"type": "string"
},
"proposal_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Proposal Id",
"type": "string"
},
"revision": {
"minimum": 1,
"title": "Revision",
"type": "integer"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
},
"state": {
"$ref": "#/$defs/ProposalState"
}
},
"required": [
"proposal_id",
"revision",
"payload_digest",
"state",
"outcome"
],
"title": "ProposalReceipt",
"type": "object"
},
"ProposalState": {
"enum": [
"staged",
"validating",
"needs-review",
"accepted",
"rejected",
"withdrawn"
],
"title": "ProposalState",
"type": "string"
},
"RunCoverage": {
"additionalProperties": false,
"properties": {
"excluded": {
"default": [],
"items": {
"$ref": "#/$defs/RunCoverageItem"
},
"maxItems": 10000,
"title": "Excluded",
"type": "array"
},
"included": {
"default": [],
"items": {
"type": "string"
},
"maxItems": 10000,
"title": "Included",
"type": "array"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
},
"selected": {
"default": [],
"items": {
"type": "string"
},
"maxItems": 10000,
"title": "Selected",
"type": "array"
},
"skipped": {
"default": [],
"items": {
"$ref": "#/$defs/RunCoverageItem"
},
"maxItems": 10000,
"title": "Skipped",
"type": "array"
}
},
"title": "RunCoverage",
"type": "object"
},
"RunCoverageItem": {
"additionalProperties": false,
"properties": {
"item": {
"maxLength": 500,
"minLength": 1,
"title": "Item",
"type": "string"
},
"reason": {
"maxLength": 1000,
"minLength": 1,
"title": "Reason",
"type": "string"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
}
},
"required": [
"item",
"reason"
],
"title": "RunCoverageItem",
"type": "object"
},
"RunModulePin": {
"additionalProperties": false,
"properties": {
"implementation_version": {
"maxLength": 64,
"minLength": 1,
"title": "Implementation Version",
"type": "string"
},
"module_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Module Id",
"type": "string"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
},
"sha256": {
"pattern": "^[a-f0-9]{64}$",
"title": "Sha256",
"type": "string"
}
},
"required": [
"module_id",
"implementation_version",
"sha256"
],
"title": "RunModulePin",
"type": "object"
},
"RunOperationReference": {
"additionalProperties": false,
"properties": {
"input_sha256": {
"pattern": "^[a-f0-9]{64}$",
"title": "Input Sha256",
"type": "string"
},
"operation_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Operation Id",
"type": "string"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
},
"status": {
"enum": [
"pending",
"uncertain",
"complete",
"failed"
],
"title": "Status",
"type": "string"
},
"tool_name": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Tool Name",
"type": "string"
}
},
"required": [
"operation_id",
"tool_name",
"input_sha256",
"status"
],
"title": "RunOperationReference",
"type": "object"
},
"RunProposalReference": {
"additionalProperties": false,
"properties": {
"proposal_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Proposal Id",
"type": "string"
},
"receipt": {
"anyOf": [
{
"$ref": "#/$defs/ProposalReceipt"
},
{
"type": "null"
}
],
"default": null
},
"revision": {
"minimum": 1,
"title": "Revision",
"type": "integer"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
},
"status": {
"enum": [
"staged",
"evaluated",
"eligible",
"needs-review",
"invalid",
"conflict",
"publishing",
"accepted",
"rejected",
"withdrawn",
"uncertain"
],
"title": "Status",
"type": "string"
}
},
"required": [
"proposal_id",
"revision",
"status"
],
"title": "RunProposalReference",
"type": "object"
},
"RunSourceReference": {
"additionalProperties": false,
"properties": {
"artifact_sha256": {
"anyOf": [
{
"pattern": "^[a-f0-9]{64}$",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Artifact Sha256"
},
"extraction_id": {
"anyOf": [
{
"pattern": "^[a-f0-9]{64}$",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Extraction Id"
},
"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"
},
"status": {
"enum": [
"selected",
"captured",
"extracted",
"unavailable",
"failed"
],
"title": "Status",
"type": "string"
}
},
"required": [
"source_revision_id",
"status"
],
"title": "RunSourceReference",
"type": "object"
},
"RunState": {
"enum": [
"active",
"completed",
"blocked"
],
"title": "RunState",
"type": "string"
},
"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": {
"budgets": {
"maxProperties": 100,
"patternProperties": {
"^[a-zA-Z0-9][a-zA-Z0-9._:-]*$": {
"minimum": 0,
"type": "integer"
}
},
"propertyNames": {
"maxLength": 128,
"minLength": 1
},
"title": "Budgets",
"type": "object"
},
"checkpoint_digest": {
"anyOf": [
{
"pattern": "^[a-f0-9]{64}$",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Checkpoint Digest"
},
"coverage": {
"$ref": "#/$defs/RunCoverage"
},
"created_at": {
"format": "date-time",
"title": "Created At",
"type": "string"
},
"lens": {
"maxLength": 2000,
"minLength": 1,
"title": "Lens",
"type": "string"
},
"module_pins": {
"items": {
"$ref": "#/$defs/RunModulePin"
},
"maxItems": 100,
"minItems": 1,
"title": "Module Pins",
"type": "array"
},
"objective": {
"maxLength": 4000,
"minLength": 1,
"title": "Objective",
"type": "string"
},
"output_hashes": {
"default": [],
"items": {
"pattern": "^[a-f0-9]{64}$",
"type": "string"
},
"maxItems": 1000,
"title": "Output Hashes",
"type": "array"
},
"pack_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Pack Id",
"type": "string"
},
"pack_snapshot_digest": {
"pattern": "^[a-f0-9]{64}$",
"title": "Pack Snapshot Digest",
"type": "string"
},
"pack_version": {
"maxLength": 64,
"minLength": 1,
"title": "Pack Version",
"type": "string"
},
"pending_operations": {
"default": [],
"items": {
"$ref": "#/$defs/RunOperationReference"
},
"maxItems": 1000,
"title": "Pending Operations",
"type": "array"
},
"proposals": {
"default": [],
"items": {
"$ref": "#/$defs/RunProposalReference"
},
"maxItems": 1000,
"title": "Proposals",
"type": "array"
},
"revision": {
"minimum": 0,
"title": "Revision",
"type": "integer"
},
"run_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Run Id",
"type": "string"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
},
"scope": {
"$ref": "#/$defs/Scope"
},
"sources": {
"default": [],
"items": {
"$ref": "#/$defs/RunSourceReference"
},
"maxItems": 500,
"title": "Sources",
"type": "array"
},
"stage": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Stage",
"type": "string"
},
"state": {
"$ref": "#/$defs/RunState"
},
"updated_at": {
"format": "date-time",
"title": "Updated At",
"type": "string"
}
},
"required": [
"run_id",
"revision",
"state",
"objective",
"scope",
"lens",
"pack_id",
"pack_version",
"pack_snapshot_digest",
"module_pins",
"stage",
"created_at",
"updated_at"
],
"title": "RunRecord",
"type": "object"
}
+58
View File
@@ -0,0 +1,58 @@
{
"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"
}
+229
View File
@@ -0,0 +1,229 @@
{
"$defs": {
"Confidence": {
"enum": [
"low",
"medium",
"high"
],
"title": "Confidence",
"type": "string"
},
"NodeType": {
"enum": [
"finding",
"problem",
"technique",
"case",
"entity",
"event",
"concept",
"datapoint",
"synthesis"
],
"title": "NodeType",
"type": "string"
},
"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": {
"as_of_from": {
"anyOf": [
{
"format": "date",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "As Of From"
},
"as_of_to": {
"anyOf": [
{
"format": "date",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "As Of To"
},
"audience": {
"default": [],
"items": {
"maxLength": 100,
"minLength": 1,
"type": "string"
},
"maxItems": 20,
"title": "Audience",
"type": "array"
},
"budget_tokens": {
"maximum": 50000,
"minimum": 256,
"title": "Budget Tokens",
"type": "integer"
},
"confidences": {
"default": [],
"items": {
"$ref": "#/$defs/Confidence"
},
"maxItems": 3,
"title": "Confidences",
"type": "array"
},
"cursor": {
"anyOf": [
{
"maxLength": 512,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Cursor"
},
"domain": {
"default": [],
"items": {
"maxLength": 100,
"minLength": 1,
"type": "string"
},
"maxItems": 20,
"title": "Domain",
"type": "array"
},
"limit": {
"default": 20,
"maximum": 50,
"minimum": 1,
"title": "Limit",
"type": "integer"
},
"node_types": {
"default": [],
"items": {
"$ref": "#/$defs/NodeType"
},
"maxItems": 9,
"title": "Node Types",
"type": "array"
},
"query": {
"default": "",
"maxLength": 1000,
"title": "Query",
"type": "string"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
},
"scope": {
"$ref": "#/$defs/Scope"
},
"stale_only": {
"default": false,
"title": "Stale Only",
"type": "boolean"
},
"tags": {
"default": [],
"items": {
"maxLength": 100,
"minLength": 1,
"type": "string"
},
"maxItems": 20,
"title": "Tags",
"type": "array"
},
"use_for": {
"default": [],
"items": {
"maxLength": 100,
"minLength": 1,
"type": "string"
},
"maxItems": 20,
"title": "Use For",
"type": "array"
}
},
"required": [
"scope",
"budget_tokens"
],
"title": "SearchRequest",
"type": "object"
}
@@ -0,0 +1,244 @@
{
"$defs": {
"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"
},
"authentication": {
"enum": [
"bearer",
"browser_session"
],
"title": "Authentication",
"type": "string"
},
"authorized_operations": {
"default": [],
"items": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"type": "string"
},
"title": "Authorized Operations",
"type": "array"
},
"authorized_projects": {
"default": [],
"items": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"type": "string"
},
"title": "Authorized Projects",
"type": "array"
},
"canonical_revision": {
"pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$",
"title": "Canonical Revision",
"type": "string"
},
"capabilities": {
"default": [],
"items": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"type": "string"
},
"title": "Capabilities",
"type": "array"
},
"catalog_sha256": {
"pattern": "^[a-f0-9]{64}$",
"title": "Catalog Sha256",
"type": "string"
},
"connection_status": {
"const": "authenticated",
"default": "authenticated",
"title": "Connection Status",
"type": "string"
},
"index_revision": {
"anyOf": [
{
"pattern": "^(?:[a-f0-9]{40}|[a-f0-9]{64})$",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Index Revision"
},
"index_schema_version": {
"anyOf": [
{
"minimum": 1,
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Index Schema Version"
},
"index_state": {
"enum": [
"current",
"lagging",
"not_built",
"not_configured",
"unavailable"
],
"title": "Index State",
"type": "string"
},
"max_upload_bytes": {
"minimum": 1,
"title": "Max Upload Bytes",
"type": "integer"
},
"roles": {
"default": [],
"items": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"type": "string"
},
"title": "Roles",
"type": "array"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
},
"selected_scope": {
"anyOf": [
{
"$ref": "#/$defs/Scope"
},
{
"type": "null"
}
],
"default": null
},
"service_version": {
"maxLength": 64,
"minLength": 1,
"title": "Service Version",
"type": "string"
},
"supported_media_types": {
"default": [],
"items": {
"type": "string"
},
"maxItems": 20,
"title": "Supported Media Types",
"type": "array"
},
"transport": {
"enum": [
"http",
"mcp"
],
"title": "Transport",
"type": "string"
},
"upload_chunk_bytes": {
"minimum": 1,
"title": "Upload Chunk Bytes",
"type": "integer"
},
"workflow_status": {
"const": "not_verified",
"default": "not_verified",
"title": "Workflow Status",
"type": "string"
}
},
"required": [
"service_version",
"catalog_sha256",
"transport",
"authentication",
"max_upload_bytes",
"upload_chunk_bytes",
"canonical_revision",
"index_state"
],
"title": "ServiceDiagnostics",
"type": "object"
}
@@ -0,0 +1,204 @@
{
"$defs": {
"ReliabilityGrade": {
"enum": [
"low",
"medium",
"high"
],
"title": "ReliabilityGrade",
"type": "string"
}
},
"additionalProperties": false,
"properties": {
"archive_status": {
"enum": [
"archived",
"reference-only",
"capture-failed"
],
"title": "Archive Status",
"type": "string"
},
"artifact_sha256": {
"anyOf": [
{
"pattern": "^[a-f0-9]{64}$",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Artifact Sha256"
},
"authors": {
"default": [],
"items": {
"type": "string"
},
"maxItems": 50,
"title": "Authors",
"type": "array"
},
"byte_length": {
"minimum": 0,
"title": "Byte Length",
"type": "integer"
},
"capture_method": {
"default": "unspecified",
"enum": [
"unspecified",
"local-file",
"url-fetch",
"pasted-text",
"notebooklm-export",
"transcript"
],
"title": "Capture Method",
"type": "string"
},
"captured_at": {
"format": "date-time",
"title": "Captured At",
"type": "string"
},
"final_url": {
"anyOf": [
{
"maxLength": 4000,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Final Url"
},
"ingested_for": {
"items": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"type": "string"
},
"maxItems": 50,
"minItems": 1,
"title": "Ingested For",
"type": "array"
},
"license": {
"maxLength": 500,
"minLength": 1,
"title": "License",
"type": "string"
},
"media_type": {
"maxLength": 128,
"minLength": 1,
"title": "Media Type",
"type": "string"
},
"original_url": {
"anyOf": [
{
"maxLength": 4000,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Original Url"
},
"publication_date": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Publication Date"
},
"publisher": {
"anyOf": [
{
"maxLength": 300,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Publisher"
},
"reliability_grade": {
"$ref": "#/$defs/ReliabilityGrade"
},
"revision_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Revision Id",
"type": "string"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
},
"source_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Source Id",
"type": "string"
},
"source_type": {
"enum": [
"paper",
"review",
"press",
"vendor",
"internal",
"talk",
"export",
"other"
],
"title": "Source Type",
"type": "string"
},
"title": {
"maxLength": 500,
"minLength": 1,
"title": "Title",
"type": "string"
}
},
"required": [
"source_id",
"revision_id",
"media_type",
"byte_length",
"captured_at",
"title",
"license",
"source_type",
"reliability_grade",
"ingested_for",
"archive_status"
],
"title": "SourceRevisionRecord",
"type": "object"
}
+262
View File
@@ -0,0 +1,262 @@
{
"$defs": {
"EdgeEndpoint": {
"additionalProperties": false,
"properties": {
"id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Id",
"type": "string"
},
"kind": {
"enum": [
"node",
"source",
"project"
],
"title": "Kind",
"type": "string"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
}
},
"required": [
"kind",
"id"
],
"title": "EdgeEndpoint",
"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"
},
"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"
}
},
"additionalProperties": false,
"properties": {
"conditions": {
"anyOf": [
{
"maxLength": 2000,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Conditions"
},
"edge_id": {
"maxLength": 128,
"minLength": 1,
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$",
"title": "Edge Id",
"type": "string"
},
"edge_type": {
"enum": [
"solves",
"addresses",
"causes",
"supports",
"contradicts",
"instance_of",
"part_of",
"precedes",
"supersedes",
"compared_with",
"derived_from",
"applies_to"
],
"title": "Edge Type",
"type": "string"
},
"evidence": {
"default": [],
"items": {
"$ref": "#/$defs/EvidenceReference"
},
"title": "Evidence",
"type": "array"
},
"interpretation_rationale": {
"anyOf": [
{
"maxLength": 4000,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Interpretation Rationale"
},
"schema_version": {
"const": 1,
"default": 1,
"title": "Schema Version",
"type": "integer"
},
"source": {
"$ref": "#/$defs/EdgeEndpoint"
},
"target": {
"$ref": "#/$defs/EdgeEndpoint"
}
},
"required": [
"edge_id",
"edge_type",
"source",
"target"
],
"title": "TypedEdge",
"type": "object"
}