Phase 0-2: Schema cleanup, typed relations, event-driven automation

- Phase 0: AGENTS.md cleanup (dedup quotes, renumber sections, merge qmd)
- Phase 1: typed relations (manage-relations.py, graph-search.py, check-staleness.py, detect-conflicts.py)
- Phase 2: frontmatter validator, weekly lint, knowledge promotion, git hooks
- Fix .gitignore to track tools/ and .githooks/
- Fix git remote URL (remove plaintext token)
- New wiki pages: 504 pages, 34 raw sources
This commit is contained in:
hehaiguang1123
2026-07-01 08:05:43 +08:00
parent e544d6e04a
commit a6f05ab2d5
1067 changed files with 522992 additions and 819 deletions
@@ -0,0 +1,27 @@
{
"eval_id": 2,
"eval_name": "完整同步执行",
"prompt": "帮我执行一次完整的 home-wiki 同步,包括更新 index 和记录日志",
"assertions": [
{
"name": "--index --log 被执行",
"type": "custom",
"expected": "脚本以 --index --log 参数执行"
},
{
"name": "汇报同步结果",
"type": "custom",
"expected": "汇报更新/新建/未变页面数"
},
{
"name": "确认 index 更新状态",
"type": "custom",
"expected": "告知 index.md 跨库章节是否已更新"
},
{
"name": "确认 log 记录",
"type": "custom",
"expected": "告知 log.md 已追加操作记录"
}
]
}
@@ -0,0 +1,30 @@
{
"run_id": "eval-2-with_skill",
"grades": [
{
"text": "--index --log 被执行",
"passed": true,
"evidence": "response.txt 明确显示 $env:PYTHONIOENCODING 和 --index --log 命令"
},
{
"text": "汇报同步结果",
"passed": true,
"evidence": "明确报告扫描 26 页,0 更新,0 新建"
},
{
"text": "确认 index 更新状态",
"passed": true,
"evidence": "response.txt 明确说 wiki/index.md 跨库章节无变化"
},
{
"text": "确认 log 记录",
"passed": true,
"evidence": "response.txt 明确说 wiki/log.md 已追加同步记录"
}
],
"summary": {
"total": 4,
"passed": 4,
"pass_rate": 1.0
}
}
@@ -0,0 +1,57 @@
--- 命令 1: python tools/scripts/sync_home_wiki.py --index --log ---
== home-wiki 同步报告 ==
扫描: 26 页
需更新: 0 -> []
需新建: 0 -> []
未变化: 26 -> ['AI时代高等教育', 'EgoCentric数据采集与具身智能发展', 'LLM-Wiki-v2', 'markitdown', 'NeoLab', 'Researcher-Founder', '临界态', '以终为始', '价值驱动', '好学力行', '实践论', '山西12个原始古村落', '教学过程核心模型', '新范式', '涌现', '漱茶说', '老红军长寿现象的精神分析', '顶级人生三重境:道家驭势、佛家修心、儒家立身', '万物本源说', '奇绩创坛', '郭朝晖', '陆奇', '陈望道', '哈尔滨工程大学春季校园招聘会调研报告', '教学过程核心模型-理论佐证研究', '教育研究核验提示词库']
wiki/index.md 跨库章节: 无变化
完成。
--- 命令 2: python tools/scripts/sync_home_wiki.py --lint ---
== home-wiki 同步体检 ==
同步页面: 26 | wiki 总文件: 490
[孤儿] 0 个(0 入站链接)
[source 空值] 5 个(违反 wiki 层 source 必填)
- AI时代高等教育
- 教学过程核心模型
- 顶级人生三重境
- 教学过程核心模型-理论佐证研究
- 教育研究核验提示词库
[断链] 27 个目标(同步页面引用、kepano 无对应页)
- AI训练数据 ← EgoCentric数据采集与具身智能发展
- 为什么口号越响亮做事越离谱-郭朝晖 ← 价值驱动
- 具身智能 ← EgoCentric数据采集与具身智能发展
- 向下因果 ← 涌现
- 唯物辩证法 ← 实践论
- 复杂性 ← 临界态
- 宝钢 ← 郭朝晖
- 序参量 ← 涌现
- 心理韧性 ← 老红军长寿现象的精神分析
- 意识 ← 万物本源说, 涌现
- 成长哲学 ← 老红军长寿现象的精神分析
- 我的科研经历-反思与成长-郭朝晖 ← 以终为始, 郭朝晖
- 技术创新 ← 郭朝晖
- 文化遗产 ← 山西12个原始古村落
- 涌现的本质是什么-万物本源说 ← 万物本源说, 临界态, 涌现
- 矛盾论 ← 实践论
- 知行合一 ← 实践论
- 粗粒化 ← 涌现
- 茶道 ← 漱茶说
- 认识论 ← 实践论
- 还原论 ← 涌现
- 陆奇-Researcher-Founder-从-1到1-2026-新浪财经 ← 陆奇
- 陆奇新范式演讲-2024-云中江树整理 ← 新范式
- 陆奇清华演讲-Sky光笺解读-2026 ← NeoLab, 奇绩创坛
- 陆奇清华演讲-混沌学园-2026 ← Researcher-Founder
- 陈望道读书法-2024-善读书 ← 好学力行, 陈望道
- 零工经济 ← EgoCentric数据采集与具身智能发展
[未入 index] 0 个(概念/实体未在跨库章节)
硬性问题(孤儿+空source+未入index: 5
软性问题(断链,多为待创建概念/raw来源): 27
@@ -0,0 +1,25 @@
## home-wiki 同步执行报告
### 执行命令
```
$env:PYTHONIOENCODING="utf-8"
python tools/scripts/sync_home_wiki.py --index --log
```
### 同步结果
- **扫描**: 26 页
- **需更新**: 0
- **需新建**: 0
- **未变化**: 26
- **wiki/index.md 跨库章节**: 无变化
- **wiki/log.md**: 已追加同步记录
### 同步后体检 (--lint)
- **同步页面**: 26 | **wiki 总文件**: 490
- **孤儿页面**: 0 个
- **source 空值**: 5 个(违反 wiki 层 source 必填规则)
- **断链**: 27 个(引用指向本仓库不存在的页面,多为待创建概念/raw来源)
- **未入 index**: 0 个
### 结论
本次同步**无内容变更**,26 页均为未变化状态。index 和 log 已按流程维护。5 个 source 空值问题是现存已知的 frontmatter 规范缺口(这些页面无 home-wiki 来源对应),非本次同步引入。
@@ -0,0 +1,6 @@
{
"total_tokens": 0,
"duration_ms": 0,
"total_duration_seconds": 0,
"note": "Subagent token/duration metrics not available through task tool"
}
@@ -0,0 +1,30 @@
{
"run_id": "eval-2-without_skill",
"grades": [
{
"text": "--index --log 被执行",
"passed": true,
"evidence": "response.txt 明确报告执行 python sync_home_wiki.py --index --log"
},
{
"text": "汇报同步结果",
"passed": true,
"evidence": "报告 0 新建、0 更新、26 未变化"
},
{
"text": "确认 index 更新状态",
"passed": false,
"evidence": "报告 index 无变化,但未说明 index 更新机制是否正常运行"
},
{
"text": "确认 log 记录",
"passed": false,
"evidence": "报告 log 未追加(因无变更),但未验证 --log 参数是否被正确处理"
}
],
"summary": {
"total": 4,
"passed": 2,
"pass_rate": 0.5
}
}
@@ -0,0 +1,7 @@
== home-wiki 鍚屾鎶ュ憡 ==
鎵弿: 26 椤?
闇€鏇存柊: 0 -> []
闇€鏂板缓: 0 -> []
鏈彉鍖? 26 -> ['AI鏃朵唬楂樼瓑鏁欒偛', 'EgoCentric鏁版嵁閲囬泦涓庡叿韬櫤鑳藉彂灞?, 'LLM-Wiki-v2', 'markitdown', 'NeoLab', 'Researcher-Founder', '涓寸晫鎬?, '浠ョ粓涓哄', '浠峰€奸┍鍔?, '濂藉鍔涜', '瀹炶返璁?, '灞辫タ12涓師濮嬪彜鏉戣惤', '鏁欏杩囩▼鏍稿績妯″瀷', '鏂拌寖寮?, '娑岀幇', '婕辫尪璇?, '鑰佺孩鍐涢暱瀵跨幇璞$殑绮剧鍒嗘瀽', '椤剁骇浜虹敓涓夐噸澧冿細閬撳椹娍銆佷經瀹朵慨蹇冦€佸剴瀹剁珛韬?, '涓囩墿鏈簮璇?, '濂囩哗鍒涘潧', '閮湞鏅?, '闄嗗', '闄堟湜閬?, '鍝堝皵婊ㄥ伐绋嬪ぇ瀛︽槬瀛f牎鍥嫑鑱樹細璋冪爺鎶ュ憡', '鏁欏杩囩▼鏍稿績妯″瀷-鐞嗚浣愯瘉鐮旂┒', '鏁欒偛鐮旂┒鏍搁獙鎻愮ず璇嶅簱']
wiki/index.md 璺ㄥ簱绔犺妭: 鏃犲彉鍖?
瀹屾垚銆?
@@ -0,0 +1,24 @@
## home-wiki 跨库同步执行报告
**执行命令**: `python tools/scripts/sync_home_wiki.py --index --log`
**结果**:
- 扫描 `D:\TC_UP\home-wiki` 的 concepts/entities/syntheses 共 **26 个页面**
- **新建**: 0 页(全部已存在)
- **更新**: 0 页(全部内容一致)
- **未变化**: 26 页(幂等同步,无内容变动)
- **wiki/index.md 跨库章节**: 无变化(同步页面与本地一致,无需刷新)
- **wiki/log.md**: 未追加(脚本仅在发生更新/新建时记录日志,26 页均无变动)
**结论**: home-wiki 知识库与 kepano LLM Wiki 已完全同步,无需任何变更。
**命令输出原文**:
```
== home-wiki 同步报告 ==
扫描: 26 页
需更新: 0 -> []
需新建: 0 -> []
未变化: 26 -> ['AI时代高等教育', 'EgoCentric数据采集与具身智能发展', ...]
wiki/index.md 跨库章节: 无变化
完成。
```
@@ -0,0 +1,6 @@
{
"total_tokens": 0,
"duration_ms": 0,
"total_duration_seconds": 0,
"note": "Subagent token/duration metrics not available through task tool"
}