增强自检: 表格单元格❌检测 + TODO写入
- 新增正则扫描表格中❌状态单元格
- 8个缺口写入checklist_gaps.jsonl
- 可被self_todo_executor消费
- 与annotations解析互补,全量覆盖
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user