%%{init: {"theme": "base", "themeVariables": {"background": "transparent", "primaryColor": "#f2ede3", "primaryTextColor": "#253047", "primaryBorderColor": "#64748b", "lineColor": "#6b7280", "secondaryColor": "#e6edf5", "tertiaryColor": "#f7f4ed", "fontFamily": "Inter, PingFang SC, sans-serif"}, "flowchart": {"curve": "basis", "nodeSpacing": 26, "rankSpacing": 48}}}%%
flowchart TB
subgraph R1[" "]
direction LR
A["提出问题
证据:用户影响、复现"] -->|"产品决定"| B["接受工作
证据:目标、范围、优先级"]
B -->|"技术决定"| C["形成方案
证据:影响面、风险、验收标准"]
C -->|"授权实现"| D["分支开发
证据:Commit、测试、文档"]
end
subgraph R2[" "]
direction LR
E["PR / MR
证据:Diff、检查清单、审查意见
失败则返回开发"] -->|"门禁通过"| F["合入主分支
证据:必需状态、批准记录"]
F -->|"发布策略"| G["部署与观察
证据:版本、指标、日志、告警
缺陷形成新一轮工作"]
end
D -->|"请求合并"| E
style R1 fill:transparent,stroke:transparent
style R2 fill:transparent,stroke:transparent
classDef decision fill:#e6edf5,stroke:#475569,color:#1f2937,stroke-width:1.5px;
classDef work fill:#f7f4ed,stroke:#8b7355,color:#1f2937,stroke-width:1.5px;
class A,B,C,E,F,G decision;
class D work;