Усилить семантический контур агента и большой прогон

This commit is contained in:
2026-05-25 13:00:50 +03:00
parent 7cc65e808e
commit 8ce007724a
87 changed files with 4941 additions and 14691 deletions
@@ -0,0 +1,276 @@
{
"schema_version": "domain_scenario_pack_v1",
"pack_id": "agent_business_overview_counterparty_reliability_20260524",
"domain": "agent_business_overview_counterparty_reliability",
"title": "Agent business overview and counterparty documents reliability proof",
"description": "Focused proof pack for business-useful company overview, money flow, VAT/document boundaries, all-time scope reset, and explicit SVK counterparty document separation.",
"analysis_context": {
"as_of_date": "2026-05-24",
"source": "agent_reliability_uplift_business_overview_counterparty_slice"
},
"bindings": {
"main_organization": "ООО Альтернатива Плюс",
"control_year": "2020",
"svk_counterparty": "Группа СВК"
},
"scenarios": [
{
"scenario_id": "company_business_overview_scope",
"title": "Company overview, money flow, VAT boundary, and all-time scope reset",
"description": "Validates that the assistant can answer a broad business question directly, keep period scope honest, and reset from 2020 to all available time without carrying stale tax claims.",
"steps": [
{
"step_id": "s01_business_overview_2020",
"title": "Direct business overview for the company and year",
"node_role": "root",
"question": "Дай взрослый бизнес-обзор {{bindings.main_organization}} за {{bindings.control_year}} год по данным 1С: обороты, входящие и исходящие деньги, нетто, НДС, долги, склад, клиенты, поставщики и что пока нельзя утверждать.",
"expected_intents": ["business_overview"],
"semantic_tags": ["business_overview", "money", "vat", "debt", "inventory", "scope_guard"],
"required_answer_shape": "direct_answer_first",
"required_answer_patterns_all": [
"Альтернатива",
"2020"
],
"forbidden_answer_patterns": [
"(?i)capability_id",
"(?i)selected_chain_id",
"(?i)runtime_",
"(?i)business_overview_route_template_v1",
"(?i)mcp_discovery"
]
},
{
"step_id": "s02_money_followup",
"title": "Money follow-up with counterparty highlights",
"question": "Раскрой деньги подробнее: сколько получили, сколько заплатили, какой чистый денежный поток, кто главный клиент и главный поставщик в {{bindings.control_year}}.",
"depends_on": ["s01_business_overview_2020"],
"semantic_tags": ["money", "counterparty", "scope_guard"],
"required_answer_shape": "direct_answer_first",
"required_answer_patterns_all": [
"2020"
],
"forbidden_answer_patterns": [
"(?i)capability_id",
"(?i)runtime_"
]
},
{
"step_id": "s03_vat_documents_boundary",
"title": "VAT and document evidence boundary",
"question": "Что с НДС за {{bindings.control_year}} год по {{bindings.main_organization}}: какая позиция видна, на чем она основана и чего не хватает для налогового вывода?",
"depends_on": ["s02_money_followup"],
"semantic_tags": ["vat", "documents", "scope_guard"],
"required_answer_shape": "direct_answer_first",
"required_answer_patterns_all": [
"НДС",
"2020"
],
"forbidden_answer_patterns": [
"(?i)capability_id",
"(?i)runtime_",
"(?i)точно подтвержден.*налогов"
]
},
{
"step_id": "s04_all_time_scope_reset",
"title": "All-time company overview without stale VAT carryover",
"question": "Теперь за все доступное время дай обзор компании в целом, но не тащи НДС за {{bindings.control_year}} как подтвержденную общую налоговую позицию.",
"depends_on": ["s03_vat_documents_boundary"],
"semantic_tags": ["business_overview", "vat", "scope_guard"],
"required_answer_shape": "direct_answer_first",
"required_answer_patterns_all": [
"доступн",
"НДС"
],
"forbidden_answer_patterns": [
"(?i)capability_id",
"(?i)runtime_",
"(?i)НДС за 2020.*общая налоговая позиция"
]
}
]
},
{
"scenario_id": "svk_counterparty_documents_scope",
"title": "Explicit SVK counterparty money and document scope",
"description": "Validates that an explicit counterparty request is not confused with company overview context and that document evidence is separated from business conclusions.",
"steps": [
{
"step_id": "s01_svk_money_documents",
"title": "Explicit counterparty money flow and evidence",
"node_role": "root",
"question": "Отдельно по контрагенту {{bindings.svk_counterparty}}, без опоры на прошлый диалог: сколько денег прошло, что входящее, что исходящее и есть ли документы или движения, на которых это основано?",
"expected_intents": ["value_flow"],
"semantic_tags": ["counterparty", "money", "documents", "scope_guard"],
"required_answer_shape": "direct_answer_first",
"required_answer_patterns_all": [
"СВК"
],
"forbidden_answer_patterns": [
"(?i)capability_id",
"(?i)selected_chain_id",
"(?i)runtime_",
"(?i)mcp_discovery",
"(?i)Альтернатива Плюс.*контрагент"
]
},
{
"step_id": "s02_svk_documents_followup",
"title": "Counterparty documents follow-up",
"question": "Покажи документы по этой цепочке и не смешивай {{bindings.svk_counterparty}} с организацией {{bindings.main_organization}}.",
"depends_on": ["s01_svk_money_documents"],
"semantic_tags": ["counterparty", "documents", "scope_guard"],
"required_answer_shape": "direct_answer_first",
"required_answer_patterns_all": [
"СВК"
],
"forbidden_answer_patterns": [
"(?i)capability_id",
"(?i)runtime_",
"(?i)Альтернатива Плюс.*как контрагент"
]
},
{
"step_id": "s03_company_vs_svk_summary",
"title": "Separate company and counterparty conclusions",
"question": "Собери короткий итог: что мы подтвердили по компании, что отдельно по {{bindings.svk_counterparty}}, какие выводы можно делать и какие нельзя.",
"depends_on": ["s01_svk_money_documents", "s02_svk_documents_followup"],
"semantic_tags": ["business_overview", "counterparty", "scope_guard"],
"required_answer_shape": "direct_answer_first",
"required_answer_patterns_all": [
"СВК",
"компан"
],
"forbidden_answer_patterns": [
"(?i)capability_id",
"(?i)runtime_"
]
}
]
},
{
"scenario_id": "company_business_overview_colloquial_scope",
"title": "Colloquial company overview and money follow-up",
"description": "Adds colloquial wording coverage for the same company-level business overview edge without changing the business contract.",
"steps": [
{
"step_id": "s01_colloquial_company_overview_2020",
"title": "Colloquial business overview for the company",
"node_role": "root",
"question": "По-человечески посмотри {{bindings.main_organization}} за {{bindings.control_year}}: что по бизнесу видно в 1С по деньгам, НДС, долгам, складу, клиентам/поставщикам и где пока нельзя делать вывод?",
"expected_intents": ["business_overview"],
"semantic_tags": ["business_overview", "colloquial", "money", "vat", "debt", "inventory", "scope_guard"],
"required_answer_shape": "direct_answer_first",
"required_answer_patterns_all": [
"2020",
"НДС"
],
"forbidden_answer_patterns": [
"(?i)capability_id",
"(?i)selected_chain_id",
"(?i)runtime_",
"(?i)mcp_discovery"
]
},
{
"step_id": "s02_colloquial_money_leaders",
"title": "Colloquial money leaders follow-up",
"question": "А по деньгам в этом же году кто больше всего занес и кому больше всего ушло? Банк не называй обычным клиентом без оговорки.",
"depends_on": ["s01_colloquial_company_overview_2020"],
"semantic_tags": ["money", "counterparty", "colloquial", "scope_guard"],
"required_answer_shape": "direct_answer_first",
"required_answer_patterns_all": [
"2020"
],
"forbidden_answer_patterns": [
"(?i)capability_id",
"(?i)runtime_"
]
}
]
},
{
"scenario_id": "svk_selected_object_followup_scope",
"title": "Selected-object style SVK counterparty follow-up",
"description": "Adds pronoun and selected-object style coverage for the SVK counterparty edge: root counterparty fact, documents by selected object, and separated summary.",
"steps": [
{
"step_id": "s01_select_svk_counterparty_money",
"title": "Select SVK as the active counterparty",
"node_role": "root",
"question": "Возьми как выбранного контрагента {{bindings.svk_counterparty}}: сколько по нему входящих денег, исходящих денег и расчетное нетто, на чем это основано?",
"expected_intents": ["value_flow"],
"semantic_tags": ["counterparty", "money", "selected_object", "scope_guard"],
"required_answer_shape": "direct_answer_first",
"required_answer_patterns_all": [
"СВК"
],
"forbidden_answer_patterns": [
"(?i)capability_id",
"(?i)selected_chain_id",
"(?i)runtime_",
"(?i)mcp_discovery"
]
},
{
"step_id": "s02_pronoun_documents_for_selected_svk",
"title": "Documents for the selected counterparty by pronoun",
"question": "Теперь по нему покажи документы и не переключайся на организацию.",
"depends_on": ["s01_select_svk_counterparty_money"],
"semantic_tags": ["counterparty", "documents", "selected_object", "pronoun_followup", "scope_guard"],
"required_answer_shape": "direct_answer_first",
"required_answer_patterns_all": [
"СВК"
],
"forbidden_answer_patterns": [
"(?i)capability_id",
"(?i)runtime_",
"(?i)Альтернатива Плюс.*как контрагент"
]
},
{
"step_id": "s03_selected_svk_company_boundary_summary",
"title": "Boundary summary after selected-object document follow-up",
"question": "И коротко сравни: что у нас подтверждено по компании, что отдельно по выбранному контрагенту, и какие выводы нельзя делать?",
"depends_on": ["s01_select_svk_counterparty_money", "s02_pronoun_documents_for_selected_svk"],
"semantic_tags": ["business_overview", "counterparty", "selected_object", "scope_guard"],
"required_answer_shape": "direct_answer_first",
"required_answer_patterns_all": [
"СВК",
"компан"
],
"forbidden_answer_patterns": [
"(?i)capability_id",
"(?i)runtime_"
]
},
{
"step_id": "s04_org_clarification_boundary_summary",
"title": "Complete boundary summary after organization clarification",
"question": "{{bindings.main_organization}}",
"depends_on": [
"s03_selected_svk_company_boundary_summary"
],
"semantic_tags": [
"business_overview",
"counterparty",
"selected_object",
"organization_clarification",
"scope_guard"
],
"required_answer_shape": "direct_answer_first",
"required_answer_patterns_all": [
"Альтернатива Плюс",
"СВК",
"Нельзя"
],
"forbidden_answer_patterns": [
"(?i)capability_id",
"(?i)runtime_",
"(?i)mcp_discovery"
]
}
]
}
]
}