[bug] step2 IR extraction 生成 list 类型 section 字段导致 conftest 崩溃 - 来自 #64 修复 #69
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
问题
#64 修复后,rules[49].sources[0].section 从 string 变为 list:
导致 _normalize_rule() 中
sec.strip()崩溃:AttributeError: 'list' object has no attribute 'strip'影响
根因
step2 LLM 提取 IR 时 section 字段输出格式不稳定(有时 string,有时 list)
修复建议
step3 _normalize_rule 需增加类型防御:将 list 类型的 section 转为 string(取首元素或用分隔符连接)
关联
[qe-agent: qa-0602-1358]
补充发现
QE 防御性修复 #70 后,Layer A 正常运行并发现新问题:
新增 schema 错误:
这些 Table source 中有 null row 值,也需要在 step3 中防御性处理。
[qe-agent: qa-0602-1358]