M0: Test coverage expansion (151 → 321 tests, 61% → 66% lines) - normalizeKnowledge CRLF/LF normalization fix - gooseReviewer: 11 tests, 97.35% coverage - r2 storage: 22 tests, 100% coverage - triage processor: 11 tests, exported buildTriagePrompt/labelName - webhook processor: 35 tests, 72.39% coverage - conflict resolver: 12 tests - review processor: 7 tests M1: Reliability hardening - Smart retry with jitter, maxTotalTimeoutMs, custom retryable predicate - MergeGuard: in-memory merge dedup tracker (100% coverage) - failureMessages: 7-category failure classifier (100% coverage) M2: Observability - MetricsCollector: Actions-run metrics with snapshot/markdown/reset - 11 tests, 100% coverage New files: 12 test files, 3 source modules All gates: typecheck ✓ lint ✓ format ✓ 321/321 tests ✓ build ✓
# 计划与指南
|
|
|
|
本目录存放 ghbot 项目的计划、改进指南与相关文档,**不包含任何代码改动**。
|
|
|
|
## 文档清单
|
|
|
|
| 文件 | 内容 | 适用场景 |
|
|
| ---------------------------------------- | ------------------------------------------------------------------------------------------ | -------------------------------------- |
|
|
| [下一步改进指南.md](./下一步改进指南.md) | **主指南**:完整盘点、优先级决策树、P0~P6 改进项、里程碑落地计划、验证清单、禁止事项、附录 | 交给 AI 或人工按里程碑逐步落地代码改进 |
|
|
| (待补充)改进方案详解.md | 每个改进项的技术选型、权衡分析、关键代码示意 | 需要更深入方案论证时创建 |
|
|
| (待补充)bug修复记录.md | 已修复缺陷(对应正文「10. 已知缺陷」表) | 每次修复后回填状态 |
|
|
|
|
## 约定
|
|
|
|
- 本文档集与 `ghbot/CLAUDE.md`、`README.md`、`README-zh.md` 保持同步;
|
|
正文描述与实际行为冲突时,**以实际代码为准**并回填缺陷表。
|
|
- 编码方禁止在本目录写入代码或临时文件;需要记录实现细节时创建 `docs/` 下的独立文档。
|