feat(срез 2.2): инструмент verify_estimate_file (проверь смету) + агентный путь; bump 2026-07-17e

smeta_mcp.tool_verify_estimate_file: parse .gge → estimate_verify + verify_gge_summary
(ФОТ=ЗПраб+ЗПмаш, точное тождество Summary). Калибровка показала: реконструкция итога
из позиций .gge невозможна (материалы отдельно) — честно проверяем коды+самосогласов.+дубли.
claude_bridge: +verify_estimate_file и +find_expertise_remarks в allowedTools, mount
estimate_verify.py+code_validator.py в Docker. Фикстура broken_totals.gge, 3 passed.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
anor
2026-07-17 20:58:18 +10:00
co-authored by Claude Opus 4.8
parent ad3edf0e5a
commit 5662c79d05
6 changed files with 142 additions and 1 deletions
+6
View File
@@ -193,6 +193,8 @@ async def stream_claude(
smeta_gge_tools_path = APP_DIR / "gge_tools.py"
smeta_gge_deep_path = APP_DIR / "gge_deep.py"
smeta_corpus_path = APP_DIR / "real_corpus.py"
smeta_verify_path = APP_DIR / "estimate_verify.py"
smeta_codeval_path = APP_DIR / "code_validator.py"
smeta_corpus_data = APP_DIR / "data" / "real_corpus"
smeta_mcp_config = APP_DIR / "sandbox" / "mcp_config.json"
mcp_available = (smeta_mcp_path.exists() and smeta_complaints_path.exists()
@@ -216,9 +218,11 @@ async def stream_claude(
"mcp__smeta__apply_pukts_to_registry,"
"mcp__smeta__parse_gge_archive,"
"mcp__smeta__parse_gge_file,"
"mcp__smeta__verify_estimate_file,"
"mcp__smeta__update_xlsx_cells,"
"mcp__smeta__find_in_real_estimates,"
"mcp__smeta__find_ka_price,"
"mcp__smeta__find_expertise_remarks,"
"mcp__smeta__find_in_vor"),
]
if mcp_available:
@@ -248,6 +252,8 @@ async def stream_claude(
"-v", f"{smeta_mcp_path.resolve()}:/app/smeta_mcp.py:ro",
"-v", f"{smeta_complaints_path.resolve()}:/app/complaints.py:ro",
"-v", f"{smeta_gge_tools_path.resolve()}:/app/gge_tools.py:ro",
"-v", f"{smeta_verify_path.resolve()}:/app/estimate_verify.py:ro",
"-v", f"{smeta_codeval_path.resolve()}:/app/code_validator.py:ro",
"-v", f"{smeta_mcp_config.resolve()}:/app/mcp_config.json:ro",
])
if corpus_available: