40 lines
2.0 KiB
JSON
40 lines
2.0 KiB
JSON
{
|
||
"$comment": "审计报告合同(专题-09 §4.5)。禁止单一总分类字段:report.py 拒绝 human_score/真人率 等键。pairwise_choice 在 Audit 模式为 null。",
|
||
"type": "object",
|
||
"required": ["summary", "patches", "final"],
|
||
"properties": {
|
||
"summary": {
|
||
"type": "object",
|
||
"required": ["high_confidence_findings", "advisory_findings", "kept_by_design", "needs_author_decision"],
|
||
"properties": {
|
||
"high_confidence_findings": {"type": "array", "items": {"type": "string"}},
|
||
"advisory_findings": {"type": "array", "items": {"type": "string"}},
|
||
"kept_by_design": {"type": "array", "items": {"type": "object", "required": ["finding_id", "reason"], "properties": {"finding_id": {"type": "string"}, "reason": {"type": "string", "minLength": 2}}}},
|
||
"needs_author_decision": {"type": "array", "items": {"type": "object", "required": ["finding_id", "question"], "properties": {"finding_id": {"type": "string"}, "question": {"type": "string", "minLength": 2}}}}
|
||
}
|
||
},
|
||
"patches": {"type": "array"},
|
||
"final": {
|
||
"type": "object",
|
||
"required": ["hard_gate_result", "voice_gate_result", "regression_gate_result", "pairwise_choice", "unresolved_risks"],
|
||
"properties": {
|
||
"candidate_text": {"type": "string"},
|
||
"hard_gate_result": {"type": "object"},
|
||
"voice_gate_result": {"type": "object"},
|
||
"regression_gate_result": {"type": "object"},
|
||
"pairwise_choice": {
|
||
"$comment": "Audit 模式无成对选择,允许 null;Patch 模式必须是完整对象",
|
||
"type": ["object", "null"],
|
||
"required": ["choice", "rationale", "selection_model"],
|
||
"properties": {
|
||
"choice": {"type": "string", "enum": ["original", "candidate", "tie", "both_bad"]},
|
||
"rationale": {"type": "string", "minLength": 2},
|
||
"selection_model": {"type": "string", "minLength": 1}
|
||
}
|
||
},
|
||
"unresolved_risks": {"type": "array", "items": {"type": "string"}}
|
||
}
|
||
}
|
||
}
|
||
}
|