Files
harness-lab/examples/synthetic-spec/schemas/audit-finding.schema.json
T
Suslov-MD c50092f7e4 feat: синтетическая спецификация для сквозных прогонов (BHL-018)
- examples/synthetic-spec: полный набор сущностей, профилей, пресета и антипаттерна
- bhl validate и profile resolve проходят пример без диагностик
- тест сверяет копию схем с spec/schemas и порядок разрешения
- README карты лаборатории дополнен spec/ и examples/
2026-11-29 00:06:36 +03:00

51 lines
2.2 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://baseline-harness.dev/spec/schemas/audit-finding.schema.json",
"title": "Audit Finding",
"description": "Проверка одного требования в отчёте аудита (D-005, D-019). Статус аудита не смешивается с уровнем и жизненным циклом требования.",
"type": "object",
"additionalProperties": false,
"required": ["requirement", "status", "method", "evidence", "rationale"],
"properties": {
"requirement": { "type": "string", "pattern": "^req-[a-z0-9]+(-[a-z0-9]+)*$" },
"status": {
"enum": ["PASS", "FAIL", "PARTIAL", "EXEMPT", "NOT_APPLICABLE", "UNKNOWN", "BLOCKED"]
},
"method": { "enum": ["deterministic", "semantic", "hybrid"] },
"evidence": {
"type": "array",
"minItems": 1,
"items": { "$ref": "https://baseline-harness.dev/spec/schemas/evidence.schema.json" }
},
"issues": { "type": "array", "items": { "type": "string", "minLength": 3 } },
"recommendations": { "type": "array", "items": { "type": "string", "minLength": 3 } },
"corrections": { "type": "array", "items": { "type": "string", "minLength": 3 } },
"rationale": { "type": "string", "minLength": 10 },
"confidence": {
"enum": ["high", "medium", "low"],
"description": "Уверенность семантической проверки; для deterministic не требуется."
},
"exemption_ref": {
"type": "string",
"minLength": 3,
"description": "Ссылка на утверждённое исключение при status EXEMPT."
}
},
"allOf": [
{
"if": { "properties": { "status": { "const": "EXEMPT" } }, "required": ["status"] },
"then": {
"required": ["exemption_ref"],
"properties": { "exemption_ref": { "type": "string", "minLength": 3 } }
}
},
{
"if": { "properties": { "method": { "const": "semantic" } }, "required": ["method"] },
"then": {
"required": ["confidence"],
"properties": { "confidence": { "enum": ["high", "medium", "low"] } }
}
}
]
}