From 92cd272efcb2234f8f9536bf08bfa96f75028582 Mon Sep 17 00:00:00 2001 From: dctouch Date: Thu, 23 Apr 2026 20:57:13 +0300 Subject: [PATCH] =?UTF-8?q?ARCH:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20replay=20=D0=B4=D0=BB=D1=8F=20repeated=20pivots?= =?UTF-8?q?=20=D0=BF=D0=BE=D1=81=D0=BB=D0=B5=20contracts=20chain?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ts_to_contracts_to_documents_all_time.json | 77 ++++++++++++++++ ...ocuments_back_to_payments_year_switch.json | 89 +++++++++++++++++++ 2 files changed, 166 insertions(+) create mode 100644 docs/orchestration/address_truth_harness_phase80_payments_to_contracts_to_documents_all_time.json create mode 100644 docs/orchestration/address_truth_harness_phase81_payments_contracts_documents_back_to_payments_year_switch.json diff --git a/docs/orchestration/address_truth_harness_phase80_payments_to_contracts_to_documents_all_time.json b/docs/orchestration/address_truth_harness_phase80_payments_to_contracts_to_documents_all_time.json new file mode 100644 index 0000000..e82186f --- /dev/null +++ b/docs/orchestration/address_truth_harness_phase80_payments_to_contracts_to_documents_all_time.json @@ -0,0 +1,77 @@ +{ + "schema_version": "domain_truth_harness_spec_v1", + "scenario_id": "address_truth_harness_phase80_payments_to_contracts_to_documents_all_time", + "domain": "address_phase80_payments_to_contracts_to_documents_all_time", + "title": "Phase 80 payments to contracts to documents all-time continuity", + "description": "Replay for a human chain where the user opens documents by counterparty, pivots to payments, then to contracts, then back to documents by pronoun follow-up, and finally expands the same document contour to all available time without renaming the counterparty.", + "bindings": {}, + "steps": [ + { + "step_id": "step_01_documents_by_counterparty", + "title": "Open documents for the counterparty", + "question": "Покажи документы по Жуковке 51.", + "allowed_reply_types": ["factual", "factual_with_explanation", "partial_coverage"], + "required_answer_patterns_all": [ + "(?i)жуковк", + "(?i)документ|сч[её]т|акт|накладн|строк" + ], + "criticality": "critical", + "semantic_tags": ["documents_by_counterparty", "pivot_seed", "integrity_guard"] + }, + { + "step_id": "step_02_payments_by_pronoun_followup", + "title": "Pivot to payments", + "question": "А по нему платежи?", + "allowed_reply_types": ["factual", "factual_with_explanation", "partial_coverage"], + "required_answer_patterns_all": [ + "(?i)жуковк|контрагент", + "(?i)платеж|операц|банк|поступлен|списан" + ], + "criticality": "critical", + "semantic_tags": ["payments_followup", "counterparty_pronoun_resolution", "integrity_guard"] + }, + { + "step_id": "step_03_contracts_after_payments_pivot", + "title": "Pivot to contracts", + "question": "А по нему договоры?", + "allowed_reply_types": ["factual", "factual_with_explanation", "partial_coverage"], + "required_answer_patterns_all": [ + "(?i)жуковк|контрагент", + "(?i)договор|контракт|соглаш" + ], + "criticality": "critical", + "semantic_tags": ["contracts_followup", "second_pivot", "integrity_guard"] + }, + { + "step_id": "step_04_documents_after_contracts_pivot", + "title": "Pivot back to documents", + "question": "А по нему документы?", + "allowed_reply_types": ["factual", "factual_with_explanation", "partial_coverage"], + "required_answer_patterns_all": [ + "(?i)жуковк|контрагент", + "(?i)документ|сч[её]т|акт|накладн|строк" + ], + "criticality": "critical", + "semantic_tags": ["documents_followup", "third_pivot", "integrity_guard"] + }, + { + "step_id": "step_05_all_time_after_third_pivot", + "title": "Expand the same document contour to all time", + "question": "А за все время?", + "allowed_reply_types": ["factual", "factual_with_explanation", "partial_coverage"], + "required_answer_patterns_all": [ + "(?i)жуковк|контрагент", + "(?i)документ|сч[её]т|акт|накладн|строк" + ], + "forbidden_answer_patterns": [ + "(?i)уточните .* контрагент", + "(?i)уточните .* период", + "(?i)метадан", + "(?i)схем", + "(?i)объект[а-я]* 1с" + ], + "criticality": "critical", + "semantic_tags": ["all_time_after_third_pivot", "documents_followup", "integrity_guard"] + } + ] +} diff --git a/docs/orchestration/address_truth_harness_phase81_payments_contracts_documents_back_to_payments_year_switch.json b/docs/orchestration/address_truth_harness_phase81_payments_contracts_documents_back_to_payments_year_switch.json new file mode 100644 index 0000000..c2da31f --- /dev/null +++ b/docs/orchestration/address_truth_harness_phase81_payments_contracts_documents_back_to_payments_year_switch.json @@ -0,0 +1,89 @@ +{ + "schema_version": "domain_truth_harness_spec_v1", + "scenario_id": "address_truth_harness_phase81_payments_contracts_documents_back_to_payments_year_switch", + "domain": "address_phase81_payments_contracts_documents_back_to_payments_year_switch", + "title": "Phase 81 repeated pivot back to payments after documents year-switch continuity", + "description": "Replay for a human chain where the user opens documents by counterparty, pivots to payments, then to contracts, back to documents, and then back again to payments before switching the year without renaming the counterparty.", + "bindings": {}, + "steps": [ + { + "step_id": "step_01_documents_by_counterparty", + "title": "Open documents for the counterparty", + "question": "Покажи документы по Жуковке 51.", + "allowed_reply_types": ["factual", "factual_with_explanation", "partial_coverage"], + "required_answer_patterns_all": [ + "(?i)жуковк", + "(?i)документ|сч[её]т|акт|накладн|строк" + ], + "criticality": "critical", + "semantic_tags": ["documents_by_counterparty", "pivot_seed", "integrity_guard"] + }, + { + "step_id": "step_02_payments_by_pronoun_followup", + "title": "Pivot to payments", + "question": "А по нему платежи?", + "allowed_reply_types": ["factual", "factual_with_explanation", "partial_coverage"], + "required_answer_patterns_all": [ + "(?i)жуковк|контрагент", + "(?i)платеж|операц|банк|поступлен|списан" + ], + "criticality": "critical", + "semantic_tags": ["payments_followup", "counterparty_pronoun_resolution", "integrity_guard"] + }, + { + "step_id": "step_03_contracts_after_payments_pivot", + "title": "Pivot to contracts", + "question": "А по нему договоры?", + "allowed_reply_types": ["factual", "factual_with_explanation", "partial_coverage"], + "required_answer_patterns_all": [ + "(?i)жуковк|контрагент", + "(?i)договор|контракт|соглаш" + ], + "criticality": "critical", + "semantic_tags": ["contracts_followup", "second_pivot", "integrity_guard"] + }, + { + "step_id": "step_04_documents_after_contracts_pivot", + "title": "Pivot back to documents", + "question": "А по нему документы?", + "allowed_reply_types": ["factual", "factual_with_explanation", "partial_coverage"], + "required_answer_patterns_all": [ + "(?i)жуковк|контрагент", + "(?i)документ|сч[её]т|акт|накладн|строк" + ], + "criticality": "critical", + "semantic_tags": ["documents_followup", "third_pivot", "integrity_guard"] + }, + { + "step_id": "step_05_payments_after_third_pivot", + "title": "Pivot back again to payments", + "question": "А по нему платежи?", + "allowed_reply_types": ["factual", "factual_with_explanation", "partial_coverage"], + "required_answer_patterns_all": [ + "(?i)жуковк|контрагент", + "(?i)платеж|операц|банк|поступлен|списан" + ], + "criticality": "critical", + "semantic_tags": ["payments_followup", "fourth_pivot", "integrity_guard"] + }, + { + "step_id": "step_06_year_switch_after_fourth_pivot", + "title": "Switch the year after the fourth pivot", + "question": "А за 2021?", + "allowed_reply_types": ["factual", "factual_with_explanation", "partial_coverage"], + "required_answer_patterns_all": [ + "(?i)2021", + "(?i)жуковк|контрагент", + "(?i)платеж|операц|банк|поступлен|списан" + ], + "forbidden_answer_patterns": [ + "(?i)уточните .* контрагент", + "(?i)метадан", + "(?i)схем", + "(?i)объект[а-я]* 1с" + ], + "criticality": "critical", + "semantic_tags": ["year_switch_after_fourth_pivot", "payments_followup", "integrity_guard"] + } + ] +}