From d0d7962b65ea699bc5b6dfc82308efaf08d513e7 Mon Sep 17 00:00:00 2001 From: dctouch Date: Mon, 15 Jun 2026 20:22:59 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BE=D1=85=D1=80=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20phase104=20=D0=B2=20=D0=B0=D0=B3=D0=B5=D0=BD?= =?UTF-8?q?=D1=82=D0=BD=D1=8B=D0=B5=20=D0=B0=D0=B2=D1=82=D0=BE=D0=BF=D1=80?= =?UTF-8?q?=D0=BE=D0=B3=D0=BE=D0=BD=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../data/autorun_generators/history.json | 48 +++++ ..._20260615172044_gen-ag06151720-c4b54f.json | 171 ++++++++++++++++++ ..._20260615172044_gen-ag06151720-c4b54f.json | 37 ++++ scripts/save_agent_semantic_run.py | 6 +- 4 files changed, 261 insertions(+), 1 deletion(-) create mode 100644 llm_normalizer/data/autorun_generators/saved_sessions/assistant_saved_session_20260615172044_gen-ag06151720-c4b54f.json create mode 100644 llm_normalizer/data/eval_cases/assistant_autogen_saved_user_sessions_20260615172044_gen-ag06151720-c4b54f.json diff --git a/llm_normalizer/data/autorun_generators/history.json b/llm_normalizer/data/autorun_generators/history.json index 2f90afb..47b3e2f 100644 --- a/llm_normalizer/data/autorun_generators/history.json +++ b/llm_normalizer/data/autorun_generators/history.json @@ -1,4 +1,52 @@ [ + { + "generation_id": "gen-ag06151720-c4b54f", + "created_at": "2026-06-15T17:20:44+00:00", + "mode": "saved_user_sessions", + "title": "AGENT | Phase104 role-tail anchor hygiene and bidirectional value-flow", + "count": 4, + "domain": "address_phase104_generic_role_tail_anchor_hygiene", + "questions": [ + "ООО Альтернатива Плюс", + "Теперь дай взрослый обзор за 2020 по компании: входящие, исходящие, нетто, топы, но банк в топах отдельно объясни как финансовый поток, если по назначению он не обычный клиент или поставщик.", + "А отдельно по СБЕРБАНКУ: он для нас клиент, поставщик или финансовый поток? Дай коротко по подтвержденным строкам.", + "А теперь по поставщику Группа СВК за 2020: сколько мы ему заплатили и какой общий денежный смысл?" + ], + "generated_by": "codex_agent", + "saved_case_set_file": "assistant_autogen_saved_user_sessions_20260615172044_gen-ag06151720-c4b54f.json", + "context": { + "llm_provider": null, + "model": null, + "assistant_prompt_version": null, + "decomposition_prompt_version": null, + "prompt_fingerprint": null, + "autogen_personality_id": null, + "autogen_personality_prompt": null, + "source_session_id": null, + "saved_session_file": "assistant_saved_session_20260615172044_gen-ag06151720-c4b54f.json", + "saved_case_set_kind": "agent_semantic_scenario", + "agent_run": true, + "agent_focus": "Role-tail anchor hygiene, bank boundary, and supplier-prefix bidirectional money-flow after live domain-case-loop p04.", + "architecture_phase": "turnaround_11", + "source_spec_file": "X:\\1C\\NDC_1C\\docs\\orchestration\\active_domain_contract.json", + "scenario_id": null, + "semantic_tags": [ + "bank_like_counterparty", + "bare_org_scope", + "business_overview", + "company_scope", + "counterparty_net_cash_flow", + "financial_role_purpose", + "generic_role_tail_anchor_hygiene", + "post_overview_anchor_integrity", + "stale_scope_guard", + "supplier_prefix_canary" + ], + "validation_status": "accepted_domain_pack_loop", + "validated_run_dir": "artifacts\\domain_runs\\phase104_generic_role_tail_anchor_hygiene_20260615_p04_loop", + "saved_after_validated_replay": true + } + }, { "generation_id": "gen-ag06031328-3e1dd1", "created_at": "2026-06-03T13:28:09+00:00", diff --git a/llm_normalizer/data/autorun_generators/saved_sessions/assistant_saved_session_20260615172044_gen-ag06151720-c4b54f.json b/llm_normalizer/data/autorun_generators/saved_sessions/assistant_saved_session_20260615172044_gen-ag06151720-c4b54f.json new file mode 100644 index 0000000..b4e0b8c --- /dev/null +++ b/llm_normalizer/data/autorun_generators/saved_sessions/assistant_saved_session_20260615172044_gen-ag06151720-c4b54f.json @@ -0,0 +1,171 @@ +{ + "saved_at": "2026-06-15T17:20:44+00:00", + "generation_id": "gen-ag06151720-c4b54f", + "mode": "saved_user_sessions", + "title": "AGENT | Phase104 role-tail anchor hygiene and bidirectional value-flow", + "agent_run": true, + "questions": [ + "ООО Альтернатива Плюс", + "Теперь дай взрослый обзор за 2020 по компании: входящие, исходящие, нетто, топы, но банк в топах отдельно объясни как финансовый поток, если по назначению он не обычный клиент или поставщик.", + "А отдельно по СБЕРБАНКУ: он для нас клиент, поставщик или финансовый поток? Дай коротко по подтвержденным строкам.", + "А теперь по поставщику Группа СВК за 2020: сколько мы ему заплатили и какой общий денежный смысл?" + ], + "metadata": { + "assistant_prompt_version": null, + "decomposition_prompt_version": null, + "prompt_fingerprint": null, + "agent_focus": "Role-tail anchor hygiene, bank boundary, and supplier-prefix bidirectional money-flow after live domain-case-loop p04.", + "architecture_phase": "turnaround_11", + "source_spec_file": "X:\\1C\\NDC_1C\\docs\\orchestration\\active_domain_contract.json", + "scenario_id": null, + "semantic_tags": [ + "bank_like_counterparty", + "bare_org_scope", + "business_overview", + "company_scope", + "counterparty_net_cash_flow", + "financial_role_purpose", + "generic_role_tail_anchor_hygiene", + "post_overview_anchor_integrity", + "stale_scope_guard", + "supplier_prefix_canary" + ], + "validation_status": "accepted_domain_pack_loop", + "validated_run_dir": "artifacts\\domain_runs\\phase104_generic_role_tail_anchor_hygiene_20260615_p04_loop", + "saved_after_validated_replay": true, + "save_gate": { + "schema_version": "agent_semantic_save_gate_v1", + "validation_status": "accepted_domain_pack_loop", + "validated_run_dir": "artifacts\\domain_runs\\phase104_generic_role_tail_anchor_hygiene_20260615_p04_loop", + "final_status": "accepted", + "loop_id": "phase104_generic_role_tail_anchor_hygiene_20260615_p04_loop", + "target_score": 88, + "iterations_ran": 1, + "quality_score": 91, + "repair_target_count": 0, + "repair_target_severity_counts": { + "P0": 0, + "P1": 0, + "P2": 0 + }, + "accepted_gate": true, + "effective_runtime": { + "manifest_path": "artifacts\\domain_runs\\phase104_generic_role_tail_anchor_hygiene_20260615_p04_loop\\effective_runtime.json", + "runner": "domain_case_loop.run-pack-loop", + "git_sha": "bbb3620956f85aa05bb0c2b76c109cb05a066185", + "backend_url": "http://127.0.0.1:8787", + "mcp_proxy_url": "http://127.0.0.1:6003", + "llm_provider": "local", + "llm_model": "unsloth/qwen3-30b-a3b-instruct-2507", + "temperature": 0.8, + "max_output_tokens": 900, + "prompt_version": "normalizer_v2_0_2", + "prompt_source": "file", + "prompt_hash": "f36e36a5e491cd24511b380e0c0059cb01aea5e2af738fb9f01671cd291735c1", + "prompt_registry_status": "pass" + }, + "saved_after_validated_replay": true + } + }, + "source_session_id": null, + "session": { + "session_id": null, + "mode": "agent_semantic_run", + "items": [ + { + "message_id": "agent-user-001", + "role": "user", + "text": "ООО Альтернатива Плюс", + "created_at": "2026-06-15T17:20:44+00:00", + "reply_type": null, + "trace_id": null, + "debug": null + }, + { + "message_id": "agent-user-002", + "role": "user", + "text": "Теперь дай взрослый обзор за 2020 по компании: входящие, исходящие, нетто, топы, но банк в топах отдельно объясни как финансовый поток, если по назначению он не обычный клиент или поставщик.", + "created_at": "2026-06-15T17:20:44+00:00", + "reply_type": null, + "trace_id": null, + "debug": null + }, + { + "message_id": "agent-user-003", + "role": "user", + "text": "А отдельно по СБЕРБАНКУ: он для нас клиент, поставщик или финансовый поток? Дай коротко по подтвержденным строкам.", + "created_at": "2026-06-15T17:20:44+00:00", + "reply_type": null, + "trace_id": null, + "debug": null + }, + { + "message_id": "agent-user-004", + "role": "user", + "text": "А теперь по поставщику Группа СВК за 2020: сколько мы ему заплатили и какой общий денежный смысл?", + "created_at": "2026-06-15T17:20:44+00:00", + "reply_type": null, + "trace_id": null, + "debug": null + } + ], + "agent_run": true, + "metadata": { + "assistant_prompt_version": null, + "decomposition_prompt_version": null, + "prompt_fingerprint": null, + "agent_focus": "Role-tail anchor hygiene, bank boundary, and supplier-prefix bidirectional money-flow after live domain-case-loop p04.", + "architecture_phase": "turnaround_11", + "source_spec_file": "X:\\1C\\NDC_1C\\docs\\orchestration\\active_domain_contract.json", + "scenario_id": null, + "semantic_tags": [ + "bank_like_counterparty", + "bare_org_scope", + "business_overview", + "company_scope", + "counterparty_net_cash_flow", + "financial_role_purpose", + "generic_role_tail_anchor_hygiene", + "post_overview_anchor_integrity", + "stale_scope_guard", + "supplier_prefix_canary" + ], + "validation_status": "accepted_domain_pack_loop", + "validated_run_dir": "artifacts\\domain_runs\\phase104_generic_role_tail_anchor_hygiene_20260615_p04_loop", + "saved_after_validated_replay": true, + "save_gate": { + "schema_version": "agent_semantic_save_gate_v1", + "validation_status": "accepted_domain_pack_loop", + "validated_run_dir": "artifacts\\domain_runs\\phase104_generic_role_tail_anchor_hygiene_20260615_p04_loop", + "final_status": "accepted", + "loop_id": "phase104_generic_role_tail_anchor_hygiene_20260615_p04_loop", + "target_score": 88, + "iterations_ran": 1, + "quality_score": 91, + "repair_target_count": 0, + "repair_target_severity_counts": { + "P0": 0, + "P1": 0, + "P2": 0 + }, + "accepted_gate": true, + "effective_runtime": { + "manifest_path": "artifacts\\domain_runs\\phase104_generic_role_tail_anchor_hygiene_20260615_p04_loop\\effective_runtime.json", + "runner": "domain_case_loop.run-pack-loop", + "git_sha": "bbb3620956f85aa05bb0c2b76c109cb05a066185", + "backend_url": "http://127.0.0.1:8787", + "mcp_proxy_url": "http://127.0.0.1:6003", + "llm_provider": "local", + "llm_model": "unsloth/qwen3-30b-a3b-instruct-2507", + "temperature": 0.8, + "max_output_tokens": 900, + "prompt_version": "normalizer_v2_0_2", + "prompt_source": "file", + "prompt_hash": "f36e36a5e491cd24511b380e0c0059cb01aea5e2af738fb9f01671cd291735c1", + "prompt_registry_status": "pass" + }, + "saved_after_validated_replay": true + } + } + } +} diff --git a/llm_normalizer/data/eval_cases/assistant_autogen_saved_user_sessions_20260615172044_gen-ag06151720-c4b54f.json b/llm_normalizer/data/eval_cases/assistant_autogen_saved_user_sessions_20260615172044_gen-ag06151720-c4b54f.json new file mode 100644 index 0000000..098b0c5 --- /dev/null +++ b/llm_normalizer/data/eval_cases/assistant_autogen_saved_user_sessions_20260615172044_gen-ag06151720-c4b54f.json @@ -0,0 +1,37 @@ +{ + "suite_id": "assistant_saved_session_gen-ag06151720-c4b54f", + "suite_version": "0.1.0", + "schema_version": "assistant_saved_session_suite_v0_1", + "generated_at": "2026-06-15T17:20:44+00:00", + "generation_id": "gen-ag06151720-c4b54f", + "mode": "saved_user_sessions", + "title": "AGENT | Phase104 role-tail anchor hygiene and bidirectional value-flow", + "domain": "address_phase104_generic_role_tail_anchor_hygiene", + "scenario_count": 1, + "case_ids": [ + "SAVED-001" + ], + "cases": [ + { + "case_id": "SAVED-001", + "scenario_tag": "agent_saved_user_sessions", + "title": "AGENT | Phase104 role-tail anchor hygiene and bidirectional value-flow", + "question_type": "followup", + "broadness_level": "medium", + "turns": [ + { + "user_message": "ООО Альтернатива Плюс" + }, + { + "user_message": "Теперь дай взрослый обзор за 2020 по компании: входящие, исходящие, нетто, топы, но банк в топах отдельно объясни как финансовый поток, если по назначению он не обычный клиент или поставщик." + }, + { + "user_message": "А отдельно по СБЕРБАНКУ: он для нас клиент, поставщик или финансовый поток? Дай коротко по подтвержденным строкам." + }, + { + "user_message": "А теперь по поставщику Группа СВК за 2020: сколько мы ему заплатили и какой общий денежный смысл?" + } + ] + } + ] +} diff --git a/scripts/save_agent_semantic_run.py b/scripts/save_agent_semantic_run.py index 875ebd3..0cfd946 100644 --- a/scripts/save_agent_semantic_run.py +++ b/scripts/save_agent_semantic_run.py @@ -720,7 +720,11 @@ def parse_args() -> argparse.Namespace: parser.add_argument("--prompt-fingerprint", help="Optional prompt fingerprint metadata.") parser.add_argument( "--validated-run-dir", - help="Accepted truth-harness artifact directory containing pack_state.json, truth_review.json, and business_review.json.", + help=( + "Accepted replay artifact directory. Supports truth-harness runs " + "(pack_state/truth_review/business_review), domain-case-loop pack/scenario dirs, " + "and run-pack-loop dirs with loop_state.json." + ), ) parser.add_argument( "--allow-unvalidated",