增强自检: 表格单元格检测 + TODO写入

- 新增正则扫描表格中状态单元格
- 8个缺口写入checklist_gaps.jsonl
- 可被self_todo_executor消费
- 与annotations解析互补,全量覆盖
This commit is contained in:
hmo
2026-07-14 02:49:09 +08:00
parent c3733cc2a9
commit d743b0a274
+11
View File
@@ -26,6 +26,17 @@ def extract_annotations(path):
for line in lines:
if line.startswith("#"):
current_section = line.strip()
# Check for ❌ in table cells (e.g. | R01 | ... | ... | ... | ... | ❌ 未修复 |)
for m in re.finditer(r'\|\s*❌\s*([^|]*?)\s*\|', line):
cell_content = "" + m.group(1).strip()
status = "fail"
results.append({
"annotation": cell_content,
"status": status,
"section": current_section,
"source": os.path.basename(path),
"in_table": True,
})
for m in re.finditer(r'<!--\s*(.*?)\s*-->', line):
anno = m.group(1)
# Determine status