feat(vault): Phase 3 tools + batch citation/relation enrichment

This commit is contained in:
2026-07-01 15:20:40 +08:00
parent 8273017082
commit 407a9213bf
548 changed files with 53410 additions and 2113 deletions
+17
View File
@@ -1231,6 +1231,8 @@ cat raw/教育AI研究/.workbuddy/memory/MEMORY.md
| **时效检测** | `scripts/check-staleness.py` | 中 | LLM Agent + Lint |
| **矛盾检测** | `scripts/detect-conflicts.py` | 中 | LLM Agent + Lint |
| **知识提级** | `scripts/promote-knowledge.py` | 中 | LLM Agent |
| **知识图谱** | `scripts/knowledge-graph.py` | 中 | LLM Agent |
| **页面评审器** | `scripts/review-pages.py` | 中 | LLM Agent + Lint |
### 9.2 代理维护分工
@@ -1361,6 +1363,21 @@ AGENTS.md 是仓库的 **Schema 文件**,位于基础设施层:
| | | - 新增 `### 2.5 结晶机制`Crystallization |
| | | - 新增 `### 2.6 知识提级`Consolidation tiers |
| | | - 工具表新增 5 行(frontmatter 验证/关系管理/图搜索/时效检测/矛盾检测/知识提级) |
| 2026-07-01 | 8.0 | **Phase 3:图遍历搜索 + 高级自修正** |
| | | - 新增 `tools/scripts/knowledge-graph.py`(图存储 JSON + 证据链追溯 + 融合搜索 + DOT 导出) |
| | | - 升级 `tools/scripts/graph-search.py`(新增 `--use-graph` 模式,读预构建图加速扩展) |
| | | - 新增 `tools/scripts/review-pages.py`LLM 评审器,Ollama 不可用时降级为静态规则评审) |
| | | - 新增 `tools/data/knowledge-graph.json`(图数据库,504 节点) |
| | | - 填充首条 canonical relation[[LLM-Wiki-v2]] supersedes [[LLM Wiki]] |
| | | - B-3.2 矛盾自动标注复用 `detect-conflicts.py --auto-callout`;B-3.3 低置信度建议集成进 review-pages.py |
| | | - 修正 `wiki/index.md` 最后更新日期(06-30 → 07-01 |
| 2026-07-01 | 9.0 | **P0-P2 批量质量提升(基于最佳实践指南)** |
| | | - P2 模板更新:`Wiki Page Template.md`、`People Template.md`、`Author Template.md` 纳入 `confidence`/`status`/`last_reviewed`/`review_interval_days`/`relations` 字段 |
| | | - P1 关系图激活:`populate-relations.py` 批量推断 375 页 +644 条 relationspart_of/extends),图从 2→646 边 |
| | | - P0 溯源普及:`enrich-citations.py` 为 284 页注入 `[raw:source:line]` 种子引用 + 68 页补 `## 来源` 节;引用覆盖 79→405 页(15.6%→80.2% |
| | | - 新增 `tools/scripts/populate-relations.py`source-grouping + 交叉链接推断) |
| | | - 新增 `tools/scripts/enrich-citations.py`citation seed + 来源节 + 存根标记) |
| | | - 修复 `populate-relations.py` `write_frontmatter` 双 frontmatter bugbody 剥离) |
### 10.4 人物 Wiki 生成规范(快速参考)