Skip to content

chore(structure): 项目结构收敛(§12.2) - #192

Merged
ReSerendipity merged 2 commits into
mainfrom
ci/structure-migration
Oct 19, 2026
Merged

ReSerendipity merged 2 commits into
mainfrom
ci/structure-migration

Conversation

@ReSerendipity

Copy link
Copy Markdown
Owner

变更内容(按 REPOSITORY_GUIDELINES §12.2)

仓库迁移清单(git mv,纯改名 0 内容改动)

根级散落文档 → docs/:

  • PRIVACY_POLICY.md、SECURITY.md、SECURITY_MATRIX.md、THIRD_PARTY_NOTICES.md、USER_AGREEMENT.md

根级工具脚本 → scripts/(应用入口/主入口按惯例留根):

  • install.sh、start.sh、start_portable.py

docs/README.internal.md、docs/agents/**:本仓 git 实测无已跟踪文件,跳过。
纯历史类文件:根目录无已跟踪一次性审计/评估文档,跳过。

引用同步(仅路径引用,不动逻辑)

  • .gitignore:新增 /local/;移除已失效的 docs/SECURITY.md 忽略行(该路径现已入库)
  • .dockerignore:docs → docs/** 并加 !docs/THIRD_PARTY_NOTICES.md,保证 OFL 许可文本仍随镜像分发
  • docker-smoke.yml:镜像内校验路径改 docs/THIRD_PARTY_NOTICES.md
  • ci.yml:0.0.0.0 监听扫描范围同步到新脚本路径
  • layout-rules.yaml:root_allowlist 移除已迁走条目
  • CODEOWNERS:SECURITY*.md → docs/
  • install.sh / start.sh:用户指引 echo 同步新路径
  • assemble_release_staging.ps1 / build_portable_bundle.ps1:源路径更新,包内平铺布局与壳启动契约不变
  • tests/test_packaging_manifest.py:白名单按叶名比对、docker 上下文模拟同步新路径
  • README / 字体 README / desktop README / .githooks README:照此操作引用同步

不变项

  • 内容语义零改动;未删任何文件;未 force push;workflow 仅改路径引用。

验证

  • pre-commit 全套(含 Structure Guard)通过;pre-push 预检全绿
  • tests/test_packaging_manifest.py 25/25 通过
  • 历史叙事文本(CHANGELOG、docs/DOD.md、审计报告、HTML 报告)中的文件名提及按规范保留

只开 PR 不合并。

- PRIVACY_POLICY.md / SECURITY.md / SECURITY_MATRIX.md /
  THIRD_PARTY_NOTICES.md / USER_AGREEMENT.md -> docs/
- README/CHANGELOG/LICENSE/NOTICE stay at root

Signed-off-by: ReSerendipity <259081123+ReSerendipity@users.noreply.github.com>
- .gitignore: add /local/; drop stale docs/SECURITY.md ignore (now tracked)
- .dockerignore: docs/** + !docs/THIRD_PARTY_NOTICES.md (keep license in image)
- docker-smoke: image check path docs/THIRD_PARTY_NOTICES.md
- ci.yml: 0.0.0.0 grep scope -> scripts/install.sh scripts/start.sh
- layout-rules.yaml root_allowlist: remove moved entries
- CODEOWNERS: SECURITY*.md -> docs/
- install/start.sh: user-facing hints point to scripts/
- release staging/bundle: source paths updated, bundle layout unchanged
- packaging guard test: path-aware whitelist + docker context simulation
- README / docs: update how-to references

Signed-off-by: ReSerendipity <259081123+ReSerendipity@users.noreply.github.com>
@ReSerendipity
ReSerendipity merged commit 1db810d into main Oct 19, 2026
36 of 38 checks passed
@ReSerendipity
ReSerendipity deleted the ci/structure-migration branch October 19, 2026 05:33
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