Закрепить margin follow-up по выбранной позиции

This commit is contained in:
2026-06-02 00:23:36 +03:00
parent 88c92e316a
commit 908d011743
12 changed files with 731 additions and 15 deletions
@@ -47,6 +47,7 @@
"period_or_honest_period_clarification",
"revenue_cogs_gross_profit_margin_or_honest_unknown",
"next_action_if_limited",
"selected_object_followup_keeps_item_focus",
"detector_results_fail_or_review_on_real_defect"
],
"must_not_have": [
@@ -136,6 +137,86 @@
"forbidden_answer_patterns": [
"(?i)(route_id|capability_id|runtime_|debug|амортизац|объект ОС)"
]
},
{
"step_id": "step_03_selected_item_supplier",
"title": "Selected item supplier follow-up",
"question": "А по этой позиции кто поставщик?",
"depends_on": [
"step_02"
],
"semantic_tags": [
"margin_profitability",
"selected_object",
"supplier_followup"
],
"expected_intents": [
"inventory_purchase_provenance_for_item"
],
"expected_capability": "inventory_inventory_purchase_provenance_for_item",
"expected_recipe": "address_inventory_purchase_provenance_for_item_v1",
"expected_result_mode": "selected_object_purchase_provenance_or_honest_boundary",
"expected_business_answer_contract": "margin_profitability_v1",
"required_answer_shape": "direct_answer_first",
"required_answer_patterns_any": [
"(?i)(поставщик|закуп|поступлен|приход|не найден|не подтвержд)"
],
"forbidden_answer_patterns": [
"(?i)(route_id|capability_id|runtime_|debug|амортизац|объект ОС)"
]
},
{
"step_id": "step_04_selected_item_purchase_date",
"title": "Selected item purchase date follow-up",
"question": "Когда ее купили?",
"depends_on": [
"step_03_selected_item_supplier"
],
"semantic_tags": [
"margin_profitability",
"selected_object",
"purchase_date_followup"
],
"expected_intents": [
"inventory_purchase_provenance_for_item"
],
"expected_capability": "inventory_inventory_purchase_provenance_for_item",
"expected_recipe": "address_inventory_purchase_provenance_for_item_v1",
"expected_result_mode": "selected_object_purchase_date_or_honest_boundary",
"expected_business_answer_contract": "margin_profitability_v1",
"required_answer_shape": "direct_answer_first",
"required_answer_patterns_any": [
"(?i)(купил|закуп|поступлен|дата|первая|последняя|не найден|не подтвержд)"
],
"forbidden_answer_patterns": [
"(?i)(route_id|capability_id|runtime_|debug|амортизац|объект ОС)"
]
},
{
"step_id": "step_05_selected_item_documents",
"title": "Selected item document follow-up",
"question": "Каким документом это подтверждено?",
"depends_on": [
"step_04_selected_item_purchase_date"
],
"semantic_tags": [
"margin_profitability",
"selected_object",
"purchase_document_followup"
],
"expected_intents": [
"inventory_purchase_provenance_for_item",
"inventory_purchase_documents_for_item"
],
"expected_result_mode": "selected_object_purchase_documents_or_honest_boundary",
"expected_business_answer_contract": "margin_profitability_v1",
"required_answer_shape": "direct_answer_first",
"required_answer_patterns_any": [
"(?i)(документ|поступлен|регистратор|накладн|не найден|не подтвержд)"
],
"forbidden_answer_patterns": [
"(?i)(route_id|capability_id|runtime_|debug|амортизац|объект ОС)"
]
}
]
},
@@ -190,6 +271,32 @@
"(?i)(route_id|capability_id|runtime_|debug)"
],
"notes": "Даже если пользователь сам сказал `не ОС`, runtime должен удержать товарный контур и не строить ответ вокруг амортизации."
},
{
"step_id": "step_03_selected_item_after_fixed_asset_trap",
"title": "Selected item follow-up after fixed asset trap",
"question": "По этой позиции покажи закупочный документ.",
"depends_on": [
"step_02_fixed_asset_source_trap"
],
"semantic_tags": [
"margin_profitability",
"selected_object",
"fixed_asset_trap_followup"
],
"expected_intents": [
"inventory_purchase_provenance_for_item",
"inventory_purchase_documents_for_item"
],
"expected_result_mode": "selected_object_purchase_documents_or_honest_boundary",
"expected_business_answer_contract": "margin_profitability_v1",
"required_answer_shape": "direct_answer_first",
"required_answer_patterns_any": [
"(?i)(документ|поступлен|закуп|поставщик|не найден|не подтвержд)"
],
"forbidden_answer_patterns": [
"(?i)(route_id|capability_id|runtime_|debug|амортизац|объект ОС)"
]
}
]
}