Усилить reliability pack маржинальности

This commit is contained in:
2026-05-24 15:54:34 +03:00
parent 21bc9e953b
commit c998664869
6 changed files with 682 additions and 10 deletions
@@ -0,0 +1,81 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Business Answer Contract",
"type": "object",
"additionalProperties": true,
"required": ["schema_version", "contract_id", "domain", "answer_surface", "detectors"],
"properties": {
"schema_version": {
"const": "business_answer_contract_v1"
},
"contract_id": {
"type": "string",
"minLength": 1
},
"domain": {
"type": "string",
"minLength": 1
},
"title": {
"type": "string"
},
"purpose": {
"type": "string"
},
"answer_surface": {
"type": "object",
"additionalProperties": true,
"required": ["required_fields"],
"properties": {
"must_start_with": {
"type": "string"
},
"required_fields": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"additionalProperties": true,
"required": ["field", "meaning"],
"properties": {
"field": {
"type": "string",
"minLength": 1
},
"meaning": {
"type": "string",
"minLength": 1
}
}
}
},
"must_not_contain": {
"type": "array",
"items": {
"type": "string"
}
},
"limited_answer_rule": {
"type": "string"
}
}
},
"root_layers": {
"type": "array",
"items": {
"type": "string"
}
},
"detectors": {
"type": "array",
"items": {
"type": "string"
},
"minItems": 1
},
"acceptance": {
"type": "object",
"additionalProperties": true
}
}
}
@@ -0,0 +1,110 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Domain Scenario Pack",
"type": "object",
"additionalProperties": true,
"required": ["schema_version", "pack_id", "domain", "scenarios"],
"properties": {
"schema_version": {
"const": "domain_scenario_pack_v1"
},
"pack_id": {
"type": "string",
"minLength": 1
},
"domain": {
"type": "string",
"minLength": 1
},
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"source_contract_id": {
"type": "string"
},
"issue_codes_under_test": {
"type": "array",
"items": {
"type": "string"
}
},
"detectors_under_test": {
"type": "array",
"items": {
"type": "string"
}
},
"rerun_matrix": {
"type": "array",
"items": {
"type": "string"
}
},
"analysis_context": {
"type": "object",
"additionalProperties": true
},
"acceptance": {
"type": "object",
"additionalProperties": true
},
"scenarios": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"additionalProperties": true,
"required": ["scenario_id", "steps"],
"properties": {
"scenario_id": {
"type": "string",
"minLength": 1
},
"title": {
"type": "string"
},
"steps": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"additionalProperties": true,
"required": ["step_id", "question"],
"properties": {
"step_id": {
"type": "string",
"minLength": 1
},
"title": {
"type": "string"
},
"question": {
"type": "string",
"minLength": 1
},
"expected_business_answer_contract": {
"type": "string"
},
"semantic_tags": {
"type": "array",
"items": {
"type": "string"
}
},
"forbidden_answer_patterns": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}
}
}
}
}