What is the problem?
给 AI 工具新手看的 Codex 修 bug 回滚记录流程:修复前保存证据、确认工作区、限定修改范围、记录验证命令、保留回滚点,并在高风险变更前暂停复核。
Quick solution
Treat this as a Codex tutorial issue. First confirm the environment, inputs, permissions, logs, and delivery boundary. Then use the linked deep guide for the full checklist before changing production code or promising a result.
Read the deep guideDetailed steps
- 保存客户原始报错、截图、复现步骤和预期结果。
- 运行 `git status`,确认工作区是否干净,是否有客户已有改动。
- 记录当前分支、最新提交和本次预计修改范围。
- 让 Codex 先解释可能原因,不要马上改全项目。
- 只修改和 bug 直接相关的文件,避免顺手重构。
- 修改后查看 `git diff`,确认每一处变化都能解释。
Commands or code
任务目标:
原始报错:
复现步骤:
修改前状态:
- 分支:
- 提交:
- 工作区状态:
修改文件:
验证命令:
验证结果:
未覆盖范围:
客户待确认:
回滚方式:Risk notes
Confirm the real project environment, account permissions, platform rules, and output quality before delivery. Do not ship AI-generated changes without human review, and do not claim indexing, income, deployment success, or ranking improvements without measured evidence.