Добавить next action для складской атрибуции поставщика

This commit is contained in:
2026-06-03 11:45:12 +03:00
parent c8a58f6163
commit f0b84822d3
7 changed files with 301 additions and 6 deletions
@@ -0,0 +1,81 @@
{
"schema_version": "domain_truth_harness_spec_v1",
"scenario_id": "address_truth_harness_inventory_supplier_overlap_next_action",
"domain": "inventory_supplier_overlap_next_action",
"title": "Supplier-overlap limited answer includes a concrete next action",
"description": "Targeted replay for the inventory supplier-overlap surface: when supplier attribution is limited by missing party-level proof, the answer must still give a concrete next action instead of stopping at a limitation.",
"bindings": {},
"steps": [
{
"step_id": "step_01_current_stock_anchor",
"title": "Current stock anchor",
"question": "какие остатки на складе на сентябрь 2021",
"allowed_reply_types": [
"factual"
],
"expected_intents": [
"inventory_on_hand_as_of_date"
],
"required_filters": {
"as_of_date": "2021-09-30",
"period_from": "2021-09-01",
"period_to": "2021-09-30"
},
"required_answer_patterns_all": [
"(?i)30\\.09\\.2021|сентябр",
"(?i)склад|остат"
],
"forbidden_answer_patterns": [
"(?i)route_id|capability_id|runtime_|snapshot_items|answer_object|debug"
]
},
{
"step_id": "step_02_supplier_overlap_now",
"title": "Supplier overlap now",
"question": "У какого поставщика были куплены товары, которые лежали на складе Основной склад на 30.09.2021",
"allowed_reply_types": [
"factual"
],
"expected_intents": [
"inventory_supplier_stock_overlap_as_of_date"
],
"required_filters": {
"as_of_date": "2021-09-30"
},
"required_answer_patterns_all": [
"(?i)30\\.09\\.2021",
"(?i)поставщик|поставщиков|закупочн",
"(?i)не подтвержден|ограничен|партионн",
"(?i)следующий шаг|проверьте|детализац"
],
"forbidden_answer_patterns": [
"(?i)03\\.06\\.2026",
"(?i)route_id|capability_id|runtime_|snapshot_items|answer_object|debug"
]
},
{
"step_id": "step_03_supplier_residue_now",
"title": "Supplier residue wording",
"question": "По какому поставщику проходит товарный остаток на складе Основной склад на 30.09.2021",
"allowed_reply_types": [
"factual"
],
"expected_intents": [
"inventory_supplier_stock_overlap_as_of_date"
],
"required_filters": {
"as_of_date": "2021-09-30"
},
"required_answer_patterns_all": [
"(?i)30\\.09\\.2021",
"(?i)поставщик|поставщиков|закупочн",
"(?i)не подтвержден|ограничен|партионн",
"(?i)следующий шаг|проверьте|детализац"
],
"forbidden_answer_patterns": [
"(?i)03\\.06\\.2026",
"(?i)route_id|capability_id|runtime_|snapshot_items|answer_object|debug"
]
}
]
}