120 lines
2.5 KiB
JSON
120 lines
2.5 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"title": "Business Audit Contract",
|
|
"type": "object",
|
|
"additionalProperties": true,
|
|
"required": [
|
|
"schema_version",
|
|
"created_at",
|
|
"overall_status",
|
|
"quality_score",
|
|
"target_score",
|
|
"loop_decision",
|
|
"analyst_accepted_gate",
|
|
"accepted_gate",
|
|
"deterministic_gate_ok",
|
|
"deterministic_gate_reason",
|
|
"human_meaning",
|
|
"quality_flags",
|
|
"root_layers",
|
|
"violated_invariants",
|
|
"blocking_issues",
|
|
"repair_targets_summary",
|
|
"rerun_matrix",
|
|
"artifact_refs"
|
|
],
|
|
"properties": {
|
|
"schema_version": {
|
|
"const": "business_audit_contract_v1"
|
|
},
|
|
"created_at": {
|
|
"type": "string"
|
|
},
|
|
"overall_status": {
|
|
"type": "string",
|
|
"enum": ["accepted", "partial", "blocked", "needs_exact_capability"]
|
|
},
|
|
"quality_score": {
|
|
"type": "integer",
|
|
"minimum": 0,
|
|
"maximum": 100
|
|
},
|
|
"target_score": {
|
|
"type": "integer",
|
|
"minimum": 0,
|
|
"maximum": 100
|
|
},
|
|
"loop_decision": {
|
|
"type": "string"
|
|
},
|
|
"analyst_accepted_gate": {
|
|
"type": "boolean"
|
|
},
|
|
"accepted_gate": {
|
|
"type": "boolean"
|
|
},
|
|
"deterministic_gate_ok": {
|
|
"type": "boolean"
|
|
},
|
|
"deterministic_gate_reason": {
|
|
"type": "string"
|
|
},
|
|
"human_meaning": {
|
|
"type": "object",
|
|
"additionalProperties": true
|
|
},
|
|
"quality_flags": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"root_layers": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"violated_invariants": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"blocking_issues": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": true,
|
|
"required": [
|
|
"issue_code",
|
|
"severity",
|
|
"expected_business_answer_contract",
|
|
"root_layers",
|
|
"evidence_paths",
|
|
"minimal_patch_direction",
|
|
"allowed_patch_targets",
|
|
"forbidden_patch_targets",
|
|
"rerun_matrix"
|
|
]
|
|
}
|
|
},
|
|
"repair_targets_summary": {
|
|
"type": "object",
|
|
"additionalProperties": true
|
|
},
|
|
"rerun_matrix": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"artifact_refs": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|