Архитектура: вернуть company activity assessment в address lane и убрать ложный organization anchor из root-scoped carryover
This commit is contained in:
+14
@@ -362,6 +362,20 @@ Still open after the accepted phase12 replay:
|
||||
- active organization bootstrap now flows through selected organization, navigation organization, and shared continuity authority in one place instead of keeping a second callback-shaped fallback branch beside the authority object;
|
||||
- `assistantService.resolveSessionOrganizationScopeContext(...)` no longer passes that legacy callback into the runtime adapter, which reduces one more orchestration seam where old and new organization owners could drift;
|
||||
- targeted organization-scope, data-scope, and route regressions remain green after the change, and wide saved-session replay `address_truth_harness_phase12_wider_saved_session_pool_live_20260418_rerun9` remains accepted `20/20`, which is the critical proof that this bootstrap convergence did not reopen the flagship continuity path.
|
||||
- the next replay-breadth pass now proves a different late-session contour instead of replaying only the flagship chain:
|
||||
- a new live pack `address_truth_harness_phase14_counterparty_tail_resume` validates `data-scope meta -> explicit company selection -> counterparty docs -> short-name follow-up -> inventory today -> account 60 -> inventory aging -> historical inventory -> organization activity analytics` inside one shared session;
|
||||
- the first draft of this pack exposed one real architecture seam rather than another continuity collapse: `Как ты оценишь деятельность компании?` after grounded organization activity-age was still falling into `living_chat` because the route depended too much on the L0 gate and not enough on the resolved supported intent;
|
||||
- `addressCounterpartyIntentSignals` now treats company-activity assessment wording as the same `counterparty_activity_lifecycle` contour instead of leaving it as unsupported meta chat;
|
||||
- `assistantRoutePolicy` now recovers the address lane from a supported resolved intent even when the initial L0 gate stays negative, so the system no longer loses a real business contour just because the low-level shape classifier stayed `unsupported`;
|
||||
- targeted counterparty UTF-8 and route-policy regressions now explicitly protect this seam, including the exact late-tail wording `Как ты оценишь деятельность компании?`;
|
||||
- live replay `address_truth_harness_phase14_counterparty_tail_resume_live_20260418_rerun2` is accepted `10/10`, which is the critical proof that replay breadth is now broader than the original flagship chain and that late-session organization analytics no longer depend on ambient chat luck.
|
||||
|
||||
- the next transition-authority pass now closes a subtler root-scoped carryover seam inside the shared follow-up path:
|
||||
- `assistantService.buildAddressFollowupOffer(...)` now reads follow-up anchor metadata through the shared continuity helper instead of reconstructing it from yet another local `addressDebug` parser;
|
||||
- `assistantTransitionPolicy` no longer promotes assistant-side `organization authority` into `previous_anchor_type=organization` when a root-scoped inventory pivot intentionally sanitizes the selected-item carryover and keeps only the restored root frame;
|
||||
- this matters because `root_context_only` VAT pivots from inventory drilldown should preserve restored organization/date filters without pretending that restored scope is itself a user-selected follow-up anchor;
|
||||
- targeted `assistantAddressFollowupContext` and `assistantTransitionPolicy` suites are now green after the fix, explicitly protecting the `inventory drilldown -> VAT pivot` regression where selected-item carryover must be removed while the inventory root company/date window remains intact;
|
||||
- live replay `address_truth_harness_phase12_wider_saved_session_pool_live_20260418_rerun10` remains accepted `20/20`, which is the critical proof that this anchor-sanitization convergence did not reopen the flagship saved-session continuity path.
|
||||
|
||||
## Next Execution Slice (2026-04-18)
|
||||
|
||||
|
||||
@@ -0,0 +1,250 @@
|
||||
{
|
||||
"schema_version": "domain_truth_harness_spec_v1",
|
||||
"scenario_id": "address_truth_harness_phase14_counterparty_tail_resume",
|
||||
"domain": "address_phase14_counterparty_tail_resume",
|
||||
"title": "Phase 14 counterparty-tail replay for late-session authority breadth",
|
||||
"description": "Alternative AGENT replay built from a different saved-session tail. The scenario validates explicit organization selection, exact counterparty documents, a short-name counterparty follow-up, inventory and account-60 pivots without repeated company loss, old-purchase inventory aging, historical inventory on May 2020, and organization activity analytics at the tail of the same live session.",
|
||||
"bindings": {},
|
||||
"steps": [
|
||||
{
|
||||
"step_id": "step_01_data_scope_meta",
|
||||
"title": "Session starts with a human company-scope answer",
|
||||
"question": "по какой компании мы сейчас работаем?",
|
||||
"required_answer_patterns_all": [
|
||||
"(?i)компан|организац|контур",
|
||||
"(?i)альтернатива плюс|лайсвуд|райм"
|
||||
],
|
||||
"forbidden_answer_patterns": [
|
||||
"(?i)mcp",
|
||||
"(?i)read_only",
|
||||
"(?i)snapshot_items",
|
||||
"(?i)tool_gate_reason",
|
||||
"(?i)living_reason"
|
||||
],
|
||||
"criticality": "critical",
|
||||
"semantic_tags": [
|
||||
"data_scope_meta",
|
||||
"multi_company_entry"
|
||||
]
|
||||
},
|
||||
{
|
||||
"step_id": "step_02_choose_organization_after_clarification",
|
||||
"title": "Explicit organization selection fixes the contour for the tail session",
|
||||
"question": "Альтернатива Плюс",
|
||||
"required_answer_patterns_all": [
|
||||
"(?i)зафиксир|работаем по|рабочую организац",
|
||||
"(?i)Альтернатива Плюс"
|
||||
],
|
||||
"forbidden_answer_patterns": [
|
||||
"(?i)mcp",
|
||||
"(?i)read_only",
|
||||
"(?i)не могу определить"
|
||||
],
|
||||
"criticality": "critical",
|
||||
"semantic_tags": [
|
||||
"organization_authority",
|
||||
"company_selected"
|
||||
]
|
||||
},
|
||||
{
|
||||
"step_id": "step_03_counterparty_docs_after_choice",
|
||||
"title": "Counterparty-documents root becomes exact after company choice",
|
||||
"question": "по чепурнову покажи все доки",
|
||||
"allowed_reply_types": [
|
||||
"factual"
|
||||
],
|
||||
"expected_intents": [
|
||||
"list_documents_by_counterparty"
|
||||
],
|
||||
"expected_recipe": "address_documents_by_counterparty_v1",
|
||||
"required_direct_answer_patterns_any": [
|
||||
"(?i)чепурнов",
|
||||
"(?i)документ|поступление"
|
||||
],
|
||||
"criticality": "critical",
|
||||
"semantic_tags": [
|
||||
"counterparty_root",
|
||||
"company_selected"
|
||||
]
|
||||
},
|
||||
{
|
||||
"step_id": "step_04_short_counterparty_followup",
|
||||
"title": "Short-name counterparty follow-up keeps the correct target and name",
|
||||
"question": "а по свк",
|
||||
"allowed_reply_types": [
|
||||
"factual",
|
||||
"factual_with_explanation"
|
||||
],
|
||||
"expected_intents": [
|
||||
"list_documents_by_counterparty"
|
||||
],
|
||||
"required_direct_answer_patterns_any": [
|
||||
"(?i)свк|группа свк",
|
||||
"(?i)документ|поступление"
|
||||
],
|
||||
"forbidden_direct_answer_patterns": [
|
||||
"(?i)уточните организац",
|
||||
"(?i)контрагент: группа\\s+найдено",
|
||||
"(?i)mcp"
|
||||
],
|
||||
"criticality": "important",
|
||||
"semantic_tags": [
|
||||
"counterparty_followup",
|
||||
"display_label_integrity"
|
||||
]
|
||||
},
|
||||
{
|
||||
"step_id": "step_05_inventory_today_after_counterparty_tail",
|
||||
"title": "Inventory pivot after counterparty docs keeps the selected organization",
|
||||
"question": "а сейчас у нас есть что на складе?",
|
||||
"allowed_reply_types": [
|
||||
"factual"
|
||||
],
|
||||
"expected_intents": [
|
||||
"inventory_on_hand_as_of_date"
|
||||
],
|
||||
"required_filters": {
|
||||
"as_of_date": "2026-04-18",
|
||||
"organization": "ООО Альтернатива Плюс"
|
||||
},
|
||||
"required_direct_answer_patterns_any": [
|
||||
"(?i)на складе|остат",
|
||||
"18\\.04\\.2026"
|
||||
],
|
||||
"forbidden_direct_answer_patterns": [
|
||||
"(?i)уточните организац",
|
||||
"(?i)по какой компании"
|
||||
],
|
||||
"criticality": "critical",
|
||||
"semantic_tags": [
|
||||
"inventory_root",
|
||||
"cross_domain_pivot"
|
||||
]
|
||||
},
|
||||
{
|
||||
"step_id": "step_06_open_items_account_60_august_2022",
|
||||
"title": "Account 60 tails stay exact after the counterparty-to-inventory pivot",
|
||||
"question": "хвосты покажи по счету 60 на август 2022",
|
||||
"allowed_reply_types": [
|
||||
"factual",
|
||||
"factual_with_explanation"
|
||||
],
|
||||
"expected_intents": [
|
||||
"open_items_by_counterparty_or_contract"
|
||||
],
|
||||
"required_filters": {
|
||||
"account": "60",
|
||||
"period_from": "2022-08-01",
|
||||
"period_to": "2022-08-31",
|
||||
"as_of_date": "2022-08-31"
|
||||
},
|
||||
"required_direct_answer_patterns_any": [
|
||||
"(?i)счету 60|счёту 60",
|
||||
"(?i)хвост|открыт|не найдено"
|
||||
],
|
||||
"criticality": "critical",
|
||||
"semantic_tags": [
|
||||
"settlements_account_60",
|
||||
"late_session_tail"
|
||||
]
|
||||
},
|
||||
{
|
||||
"step_id": "step_07_inventory_aging_old_purchases",
|
||||
"title": "Old-purchase inventory aging remains reachable late in the same session",
|
||||
"question": "Есть ли остатки товара, которые закупались очень давно",
|
||||
"allowed_reply_types": [
|
||||
"factual",
|
||||
"factual_with_explanation"
|
||||
],
|
||||
"expected_intents": [
|
||||
"inventory_aging_by_purchase_date"
|
||||
],
|
||||
"required_direct_answer_patterns_any": [
|
||||
"(?i)стар|давно|ранней первой закупк",
|
||||
"(?i)остат|закуп"
|
||||
],
|
||||
"criticality": "critical",
|
||||
"semantic_tags": [
|
||||
"inventory_aging",
|
||||
"late_session_stability"
|
||||
]
|
||||
},
|
||||
{
|
||||
"step_id": "step_08_inventory_may_2020_after_aging",
|
||||
"title": "Historical inventory root restores a concrete month after the aging branch",
|
||||
"question": "Какие конкретно номенклатуры формируют остаток по складу на май 2020",
|
||||
"allowed_reply_types": [
|
||||
"factual"
|
||||
],
|
||||
"expected_intents": [
|
||||
"inventory_on_hand_as_of_date"
|
||||
],
|
||||
"required_filters": {
|
||||
"as_of_date": "2020-05-31",
|
||||
"period_from": "2020-05-01",
|
||||
"period_to": "2020-05-31",
|
||||
"organization": "ООО Альтернатива Плюс"
|
||||
},
|
||||
"required_direct_answer_patterns_any": [
|
||||
"31\\.05\\.2020",
|
||||
"(?i)позици|остат"
|
||||
],
|
||||
"criticality": "critical",
|
||||
"semantic_tags": [
|
||||
"inventory_root",
|
||||
"historical_restore"
|
||||
]
|
||||
},
|
||||
{
|
||||
"step_id": "step_09_company_activity_age_tail",
|
||||
"title": "Organization activity age still works at the tail of the mixed session",
|
||||
"question": "а по Альтернативе Плюс сколько лет активности в базе 1С?",
|
||||
"allowed_reply_types": [
|
||||
"factual",
|
||||
"factual_with_explanation",
|
||||
"partial_coverage"
|
||||
],
|
||||
"expected_intents": [
|
||||
"counterparty_activity_lifecycle"
|
||||
],
|
||||
"expected_recipe": "address_counterparty_activity_lifecycle_v1",
|
||||
"required_direct_answer_patterns_any": [
|
||||
"(?i)активност",
|
||||
"(?i)первая подтвержденная|последняя подтвержденная|лет"
|
||||
],
|
||||
"forbidden_direct_answer_patterns": [
|
||||
"(?i)не найден контрагент",
|
||||
"(?i)уточните точное наименование организации"
|
||||
],
|
||||
"criticality": "critical",
|
||||
"semantic_tags": [
|
||||
"organization_activity_age",
|
||||
"tail_authority_proof"
|
||||
]
|
||||
},
|
||||
{
|
||||
"step_id": "step_10_company_activity_assessment_tail",
|
||||
"title": "Tail activity assessment stays business-first instead of collapsing to garbage",
|
||||
"question": "Как ты оценишь деятельность компании?",
|
||||
"allowed_reply_types": [
|
||||
"factual",
|
||||
"factual_with_explanation",
|
||||
"partial_coverage"
|
||||
],
|
||||
"required_direct_answer_patterns_any": [
|
||||
"(?i)коротко|активн",
|
||||
"(?i)операц|заказчик|активност|последняя активность"
|
||||
],
|
||||
"forbidden_direct_answer_patterns": [
|
||||
"(?i)mcp",
|
||||
"(?i)read_only",
|
||||
"(?i)tool_gate_reason"
|
||||
],
|
||||
"criticality": "important",
|
||||
"semantic_tags": [
|
||||
"activity_assessment",
|
||||
"tail_quality"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user