openone-workflow-kit 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/CODE_OF_CONDUCT.md +25 -0
- package/CONTRIBUTING.md +51 -0
- package/INIT.md +81 -0
- package/LICENSE +201 -0
- package/NOTICE +6 -0
- package/README.md +195 -0
- package/SECURITY.md +39 -0
- package/bin/check-contract.cjs +137 -0
- package/bin/check-sanitized.cjs +93 -0
- package/bin/init-workspace.cjs +966 -0
- package/docs/assets/PROVENANCE.md +20 -0
- package/docs/assets/architecture.svg +112 -0
- package/docs/assets/hero.svg +83 -0
- package/docs/assets/quick-demo.svg +74 -0
- package/docs/assets/social-preview.svg +57 -0
- package/docs/assets/visual-manifest.json +52 -0
- package/docs/definition-of-done.md +80 -0
- package/docs/dual-track-workflow.md +90 -0
- package/docs/local-merge-notes.md +21 -0
- package/docs/maintainer-handoff.md +150 -0
- package/docs/manual-publish.md +119 -0
- package/docs/private-denylist.example.txt +11 -0
- package/docs/publication-decisions.md +36 -0
- package/docs/release-checklist.md +72 -0
- package/docs/releases/v0.1.0.md +70 -0
- package/docs/shareable-install.md +51 -0
- package/docs/tool-install-recipes.md +103 -0
- package/examples/ecommerce/team-profile.example.yaml +141 -0
- package/examples/education/team-profile.example.yaml +143 -0
- package/examples/saas-to-b/team-profile.example.yaml +130 -0
- package/examples/team-profile.example.yaml +69 -0
- package/install.sh +27 -0
- package/package.json +65 -0
- package/scripts/build-release.cjs +141 -0
- package/scripts/release-source-state.cjs +38 -0
- package/templates/AGENTS.template.md +26 -0
- package/test/release-readiness.cjs +214 -0
- package/test/smoke.cjs +272 -0
- package/workflow/adapters/README.md +16 -0
- package/workflow/core/README.md +38 -0
- package/workflow/core/capabilities/README.md +61 -0
- package/workflow/core/capabilities/acceptance-oracle-tracker.md +45 -0
- package/workflow/core/capabilities/branch-gatekeeper.md +57 -0
- package/workflow/core/capabilities/channel-experiment-tracker.md +32 -0
- package/workflow/core/capabilities/ci-cd-automation-governor.md +123 -0
- package/workflow/core/capabilities/contract-tracer.md +53 -0
- package/workflow/core/capabilities/data-change-safety-checker.md +52 -0
- package/workflow/core/capabilities/definition-lint.md +81 -0
- package/workflow/core/capabilities/deployment-readiness-checker.md +57 -0
- package/workflow/core/capabilities/impact-scope-analyzer.md +50 -0
- package/workflow/core/capabilities/knowledge-capture-maintainer.md +32 -0
- package/workflow/core/capabilities/market-evidence-grader.md +33 -0
- package/workflow/core/capabilities/memory-curator.md +48 -0
- package/workflow/core/capabilities/personal-git-operator.md +41 -0
- package/workflow/core/capabilities/personal-release-checklist.md +49 -0
- package/workflow/core/capabilities/prd-code-diff-checker.md +53 -0
- package/workflow/core/capabilities/protocol-state-machine-checker.md +57 -0
- package/workflow/core/capabilities/release-safety-checker.md +61 -0
- package/workflow/core/capabilities/repo-baseline-scanner.md +48 -0
- package/workflow/core/capabilities/rule-extractor.md +48 -0
- package/workflow/core/capabilities/runtime-evidence-triage.md +53 -0
- package/workflow/core/capabilities/security-reviewer.md +48 -0
- package/workflow/core/capabilities/test-evidence-reviewer.md +50 -0
- package/workflow/core/capabilities/ui-baseline-reviewer.md +50 -0
- package/workflow/core/capabilities/verify-app.md +51 -0
- package/workflow/core/capabilities/worktree-isolator.md +53 -0
- package/workflow/core/commands/01-/351/234/200/346/261/202/350/256/250/350/256/272.md +36 -0
- package/workflow/core/commands/02-/344/272/247/345/223/201/346/226/207/346/241/243.md +35 -0
- package/workflow/core/commands/02B-UI/350/256/276/350/256/241.md +75 -0
- package/workflow/core/commands/03-06-/347/240/224/345/217/221/345/207/206/345/244/207.md +30 -0
- package/workflow/core/commands/03-/346/212/200/346/234/257/346/236/266/346/236/204.md +32 -0
- package/workflow/core/commands/04-/344/273/243/347/240/201/345/256/236/347/216/260.md +32 -0
- package/workflow/core/commands/04A-/345/211/215/347/253/257/344/273/243/347/240/201/345/256/236/347/216/260.md +36 -0
- package/workflow/core/commands/04B-/345/220/216/347/253/257/344/273/243/347/240/201/345/256/236/347/216/260.md +31 -0
- package/workflow/core/commands/05-/344/273/243/347/240/201/345/256/241/346/237/245.md +31 -0
- package/workflow/core/commands/06-/346/265/213/350/257/225/347/224/250/344/276/213.md +34 -0
- package/workflow/core/commands/07-/346/265/213/350/257/225/346/211/247/350/241/214.md +33 -0
- package/workflow/core/commands/08-/345/217/221/345/270/203/345/207/206/345/244/207.md +44 -0
- package/workflow/core/commands/09-/345/217/221/345/270/203/346/211/247/350/241/214.md +39 -0
- package/workflow/core/commands/10-/345/244/215/347/233/230/346/200/273/347/273/223.md +41 -0
- package/workflow/core/commands/B1-B8-/345/225/206/344/270/232/345/214/226/345/207/206/345/244/207.md +30 -0
- package/workflow/core/commands/B1-/344/270/232/345/212/241/345/256/232/344/275/215.md +38 -0
- package/workflow/core/commands/B2-/345/225/206/344/270/232/346/250/241/345/274/217.md +38 -0
- package/workflow/core/commands/B3-PMF/344/270/216/345/256/242/346/210/267/347/224/273/345/203/217.md +39 -0
- package/workflow/core/commands/B4-/345/234/272/346/231/257/344/270/216/350/264/255/344/271/260/346/227/205/347/250/213.md +37 -0
- package/workflow/core/commands/B5-/346/270/240/351/201/223/346/274/217/346/226/227/346/230/240/345/260/204.md +39 -0
- package/workflow/core/commands/B6-/350/220/245/351/224/200/350/216/267/345/256/242/347/255/226/347/225/245.md +38 -0
- package/workflow/core/commands/B7-/350/220/245/351/224/200/351/242/204/347/256/227.md +36 -0
- package/workflow/core/commands/B8-/346/270/240/351/201/223/346/211/247/350/241/214/347/255/226/347/225/245.md +39 -0
- package/workflow/core/commands/B9-/347/255/226/347/225/245/345/244/215/347/233/230.md +38 -0
- package/workflow/core/commands/README.md +56 -0
- package/workflow/core/commands/init-workspace.md +29 -0
- package/workflow/core/commands/new-feature.md +33 -0
- package/workflow/core/commands/new-product.md +28 -0
- package/workflow/core/commands/workflow-status.md +30 -0
- package/workflow/core/commands//344/270/200/350/207/264/346/200/247/346/243/200/346/237/245.md +35 -0
- package/workflow/core/commands//344/272/244/344/273/230/350/207/263/345/256/214/346/210/220.md +40 -0
- package/workflow/core/commands//345/256/232/344/271/211/345/256/214/346/210/220.md +41 -0
- package/workflow/core/commands//346/276/204/346/270/205.md +31 -0
- package/workflow/core/templates/00-business-status.md +43 -0
- package/workflow/core/templates/00-workflow-status.md +50 -0
- package/workflow/core/templates/README.md +12 -0
- package/workflow/core/templates/business-stage-document.md +49 -0
- package/workflow/core/templates/completion-contract.md +114 -0
- package/workflow/core/templates/constitution.template.md +50 -0
- package/workflow/core/templates/living-spec.md +35 -0
- package/workflow/core/templates/stage-document.md +42 -0
- package/workflow/core/templates/team-profile.template.yaml +104 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# 商业化阶段文档模板
|
|
2
|
+
|
|
3
|
+
## 结论
|
|
4
|
+
|
|
5
|
+
- 待填写
|
|
6
|
+
|
|
7
|
+
## 语言与展示
|
|
8
|
+
|
|
9
|
+
- 默认使用简体中文展示;专有名词、产品名、品牌名、渠道名、代码标识符、命令、文件路径、API、SDK、框架、协议、标准和官方英文术语保留原文。
|
|
10
|
+
- 对外材料(landing 文案、发布帖、邮件模板)按目标市场语言产出,并在文档中标注目标渠道和语言。
|
|
11
|
+
|
|
12
|
+
## 输入来源
|
|
13
|
+
|
|
14
|
+
| 来源 | 路径或证据 | 状态 |
|
|
15
|
+
| --- | --- | --- |
|
|
16
|
+
| team-profile | `workflow/team-profile.yaml` | 待核查 |
|
|
17
|
+
| 前序商业化文档 | 工作区级 `business/{product}/` | 待核查 |
|
|
18
|
+
| 产品现状 | 待填写 | 待核查 |
|
|
19
|
+
| 市场与竞品资料 | 待填写 | 待核查 |
|
|
20
|
+
| 用户反馈与数据 | 待填写 | 待核查 |
|
|
21
|
+
|
|
22
|
+
## 事实与假设
|
|
23
|
+
|
|
24
|
+
### 一手证据
|
|
25
|
+
|
|
26
|
+
- 待填写(用户访谈、自有使用数据、自有渠道数据;注明时间范围与样本量)
|
|
27
|
+
|
|
28
|
+
### 二手证据
|
|
29
|
+
|
|
30
|
+
- 待填写(公开报告、竞品公开信息、社区讨论;注明来源与采集日期)
|
|
31
|
+
|
|
32
|
+
### 推断与假设
|
|
33
|
+
|
|
34
|
+
- 待填写(每条标注验证方式与判定标准)
|
|
35
|
+
|
|
36
|
+
### 权限与证据边界
|
|
37
|
+
|
|
38
|
+
- 本阶段只产出分析、文档和清单;对外动作——发布内容、投放广告、发送 cold email、联系 influencer 或合作伙伴、提交目录站——需要用户明确授权或由用户自行执行。
|
|
39
|
+
- 不编造市场数据、用户评价、竞品价格或渠道基准;无法核实的信息进入待确认项。
|
|
40
|
+
- 不在本文档存储凭证、API key、联系人名单或受众导出数据;此类数据放本地未跟踪文件,文档只记录路径。
|
|
41
|
+
- 营销工程需求(landing page、SEO 页面、埋点、A/B 测试)通过 `/new-feature` 进入研发轨,不在商业化阶段直接修改代码。
|
|
42
|
+
|
|
43
|
+
## 输出
|
|
44
|
+
|
|
45
|
+
- 待填写
|
|
46
|
+
|
|
47
|
+
## 待验证假设与证据缺口
|
|
48
|
+
|
|
49
|
+
- 待填写
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
# 完成合同:{feature}
|
|
2
|
+
|
|
3
|
+
> 本合同是该需求「什么叫完成」的唯一判定依据:宣布完成 = 全部 blocking Oracle 为 PASS(或经用户书面确认 WAIVED)。
|
|
4
|
+
> 冻结后,实现与验证只能翻转 Oracle 状态,不得静默修改任何标准;修改必须写入「修订记录」并经用户确认。
|
|
5
|
+
> 复杂度 S 档只需填写标 ★ 的节;M/L 档全部填写。可用 `openone-workflow-check-contract <本文件>` 做结构校验。
|
|
6
|
+
|
|
7
|
+
## 合同状态
|
|
8
|
+
|
|
9
|
+
| 项 | 内容 |
|
|
10
|
+
| --- | --- |
|
|
11
|
+
| 需求名称 | 待填写 |
|
|
12
|
+
| 复杂度档位 | S / M / L |
|
|
13
|
+
| 状态 | 草稿 / 已冻结 / 修订中 |
|
|
14
|
+
| 冻结时间 | - |
|
|
15
|
+
| 冻结确认 | 待用户确认(记录用户原话或确认方式) |
|
|
16
|
+
| Definition Lint | 未运行 / 通过 / 未通过 |
|
|
17
|
+
| 交付模式 | 手动分阶段 / 交付至完成 |
|
|
18
|
+
| 关联文档 | `01`-`07` 阶段文档、`specs/`、`workflow/constitution.md`、`workflow/standards/` |
|
|
19
|
+
|
|
20
|
+
## ★ 目标与非目标
|
|
21
|
+
|
|
22
|
+
### 目标(完成后必须为真的陈述,每条可被下方 Oracle 覆盖)
|
|
23
|
+
|
|
24
|
+
- 待填写
|
|
25
|
+
|
|
26
|
+
### 非目标(本次明确不做,防止范围漂移)
|
|
27
|
+
|
|
28
|
+
- 待填写
|
|
29
|
+
|
|
30
|
+
### 北极星挂钩
|
|
31
|
+
|
|
32
|
+
- 本需求预期移动的指标:漏斗层 / 指标名 / 预期方向(有 `business/{product}/` 基线时必填,引用 B2/B5 条目;无基线记录缺口)
|
|
33
|
+
|
|
34
|
+
## ★ 术语表(歧义消融)
|
|
35
|
+
|
|
36
|
+
| 术语 | 本合同内的精确定义 | 被替代的模糊说法 |
|
|
37
|
+
| --- | --- | --- |
|
|
38
|
+
| 待填写 | 例:「快」= 冷启动到可交互 ≤ 2s(P95,中端设备) | 快、流畅 |
|
|
39
|
+
|
|
40
|
+
## 数据流与状态机
|
|
41
|
+
|
|
42
|
+
- 数据从哪来、到哪去、谁是唯一真相源(source of truth)。
|
|
43
|
+
- 关键实体状态机:状态、触发事件、转移、终态;非法转移如何被拒绝。
|
|
44
|
+
- 不变量:任何时刻必须为真的约束(例:余额不为负;同一 slug 唯一)。
|
|
45
|
+
|
|
46
|
+
## 失败路径闭环
|
|
47
|
+
|
|
48
|
+
| 失败场景 | 触发条件 | 系统行为 | 用户看到什么 | 恢复路径 |
|
|
49
|
+
| --- | --- | --- | --- | --- |
|
|
50
|
+
| 待填写 | | | | |
|
|
51
|
+
|
|
52
|
+
> 至少检视:弱网/超时(重试策略与幂等性)、并发冲突、进程/页面中途被杀、配额或成本耗尽、非法输入、依赖服务故障。不适用的场景显式写「不适用+理由」。
|
|
53
|
+
|
|
54
|
+
## 质量预算
|
|
55
|
+
|
|
56
|
+
| 维度 | 预算(硬数字) | 测量方法 |
|
|
57
|
+
| --- | --- | --- |
|
|
58
|
+
| 性能 | 例:关键接口 P95 ≤ 300ms | 待填写 |
|
|
59
|
+
| 资源 | 例:包体 ≤ 500KB / 内存 ≤ 200MB | 待填写 |
|
|
60
|
+
| 成本 | 例:单活跃用户月成本 ≤ $0.05 | 待填写 |
|
|
61
|
+
| 依赖 | 例:新增运行时依赖 ≤ 2 个 | 待填写 |
|
|
62
|
+
| 安全 | 例:无明文凭证;输入全部校验 | 待填写 |
|
|
63
|
+
|
|
64
|
+
## 体验质量线(S 档可省)
|
|
65
|
+
|
|
66
|
+
- 感知性能:首屏骨架/进度反馈/乐观更新的要求。
|
|
67
|
+
- 三态完备:每个页面/组件的空态、错误态、加载态定义(引用 `02B` 体验预算)。
|
|
68
|
+
- 微文案:语气基线与错误信息的可行动性要求。
|
|
69
|
+
- 可访问性最低线:对比度、键盘可达、屏幕阅读器关键路径。
|
|
70
|
+
- 人工体验验收:保留至少一条 manual Oracle 给"用起来对不对劲"的直觉判断。
|
|
71
|
+
|
|
72
|
+
## 影响边界
|
|
73
|
+
|
|
74
|
+
- 允许修改:待填写(目录/模块/接口)。
|
|
75
|
+
- 禁止触碰:待填写(引用 `workflow/constitution.md` 与 `workflow/standards/` 适用条款)。
|
|
76
|
+
- 受影响契约:API / 数据结构 / 事件(对照 `specs/` 当前行为,列出将变更的行为条目)。
|
|
77
|
+
|
|
78
|
+
## ★ 验收 Oracle
|
|
79
|
+
|
|
80
|
+
> 每条必须绑定可复现的验证方法。类型 auto = 命令/脚本/测试,manual = 带步骤和判定标准的人工检查。
|
|
81
|
+
> 状态机:`NOT_RUN → PASS / FAIL`;PASS 后相关代码再变更 → 置 `STALE` 必须复验;`WAIVED` 仅可由用户书面确认。
|
|
82
|
+
> 状态只能由 `/交付至完成` 或 `/07-测试执行` 翻转,且必须附证据。
|
|
83
|
+
|
|
84
|
+
| ID | 验收标准(建议 EARS 或 Given/When/Then 句式) | 验证方法(可复现命令或步骤) | 类型 | blocking | 状态 | 证据 | 更新时间 |
|
|
85
|
+
| --- | --- | --- | --- | --- | --- | --- | --- |
|
|
86
|
+
| O-001 | 例:WHEN 用户提交空表单 THE SYSTEM SHALL 阻止提交并逐字段提示 | 例:`npm test -- form.spec` | auto | 是 | NOT_RUN | - | - |
|
|
87
|
+
|
|
88
|
+
## Definition Lint 结果
|
|
89
|
+
|
|
90
|
+
| # | 维度 | 结论 | 缺口与处理 |
|
|
91
|
+
| --- | --- | --- | --- |
|
|
92
|
+
| 1 | 数据流确定性 | 未检查 | |
|
|
93
|
+
| 2 | 失败路径闭环 | 未检查 | |
|
|
94
|
+
| 3 | 质量预算 | 未检查 | |
|
|
95
|
+
| 4 | Oracle 可复现 | 未检查 | |
|
|
96
|
+
| 5 | 歧义消融 | 未检查 | |
|
|
97
|
+
| 6 | 体验质量线 | 未检查 | |
|
|
98
|
+
| 7 | 北极星挂钩 | 未检查 | |
|
|
99
|
+
| 8 | 影响边界 | 未检查 | |
|
|
100
|
+
|
|
101
|
+
## ★ 待澄清项
|
|
102
|
+
|
|
103
|
+
> 冻结前必须清零:逐条解决,或经用户确认后降级为「已记录假设」写入对应章节。
|
|
104
|
+
|
|
105
|
+
- 待填写(格式:`[待澄清: 问题描述]`)
|
|
106
|
+
|
|
107
|
+
## 已记录假设
|
|
108
|
+
|
|
109
|
+
- 待填写(用户确认过的默认假设,附确认时间)
|
|
110
|
+
|
|
111
|
+
## 修订记录
|
|
112
|
+
|
|
113
|
+
| 时间 | 修订内容 | 原因 | 用户确认 |
|
|
114
|
+
| --- | --- | --- | --- |
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# 工作区宪法(constitution)
|
|
2
|
+
|
|
3
|
+
> 本文件存放**跨需求不可协商的原则**——每个需求不再重复讨论的既定决策。事实与路径配置放 `workflow/team-profile.yaml`,可复用代码规范放 `workflow/standards/`;本文件只放原则。
|
|
4
|
+
> 效力:`/定义完成`、`/一致性检查`、`/04-代码实现`、`/05-代码审查`、`/交付至完成` 都以本文件为不可协商基准;与本文件冲突的需求必须先修订宪法(经用户确认并记录),不得静默绕过。
|
|
5
|
+
> 每条原则写三段:原则 / 为什么 / 例外条件(没有例外就写"无")。
|
|
6
|
+
|
|
7
|
+
## 技术栈与依赖
|
|
8
|
+
|
|
9
|
+
- 原则:待填写(例:默认 TypeScript + 最小依赖;新增运行时依赖每需求 ≤2 个)
|
|
10
|
+
- 为什么:待填写
|
|
11
|
+
- 例外条件:待填写
|
|
12
|
+
|
|
13
|
+
## 安全与隐私底线
|
|
14
|
+
|
|
15
|
+
- 原则:待填写(例:凭证只放本地未跟踪文件;不收集非必需个人数据;输入一律校验)
|
|
16
|
+
- 为什么:待填写
|
|
17
|
+
- 例外条件:无
|
|
18
|
+
|
|
19
|
+
## 质量与测试底线
|
|
20
|
+
|
|
21
|
+
- 原则:待填写(例:blocking Oracle 未全绿不发布;核心路径必须有 auto Oracle)
|
|
22
|
+
- 为什么:待填写
|
|
23
|
+
- 例外条件:待填写
|
|
24
|
+
|
|
25
|
+
## UX 底线
|
|
26
|
+
|
|
27
|
+
- 原则:待填写(例:每个页面必须定义空/错/载三态;错误信息必须可行动)
|
|
28
|
+
- 为什么:待填写
|
|
29
|
+
- 例外条件:待填写(例:内部工具可豁免动效规范)
|
|
30
|
+
|
|
31
|
+
## 成本上限
|
|
32
|
+
|
|
33
|
+
- 原则:待填写(例:单项目月固定成本 ≤ $X;引入付费服务需用户确认)
|
|
34
|
+
- 为什么:待填写
|
|
35
|
+
- 例外条件:待填写
|
|
36
|
+
|
|
37
|
+
## 发布纪律
|
|
38
|
+
|
|
39
|
+
- 原则:待填写(例:`prod` 只接受来自 `main` 的提升;发布必须有回滚点)
|
|
40
|
+
- 为什么:待填写
|
|
41
|
+
- 例外条件:待填写
|
|
42
|
+
|
|
43
|
+
## 永不做清单
|
|
44
|
+
|
|
45
|
+
- 待填写(例:不做需要收集通讯录的功能;不接入需要独占锁定的平台)
|
|
46
|
+
|
|
47
|
+
## 修订记录
|
|
48
|
+
|
|
49
|
+
| 时间 | 修订内容 | 原因 | 用户确认 |
|
|
50
|
+
| --- | --- | --- | --- |
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# 行为规格:{领域或模块名}
|
|
2
|
+
|
|
3
|
+
> living spec:本文件描述**当前已实现并已发布**的行为真相,是 brownfield 需求的定义起点。
|
|
4
|
+
> 与 `features/` 的关系:features 是变更流水(做过什么),specs 是当前状态(现在是什么)。新需求先读本文件再定义变更;`/10-复盘总结` 在发布后把行为增量合并回本文件。
|
|
5
|
+
> 只记录已验证行为;未发布的计划不进本文件。
|
|
6
|
+
|
|
7
|
+
## 概览
|
|
8
|
+
|
|
9
|
+
- 该领域/模块解决什么问题、服务哪些场景(一段话)。
|
|
10
|
+
- 关联仓库与关键入口:待填写。
|
|
11
|
+
|
|
12
|
+
## 行为清单
|
|
13
|
+
|
|
14
|
+
> 用 EARS 句式(WHEN/WHILE/IF…THEN/WHERE + SHALL)逐条描述,稳定编号,不复用已删除编号。
|
|
15
|
+
|
|
16
|
+
| 编号 | 行为(EARS 句式) | 来源 | 生效版本 |
|
|
17
|
+
| --- | --- | --- | --- |
|
|
18
|
+
| S-001 | 例:WHEN 用户提交空表单 THE SYSTEM SHALL 阻止提交并逐字段提示 | features/xxx | v0.1.0 |
|
|
19
|
+
|
|
20
|
+
## 数据模型
|
|
21
|
+
|
|
22
|
+
- 关键实体、字段口径、唯一真相源、保留策略:待填写。
|
|
23
|
+
|
|
24
|
+
## 对外契约
|
|
25
|
+
|
|
26
|
+
- API / 事件 / 文件格式 / 快捷键等对外承诺,及其兼容性口径:待填写。
|
|
27
|
+
|
|
28
|
+
## 边界与已知限制
|
|
29
|
+
|
|
30
|
+
- 明确不支持的场景、已知缺陷及其 workaround:待填写。
|
|
31
|
+
|
|
32
|
+
## 变更历史
|
|
33
|
+
|
|
34
|
+
| 时间 | 变更 | 来源 feature | 影响的行为编号 |
|
|
35
|
+
| --- | --- | --- | --- |
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# 阶段文档模板
|
|
2
|
+
|
|
3
|
+
## 结论
|
|
4
|
+
|
|
5
|
+
- 待填写
|
|
6
|
+
|
|
7
|
+
## 语言与展示
|
|
8
|
+
|
|
9
|
+
- 默认使用简体中文展示;专有名词、产品名、品牌名、代码标识符、命令、文件路径、分支名、API、SDK、框架、协议、标准、错误信息和官方英文术语保留原文。
|
|
10
|
+
- 不做无意义的中英双语重复;只有对外材料、多语言产品文案、合同/合规引用、用户明确要求翻译或目标市场需要时,才输出对应语言版本。
|
|
11
|
+
|
|
12
|
+
## 输入来源
|
|
13
|
+
|
|
14
|
+
| 来源 | 路径或证据 | 状态 |
|
|
15
|
+
| --- | --- | --- |
|
|
16
|
+
| team-profile | `workflow/team-profile.yaml` | 待核查 |
|
|
17
|
+
| 前序文档 | 工作区级 `features/{feature}/` | 待核查 |
|
|
18
|
+
| 本地代码 | 待填写 | 待核查 |
|
|
19
|
+
| 设计 / 规范 / 测试资料 | 待填写 | 待核查 |
|
|
20
|
+
|
|
21
|
+
## 事实与假设
|
|
22
|
+
|
|
23
|
+
### 已确认事实
|
|
24
|
+
|
|
25
|
+
- 待填写
|
|
26
|
+
|
|
27
|
+
### 待确认项
|
|
28
|
+
|
|
29
|
+
- 待填写
|
|
30
|
+
|
|
31
|
+
### 权限边界
|
|
32
|
+
|
|
33
|
+
- 个人项目中,agent 可以在范围明确且工作树已检查后执行本地分支命名、创建、commit、tag 和本地 merge。
|
|
34
|
+
- 未经用户明确授权,不执行远程 Git 刷新、推送、GitHub release、商店提交、部署、数据库写入或生产配置写入。
|
|
35
|
+
- 未通过实现准入,不修改业务代码、配置、脚本、迁移或部署文件。
|
|
36
|
+
- 不将内部工作流阶段产物、PRD、调研、法务、隐私、合规、复盘或内部决策材料写入目标代码仓库;公开 README、CHANGELOG、release notes、商店文案和隐私政策可以在发布阶段明确记录为代码侧材料。
|
|
37
|
+
- 不在 `main` 或 `prod` 上直接开发;实现默认在从 `prod` 创建的开发分支上进行,完成后合并到 `main` 测试,再由 `main` 提升到 `prod`;个人项目不创建 `test` 分支。
|
|
38
|
+
- 首个线上版本前不启用自动生产部署;CI/CD 变更必须记录触发分支、必跑检查、密钥存放、部署审批、回滚路径和证据。
|
|
39
|
+
|
|
40
|
+
## 输出
|
|
41
|
+
|
|
42
|
+
- 待填写
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
schema_version: "1.0"
|
|
2
|
+
generated_at: "<ISO timestamp>"
|
|
3
|
+
generated_by: "agent-workflow-init"
|
|
4
|
+
|
|
5
|
+
team:
|
|
6
|
+
name: "<TODO>"
|
|
7
|
+
business_definition: "<TODO>"
|
|
8
|
+
target_users: []
|
|
9
|
+
|
|
10
|
+
workspace_context:
|
|
11
|
+
operating_defaults:
|
|
12
|
+
planning_language: "zh-CN"
|
|
13
|
+
display_language: "zh-CN-first"
|
|
14
|
+
language_policy: "Use Simplified Chinese by default for workflow communication, stage deliverables, status summaries, reviews, tests, release records, and retrospectives; preserve official names and technical terms in their original form."
|
|
15
|
+
terminology_policy: "Keep product names, brand names, code identifiers, commands, file paths, branch names, APIs, SDKs, frameworks, protocols, standards, error messages, and official English terms unchanged unless the user asks for localization."
|
|
16
|
+
|
|
17
|
+
enabled_tools: []
|
|
18
|
+
detected_tools: []
|
|
19
|
+
|
|
20
|
+
source_materials:
|
|
21
|
+
business_intro:
|
|
22
|
+
label: "业务介绍"
|
|
23
|
+
status: "missing"
|
|
24
|
+
paths: []
|
|
25
|
+
project_docs:
|
|
26
|
+
label: "项目资料"
|
|
27
|
+
status: "missing"
|
|
28
|
+
paths: []
|
|
29
|
+
ui_specs:
|
|
30
|
+
label: "UI 设计文件"
|
|
31
|
+
status: "missing"
|
|
32
|
+
paths: []
|
|
33
|
+
frontend_rules:
|
|
34
|
+
label: "前端开发规范"
|
|
35
|
+
status: "missing"
|
|
36
|
+
paths: []
|
|
37
|
+
backend_rules:
|
|
38
|
+
label: "后端开发规范"
|
|
39
|
+
status: "missing"
|
|
40
|
+
paths: []
|
|
41
|
+
testing_rules:
|
|
42
|
+
label: "测试规范"
|
|
43
|
+
status: "missing"
|
|
44
|
+
paths: []
|
|
45
|
+
market_research:
|
|
46
|
+
label: "市场与竞品资料"
|
|
47
|
+
status: "missing"
|
|
48
|
+
paths: []
|
|
49
|
+
|
|
50
|
+
repos: []
|
|
51
|
+
|
|
52
|
+
branch_model:
|
|
53
|
+
type: "prod-main-development"
|
|
54
|
+
production_branch: "prod"
|
|
55
|
+
integration_branch: "main"
|
|
56
|
+
development_branch_base: "prod"
|
|
57
|
+
testing_branch: "main"
|
|
58
|
+
test_branch_policy: "Do not create a separate test branch for personal projects; main is the testing/integration branch."
|
|
59
|
+
release_flow: "Create development branches from current prod, develop locally on the development branch, merge completed work into main for testing, then promote main to prod for release."
|
|
60
|
+
feature_branch_rule: "Use feature/<short-name>, fix/<short-name>, or dev/<short-name> development branches created from prod; agent may create local branches, local commits, local tags, and local merges after scope and working tree checks."
|
|
61
|
+
worktree_dir: "_worktrees"
|
|
62
|
+
|
|
63
|
+
risk_policy:
|
|
64
|
+
local_git_operations: "agent-allowed-after-scope-check"
|
|
65
|
+
branch_creation: "agent-allowed-for-personal-repos"
|
|
66
|
+
commit_tag_local_merge: "agent-allowed-after-verification"
|
|
67
|
+
remote_git_operations: "explicit-user-authorization-required"
|
|
68
|
+
push_and_release: "explicit-user-authorization-required"
|
|
69
|
+
outbound_marketing_actions: "explicit-user-authorization-required"
|
|
70
|
+
paid_ad_spend: "manual-only"
|
|
71
|
+
ci_workflow_changes: "manual-review-required"
|
|
72
|
+
cd_workflow_changes: "manual-review-required"
|
|
73
|
+
auto_deploy_before_first_prod_release: "blocked"
|
|
74
|
+
production_deployments: "manual-approval-required-until-guarded-auto-approved"
|
|
75
|
+
database_writes: "manual-only"
|
|
76
|
+
config_writes: "manual-only"
|
|
77
|
+
high_risk_files:
|
|
78
|
+
- "ci/**"
|
|
79
|
+
- "cd/**"
|
|
80
|
+
- "deploy/**"
|
|
81
|
+
- "*.env*"
|
|
82
|
+
- "application*.yml"
|
|
83
|
+
- "application*.yaml"
|
|
84
|
+
- "bootstrap*.yml"
|
|
85
|
+
- "bootstrap*.yaml"
|
|
86
|
+
- "pom.xml"
|
|
87
|
+
- "package.json"
|
|
88
|
+
- "lockfiles"
|
|
89
|
+
|
|
90
|
+
workflow:
|
|
91
|
+
features_dir: "features"
|
|
92
|
+
business_dir: "business"
|
|
93
|
+
specs_dir: "specs"
|
|
94
|
+
standards_dir: "workflow/standards"
|
|
95
|
+
constitution: "workflow/constitution.md"
|
|
96
|
+
core_dir: "workflow/core"
|
|
97
|
+
adapters_dir: "workflow/adapters"
|
|
98
|
+
require_stage_gate_for_code: true
|
|
99
|
+
require_feature_branch_for_code: true
|
|
100
|
+
complexity_tiers: "S/M/L"
|
|
101
|
+
definition_gate: "frozen-contract-with-lint-required-for-m-l; starred-mini-contract-for-s"
|
|
102
|
+
done_verdict: "all-blocking-oracles-pass-or-user-waived"
|
|
103
|
+
same_repo_parallel_policy: "worktree-required-after-implementation-stage"
|
|
104
|
+
business_review_cadence: "weekly-metrics, monthly-strategy, quarterly-positioning"
|