Skip to content

docs: 补充整理文件安全规则 - #8

Open
borankux wants to merge 1 commit into
JamesShi96:mainfrom
borankux:codex/file-reorg-safety-docs
Open

docs: 补充整理文件安全规则#8
borankux wants to merge 1 commit into
JamesShi96:mainfrom
borankux:codex/file-reorg-safety-docs

Conversation

@borankux

Copy link
Copy Markdown

背景

这次只补充 整理文件 流程的安全边界,来自一次外置硬盘沙盒测试:受控项目沙盒可以顺利整理,但真实 Downloads-like 目录通常会混有凭证、密钥、临时下载和脚本相对路径,适合把这些边界写进协议。

改动

  • 在整理计划里增加 Sensitive Files 区块,要求凭证/密钥/证书/env-like 文件单独确认。
  • 明确 git repo 内 tracked 文件使用 git mv,非 git 目录或 untracked 文件才使用 mv
  • 增加移动后验证建议:Markdown 链接、脚本/config 路径、轻量 smoke test、snapshot consistency。
  • 补充常见错误,避免盲目字符串替换引用、批量移动敏感文件、过早刷新 .file-snapshot.json

验证

  • git diff --check
  • 外置硬盘沙盒专项测试:任务 6 整理文件 通过,管理文件和 docs/ 未被移动,快照 JSON 可解析,移动后的脚本 smoke test 通过。

@borankux
borankux marked this pull request as ready for review June 13, 2026 08:18
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