Files
VianoBugAnalysis/src/viano_bug_analysis/schemas/investigation-context-v1.schema.json
T

620 lines
16 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"additionalProperties": false,
"required": [
"format",
"format_version",
"case",
"interpretation",
"hypotheses",
"selected_hypothesis",
"budget",
"budget_policy",
"previous_result",
"evidence",
"policy",
"tool_schema"
],
"properties": {
"format": {
"const": "viano-investigation-context"
},
"format_version": {
"const": 1
},
"case": {
"type": "object"
},
"interpretation": {
"type": "object"
},
"hypotheses": {
"type": "object"
},
"selected_hypothesis": {
"type": "string",
"minLength": 1
},
"budget": {
"type": "object"
},
"budget_policy": {
"type": "object"
},
"previous_result": {
"type": [
"object",
"null"
]
},
"evidence": {
"type": "object"
},
"policy": {
"type": "object",
"additionalProperties": false,
"required": [
"max_iterations_per_hypothesis",
"max_invalid_responses",
"max_questions_per_hypothesis",
"test_deadline_seconds",
"max_steps_per_dispatch"
],
"properties": {
"max_iterations_per_hypothesis": {
"type": "integer",
"minimum": 1
},
"max_invalid_responses": {
"type": "integer",
"minimum": 1
},
"max_questions_per_hypothesis": {
"type": "integer",
"minimum": 1
},
"test_deadline_seconds": {
"type": "integer",
"minimum": 1
},
"max_steps_per_dispatch": {
"type": "integer",
"minimum": 1
},
"max_early_reviews": {
"type": "integer",
"minimum": 1
},
"prompt_target_characters": {
"type": "integer",
"minimum": 1
},
"recent_evidence_count": {
"type": "integer",
"minimum": 1
}
}
},
"tool_schema": {
"type": "object"
},
"previous_rejection": {
"type": [
"string",
"null"
]
},
"prompt_version": {
"enum": [
"investigation_project_v2",
"investigation_project_v3",
"investigation_v2",
"investigation_v3",
"investigation_project_v4",
"investigation_project_v5",
"investigation_project_v6",
"investigation_project_v7",
"investigation_project_v8",
"investigation_project_v9",
"investigation_project_v10",
"investigation_project_v11",
"investigation_project_v12",
"investigation_project_v13",
"investigation_project_v14",
"investigation_project_v15"
]
},
"case_sources": {
"type": "object"
},
"early_review": {
"type": "object"
},
"recalled_evidence": {
"type": "array",
"maxItems": 4,
"uniqueItems": true,
"items": {
"type": "string",
"pattern": "^E[0-9]{6,}$"
}
},
"working_brief": {
"type": "object",
"additionalProperties": false,
"required": [
"format",
"format_version",
"case_id",
"package_id",
"analysis_revision",
"hypothesis_id",
"sequence",
"parent_ref",
"llm_ref",
"brief"
],
"properties": {
"format": {
"const": "viano-investigation-working-brief"
},
"format_version": {
"const": 1
},
"case_id": {
"type": "string",
"minLength": 1,
"maxLength": 256,
"pattern": "\\S"
},
"package_id": {
"type": "string",
"minLength": 1,
"maxLength": 256,
"pattern": "\\S"
},
"analysis_revision": {
"type": "integer",
"minimum": 1
},
"hypothesis_id": {
"type": "string",
"pattern": "^H[1-9][0-9]*$"
},
"sequence": {
"type": "integer",
"minimum": 1
},
"parent_ref": {
"type": [
"string",
"null"
]
},
"llm_ref": {
"type": "string",
"minLength": 1,
"maxLength": 2048,
"pattern": "\\S"
},
"brief": {
"type": "object",
"additionalProperties": false,
"required": [
"format_version",
"findings",
"uncertainties",
"next_question",
"changes"
],
"properties": {
"format_version": {
"const": 1
},
"findings": {
"type": "array",
"maxItems": 16,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"id",
"direction",
"text",
"scope",
"evidence_refs"
],
"properties": {
"id": {
"type": "string",
"pattern": "^B[0-9]{4,}$"
},
"direction": {
"enum": [
"support",
"against",
"neutral"
]
},
"text": {
"type": "string",
"minLength": 1,
"maxLength": 300,
"pattern": "\\S"
},
"scope": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"pattern": "\\S"
},
"evidence_refs": {
"type": "array",
"minItems": 1,
"maxItems": 8,
"uniqueItems": true,
"items": {
"type": "string",
"pattern": "^E[0-9]{6,}$"
}
}
}
}
},
"uncertainties": {
"type": "array",
"maxItems": 6,
"uniqueItems": true,
"items": {
"type": "string",
"minLength": 1,
"maxLength": 240,
"pattern": "\\S"
}
},
"next_question": {
"type": "string",
"minLength": 1,
"maxLength": 300,
"pattern": "\\S"
},
"changes": {
"type": "array",
"maxItems": 16,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"id",
"reason",
"evidence_refs"
],
"properties": {
"id": {
"type": "string",
"pattern": "^B[0-9]{4,}$"
},
"reason": {
"type": "string",
"minLength": 1,
"maxLength": 240,
"pattern": "\\S"
},
"evidence_refs": {
"type": "array",
"minItems": 1,
"maxItems": 8,
"uniqueItems": true,
"items": {
"type": "string",
"pattern": "^E[0-9]{6,}$"
}
}
}
}
}
}
},
"change_audit": {
"type": "array",
"maxItems": 32,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"id",
"fields",
"requires_reason",
"reason"
],
"properties": {
"id": {
"type": "string",
"pattern": "^B[0-9]{4,}$"
},
"fields": {
"type": "array",
"items": {
"enum": [
"added",
"removed",
"direction",
"text",
"scope",
"evidence_refs"
]
}
},
"requires_reason": {
"type": "boolean"
},
"reason": {
"type": "string",
"minLength": 1,
"maxLength": 300
}
}
}
}
}
},
"previous_rejection_details": {
"type": "object",
"additionalProperties": false,
"properties": {
"field": {
"type": "string",
"maxLength": 240
},
"ids": {
"type": "array",
"maxItems": 8,
"items": {
"type": "string",
"maxLength": 64
}
},
"requirement": {
"type": "string",
"maxLength": 160
},
"validation_path": {
"type": "string",
"maxLength": 240
},
"validation_fields": {
"type": "array",
"maxItems": 8,
"items": {
"type": "string",
"maxLength": 64
}
}
}
},
"other_working_briefs": {
"type": "object",
"additionalProperties": {
"type": "object",
"additionalProperties": false,
"required": [
"format",
"format_version",
"case_id",
"package_id",
"analysis_revision",
"hypothesis_id",
"sequence",
"parent_ref",
"llm_ref",
"brief"
],
"properties": {
"format": {
"const": "viano-investigation-working-brief"
},
"format_version": {
"const": 1
},
"case_id": {
"type": "string",
"minLength": 1,
"maxLength": 256,
"pattern": "\\S"
},
"package_id": {
"type": "string",
"minLength": 1,
"maxLength": 256,
"pattern": "\\S"
},
"analysis_revision": {
"type": "integer",
"minimum": 1
},
"hypothesis_id": {
"type": "string",
"pattern": "^H[1-9][0-9]*$"
},
"sequence": {
"type": "integer",
"minimum": 1
},
"parent_ref": {
"type": [
"string",
"null"
]
},
"llm_ref": {
"type": "string",
"minLength": 1,
"maxLength": 2048,
"pattern": "\\S"
},
"brief": {
"type": "object",
"additionalProperties": false,
"required": [
"format_version",
"findings",
"uncertainties",
"next_question",
"changes"
],
"properties": {
"format_version": {
"const": 1
},
"findings": {
"type": "array",
"maxItems": 16,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"id",
"direction",
"text",
"scope",
"evidence_refs"
],
"properties": {
"id": {
"type": "string",
"pattern": "^B[0-9]{4,}$"
},
"direction": {
"enum": [
"support",
"against",
"neutral"
]
},
"text": {
"type": "string",
"minLength": 1,
"maxLength": 300,
"pattern": "\\S"
},
"scope": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"pattern": "\\S"
},
"evidence_refs": {
"type": "array",
"minItems": 1,
"maxItems": 8,
"uniqueItems": true,
"items": {
"type": "string",
"pattern": "^E[0-9]{6,}$"
}
}
}
}
},
"uncertainties": {
"type": "array",
"maxItems": 6,
"uniqueItems": true,
"items": {
"type": "string",
"minLength": 1,
"maxLength": 240,
"pattern": "\\S"
}
},
"next_question": {
"type": "string",
"minLength": 1,
"maxLength": 300,
"pattern": "\\S"
},
"changes": {
"type": "array",
"maxItems": 16,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"id",
"reason",
"evidence_refs"
],
"properties": {
"id": {
"type": "string",
"pattern": "^B[0-9]{4,}$"
},
"reason": {
"type": "string",
"minLength": 1,
"maxLength": 240,
"pattern": "\\S"
},
"evidence_refs": {
"type": "array",
"minItems": 1,
"maxItems": 8,
"uniqueItems": true,
"items": {
"type": "string",
"pattern": "^E[0-9]{6,}$"
}
}
}
}
}
}
},
"change_audit": {
"type": "array",
"maxItems": 32,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"id",
"fields",
"requires_reason",
"reason"
],
"properties": {
"id": {
"type": "string",
"pattern": "^B[0-9]{4,}$"
},
"fields": {
"type": "array",
"items": {
"enum": [
"added",
"removed",
"direction",
"text",
"scope",
"evidence_refs"
]
}
},
"requires_reason": {
"type": "boolean"
},
"reason": {
"type": "string",
"minLength": 1,
"maxLength": 300
}
}
}
}
}
}
}
}
}