Skip to content

chore(repo): 移除 Sonar 声明与上游来源记录 - #305

Merged
SheathedSharp merged 5 commits into
mainfrom
chore/repo-remove-sonar-notice
Nov 12, 2026
Merged

SheathedSharp merged 5 commits into
mainfrom
chore/repo-remove-sonar-notice

Conversation

@SheathedSharp

Copy link
Copy Markdown
Owner

前提

审计脚本对照固定上游 26dbcae 的输出已归零(0 行 / 0 段 / 0 文件,退出码 0),engine/UPSTREAM.md 写明的移除条件成立。本 PR 执行声明的移除,并按约定把审计工具一并删除。

改动

  • 删除 engine/UPSTREAM.md。
  • 删除 THIRD_PARTY_NOTICES.md 的「历史代码来源:Sonar」整段(含 MIT 原文与指路句)。
  • 根 LICENSE 与 engine/LICENSE 的第三方指路句不再提及该声明,其他内容不变。
  • scripts/license_test.py:删除该声明的断言,改为校验保留的第三方资产条目(GSAP、字体、Go 依赖)与发布打包路径。
  • 删除 scripts/audit-upstream-origin.py 与其测试(归零后不再保留依赖外部检出的检查)。
  • docs/product.md / product.zh.md、docs/agent/architecture.md、buildinfo 与 groups 的注释不再引用该上游或已删除的记录;scripts/check_docs_test.py 的夹具改用 LICENSE。中英文档同步。

历史事实仍由 Git 历史保留,本次只移除仓库当前工作树中的声明与工具。

验证

  • python3 -m unittest discover -s scripts -p '*_test.py' → 273 tests OK(skipped=1)
  • python3 scripts/check_docs.py → 6 对文档一致,退出码 0
  • python3 scripts/license_test.py → 通过
  • go vet ./...、go test -count=1 -timeout=8m ./... → 全绿
  • 全仓检索 RasKrebs、UPSTREAM.md、audit-upstream-origin:无匹配(.git 元数据除外)

🤖 Generated with Claude Code

SheathedSharp and others added 5 commits November 12, 2026 19:03
审计对照 26dbcae 已为 0 行 / 0 段 / 0 文件,移除声明的前提成立:删除
engine/UPSTREAM.md 与 THIRD_PARTY_NOTICES.md 的 Sonar 段,两份 LICENSE
的指路句不再提及该声明;license_test 改为校验保留的第三方资产条目与
发布打包路径。

Co-Authored-By: Claude Code <noreply@anthropic.com>
归零后不再保留指向该上游检出的工具与测试,避免仓库继续依赖外部仓库才能
完成的检查。历史审计结果由 Git 历史保留。

Co-Authored-By: Claude Code <noreply@anthropic.com>
产品原则改为泛指参考项目与既有实践;架构文档把来源与版权指向许可证与
第三方声明;buildinfo 与 groups 的注释去掉对已删除记录的引用,文档测试
夹具改用 LICENSE。中英文档同步。

Co-Authored-By: Claude Code <noreply@anthropic.com>
@SheathedSharp
SheathedSharp merged commit 465c107 into main Nov 12, 2026
28 of 29 checks passed
@SheathedSharp
SheathedSharp deleted the chore/repo-remove-sonar-notice branch November 12, 2026 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant