|
| 1 | +{ |
| 2 | + "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 3 | + "$id": "https://omen/specs/003/contracts/cross-case-output.schema.json", |
| 4 | + "title": "CrossCaseOutputContract", |
| 5 | + "type": "object", |
| 6 | + "additionalProperties": false, |
| 7 | + "required": ["result_artifact", "explanation_artifact", "comparison_artifact"], |
| 8 | + "properties": { |
| 9 | + "result_artifact": { |
| 10 | + "type": "object", |
| 11 | + "additionalProperties": false, |
| 12 | + "required": ["scenario_id", "outcome_class", "timeline"], |
| 13 | + "properties": { |
| 14 | + "scenario_id": { "type": "string", "minLength": 1 }, |
| 15 | + "outcome_class": { "type": "string", "minLength": 1 }, |
| 16 | + "winner": { "type": ["object", "null"] }, |
| 17 | + "timeline": { "type": "array" }, |
| 18 | + "ontology_setup": { "type": ["object", "null"] }, |
| 19 | + "explanation": { "type": ["object", "null"] } |
| 20 | + } |
| 21 | + }, |
| 22 | + "explanation_artifact": { |
| 23 | + "type": "object", |
| 24 | + "additionalProperties": false, |
| 25 | + "required": ["branch_points", "causal_chain"], |
| 26 | + "properties": { |
| 27 | + "branch_points": { "type": "array" }, |
| 28 | + "causal_chain": { "type": "array" }, |
| 29 | + "narrative_summary": { "type": ["string", "null"] }, |
| 30 | + "applied_axioms": { "type": ["object", "null"] }, |
| 31 | + "rule_trace_references": { "type": ["array", "null"] } |
| 32 | + } |
| 33 | + }, |
| 34 | + "comparison_artifact": { |
| 35 | + "type": "object", |
| 36 | + "additionalProperties": false, |
| 37 | + "required": ["baseline_outcome_class", "variation_outcome_class", "conditions", "deltas"], |
| 38 | + "properties": { |
| 39 | + "baseline_outcome_class": { "type": "string", "minLength": 1 }, |
| 40 | + "variation_outcome_class": { "type": "string", "minLength": 1 }, |
| 41 | + "conditions": { |
| 42 | + "type": "array", |
| 43 | + "items": { |
| 44 | + "type": "object", |
| 45 | + "required": ["description"], |
| 46 | + "properties": { |
| 47 | + "type": { "type": "string" }, |
| 48 | + "description": { "type": "string", "minLength": 1 }, |
| 49 | + "semantic_type": { "type": "string" }, |
| 50 | + "category": { "type": "string" } |
| 51 | + } |
| 52 | + } |
| 53 | + }, |
| 54 | + "deltas": { "type": "array" } |
| 55 | + } |
| 56 | + } |
| 57 | + } |
| 58 | +} |
0 commit comments