1054 lines
51 KiB
JSON
1054 lines
51 KiB
JSON
{
|
||
"schema_version": "assistant_session_log_v1",
|
||
"session_id": "asst-Swd2bOXc9k",
|
||
"started_at": "2026-03-25T20:41:08.755Z",
|
||
"updated_at": "2026-03-25T20:41:08.777Z",
|
||
"counters": {
|
||
"total_messages": 2,
|
||
"user_messages": 1,
|
||
"assistant_messages": 1
|
||
},
|
||
"trace_ids": [
|
||
"3Vy28BCeoTkRgj"
|
||
],
|
||
"reply_types": [
|
||
"clarification_required"
|
||
],
|
||
"investigation_state": {
|
||
"schema_version": "investigation_state_v1",
|
||
"session_id": "asst-Swd2bOXc9k",
|
||
"status": "active",
|
||
"turn_index": 1,
|
||
"updated_at": "2026-03-25T20:41:08.777Z",
|
||
"question_id": "msg-OtUdkNvACm",
|
||
"focus": {
|
||
"domain": "live_mcp_drilldown",
|
||
"period": null,
|
||
"primary_accounts": [],
|
||
"active_query_subject": "Что не так по документ #123?"
|
||
},
|
||
"narrowing_status": "not_needed",
|
||
"evidence_refs": [],
|
||
"open_uncertainties": [
|
||
"Добавьте GUID документа/объекта для source-of-record проверки.",
|
||
"Broad query lacks enough support for even a limited factual output."
|
||
],
|
||
"last_answer_mode": "clarification_required",
|
||
"followup_context": {
|
||
"previous_question_id": null,
|
||
"last_user_message": "Что не так по документ #123?",
|
||
"referenced_requirement_ids": [
|
||
"R1"
|
||
]
|
||
},
|
||
"query_mode_hint": "direct_answer"
|
||
},
|
||
"turns": [
|
||
{
|
||
"turn_id": "turn-1",
|
||
"started_at": "2026-03-25T20:41:08.755Z",
|
||
"completed_at": "2026-03-25T20:41:08.777Z",
|
||
"human_block": "Вопрос: Что не так по документ #123?\nПонято как: Что не так по документ #123?\nДекомпозиция:\n- F1: Что не так по документ #123?; execution_readiness=executable_with_soft_assumptions; route_status=routed; route=live_mcp_drilldown\nОтвет: Answer summary: Нужны уточнения: без сужения strong factual вывод ненадежен.\n\nDirect answer:\nТекущий запрос слишком широкий или недоопределен; надежный factual вывод пока невозможен.\n\nMechanism block:\n- status=unresolved\n- mechanism_note is intentionally omitted due to weak or missing mechanism evidence\n\nEvidence block:\n- coverage=coverage_full_or_near_full\n- evidence_ids=none\n\nUncertainty block:\n- open: missing_anchor:period\n- open: missing_anchor:account\n- open: missing_anchor:counterparty\n- limit: Добавьте GUID документа/объекта для source-of-record проверки.\n- limit: Broad query lacks enough support for even a limited factual output.\n- limit: Нет explainable-сигналов why_included РІ результатах выборки.\n- limit: Minimum evidence gate failed for current scope.\n\nNext step block:\n- action: Дайте недостающие якоря (период/счет/объект), иначе сильный factual вывод невозможен.\n- action: Добавьте более узкий контекст: тип отклонения, группу документов и бизнес-участок.\n- clarify: Уточните период проверки (например, 2020-06).\n- clarify: Уточните счет или группу счетов (например, 19, 60, 62).\n- clarify: Укажите контрагента или группу контрагентов.\n- clarify: Уточните тип отклонения: разрыв цепочки, неверный документ или аномальный риск.",
|
||
"human_readable": {
|
||
"question_raw": "Что не так по документ #123?",
|
||
"question_understood": "Что не так по документ #123?",
|
||
"decomposition": [
|
||
"F1: Что не так по документ #123?; execution_readiness=executable_with_soft_assumptions; route_status=routed; route=live_mcp_drilldown"
|
||
],
|
||
"answer": "Answer summary: Нужны уточнения: без сужения strong factual вывод ненадежен.\n\nDirect answer:\nТекущий запрос слишком широкий или недоопределен; надежный factual вывод пока невозможен.\n\nMechanism block:\n- status=unresolved\n- mechanism_note is intentionally omitted due to weak or missing mechanism evidence\n\nEvidence block:\n- coverage=coverage_full_or_near_full\n- evidence_ids=none\n\nUncertainty block:\n- open: missing_anchor:period\n- open: missing_anchor:account\n- open: missing_anchor:counterparty\n- limit: Добавьте GUID документа/объекта для source-of-record проверки.\n- limit: Broad query lacks enough support for even a limited factual output.\n- limit: Нет explainable-сигналов why_included РІ результатах выборки.\n- limit: Minimum evidence gate failed for current scope.\n\nNext step block:\n- action: Дайте недостающие якоря (период/счет/объект), иначе сильный factual вывод невозможен.\n- action: Добавьте более узкий контекст: тип отклонения, группу документов и бизнес-участок.\n- clarify: Уточните период проверки (например, 2020-06).\n- clarify: Уточните счет или группу счетов (например, 19, 60, 62).\n- clarify: Укажите контрагента или группу контрагентов.\n- clarify: Уточните тип отклонения: разрыв цепочки, неверный документ или аномальный риск.",
|
||
"reply_type": "clarification_required"
|
||
},
|
||
"technical_json": {
|
||
"trace_id": "3Vy28BCeoTkRgj",
|
||
"user_message": {
|
||
"message_id": "msg-OtUdkNvACm",
|
||
"session_id": "asst-Swd2bOXc9k",
|
||
"role": "user",
|
||
"text": "Что не так по документ #123?",
|
||
"reply_type": null,
|
||
"created_at": "2026-03-25T20:41:08.755Z",
|
||
"trace_id": null,
|
||
"debug": null
|
||
},
|
||
"assistant_message": {
|
||
"message_id": "msg-s60FJ6nmVg",
|
||
"session_id": "asst-Swd2bOXc9k",
|
||
"role": "assistant",
|
||
"text": "Answer summary: Нужны уточнения: без сужения strong factual вывод ненадежен.\n\nDirect answer:\nТекущий запрос слишком широкий или недоопределен; надежный factual вывод пока невозможен.\n\nMechanism block:\n- status=unresolved\n- mechanism_note is intentionally omitted due to weak or missing mechanism evidence\n\nEvidence block:\n- coverage=coverage_full_or_near_full\n- evidence_ids=none\n\nUncertainty block:\n- open: missing_anchor:period\n- open: missing_anchor:account\n- open: missing_anchor:counterparty\n- limit: Добавьте GUID документа/объекта для source-of-record проверки.\n- limit: Broad query lacks enough support for even a limited factual output.\n- limit: Нет explainable-сигналов why_included РІ результатах выборки.\n- limit: Minimum evidence gate failed for current scope.\n\nNext step block:\n- action: Дайте недостающие якоря (период/счет/объект), иначе сильный factual вывод невозможен.\n- action: Добавьте более узкий контекст: тип отклонения, группу документов и бизнес-участок.\n- clarify: Уточните период проверки (например, 2020-06).\n- clarify: Уточните счет или группу счетов (например, 19, 60, 62).\n- clarify: Укажите контрагента или группу контрагентов.\n- clarify: Уточните тип отклонения: разрыв цепочки, неверный документ или аномальный риск.",
|
||
"reply_type": "clarification_required",
|
||
"created_at": "2026-03-25T20:41:08.777Z",
|
||
"trace_id": "3Vy28BCeoTkRgj",
|
||
"debug": {
|
||
"trace_id": "3Vy28BCeoTkRgj",
|
||
"prompt_version": "normalizer_v2_0_2",
|
||
"schema_version": "v2_0_2",
|
||
"fallback_type": "clarification",
|
||
"route_summary": {
|
||
"mode": "deterministic_v2",
|
||
"message_in_scope": true,
|
||
"scope_confidence": "high",
|
||
"planner": {
|
||
"total_fragments": 1,
|
||
"in_scope_fragments": 1,
|
||
"out_of_scope_fragments": 0,
|
||
"discarded_fragments": 0,
|
||
"contains_multiple_tasks": false
|
||
},
|
||
"decisions": [
|
||
{
|
||
"fragment_id": "F1",
|
||
"domain_relevance": "in_scope",
|
||
"business_scope": "company_specific_accounting",
|
||
"candidate_labels": [
|
||
"drilldown_explain"
|
||
],
|
||
"decision_flags": {
|
||
"has_multi_entity_scope": false,
|
||
"asks_for_chain_explanation": false,
|
||
"asks_for_ranking_or_top": false,
|
||
"asks_for_period_summary": false,
|
||
"asks_for_rule_check": false,
|
||
"asks_for_anomaly_scan": false,
|
||
"asks_for_exact_object_trace": true,
|
||
"asks_for_evidence": true,
|
||
"mentions_period_close_context": false
|
||
},
|
||
"execution_readiness": "executable_with_soft_assumptions",
|
||
"clarification_reason": null,
|
||
"soft_assumption_used": [
|
||
"company_scope_defaulted"
|
||
],
|
||
"route_status": "routed",
|
||
"no_route_reason": null,
|
||
"route": "live_mcp_drilldown",
|
||
"reason": "Exact object trace requested."
|
||
}
|
||
],
|
||
"fallback": {
|
||
"type": "none",
|
||
"message": null
|
||
}
|
||
},
|
||
"fragments": [
|
||
{
|
||
"fragment_id": "F1",
|
||
"raw_fragment_text": "Что не так по документ #123?",
|
||
"normalized_fragment_text": "Что не так по документ #123?",
|
||
"domain_relevance": "in_scope",
|
||
"business_scope": "company_specific_accounting",
|
||
"entity_hints": [],
|
||
"account_hints": [],
|
||
"document_hints": [
|
||
"документ"
|
||
],
|
||
"register_hints": [],
|
||
"time_scope": {
|
||
"type": "missing",
|
||
"value": null,
|
||
"confidence": "low"
|
||
},
|
||
"flags": {
|
||
"has_multi_entity_scope": false,
|
||
"asks_for_chain_explanation": false,
|
||
"asks_for_ranking_or_top": false,
|
||
"asks_for_period_summary": false,
|
||
"asks_for_rule_check": false,
|
||
"asks_for_anomaly_scan": false,
|
||
"asks_for_exact_object_trace": true,
|
||
"asks_for_evidence": true,
|
||
"mentions_period_close_context": false
|
||
},
|
||
"candidate_labels": [
|
||
"drilldown_explain"
|
||
],
|
||
"confidence": "high",
|
||
"execution_readiness": "executable_with_soft_assumptions",
|
||
"clarification_reason": null,
|
||
"soft_assumption_used": [
|
||
"company_scope_defaulted"
|
||
],
|
||
"route_status": "routed",
|
||
"no_route_reason": null
|
||
}
|
||
],
|
||
"requirements_extracted": [
|
||
{
|
||
"requirement_id": "R1",
|
||
"source_fragment_id": "F1",
|
||
"requirement_text": "Что не так по документ #123?",
|
||
"subject_tokens": [
|
||
"document"
|
||
],
|
||
"status": "covered",
|
||
"route": "live_mcp_drilldown"
|
||
}
|
||
],
|
||
"coverage_report": {
|
||
"requirements_total": 1,
|
||
"requirements_covered": 1,
|
||
"requirements_uncovered": [],
|
||
"requirements_partially_covered": [],
|
||
"clarification_needed_for": [],
|
||
"out_of_scope_requirements": []
|
||
},
|
||
"routes": [
|
||
{
|
||
"fragment_id": "F1",
|
||
"route": "live_mcp_drilldown",
|
||
"reason": "Exact object trace requested.",
|
||
"route_status": "routed",
|
||
"no_route_reason": null,
|
||
"clarification_reason": null,
|
||
"execution_readiness": "executable_with_soft_assumptions"
|
||
}
|
||
],
|
||
"retrieval_status": [
|
||
{
|
||
"fragment_id": "F1",
|
||
"requirement_ids": [
|
||
"R1"
|
||
],
|
||
"route": "live_mcp_drilldown",
|
||
"status": "empty",
|
||
"result_type": "object"
|
||
}
|
||
],
|
||
"retrieval_results": [
|
||
{
|
||
"fragment_id": "F1",
|
||
"requirement_ids": [
|
||
"R1"
|
||
],
|
||
"route": "live_mcp_drilldown",
|
||
"status": "empty",
|
||
"result_type": "object",
|
||
"items": [],
|
||
"summary": {
|
||
"reason": "guid_not_provided",
|
||
"degraded_to": "clarification",
|
||
"broad_query_detected": true,
|
||
"broadness_level": "medium",
|
||
"scope_confidence_hint": "medium",
|
||
"narrowing_strength": "medium",
|
||
"broad_guard_applied": true,
|
||
"minimum_evidence_failed": true,
|
||
"anti_generic_guard_applied": false,
|
||
"broad_result_flag": true
|
||
},
|
||
"evidence": [],
|
||
"why_included": [],
|
||
"selection_reason": [
|
||
"Для drilldown требуется GUID в тексте запроса.",
|
||
"Route-aware minimum evidence gate requires clarification before retrieval output."
|
||
],
|
||
"risk_factors": [],
|
||
"business_interpretation": [
|
||
"Без GUID точечный drilldown невозможен."
|
||
],
|
||
"confidence": "low",
|
||
"limitations": [
|
||
"Добавьте GUID документа/объекта для source-of-record проверки.",
|
||
"Broad query lacks enough support for even a limited factual output."
|
||
],
|
||
"errors": []
|
||
}
|
||
],
|
||
"answer_grounding_check": {
|
||
"status": "grounded",
|
||
"route_subject_match": true,
|
||
"missing_requirements": [],
|
||
"reasons": [
|
||
"Нет explainable-сигналов why_included в результатах выборки."
|
||
],
|
||
"why_included_summary": [],
|
||
"selection_reason_summary": [
|
||
"Для drilldown требуется GUID в тексте запроса.",
|
||
"Route-aware minimum evidence gate requires clarification before retrieval output."
|
||
]
|
||
},
|
||
"dropped_intent_segments": [],
|
||
"answer_structure_v11": {
|
||
"schema_version": "answer_structure_v1_1",
|
||
"answer_summary": "Нужны уточнения: без сужения strong factual вывод ненадежен.",
|
||
"direct_answer": "Текущий запрос слишком широкий или недоопределен; надежный factual вывод пока невозможен.",
|
||
"mechanism_block": {
|
||
"status": "unresolved",
|
||
"mechanism_notes": [],
|
||
"limitation_reason_codes": []
|
||
},
|
||
"evidence_block": {
|
||
"evidence_ids": [],
|
||
"source_refs": [],
|
||
"mechanism_notes": [],
|
||
"coverage_note": "coverage_full_or_near_full"
|
||
},
|
||
"uncertainty_block": {
|
||
"open_uncertainties": [
|
||
"missing_anchor:period",
|
||
"missing_anchor:account",
|
||
"missing_anchor:counterparty"
|
||
],
|
||
"limitations": [
|
||
"Добавьте GUID документа/объекта для source-of-record проверки.",
|
||
"Broad query lacks enough support for even a limited factual output.",
|
||
"Нет explainable-сигналов why_included в результатах выборки.",
|
||
"Minimum evidence gate failed for current scope."
|
||
]
|
||
},
|
||
"next_step_block": {
|
||
"recommended_actions": [
|
||
"Дайте недостающие якоря (период/счет/объект), иначе сильный factual вывод невозможен.",
|
||
"Добавьте более узкий контекст: тип отклонения, группу документов и бизнес-участок."
|
||
],
|
||
"clarification_questions": [
|
||
"Уточните период проверки (например, 2020-06).",
|
||
"Уточните счет или группу счетов (например, 19, 60, 62).",
|
||
"Укажите контрагента или группу контрагентов.",
|
||
"Уточните тип отклонения: разрыв цепочки, неверный документ или аномальный риск."
|
||
]
|
||
}
|
||
},
|
||
"investigation_state_snapshot": {
|
||
"schema_version": "investigation_state_v1",
|
||
"session_id": "asst-Swd2bOXc9k",
|
||
"status": "active",
|
||
"turn_index": 1,
|
||
"updated_at": "2026-03-25T20:41:08.777Z",
|
||
"question_id": "msg-OtUdkNvACm",
|
||
"focus": {
|
||
"domain": "live_mcp_drilldown",
|
||
"period": null,
|
||
"primary_accounts": [],
|
||
"active_query_subject": "Что не так по документ #123?"
|
||
},
|
||
"narrowing_status": "not_needed",
|
||
"evidence_refs": [],
|
||
"open_uncertainties": [
|
||
"Добавьте GUID документа/объекта для source-of-record проверки.",
|
||
"Broad query lacks enough support for even a limited factual output."
|
||
],
|
||
"last_answer_mode": "clarification_required",
|
||
"followup_context": {
|
||
"previous_question_id": null,
|
||
"last_user_message": "Что не так по документ #123?",
|
||
"referenced_requirement_ids": [
|
||
"R1"
|
||
]
|
||
},
|
||
"query_mode_hint": "direct_answer"
|
||
},
|
||
"normalized": {
|
||
"schema_version": "normalized_query_v2_0_2",
|
||
"user_message_raw": "Что не так по документ #123?",
|
||
"message_in_scope": true,
|
||
"scope_confidence": "high",
|
||
"contains_multiple_tasks": false,
|
||
"fragments": [
|
||
{
|
||
"fragment_id": "F1",
|
||
"raw_fragment_text": "Что не так по документ #123?",
|
||
"normalized_fragment_text": "Что не так по документ #123?",
|
||
"domain_relevance": "in_scope",
|
||
"business_scope": "company_specific_accounting",
|
||
"entity_hints": [],
|
||
"account_hints": [],
|
||
"document_hints": [
|
||
"документ"
|
||
],
|
||
"register_hints": [],
|
||
"time_scope": {
|
||
"type": "missing",
|
||
"value": null,
|
||
"confidence": "low"
|
||
},
|
||
"flags": {
|
||
"has_multi_entity_scope": false,
|
||
"asks_for_chain_explanation": false,
|
||
"asks_for_ranking_or_top": false,
|
||
"asks_for_period_summary": false,
|
||
"asks_for_rule_check": false,
|
||
"asks_for_anomaly_scan": false,
|
||
"asks_for_exact_object_trace": true,
|
||
"asks_for_evidence": true,
|
||
"mentions_period_close_context": false
|
||
},
|
||
"candidate_labels": [
|
||
"drilldown_explain"
|
||
],
|
||
"confidence": "high",
|
||
"execution_readiness": "executable_with_soft_assumptions",
|
||
"clarification_reason": null,
|
||
"soft_assumption_used": [
|
||
"company_scope_defaulted"
|
||
],
|
||
"route_status": "routed",
|
||
"no_route_reason": null
|
||
}
|
||
],
|
||
"discarded_fragments": [],
|
||
"global_notes": {
|
||
"needs_clarification": false,
|
||
"clarification_reason": null
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"debug": {
|
||
"trace_id": "3Vy28BCeoTkRgj",
|
||
"prompt_version": "normalizer_v2_0_2",
|
||
"schema_version": "v2_0_2",
|
||
"fallback_type": "clarification",
|
||
"route_summary": {
|
||
"mode": "deterministic_v2",
|
||
"message_in_scope": true,
|
||
"scope_confidence": "high",
|
||
"planner": {
|
||
"total_fragments": 1,
|
||
"in_scope_fragments": 1,
|
||
"out_of_scope_fragments": 0,
|
||
"discarded_fragments": 0,
|
||
"contains_multiple_tasks": false
|
||
},
|
||
"decisions": [
|
||
{
|
||
"fragment_id": "F1",
|
||
"domain_relevance": "in_scope",
|
||
"business_scope": "company_specific_accounting",
|
||
"candidate_labels": [
|
||
"drilldown_explain"
|
||
],
|
||
"decision_flags": {
|
||
"has_multi_entity_scope": false,
|
||
"asks_for_chain_explanation": false,
|
||
"asks_for_ranking_or_top": false,
|
||
"asks_for_period_summary": false,
|
||
"asks_for_rule_check": false,
|
||
"asks_for_anomaly_scan": false,
|
||
"asks_for_exact_object_trace": true,
|
||
"asks_for_evidence": true,
|
||
"mentions_period_close_context": false
|
||
},
|
||
"execution_readiness": "executable_with_soft_assumptions",
|
||
"clarification_reason": null,
|
||
"soft_assumption_used": [
|
||
"company_scope_defaulted"
|
||
],
|
||
"route_status": "routed",
|
||
"no_route_reason": null,
|
||
"route": "live_mcp_drilldown",
|
||
"reason": "Exact object trace requested."
|
||
}
|
||
],
|
||
"fallback": {
|
||
"type": "none",
|
||
"message": null
|
||
}
|
||
},
|
||
"fragments": [
|
||
{
|
||
"fragment_id": "F1",
|
||
"raw_fragment_text": "Что не так по документ #123?",
|
||
"normalized_fragment_text": "Что не так по документ #123?",
|
||
"domain_relevance": "in_scope",
|
||
"business_scope": "company_specific_accounting",
|
||
"entity_hints": [],
|
||
"account_hints": [],
|
||
"document_hints": [
|
||
"документ"
|
||
],
|
||
"register_hints": [],
|
||
"time_scope": {
|
||
"type": "missing",
|
||
"value": null,
|
||
"confidence": "low"
|
||
},
|
||
"flags": {
|
||
"has_multi_entity_scope": false,
|
||
"asks_for_chain_explanation": false,
|
||
"asks_for_ranking_or_top": false,
|
||
"asks_for_period_summary": false,
|
||
"asks_for_rule_check": false,
|
||
"asks_for_anomaly_scan": false,
|
||
"asks_for_exact_object_trace": true,
|
||
"asks_for_evidence": true,
|
||
"mentions_period_close_context": false
|
||
},
|
||
"candidate_labels": [
|
||
"drilldown_explain"
|
||
],
|
||
"confidence": "high",
|
||
"execution_readiness": "executable_with_soft_assumptions",
|
||
"clarification_reason": null,
|
||
"soft_assumption_used": [
|
||
"company_scope_defaulted"
|
||
],
|
||
"route_status": "routed",
|
||
"no_route_reason": null
|
||
}
|
||
],
|
||
"requirements_extracted": [
|
||
{
|
||
"requirement_id": "R1",
|
||
"source_fragment_id": "F1",
|
||
"requirement_text": "Что не так по документ #123?",
|
||
"subject_tokens": [
|
||
"document"
|
||
],
|
||
"status": "covered",
|
||
"route": "live_mcp_drilldown"
|
||
}
|
||
],
|
||
"coverage_report": {
|
||
"requirements_total": 1,
|
||
"requirements_covered": 1,
|
||
"requirements_uncovered": [],
|
||
"requirements_partially_covered": [],
|
||
"clarification_needed_for": [],
|
||
"out_of_scope_requirements": []
|
||
},
|
||
"routes": [
|
||
{
|
||
"fragment_id": "F1",
|
||
"route": "live_mcp_drilldown",
|
||
"reason": "Exact object trace requested.",
|
||
"route_status": "routed",
|
||
"no_route_reason": null,
|
||
"clarification_reason": null,
|
||
"execution_readiness": "executable_with_soft_assumptions"
|
||
}
|
||
],
|
||
"retrieval_status": [
|
||
{
|
||
"fragment_id": "F1",
|
||
"requirement_ids": [
|
||
"R1"
|
||
],
|
||
"route": "live_mcp_drilldown",
|
||
"status": "empty",
|
||
"result_type": "object"
|
||
}
|
||
],
|
||
"retrieval_results": [
|
||
{
|
||
"fragment_id": "F1",
|
||
"requirement_ids": [
|
||
"R1"
|
||
],
|
||
"route": "live_mcp_drilldown",
|
||
"status": "empty",
|
||
"result_type": "object",
|
||
"items": [],
|
||
"summary": {
|
||
"reason": "guid_not_provided",
|
||
"degraded_to": "clarification",
|
||
"broad_query_detected": true,
|
||
"broadness_level": "medium",
|
||
"scope_confidence_hint": "medium",
|
||
"narrowing_strength": "medium",
|
||
"broad_guard_applied": true,
|
||
"minimum_evidence_failed": true,
|
||
"anti_generic_guard_applied": false,
|
||
"broad_result_flag": true
|
||
},
|
||
"evidence": [],
|
||
"why_included": [],
|
||
"selection_reason": [
|
||
"Для drilldown требуется GUID в тексте запроса.",
|
||
"Route-aware minimum evidence gate requires clarification before retrieval output."
|
||
],
|
||
"risk_factors": [],
|
||
"business_interpretation": [
|
||
"Без GUID точечный drilldown невозможен."
|
||
],
|
||
"confidence": "low",
|
||
"limitations": [
|
||
"Добавьте GUID документа/объекта для source-of-record проверки.",
|
||
"Broad query lacks enough support for even a limited factual output."
|
||
],
|
||
"errors": []
|
||
}
|
||
],
|
||
"answer_grounding_check": {
|
||
"status": "grounded",
|
||
"route_subject_match": true,
|
||
"missing_requirements": [],
|
||
"reasons": [
|
||
"Нет explainable-сигналов why_included в результатах выборки."
|
||
],
|
||
"why_included_summary": [],
|
||
"selection_reason_summary": [
|
||
"Для drilldown требуется GUID в тексте запроса.",
|
||
"Route-aware minimum evidence gate requires clarification before retrieval output."
|
||
]
|
||
},
|
||
"dropped_intent_segments": [],
|
||
"answer_structure_v11": {
|
||
"schema_version": "answer_structure_v1_1",
|
||
"answer_summary": "Нужны уточнения: без сужения strong factual вывод ненадежен.",
|
||
"direct_answer": "Текущий запрос слишком широкий или недоопределен; надежный factual вывод пока невозможен.",
|
||
"mechanism_block": {
|
||
"status": "unresolved",
|
||
"mechanism_notes": [],
|
||
"limitation_reason_codes": []
|
||
},
|
||
"evidence_block": {
|
||
"evidence_ids": [],
|
||
"source_refs": [],
|
||
"mechanism_notes": [],
|
||
"coverage_note": "coverage_full_or_near_full"
|
||
},
|
||
"uncertainty_block": {
|
||
"open_uncertainties": [
|
||
"missing_anchor:period",
|
||
"missing_anchor:account",
|
||
"missing_anchor:counterparty"
|
||
],
|
||
"limitations": [
|
||
"Добавьте GUID документа/объекта для source-of-record проверки.",
|
||
"Broad query lacks enough support for even a limited factual output.",
|
||
"Нет explainable-сигналов why_included в результатах выборки.",
|
||
"Minimum evidence gate failed for current scope."
|
||
]
|
||
},
|
||
"next_step_block": {
|
||
"recommended_actions": [
|
||
"Дайте недостающие якоря (период/счет/объект), иначе сильный factual вывод невозможен.",
|
||
"Добавьте более узкий контекст: тип отклонения, группу документов и бизнес-участок."
|
||
],
|
||
"clarification_questions": [
|
||
"Уточните период проверки (например, 2020-06).",
|
||
"Уточните счет или группу счетов (например, 19, 60, 62).",
|
||
"Укажите контрагента или группу контрагентов.",
|
||
"Уточните тип отклонения: разрыв цепочки, неверный документ или аномальный риск."
|
||
]
|
||
}
|
||
},
|
||
"investigation_state_snapshot": {
|
||
"schema_version": "investigation_state_v1",
|
||
"session_id": "asst-Swd2bOXc9k",
|
||
"status": "active",
|
||
"turn_index": 1,
|
||
"updated_at": "2026-03-25T20:41:08.777Z",
|
||
"question_id": "msg-OtUdkNvACm",
|
||
"focus": {
|
||
"domain": "live_mcp_drilldown",
|
||
"period": null,
|
||
"primary_accounts": [],
|
||
"active_query_subject": "Что не так по документ #123?"
|
||
},
|
||
"narrowing_status": "not_needed",
|
||
"evidence_refs": [],
|
||
"open_uncertainties": [
|
||
"Добавьте GUID документа/объекта для source-of-record проверки.",
|
||
"Broad query lacks enough support for even a limited factual output."
|
||
],
|
||
"last_answer_mode": "clarification_required",
|
||
"followup_context": {
|
||
"previous_question_id": null,
|
||
"last_user_message": "Что не так по документ #123?",
|
||
"referenced_requirement_ids": [
|
||
"R1"
|
||
]
|
||
},
|
||
"query_mode_hint": "direct_answer"
|
||
},
|
||
"normalized": {
|
||
"schema_version": "normalized_query_v2_0_2",
|
||
"user_message_raw": "Что не так по документ #123?",
|
||
"message_in_scope": true,
|
||
"scope_confidence": "high",
|
||
"contains_multiple_tasks": false,
|
||
"fragments": [
|
||
{
|
||
"fragment_id": "F1",
|
||
"raw_fragment_text": "Что не так по документ #123?",
|
||
"normalized_fragment_text": "Что не так по документ #123?",
|
||
"domain_relevance": "in_scope",
|
||
"business_scope": "company_specific_accounting",
|
||
"entity_hints": [],
|
||
"account_hints": [],
|
||
"document_hints": [
|
||
"документ"
|
||
],
|
||
"register_hints": [],
|
||
"time_scope": {
|
||
"type": "missing",
|
||
"value": null,
|
||
"confidence": "low"
|
||
},
|
||
"flags": {
|
||
"has_multi_entity_scope": false,
|
||
"asks_for_chain_explanation": false,
|
||
"asks_for_ranking_or_top": false,
|
||
"asks_for_period_summary": false,
|
||
"asks_for_rule_check": false,
|
||
"asks_for_anomaly_scan": false,
|
||
"asks_for_exact_object_trace": true,
|
||
"asks_for_evidence": true,
|
||
"mentions_period_close_context": false
|
||
},
|
||
"candidate_labels": [
|
||
"drilldown_explain"
|
||
],
|
||
"confidence": "high",
|
||
"execution_readiness": "executable_with_soft_assumptions",
|
||
"clarification_reason": null,
|
||
"soft_assumption_used": [
|
||
"company_scope_defaulted"
|
||
],
|
||
"route_status": "routed",
|
||
"no_route_reason": null
|
||
}
|
||
],
|
||
"discarded_fragments": [],
|
||
"global_notes": {
|
||
"needs_clarification": false,
|
||
"clarification_reason": null
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
],
|
||
"conversation": [
|
||
{
|
||
"message_id": "msg-OtUdkNvACm",
|
||
"session_id": "asst-Swd2bOXc9k",
|
||
"role": "user",
|
||
"text": "Что не так по документ #123?",
|
||
"reply_type": null,
|
||
"created_at": "2026-03-25T20:41:08.755Z",
|
||
"trace_id": null,
|
||
"debug": null
|
||
},
|
||
{
|
||
"message_id": "msg-s60FJ6nmVg",
|
||
"session_id": "asst-Swd2bOXc9k",
|
||
"role": "assistant",
|
||
"text": "Answer summary: Нужны уточнения: без сужения strong factual вывод ненадежен.\n\nDirect answer:\nТекущий запрос слишком широкий или недоопределен; надежный factual вывод пока невозможен.\n\nMechanism block:\n- status=unresolved\n- mechanism_note is intentionally omitted due to weak or missing mechanism evidence\n\nEvidence block:\n- coverage=coverage_full_or_near_full\n- evidence_ids=none\n\nUncertainty block:\n- open: missing_anchor:period\n- open: missing_anchor:account\n- open: missing_anchor:counterparty\n- limit: Добавьте GUID документа/объекта для source-of-record проверки.\n- limit: Broad query lacks enough support for even a limited factual output.\n- limit: Нет explainable-сигналов why_included РІ результатах выборки.\n- limit: Minimum evidence gate failed for current scope.\n\nNext step block:\n- action: Дайте недостающие якоря (период/счет/объект), иначе сильный factual вывод невозможен.\n- action: Добавьте более узкий контекст: тип отклонения, группу документов и бизнес-участок.\n- clarify: Уточните период проверки (например, 2020-06).\n- clarify: Уточните счет или группу счетов (например, 19, 60, 62).\n- clarify: Укажите контрагента или группу контрагентов.\n- clarify: Уточните тип отклонения: разрыв цепочки, неверный документ или аномальный риск.",
|
||
"reply_type": "clarification_required",
|
||
"created_at": "2026-03-25T20:41:08.777Z",
|
||
"trace_id": "3Vy28BCeoTkRgj",
|
||
"debug": {
|
||
"trace_id": "3Vy28BCeoTkRgj",
|
||
"prompt_version": "normalizer_v2_0_2",
|
||
"schema_version": "v2_0_2",
|
||
"fallback_type": "clarification",
|
||
"route_summary": {
|
||
"mode": "deterministic_v2",
|
||
"message_in_scope": true,
|
||
"scope_confidence": "high",
|
||
"planner": {
|
||
"total_fragments": 1,
|
||
"in_scope_fragments": 1,
|
||
"out_of_scope_fragments": 0,
|
||
"discarded_fragments": 0,
|
||
"contains_multiple_tasks": false
|
||
},
|
||
"decisions": [
|
||
{
|
||
"fragment_id": "F1",
|
||
"domain_relevance": "in_scope",
|
||
"business_scope": "company_specific_accounting",
|
||
"candidate_labels": [
|
||
"drilldown_explain"
|
||
],
|
||
"decision_flags": {
|
||
"has_multi_entity_scope": false,
|
||
"asks_for_chain_explanation": false,
|
||
"asks_for_ranking_or_top": false,
|
||
"asks_for_period_summary": false,
|
||
"asks_for_rule_check": false,
|
||
"asks_for_anomaly_scan": false,
|
||
"asks_for_exact_object_trace": true,
|
||
"asks_for_evidence": true,
|
||
"mentions_period_close_context": false
|
||
},
|
||
"execution_readiness": "executable_with_soft_assumptions",
|
||
"clarification_reason": null,
|
||
"soft_assumption_used": [
|
||
"company_scope_defaulted"
|
||
],
|
||
"route_status": "routed",
|
||
"no_route_reason": null,
|
||
"route": "live_mcp_drilldown",
|
||
"reason": "Exact object trace requested."
|
||
}
|
||
],
|
||
"fallback": {
|
||
"type": "none",
|
||
"message": null
|
||
}
|
||
},
|
||
"fragments": [
|
||
{
|
||
"fragment_id": "F1",
|
||
"raw_fragment_text": "Что не так по документ #123?",
|
||
"normalized_fragment_text": "Что не так по документ #123?",
|
||
"domain_relevance": "in_scope",
|
||
"business_scope": "company_specific_accounting",
|
||
"entity_hints": [],
|
||
"account_hints": [],
|
||
"document_hints": [
|
||
"документ"
|
||
],
|
||
"register_hints": [],
|
||
"time_scope": {
|
||
"type": "missing",
|
||
"value": null,
|
||
"confidence": "low"
|
||
},
|
||
"flags": {
|
||
"has_multi_entity_scope": false,
|
||
"asks_for_chain_explanation": false,
|
||
"asks_for_ranking_or_top": false,
|
||
"asks_for_period_summary": false,
|
||
"asks_for_rule_check": false,
|
||
"asks_for_anomaly_scan": false,
|
||
"asks_for_exact_object_trace": true,
|
||
"asks_for_evidence": true,
|
||
"mentions_period_close_context": false
|
||
},
|
||
"candidate_labels": [
|
||
"drilldown_explain"
|
||
],
|
||
"confidence": "high",
|
||
"execution_readiness": "executable_with_soft_assumptions",
|
||
"clarification_reason": null,
|
||
"soft_assumption_used": [
|
||
"company_scope_defaulted"
|
||
],
|
||
"route_status": "routed",
|
||
"no_route_reason": null
|
||
}
|
||
],
|
||
"requirements_extracted": [
|
||
{
|
||
"requirement_id": "R1",
|
||
"source_fragment_id": "F1",
|
||
"requirement_text": "Что не так по документ #123?",
|
||
"subject_tokens": [
|
||
"document"
|
||
],
|
||
"status": "covered",
|
||
"route": "live_mcp_drilldown"
|
||
}
|
||
],
|
||
"coverage_report": {
|
||
"requirements_total": 1,
|
||
"requirements_covered": 1,
|
||
"requirements_uncovered": [],
|
||
"requirements_partially_covered": [],
|
||
"clarification_needed_for": [],
|
||
"out_of_scope_requirements": []
|
||
},
|
||
"routes": [
|
||
{
|
||
"fragment_id": "F1",
|
||
"route": "live_mcp_drilldown",
|
||
"reason": "Exact object trace requested.",
|
||
"route_status": "routed",
|
||
"no_route_reason": null,
|
||
"clarification_reason": null,
|
||
"execution_readiness": "executable_with_soft_assumptions"
|
||
}
|
||
],
|
||
"retrieval_status": [
|
||
{
|
||
"fragment_id": "F1",
|
||
"requirement_ids": [
|
||
"R1"
|
||
],
|
||
"route": "live_mcp_drilldown",
|
||
"status": "empty",
|
||
"result_type": "object"
|
||
}
|
||
],
|
||
"retrieval_results": [
|
||
{
|
||
"fragment_id": "F1",
|
||
"requirement_ids": [
|
||
"R1"
|
||
],
|
||
"route": "live_mcp_drilldown",
|
||
"status": "empty",
|
||
"result_type": "object",
|
||
"items": [],
|
||
"summary": {
|
||
"reason": "guid_not_provided",
|
||
"degraded_to": "clarification",
|
||
"broad_query_detected": true,
|
||
"broadness_level": "medium",
|
||
"scope_confidence_hint": "medium",
|
||
"narrowing_strength": "medium",
|
||
"broad_guard_applied": true,
|
||
"minimum_evidence_failed": true,
|
||
"anti_generic_guard_applied": false,
|
||
"broad_result_flag": true
|
||
},
|
||
"evidence": [],
|
||
"why_included": [],
|
||
"selection_reason": [
|
||
"Для drilldown требуется GUID в тексте запроса.",
|
||
"Route-aware minimum evidence gate requires clarification before retrieval output."
|
||
],
|
||
"risk_factors": [],
|
||
"business_interpretation": [
|
||
"Без GUID точечный drilldown невозможен."
|
||
],
|
||
"confidence": "low",
|
||
"limitations": [
|
||
"Добавьте GUID документа/объекта для source-of-record проверки.",
|
||
"Broad query lacks enough support for even a limited factual output."
|
||
],
|
||
"errors": []
|
||
}
|
||
],
|
||
"answer_grounding_check": {
|
||
"status": "grounded",
|
||
"route_subject_match": true,
|
||
"missing_requirements": [],
|
||
"reasons": [
|
||
"Нет explainable-сигналов why_included в результатах выборки."
|
||
],
|
||
"why_included_summary": [],
|
||
"selection_reason_summary": [
|
||
"Для drilldown требуется GUID в тексте запроса.",
|
||
"Route-aware minimum evidence gate requires clarification before retrieval output."
|
||
]
|
||
},
|
||
"dropped_intent_segments": [],
|
||
"answer_structure_v11": {
|
||
"schema_version": "answer_structure_v1_1",
|
||
"answer_summary": "Нужны уточнения: без сужения strong factual вывод ненадежен.",
|
||
"direct_answer": "Текущий запрос слишком широкий или недоопределен; надежный factual вывод пока невозможен.",
|
||
"mechanism_block": {
|
||
"status": "unresolved",
|
||
"mechanism_notes": [],
|
||
"limitation_reason_codes": []
|
||
},
|
||
"evidence_block": {
|
||
"evidence_ids": [],
|
||
"source_refs": [],
|
||
"mechanism_notes": [],
|
||
"coverage_note": "coverage_full_or_near_full"
|
||
},
|
||
"uncertainty_block": {
|
||
"open_uncertainties": [
|
||
"missing_anchor:period",
|
||
"missing_anchor:account",
|
||
"missing_anchor:counterparty"
|
||
],
|
||
"limitations": [
|
||
"Добавьте GUID документа/объекта для source-of-record проверки.",
|
||
"Broad query lacks enough support for even a limited factual output.",
|
||
"Нет explainable-сигналов why_included в результатах выборки.",
|
||
"Minimum evidence gate failed for current scope."
|
||
]
|
||
},
|
||
"next_step_block": {
|
||
"recommended_actions": [
|
||
"Дайте недостающие якоря (период/счет/объект), иначе сильный factual вывод невозможен.",
|
||
"Добавьте более узкий контекст: тип отклонения, группу документов и бизнес-участок."
|
||
],
|
||
"clarification_questions": [
|
||
"Уточните период проверки (например, 2020-06).",
|
||
"Уточните счет или группу счетов (например, 19, 60, 62).",
|
||
"Укажите контрагента или группу контрагентов.",
|
||
"Уточните тип отклонения: разрыв цепочки, неверный документ или аномальный риск."
|
||
]
|
||
}
|
||
},
|
||
"investigation_state_snapshot": {
|
||
"schema_version": "investigation_state_v1",
|
||
"session_id": "asst-Swd2bOXc9k",
|
||
"status": "active",
|
||
"turn_index": 1,
|
||
"updated_at": "2026-03-25T20:41:08.777Z",
|
||
"question_id": "msg-OtUdkNvACm",
|
||
"focus": {
|
||
"domain": "live_mcp_drilldown",
|
||
"period": null,
|
||
"primary_accounts": [],
|
||
"active_query_subject": "Что не так по документ #123?"
|
||
},
|
||
"narrowing_status": "not_needed",
|
||
"evidence_refs": [],
|
||
"open_uncertainties": [
|
||
"Добавьте GUID документа/объекта для source-of-record проверки.",
|
||
"Broad query lacks enough support for even a limited factual output."
|
||
],
|
||
"last_answer_mode": "clarification_required",
|
||
"followup_context": {
|
||
"previous_question_id": null,
|
||
"last_user_message": "Что не так по документ #123?",
|
||
"referenced_requirement_ids": [
|
||
"R1"
|
||
]
|
||
},
|
||
"query_mode_hint": "direct_answer"
|
||
},
|
||
"normalized": {
|
||
"schema_version": "normalized_query_v2_0_2",
|
||
"user_message_raw": "Что не так по документ #123?",
|
||
"message_in_scope": true,
|
||
"scope_confidence": "high",
|
||
"contains_multiple_tasks": false,
|
||
"fragments": [
|
||
{
|
||
"fragment_id": "F1",
|
||
"raw_fragment_text": "Что не так по документ #123?",
|
||
"normalized_fragment_text": "Что не так по документ #123?",
|
||
"domain_relevance": "in_scope",
|
||
"business_scope": "company_specific_accounting",
|
||
"entity_hints": [],
|
||
"account_hints": [],
|
||
"document_hints": [
|
||
"документ"
|
||
],
|
||
"register_hints": [],
|
||
"time_scope": {
|
||
"type": "missing",
|
||
"value": null,
|
||
"confidence": "low"
|
||
},
|
||
"flags": {
|
||
"has_multi_entity_scope": false,
|
||
"asks_for_chain_explanation": false,
|
||
"asks_for_ranking_or_top": false,
|
||
"asks_for_period_summary": false,
|
||
"asks_for_rule_check": false,
|
||
"asks_for_anomaly_scan": false,
|
||
"asks_for_exact_object_trace": true,
|
||
"asks_for_evidence": true,
|
||
"mentions_period_close_context": false
|
||
},
|
||
"candidate_labels": [
|
||
"drilldown_explain"
|
||
],
|
||
"confidence": "high",
|
||
"execution_readiness": "executable_with_soft_assumptions",
|
||
"clarification_reason": null,
|
||
"soft_assumption_used": [
|
||
"company_scope_defaulted"
|
||
],
|
||
"route_status": "routed",
|
||
"no_route_reason": null
|
||
}
|
||
],
|
||
"discarded_fragments": [],
|
||
"global_notes": {
|
||
"needs_clarification": false,
|
||
"clarification_reason": null
|
||
}
|
||
}
|
||
}
|
||
}
|
||
],
|
||
"last_assistant": {
|
||
"message_id": "msg-s60FJ6nmVg",
|
||
"reply_type": "clarification_required",
|
||
"trace_id": "3Vy28BCeoTkRgj",
|
||
"created_at": "2026-03-25T20:41:08.777Z"
|
||
}
|
||
} |