Loading...
Loading...
Compare original and translation side by side
| Phase | Name | Purpose |
|---|---|---|
| 0 | Triage | Parse input, fetch issue if referenced, proceed to investigation |
| 1 | Investigate | Reproduce the bug, trace the code path |
| 2 | Root Cause | Form hypotheses with predictions for uncertain links, test them, causal chain gate, smart escalation |
| 3 | Fix | Only if user chose to fix. Test-first fix with workspace safety checks |
| 4 | Close | Structured summary, handoff options |
| 阶段 | 名称 | 目的 |
|---|---|---|
| 0 | 初步筛查 | 解析输入,拉取引用的问题内容,进入调查阶段 |
| 1 | 调查 | 复现Bug,追踪代码路径 |
| 2 | 根因定位 | 结合不确定环节的预测形成假设,验证假设,因果链校验,智能升级处理 |
| 3 | 修复 | 仅当用户选择修复时执行。遵循测试优先原则修复,同时做工作区安全检查 |
| 4 | 收尾 | 结构化总结,提供移交选项 |
#123org/repo#123<bug_description>gh issue view <number> --json title,body,comments,labelsgh#123org/repo#123<bug_description>gh issue view <number> --json title,body,comments,labelsghagent-browserreferences/investigation-techniques.mdagent-browserreferences/investigation-techniques.mdgit log --oneline -10 -- [file]git bisectreferences/investigation-techniques.mdgit log --oneline -10 -- [file]git bisectreferences/investigation-techniques.mdreferences/anti-patterns.mdreferences/anti-patterns.mdAskUserQuestionrequest_user_inputask_user/proof/ce:brainstormAskUserQuestionrequest_user_inputask_user/proof/ce:brainstorm| Pattern | Diagnosis | Next move |
|---|---|---|
| Hypotheses point to different subsystems | Architecture/design problem, not a localized bug | Present findings, suggest |
| Evidence contradicts itself | Wrong mental model of the code | Step back, re-read the code path without assumptions |
| Works locally, fails in CI/prod | Environment problem | Focus on env differences, config, dependencies, timing |
| Fix works but prediction was wrong | Symptom fix, not root cause | The real cause is still active — keep investigating |
| 模式 | 诊断 | 下一步 |
|---|---|---|
| 假设指向不同的子系统 | 架构/设计问题,不是局部Bug | 展示结论,建议用 |
| 证据互相矛盾 | 对代码的心智模型错误 | 退一步,不带预设重新读代码路径 |
| 本地运行正常,CI/生产环境失败 | 环境问题 | 重点排查环境差异、配置、依赖、时序问题 |
| 修复生效但预测错误 | 只修复了症状,没解决根因 | 真正的原因仍然存在——继续调查 |
git status/ce:compoundgit status/ce:compoundundefinedundefined
**Handoff options** (use platform question tool, or present numbered options and wait):
1. Commit the fix (if Phase 3 ran)
2. Document as a learning (`/ce:compound`)
3. Post findings to the issue (if entry came from an issue tracker) — convey: confirmed root cause, verified reproduction steps, relevant code references, and suggested fix direction; keep it concise and useful for whoever picks up the issue next
4. View in Proof (`/proof`) — for easy review and sharing with others
5. Done
**移交选项**(用平台提问工具,或给出编号选项等待用户选择):
1. 提交修复(如果执行了阶段3)
2. 作为经验文档记录 (`/ce:compound`)
3. 把结论发布到对应问题(如果输入来自问题跟踪器)——包含:确认的根因、验证过的复现步骤、相关代码引用、建议的修复方向;内容简洁,对后续处理这个问题的人有用即可
4. 在Proof中查看 (`/proof`) —— 方便审阅和其他人共享
5. 完成