TL;DR: pr-genius 在 2026-07-19 经过上游 Sudhakaran88/okf-conformance validator 实测,PASS conformant · exit 0 · 0 errors · 0 warnings。
| 项 | 状态 | 工具 |
|---|---|---|
| OKF v0.1 MUST(M1-M6) | ✅ 全合规 | Sudhakaran88/okf-conformance validator |
| OKF v0.1 SHOULD(S1-S5) | ✅ 全合规 | Sudhakaran88/okf-conformance validator |
| 内部死链检查 | ✅ 全合规 | pr-genius 自家 validate.py |
| Rounds schema v0.2.0 | ✅ 全合规 | pr-genius 自家 validate.py |
| Root index.md consistency | ✅ 全合规 | pr-genius 自家 validate.py |
| 总计 | 192 .md · 0 errors · 0 warnings | 双 validator 一致通过 |
$ node validator/okf-validate.mjs /path/to/pr-genius
OKF conformance — big-repo-pr-knowledge
PASS — conformant
EXIT CODE = 0
$ python3 validate.py
✅ All checks passed
初始状态:pr-genius README 自报「OKF M1-M6 + S1-S4 全合规」,但实际跑上游 validator 后FAIL:
186 concepts, 186 links
4 error(s), 120 warning(s)
errors (MUST):
✗ [M2] archive/scripts/pr-genius-landscape-search/README.md: missing YAML frontmatter
✗ [M4] docs/BLOG.md: internal link to a missing file: CONTRIBUTING.md
✗ [M4] mongodb-js-mongodb-mcp-server/pr-1309-azure-readme-version.md: internal link to a missing file: ../../index.md
✗ [M4] mongodb-js-mongodb-mcp-server/pr-1309-azure-readme-version.md: internal link to a missing file: ../../BLACKLIST.md
warnings (SHOULD):
! [S2] (23 处) — root + subdir index.md 没链 sibling concept
! [S4] (97 处) — 116 orphan concept(其中 anti-patterns/ + success-patterns/ + misakanet-50/ 三个最有价值的目录全孤儿)
FAIL — nonconformant
EXIT CODE = 1
整改内容:
| 维度 | 整改前 | 整改后 |
|---|---|---|
| M2 errors | 1 | 0 — 归档 README 加 frontmatter |
| M4 errors | 3 | 0 — docs/BLOG.md 改 ../CONTRIBUTING.md;mongodb-js pr-1309 改 ../index.md ../BLACKLIST.md;移除 ../../../MEMORY.md 出 bundle root 引用 |
| S2 warnings | 23 | 0 — 仓根 index.md 加「🗂️ 仓内导航」章节 + 3 个子目录 index.md 补 sibling 链接 |
| S4 warnings | 97 | 0 — 同上导航章节反向链到所有 orphan concept |
| 文件名规范 | docs/INDEX.md(大写,不符合 OKF M5 path as identity 标准化) |
docs/index.md(小写入口) |
| 历史链接更新 | 3 处 docs/INDEX.md 引用 |
已同步更新为 docs/index.md(README.md · README.zh.md · index.md) |
| 归档 type 修正 | Script Bundle README(不在 pr-genius 自家 type 白名单) |
Research Report(pr-genius 白名单 + Sudhakaran88 validator 都接受) |
最终验证:
$ python3 validate.py
✅ All checks passed
$ node validator/okf-validate.mjs /path/to/pr-genius
OKF conformance — big-repo-pr-knowledge
PASS — conformant
EXIT CODE = 0
pr-genius 是 OKF v0.1 的方言实施,不是标准实现。原因:pr-genius 加了 OKF spec 未定义的扩展字段。这些扩展是有意的——服务于「PR 贡献经验 + Agent-first 知识库」定位。
| 字段 | 出现位置 | 用途 | 跟 OKF 标准关系 |
|---|---|---|---|
agent_guidelines |
Repo Profile | 给 coding agent 读的 yaml 控制流(17 字段) | OKF 未定义,pr-genius 扩展 |
federates_with |
Repo Profile + root index.md |
MisakaNet 联邦声明(v0.3.0+) | OKF 未定义 |
misakanet_queries |
Repo Profile | 联邦查询路径(v0.3.0+) | OKF 未定义 |
misakanet_lessons |
Repo Profile | 联邦 lesson 引用 | OKF 未定义 |
federation_status |
Repo Profile | 联邦状态字段 | OKF 未定义 |
rounds |
PR Case Study | 多轮交互日志 schema v0.2.0(v0.5.0+) | OKF 未定义 |
pr_number / pr_url / repo / author / status / opened_at / last_activity |
PR Case Study | PR 元数据 | OKF 未定义 |
final_status |
PR Case Study | close_decision case-level 字段(v0.5.0+) | OKF 未定义 |
evidence_urls / verified_at |
Repo Profile | 真实环境 + 真实输出验证证据 | OKF 未定义 |
对 Sudhakaran88 validator 的影响:validator 不解析扩展字段,扩展字段对合规零影响。
# validate.py 第 64-87 行
{
"Knowledge Bundle", # OKF 标准
"Repo Profile", # OKF 标准
"PR Case Study", # OKF 标准
"Schema Reference", # OKF 标准
"Anti-Pattern", # OKF 标准
"Anti-Pattern Bundle", # pr-genius 扩展(OKF 没有"Bundle"细分)
"Blacklist Reference", # pr-genius 扩展
"Risk Reference", # pr-genius 扩展
"Index", # OKF 标准
"Lesson", # pr-genius 扩展
"Community Resource", # pr-genius 扩展
"Research Report", # pr-genius 扩展
"Roadmap", # pr-genius 扩展
"Success Pattern", # pr-genius 扩展
"Success Pattern Bundle", # pr-genius 扩展
"Skill", # pr-genius 扩展
"Retrospective", # pr-genius 扩展
"Test Report", # pr-genius 扩展
"Compliance Audit", # pr-genius 扩展(本文档)
}
| 报告 | 路径 | 用途 |
|---|---|---|
| OKF Conformance Audit v1 | D:\MD\pr-genius\okf-conformance-audit.md(11 KB) |
Sudhakaran88 validator 首次实测 FAIL 详情 + 4 errors + 120 warnings 全清单 |
| lat.md Graph 适配性分析 | D:\MD\pr-genius\lat-md-graph-audit.md(10 KB) |
pr-genius 跟 lat.md 同形不同维度分析 + 3 个低成本借鉴方向 |
| 同类仓调研 v1 | D:\MD\pr-genius\landscape.md(12 KB) |
5 类相似仓 + 维度对位表 |
| 同类仓调研 v2 | D:\MD\pr-genius\landscape-v2.md(14 KB) |
v1 + ContribAI 21 仓完整 PR 数据 + arscontexta + lat.md + OKF Conformance |
# 1) pr-genius 自家校验
python3 validate.py
python3 validate.py --strict
# 2) 上游 OKF 校验(需先 clone)
git clone --depth 1 https://github.com/Sudhakaran88/okf-conformance.git /tmp/okf
node /tmp/okf/validator/okf-validate.mjs .
.md 起头必须有 YAML frontmatter + 非空 type.md 必须在 root index.md 的「🗂️ 仓内导航」章节里反向链(避免成 orphan)index.md 作为入口(小写,OKF M5)index.md 必须链所有 sibling concept(避免 S2 warnings)../../../ 路径)docs/index.md 而非 docs/INDEX.md)validate.mjs:224),所以 INDEX.md / Log.md 等大小写变体会被忽略。这一限制被 pr-genius 用「统一小写入口名」规避。如果上游未来修复此 bug,pr-genius 已合规不受影响。validate.py 的 type 词汇表有 18 个值(含 9 个扩展),但新加 type 时需要同步更新 validate.py 第 64-87 行 + Sudhakaran88 OKF validator 不会报错(扩展 type 字符串在 OKF M3 non-empty type string 检查范围内)。[] 改为 [](https://github.com/Sudhakaran88/okf-conformance),带上 sudo-conformance 验证链接| 数据 | 来源 | 时间 |
|---|---|---|
| Sudhakaran88/okf-conformance v0.1 | git clone --depth 1 https://github.com/Sudhakaran88/okf-conformance.git |
2026-07-19 00:36 |
| validator/okf-validate.mjs | https://raw.githubusercontent.com/Sudhakaran88/okf-conformance/main/validator/okf-validate.mjs |
2026-07-19 00:35 |
| CONFORMANCE.md spec | https://raw.githubusercontent.com/Sudhakaran88/okf-conformance/main/CONFORMANCE.md |
2026-07-19 00:35 |
| pr-genius validate.py | /mnt/c/Users/Eric Jia/research/big-repo-pr-knowledge/validate.py |
本地 |
| 整改历史 | git diff(见下方) | 2026-07-19 00:36-01:00 |
$ git status --short
M Ikalus1988-MisakaNet/index.md # 加 5 个 PR case study 链接
M archive/scripts/pr-genius-landscape-search/README.md # 加 frontmatter + 改 type
M docs/BLOG.md # 修 CONTRIBUTING.md 路径
M docs/INDEX.md -> docs/index.md # OKF M5 标准化入口名(小写)
M docs/index.md # 加 6 个 sibling 链接
M index.md # 加「🗂️ 仓内导航」章节(97 orphan + 13 sibling 反向链)
M mongodb-js-mongodb-mcp-server/index.md # 加 1 个 PR case study 链接
M mongodb-js-mongodb-mcp-server/pr-1309-azure-readme-version.md # 修 2 个 M4 路径
M README.md # docs/INDEX.md → docs/index.md
M README.zh.md # docs/INDEX.md → docs/index.md
11 个文件改动 / 0 新文件 / 0 删除文件 / 1 重命名(git rename detected)。
@misc{pr-genius-compliance-audit-2026,
title = {OKF v0.1 合规审计报告},
author = {太阳 (Misaka10004)},
year = {2026},
date = {2026-07-19},
note = {pr-genius/docs/COMPLIANCE_AUDIT.md}
}