feat(standards): IND-001 a/b/c/d 合并为单分析项目 + 4 子检查合一
需求:勾一个 IND-001 checkbox 跑全部 4 子检查;
结果合并展示,单条违规里显示「哪些子检查失败」。
改动:
- step7_standards.py: 新增 _IND_001_SUB_IDS / _merge_violations_by_tuple
/ _wrap_combined_ind_001 / run_step7_for_ind_001,单 (table,col,value)
多子检查失败行合并,rule_type 列改为 'IND-001-a, IND-001-b',
error 列改为 '[a] 长度 19 ≠ 18\n[b] 校验位错误' 拼接原文
- orchestrator.py: 注册 std_ind_001 step(order=100,llm=none),
跳过 IND-001-a/b/c/d 自动注册,避免 4 个独立 section 还在
- analysis_tree.json: 国标字段规范组删 4 行 IND-001-a/b/c/d,加 1 行 std_ind_001
- routes.py: /api/match-config 过滤未注册为 step 的子 indicator;
把 IND-001 a/b/c/d 的 applies_to_fields / comment_keywords 聚合到 std_ind_001
的输入框,避免合并后前端输入框丢失
- 修复 double-wrap bug:_run_standards_ind_001 不再二次包裹
run_step7_for_ind_001 原返回值(已含 {section_key, data})
- WORKLOG 追加 4 段:合并设计 / 关键词输入框回归 / 标题 '合并 a/b/c/d' 去除 /
结果不显示修复(double-wrap 根因 + 烟测)
Showing
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment