agent-Specialization/workflows/bug-fix-triage/WORKFLOW.md

2.5 KiB

name description review_mode max_stage_rounds end_conditions nodes
bug-fix-triage 缺陷分诊修复流程:复现确认、按严重程度三向分流、热修/常规双轨、统一回归把关 active 30 修复通过回归审核且更新日志落盘;或分诊为不跟进直接归档
id kind name next
start-1 start 开始 reproduce
id kind name goal instructions next
reproduce stage 复现确认 稳定复现缺陷并确认影响面 记录复现步骤与环境;无法复现的缺陷退回报告人补充信息。 severity-branch
id kind name next
severity-branch branch 严重程度分诊
target condition
hotfix 线上崩溃、数据丢失或安全漏洞,必须立即修复
target condition
fix 功能异常但存在变通方法,随正常节奏修复
target condition
end-1 影响极低、无法复现或重复反馈,记录后不再跟进
id kind name goal instructions next
hotfix stage 紧急热修 以最小改动止血 只修阻断点,不做顺手重构;附带最小复现用例验证。 hotfix-gate
id kind name prompt next reject_to max_rejects
hotfix-gate review 热修审核 热修是否最小化且无副作用,复现用例是否真实跑过 merge hotfix 2
id kind name goal instructions next
fix stage 常规修复 根治缺陷并补齐防护 定位根因后修复;必须补回归测试覆盖该缺陷路径。 fix-gate
id kind name prompt next reject_to max_rejects
fix-gate review 修复审核 是否根治而非掩盖症状,回归测试是否真实运行过 merge fix 3
id kind name next
merge branch 汇总
target condition
regress-gate
id kind name prompt next reject_to max_rejects
regress-gate review 回归审核 整体回归是否通过,修复是否引入新问题 document severity-branch 2
id kind name goal instructions next
document stage 更新日志 记录缺陷根因与修复内容 写入更新日志;标注受影响版本范围。 end-1
id kind name
end-1 end 结束

工作方式

先复现再分诊,按严重程度走对应修复轨道。

验证方式

热修必须有最小复现用例;常规修复必须补回归测试。

结束方式

回归审核通过后更新更新日志并归档。