chore(debug,ci): add .debug workspace tooling and hygiene checks

Ignore .debug/ locally and add scripts/debug/ helpers (tmp, work, worktree, check, and tests) to enforce workspace hygiene. Run the hygiene check and self-test in CI, and document the .debug/ contract in AGENTS.md and docs/architecture.md.
This commit is contained in:
Nwflower committed 2026-11-29 21:15:14 -07:00
1 parent 0802f77705
commit c91f5901a7
13 files changed
+1599 -3

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
# {{TITLE}}
## 目标
## 背景与参考材料
## 范围(含不做的部分)
## 所有权与契约
## 测量与证据来源
测量值与结论摘要记录在顶部 `work` 块中;此处说明日志、截图路径与复现方法。
## 验收
## Agent 交接
## 验证记录
## 退役
- [ ] 值得保留的探针已沉淀为 `*_test.go` 或 `scripts/` 正式脚本
- [ ] 需要同步的持久文档(`CHANGELOG.md`、`docs/`、`patches/README.md` 等)已更新,且不含本工单 ID
- [ ] 每条测量都有明确去处(`code`、`test`、`comment`、`doc` 或 `none`)
- [ ] `node scripts/debug/check.mjs` 通过,验证记录已补齐
- [ ] 本目录已由 `node scripts/debug/work.mjs close {{ID}}` 删除