chore(repo): 消融 reference/ 墓碑机制——INDEX.md 自称"已清理无活跃 checkout"、唯一生产者 sync-reference.py 在 CI/Makefile/docs 零调用者,而 verify-doc-ssot 用 3 处自指把它钉在门禁里(12 文件净 −137 行) - #2292
Merged
Conversation
…EX.md 墓碑,唯一生产者 sync-reference.py(clone 26 个第三方仓)在 CI/Makefile/docs 零调用者,而 verify-doc-ssot 却用 3 处自指(is_active_doc、镜像对、80 行预算)维持它存在;删墓碑 + 删脚本 + 删 setup.py 的 -Reference/--reference-core/--reference-all 三个死开关(负证:--reference-core 现 rc=2)+ 删 AGENTS.md 只剩 1 行的【参考】分类 + 删 .gitignore/.dockerignore 的 reference 死配置 + 删 4 处指向已外迁 docs/reference/cross-comparison 的 Go 死指针注释(12 文件净 -137 行) 证据:verify-doc-ssot rc=0(AGENTS.md 98 路径 / verifier-map 68 脚本 / 29 自测全绿);verify-doc-entrypoints.Tests rc=0;go build ./... rc=0 + go vet 4 个被改包 rc=0;残留引用扫描 reference/INDEX、sync-reference、cross-comparison、reference-core/-all 全 0 命中。 Co-authored-by: Cursor <cursor@vectorcontrol.tech>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Team Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
一句话
消融
reference/第三方研究副本机制:目录里只剩一份自称「已清理,当前无活跃 checkout」的INDEX.md墓碑,唯一生产者scripts/dev/sync-reference.py(clone 26 个第三方仓)在 CI / Makefile / docs 里零调用者,而verify-doc-ssot.py却用 3 处自指把这份墓碑钉在门禁里。删墓碑 + 删脚本 + 删随之死掉的开关/分类/ignore 配置 + 删 4 处指向已外迁文档的 Go 死指针注释(12 文件净 −137 行)。消融对象与判据
reference/INDEX.md(19 行)reference/已清理,当前无活跃 checkout」;目录内除它之外无任何文件;它是reference/唯一被跟踪的内容scripts/dev/sync-reference.py(88 行)reference/;grep -rn sync-reference全仓命中仅 3 处=脚本自身 2 处 + INDEX.md 1 处;.github/、Makefile、docs/零命中setup.py的-Reference/--reference-core/--reference-allsync-reference.py;消费者为零AGENTS.md的【参考】分类参考分类只有reference/这一行(活8 行 /产物2 行),删行后分类本身也死了.gitignore:269-271、.dockerignore:88-89/reference/*+!/reference/INDEX.md+reference/是专为该机制存在的死配置docs/reference/02-cross-comparison/00-synthesis.md、docs/reference/cross-comparison/03-orchestration.md(×3)在仓内不存在(第三方调研已外迁TokenDanceLab/docs归档仓);grep -rn cross-comparison现全仓 0 命中改动清单(12 文件,+6 / −143)
registry.go保留了docs/history.md那一条(该路径真实存在);process_executor_structured.go保留了OpenCode task.ts:145-162那条外部来源注记(不是仓内路径)。门禁证据(本机 huawei-dev 实跑)
明卷:
python3 scripts/verify/verify-doc-ssot.pyAGENTS.md path check ok (98 paths)(master 为 99,少的正是reference/)、verifier-map check ok (68 script paths, 60 CI files)(未变,证明 sync-reference.py 本就不在 verifier-map)、self-test wiring check ok (29 self-tests)python3 scripts/verify/tests/verify-doc-entrypoints.Tests.pyRan 1 test ... OK;该自测就是 verify-doc-ssot 的真实自测,仓内不存在verify-doc-ssot.Tests.py)go build ./...(edge-server)go vet ./internal/adapters ./internal/orchestration ./internal/lifecycle ./internal/agentsgo test ./internal/adapters/... ./internal/orchestration/... ./internal/lifecycle/... ./internal/agents/...ok,0 FAIL)bash /tmp/run-validate.sh <worktree>(61 条 CI validate 命令)PASS=61 FAIL=0 SKIP(merge-ref)=1bash scripts/verify/verify-commit-messages.sh origin/master HEADgit diff --check origin/master...HEADbash scripts/verify/check-secrets.sh --range "origin/master...HEAD"Secret guard passed.)暗卷(证明门禁没被我改哑):
| \reference/` | 参考 | ... |这一行重新注入AGENTS.md→verify-doc-ssot.py**rc=1**,报DOC-SSOT: AGENTS.md references missing path: reference/;git checkout --` 还原后 rc=0。⇒ 路径门禁仍然活着,删这一行是必需项而非装饰。setup.py剩余职责(启用 git hooks)在隔离git init仓内实跑:rc=0,输出仍是Git hooks enabled: scripts/git-hooks/Setup complete.两行契约;同时确认本仓core.hooksPath(local)为空、全局 leak-guard/root/.config/git/hooks未被污染(脚本未在本仓执行过)。python3 scripts/dev/setup.py --reference-core现 rc=2(unrecognized arguments),--helprc=0 且 options 只剩-h。reference/INDEX/sync-reference/cross-comparison/02-cross-comparison/reference-core/reference-all全仓 0 命中(排除 node_modules/.git/.worktrees)。未验证 / 可能错
go test ./...与 golangci-lint(4C8G,磁盘 96%);Go 侧改动是纯注释删行,已用 build+vet+被改 4 包 test 覆盖,lint 由 CI 兜底(edge-lint-baseline.json的 findings 按linter+file+message指纹键控,不含行号,删注释行不会漂移基线)。.dockerignore的reference/后,若某开发者本地仍留着陈旧reference/目录,它会进入 docker build context(CI 全新 checkout 无此目录,不受影响)。处置=删本地目录,这也是本 PR 的意图:机制已死,不该再替它兜底。边界
app/desktop/src-tauri/gen/schemas7 个被跟踪生成物有 CI 硬消费者、维持跟踪)走独立 PR,不与本 PR 混主题。docs/reference/**(活文档,5 个文件)与docs/archives/reference/backend-performance-gates.md(被 4 处活文档引用)不动——它们有真实消费者。