| { |
| "$schema": "https://json-schema.org/draft/2020-12/schema", |
| "title": "GapAnalysis", |
| "type": "object", |
| "required": [ |
| "gaps", |
| "rewrite_suggestions", |
| "uncertain_items", |
| "redline_seed" |
| ], |
| "properties": { |
| "insufficient_context": { |
| "type": "boolean" |
| }, |
| "gaps": { |
| "type": "array", |
| "items": { |
| "type": "object", |
| "required": ["type", "severity", "description", "evidence"], |
| "properties": { |
| "type": { "type": "string" }, |
| "severity": { |
| "type": "string", |
| "enum": ["high", "medium", "low"] |
| }, |
| "description": { "type": "string" }, |
| "evidence": { |
| "type": "array", |
| "items": { "type": "string" } |
| } |
| } |
| } |
| }, |
| "rewrite_suggestions": { |
| "type": "array", |
| "items": { |
| "type": "object", |
| "required": ["section", "old_text", "new_text", "reason"], |
| "properties": { |
| "section": { "type": "string" }, |
| "old_text": { "type": "string" }, |
| "new_text": { "type": "string" }, |
| "reason": { "type": "string" } |
| } |
| } |
| }, |
| "uncertain_items": { |
| "type": "array", |
| "items": { "type": "string" } |
| }, |
| "redline_seed": { |
| "type": "object", |
| "required": ["old_policy", "suggestions"], |
| "properties": { |
| "old_policy": { "type": "string" }, |
| "suggestions": { |
| "type": "array", |
| "items": { |
| "type": "object", |
| "required": ["section", "new_text"], |
| "properties": { |
| "section": { "type": "string" }, |
| "new_text": { "type": "string" } |
| } |
| } |
| } |
| } |
| } |
| } |
| } |