@rpamis/comet 0.1.4 → 0.1.5

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.
@@ -1,123 +1,123 @@
1
- ---
2
- name: comet-open
3
- description: "Comet 阶段 1:开启。用 /comet-open 调用。通过 OpenSpec 探索想法、创建 change 结构(proposal + design + tasks)。"
4
- ---
5
-
6
- # Comet 阶段 1:开启(Open
7
-
8
- ## 前置条件
9
-
10
- - 无活跃 change,或用户希望创建新 change
11
-
12
- ## 步骤
13
-
14
- ### 0. 入口状态验证(Entry Check
15
-
16
- 在执行任何操作之前,读取并验证当前状态:
17
-
18
- **检查清单:**
19
- 1. `openspec/changes/<name>/` 目录已存在(由 openspec-new-change 创建)
20
- 2. `openspec/changes/<name>/.comet.yaml` 文件不存在(尚未初始化)
21
- 3. `openspec/changes/<name>/proposal.md` 存在且非空
22
- 4. `openspec/changes/<name>/design.md` 存在且非空
23
- 5. `openspec/changes/<name>/tasks.md` 存在且非空
24
-
25
- **验证方式:**
26
- - 读取以上路径确认存在/不存在
27
- - `.comet.yaml` 已存在,读取其 `phase` 字段:如 phase 不为空,输出 `[HARD STOP]` 并提示可能已有活跃 change
28
-
29
- **失败输出:**
30
- ```
31
- [HARD STOP] Entry check failed for comet-open
32
- Expected: .comet.yaml does not exist, proposal.md + design.md + tasks.md exist
33
- Actual: phase=<实际值>, design_doc=<实际值> (或文件不存在)
34
- Suggestion: Check if another change with the same name is already active.
35
- ```
36
-
37
- 验证通过后才进入步骤 1
38
-
39
- ### 1. 探索想法
40
-
41
- **立即执行:** 使用 Skill 工具加载 `openspec-explore` 技能。禁止跳过此步骤。
42
-
43
- 技能加载后,按其指引自由探索问题空间。
44
-
45
- ### 2. 创建 Change 结构
46
-
47
- **立即执行:** 使用 Skill 工具加载 `openspec-new-change` 技能。若用户意图未明确、需要先形成建议,改为加载 `openspec-propose`。禁止跳过此步骤。
48
-
49
- 确认以下产物已创建:
50
-
51
- ```
52
- openspec/changes/<name>/
53
- ├── .openspec.yaml
54
- ├── .comet.yaml
55
- ├── proposal.md # Why + What:问题、目标、范围
56
- ├── design.md # How(高层):架构决策、方案选型
57
- └── tasks.md # 任务清单(勾选框)
58
- ```
59
-
60
- ### 2b. 增量修改已有 Capability(可选)
61
-
62
- **触发条件**:proposal.md 中提到修改已有 capability,或用户明确要求增量修改。
63
-
64
- **适用场景**:对已归档功能做增量修改(而非全新 capability)。
65
-
66
- proposal.md 目标涉及修改已有 capability 时:
67
- 1. 查找 `openspec/specs/<capability>/spec.md` 是否已存在主 spec
68
- 2. 如已存在,将主 spec 复制为 delta spec 基线:
69
-
70
- ```bash
71
- mkdir -p openspec/changes/<name>/specs/<capability>/
72
- cp openspec/specs/<capability>/spec.md openspec/changes/<name>/specs/<capability>/spec.md
73
- ```
74
-
75
- 3. 在复制的 delta spec 中,按 delta 格式组织变更(`## ADDED`、`## MODIFIED`、`## REMOVED`)
76
- 4. proposal.md 中注明 `基于已有 capability: <capability-name>`
77
-
78
- ### 3. 初始化 Comet 状态
79
-
80
- `openspec/changes/<name>/` 下创建独立的 `.comet.yaml` 文件:
81
-
82
- ```yaml
83
- workflow: full
84
- phase: design
85
- design_doc: null
86
- plan: null
87
- build_mode: null
88
- verify_mode: null
89
- verify_result: pending
90
- verified_at: null
91
- archived: false
92
- ```
93
-
94
- 【写入验证】创建完成后必须验证:
95
- cat openspec/changes/<name>/.comet.yaml
96
- 确认 workflow 行的值为 "full"
97
- 确认 phase 行的值为 "design"
98
- 确认 design_doc 行的值为 "null"
99
- 确认 plan 行的值为 "null"
100
- 确认 build_mode 行的值为 "null"
101
- 确认 verify_mode 行的值为 "null"
102
- 确认 verify_result 行的值为 "pending"
103
- 确认 verified_at 行的值为 "null"
104
- 确认 archived 行的值为 "false"
105
- 如任一字段不匹配,重试写入后再次验证。最多重试 2 次,仍失败则报告错误并终止。
106
-
107
- ### 4. 内容完整性检查
108
-
109
- 确认三个文档内容完整:
110
- - **proposal.md**:问题背景、目标、范围、非目标
111
- - **design.md**:高层架构决策、方案选型、数据流
112
- - **tasks.md**:任务列表,每个任务有明确描述
113
-
114
- ## 退出条件
115
-
116
- - proposal.mddesign.mdtasks.md 均已创建且内容完整
117
- - **阶段守卫**:运行 `bash $COMET_GUARD <change-name> open`,全部 PASS 后才允许流转
118
-
119
- ## 自动流转
120
-
121
- 退出条件满足后,**无需等待用户再次输入**,直接执行下一阶段:
122
-
123
- > **REQUIRED NEXT SKILL:** 调用 `comet-design` skill 进入深度设计阶段。
1
+ ---
2
+ name: comet-open
3
+ description: "Comet Phase 1: Open. Invoke with /comet-open. Explore ideas through OpenSpec and create change structure (proposal + design + tasks)."
4
+ ---
5
+
6
+ # Comet Phase 1: Open
7
+
8
+ ## Prerequisites
9
+
10
+ - No active change, or user wishes to create a new change
11
+
12
+ ## Steps
13
+
14
+ ### 0. Entry State Verification (Entry Check)
15
+
16
+ Before performing any operations, read and verify the current state:
17
+
18
+ **Checklist:**
19
+ 1. `openspec/changes/<name>/` directory exists (created by openspec-new-change)
20
+ 2. `openspec/changes/<name>/.comet.yaml` file does not exist (not yet initialized)
21
+ 3. `openspec/changes/<name>/proposal.md` exists and is non-empty
22
+ 4. `openspec/changes/<name>/design.md` exists and is non-empty
23
+ 5. `openspec/changes/<name>/tasks.md` exists and is non-empty
24
+
25
+ **Verification method:**
26
+ - Read the above paths to confirm existence/non-existence
27
+ - If `.comet.yaml` already exists, read its `phase` field: if phase is not empty, output `[HARD STOP]` and prompt that there may already be an active change
28
+
29
+ **Failure output:**
30
+ ```
31
+ [HARD STOP] Entry check failed for comet-open
32
+ Expected: .comet.yaml does not exist, proposal.md + design.md + tasks.md exist
33
+ Actual: phase=<actual-value>, design_doc=<actual-value> (or file does not exist)
34
+ Suggestion: Check if another change with the same name is already active.
35
+ ```
36
+
37
+ Proceed to Step 1 only after verification passes.
38
+
39
+ ### 1. Explore Idea
40
+
41
+ **Immediately execute:** Use the Skill tool to load the `openspec-explore` skill. Skipping this step is prohibited.
42
+
43
+ After the skill loads, freely explore the problem space following its guidance.
44
+
45
+ ### 2. Create Change Structure
46
+
47
+ **Immediately execute:** Use the Skill tool to load the `openspec-new-change` skill. If user intent is unclear and needs to form a proposal first, load `openspec-propose` instead. Skipping this step is prohibited.
48
+
49
+ Confirm the following artifacts have been created:
50
+
51
+ ```
52
+ openspec/changes/<name>/
53
+ ├── .openspec.yaml
54
+ ├── .comet.yaml
55
+ ├── proposal.md # Why + What: problem, goals, scope
56
+ ├── design.md # How (high-level): architectural decisions, solution selection
57
+ └── tasks.md # Task checklist (checkboxes)
58
+ ```
59
+
60
+ ### 2b. Incrementally Modify Existing Capability (Optional)
61
+
62
+ **Trigger condition:** proposal.md mentions modifying an existing capability, or user explicitly requests incremental modification.
63
+
64
+ **Applicable scenario:** Incremental modification to archived functionality (not a brand-new capability).
65
+
66
+ When proposal.md goals involve modifying an existing capability:
67
+ 1. Check if `openspec/specs/<capability>/spec.md` main spec already exists
68
+ 2. If it exists, copy the main spec as a delta spec baseline:
69
+
70
+ ```bash
71
+ mkdir -p openspec/changes/<name>/specs/<capability>/
72
+ cp openspec/specs/<capability>/spec.md openspec/changes/<name>/specs/<capability>/spec.md
73
+ ```
74
+
75
+ 3. In the copied delta spec, organize changes in delta format (`## ADDED`, `## MODIFIED`, `## REMOVED`)
76
+ 4. Note in proposal.md: `based on existing capability: <capability-name>`
77
+
78
+ ### 3. Initialize Comet State
79
+
80
+ Create an independent `.comet.yaml` file under `openspec/changes/<name>/`:
81
+
82
+ ```yaml
83
+ workflow: full
84
+ phase: design
85
+ design_doc: null
86
+ plan: null
87
+ build_mode: null
88
+ verify_mode: null
89
+ verify_result: pending
90
+ verified_at: null
91
+ archived: false
92
+ ```
93
+
94
+ 【Write verification】After creation, must verify:
95
+ cat openspec/changes/<name>/.comet.yaml
96
+ Confirm workflow line value is "full"
97
+ Confirm phase line value is "design"
98
+ Confirm design_doc line value is "null"
99
+ Confirm plan line value is "null"
100
+ Confirm build_mode line value is "null"
101
+ Confirm verify_mode line value is "null"
102
+ Confirm verify_result line value is "pending"
103
+ Confirm verified_at line value is "null"
104
+ Confirm archived line value is "false"
105
+ If any field does not match, retry write then verify again. Maximum 2 retries, report error and terminate if still fails.
106
+
107
+ ### 4. Content Completeness Check
108
+
109
+ Confirm the three documents have complete content:
110
+ - **proposal.md**: problem background, goals, scope, non-goals
111
+ - **design.md**: high-level architectural decisions, solution selection, data flow
112
+ - **tasks.md**: task list, each task has a clear description
113
+
114
+ ## Exit Conditions
115
+
116
+ - proposal.md, design.md, and tasks.md are all created with complete content
117
+ - **Phase guard**: Run `bash $COMET_GUARD <change-name> open`, allow transition only after all PASS
118
+
119
+ ## Automatic Transition
120
+
121
+ After exit conditions are met, **proceed immediately to the next phase without waiting for user input**:
122
+
123
+ > **REQUIRED NEXT SKILL:** Invoke `comet-design` skill to enter the deep design phase.
@@ -1,152 +1,152 @@
1
- ---
2
- name: comet-tweak
3
- description: "Comet 预设路径:非 bug 的小改动(tweak)。跳过 brainstorming 和完整 plan,直接 open → lightweight build → light verify → archive。适用于文案、配置、文档或 prompt 的局部优化。"
4
- ---
5
-
6
- # Comet 预设路径:Tweak
7
-
8
- Tweak Comet 五阶段能力的预设工作流,不是独立的平行流程。它复用 openbuildverifyarchive 能力,仅跳过 brainstorming 和完整 plan
9
-
10
- 适用于非 bug 的小范围变更,例如文案调整、配置调整、文档或 prompt 的局部优化。
11
-
12
- **适用条件**(必须全部满足):
13
- 1. 不新增 capability
14
- 2. 不改变架构
15
- 3. 不涉及接口变化
16
- 4. 通常不超过 3 tasks、5 个文件
17
-
18
- **不适用**:如变更过程中发现需要 capability、架构或接口调整,应升级为完整 `/comet` 流程。
19
-
20
- ---
21
-
22
- ## 流程(preset workflow4 阶段)
23
-
24
- ### 0. 入口状态验证(Entry Check
25
-
26
- 在执行任何操作之前,验证当前状态:
27
-
28
- **检查清单:**
29
- 1. `openspec/changes/<name>/` 目录不存在,或目录存在但 `.comet.yaml` 不存在(无冲突)
30
-
31
- **验证方式:**
32
- - `test -d openspec/changes/<name>` 检查目录
33
- - 如目录存在,`test -f openspec/changes/<name>/.comet.yaml` 检查配置文件
34
- - `.comet.yaml` 已存在,读取 `phase` 检查是否为未完成的 tweak
35
-
36
- **失败输出(有冲突):**
37
- ```
38
- [HARD STOP] Entry check failed for comet-tweak
39
- Expected: openspec/changes/<name>/.comet.yaml does not exist (new change)
40
- Actual: .comet.yaml exists with phase=<实际值>
41
- Suggestion: Pick a different change name, or check if an existing tweak is in progress.
42
- ```
43
-
44
- 验证通过后才进入流程步骤。
45
-
46
- 执行链路:open → lightweight build → light verify → archiveTweak 为每个阶段提供默认决策:精简开启、轻量构建、轻量验证、验证通过后归档。
47
-
48
- ### 1. 快速开启(preset open
49
-
50
- 复用 Comet open 能力创建 change,但使用 tweak 默认值:不执行 `openspec-explore` 长探索,直接进入精简 change 创建。
51
-
52
- **立即执行:** 使用 Skill 工具加载 `openspec-new-change` 技能。禁止跳过此步骤。
53
-
54
- 技能加载后,按其指引创建精简版产物:
55
- - `proposal.md` — 变更动机 + 目标 + 范围
56
- - `design.md` — 简短实现说明(无需方案对比)
57
- - `tasks.md` — 不超过 3 个任务
58
- - **无需 delta spec**(除非变更改变了已有 spec 的验收场景;一旦需要 delta spec,升级为完整 `/comet`)
59
-
60
- `openspec/changes/<name>/` 下创建独立的 `.comet.yaml` 文件:
61
-
62
- ```yaml
63
- workflow: tweak
64
- phase: build
65
- design_doc: null
66
- plan: null
67
- build_mode: direct
68
- verify_mode: light
69
- verify_result: pending
70
- verified_at: null
71
- archived: false
72
- ```
73
-
74
- 【写入验证】创建完成后必须验证:
75
- cat openspec/changes/<name>/.comet.yaml
76
- 确认 workflow 行的值为 "tweak"
77
- 确认 phase 行的值为 "build"
78
- 确认 design_doc 行的值为 "null"
79
- 确认 plan 行的值为 "null"
80
- 确认 build_mode 行的值为 "direct"
81
- 确认 verify_mode 行的值为 "light"
82
- 确认 verify_result 行的值为 "pending"
83
- 确认 verified_at 行的值为 "null"
84
- 确认 archived 行的值为 "false"
85
- 如任一字段不匹配,重试写入后再次验证。最多重试 2 次,仍失败则报告错误并终止。
86
-
87
- ### 2. 轻量构建(preset build
88
-
89
- 使用 tweak 默认值:`build_mode: direct`。跳过 `superpowers:brainstorming` `superpowers:writing-plans`。
90
-
91
- **立即执行:** tasks.md 逐个执行任务:
92
-
93
- 1. 读取 `openspec/changes/<name>/tasks.md`,获取未完成任务列表
94
- 2. 对每个未完成任务:
95
- - 根据任务描述修改目标文件
96
- - 运行 `mvn spotless:apply` 格式化
97
- - 运行相关测试确认通过
98
- - tasks.md 中对应 `- [ ]` 勾选为 `- [x]`
99
- - 提交代码,commit message 格式:`tweak: <简述变更>`
100
- 3. 全部任务完成后进入验证
101
-
102
- ### 3. 轻量验证(preset verify
103
-
104
- 复用 `/comet-verify`。Tweak 必须保持轻量验证条件:≤ 3 tasks、≤ 5 files、无 delta spec、无新 capability
105
-
106
- **立即执行:** 使用 Skill 工具加载 `comet-verify` 技能。禁止跳过此步骤。
107
-
108
- 如规模评估进入完整验证路径,停止 tweak,升级为完整 `/comet`。
109
-
110
- 验证通过后,按 `/comet-verify` 的规则将 `.comet.yaml` `verify_result` 记录为 `pass`,归档前不得跳过该状态。
111
-
112
- ### 4. 归档(preset archive
113
-
114
- 复用 `/comet-archive`。归档前必须满足 `.comet.yaml` `verify_result: pass`。
115
-
116
- **立即执行:** 使用 Skill 工具加载 `comet-archive` 技能进行归档。禁止跳过此步骤。
117
-
118
- ---
119
-
120
- ## 连续执行模式
121
-
122
- <IMPORTANT>
123
- Tweak 流程为 **一次性连续执行**。调用 `/comet-tweak` 后,agent 必须自动走完全部 4 个阶段,中间不停顿等待用户输入(除非遇到升级条件需要用户确认)。
124
-
125
- 执行顺序:快速开启轻量构建轻量验证归档完成
126
-
127
- 每个阶段完成后立即进入下一阶段,无需用户再次输入。阶段内部仍必须按上文要求调用对应 Comet/OpenSpec/Superpowers skill
128
- </IMPORTANT>
129
-
130
- ---
131
-
132
- ## 升级条件
133
-
134
- 执行过程中出现以下情况时,停止 tweak 流程,升级为完整 `/comet`:
135
-
136
- 1. 需要新增 capability
137
- 2. 需要架构调整
138
- 3. 需要接口变化
139
- 4. 影响范围扩大到 > 5 个文件
140
- 5. 任务数超过 3
141
- 6. 需要 delta spec
142
-
143
- 升级方式:在当前 change 基础上补充 Design Doc(执行 `/comet-design`),后续正常走完整流程。
144
-
145
- ---
146
-
147
- ## 退出条件
148
-
149
- - 小改动已完成,测试通过
150
- - change 已归档
151
- - 未新增 capability、架构调整或接口变化
152
- - **阶段守卫**:build → verify 前运行 `bash $COMET_GUARD <change-name> build`,verify → archive 前运行 `bash $COMET_GUARD <change-name> verify`
1
+ ---
2
+ name: comet-tweak
3
+ description: "Comet preset path: Non-bug small changes (tweak). Skip brainstorming and full plan, directly open → lightweight build → light verify → archive. Applicable for copy, configuration, documentation or prompt local optimization."
4
+ ---
5
+
6
+ # Comet Preset Path: Tweak
7
+
8
+ Tweak is a preset workflow of Comet's five-phase capabilities, not a separate parallel process. It reuses open, build, verify, archive capabilities, only skipping brainstorming and full plan.
9
+
10
+ Applicable for small-scale non-bug changes, such as copy adjustments, configuration adjustments, documentation or prompt local optimization.
11
+
12
+ **Applicable conditions** (all must be met):
13
+ 1. No new capability
14
+ 2. No architecture changes
15
+ 3. No interface changes involved
16
+ 4. Usually not exceeding 3 tasks, 5 files
17
+
18
+ **Not applicable**: If change process discovers need for capability, architecture, or interface adjustments, should upgrade to full `/comet` workflow.
19
+
20
+ ---
21
+
22
+ ## Process (preset workflow, 4 phases)
23
+
24
+ ### 0. Entry State Verification (Entry Check)
25
+
26
+ Before performing any operations, verify current state:
27
+
28
+ **Checklist:**
29
+ 1. `openspec/changes/<name>/` directory does not exist, or directory exists but `.comet.yaml` does not exist (no conflict)
30
+
31
+ **Verification method:**
32
+ - `test -d openspec/changes/<name>` to check directory
33
+ - If directory exists, `test -f openspec/changes/<name>/.comet.yaml` to check config file
34
+ - If `.comet.yaml` exists, read `phase` to check if it's an incomplete tweak
35
+
36
+ **Failure output (has conflict):**
37
+ ```
38
+ [HARD STOP] Entry check failed for comet-tweak
39
+ Expected: openspec/changes/<name>/.comet.yaml does not exist (new change)
40
+ Actual: .comet.yaml exists with phase=<actual-value>
41
+ Suggestion: Pick a different change name, or check if an existing tweak is in progress.
42
+ ```
43
+
44
+ Proceed to process steps only after verification passes.
45
+
46
+ Execution chain: open → lightweight build → light verify → archive. Tweak provides default decisions for each phase: streamlined open, lightweight build, lightweight verification, archive after verification passes.
47
+
48
+ ### 1. Quick Open (preset open)
49
+
50
+ Reuse Comet open capability to create change, but use tweak defaults: do not execute `openspec-explore` long exploration, directly enter streamlined change creation.
51
+
52
+ **Immediately execute:** Use the Skill tool to load the `openspec-new-change` skill. Skipping this step is prohibited.
53
+
54
+ After the skill loads, follow its guidance to create streamlined artifacts:
55
+ - `proposal.md` — change motivation + goals + scope
56
+ - `design.md` — brief implementation description (no solution comparison needed)
57
+ - `tasks.md` — not exceeding 3 tasks
58
+ - **No delta spec needed** (unless change changes existing spec acceptance scenarios; once delta spec needed, upgrade to full `/comet`)
59
+
60
+ Create independent `.comet.yaml` file under `openspec/changes/<name>/`:
61
+
62
+ ```yaml
63
+ workflow: tweak
64
+ phase: build
65
+ design_doc: null
66
+ plan: null
67
+ build_mode: direct
68
+ verify_mode: light
69
+ verify_result: pending
70
+ verified_at: null
71
+ archived: false
72
+ ```
73
+
74
+ 【Write verification】After creation completion, must verify:
75
+ cat openspec/changes/<name>/.comet.yaml
76
+ Confirm workflow line value is "tweak"
77
+ Confirm phase line value is "build"
78
+ Confirm design_doc line value is "null"
79
+ Confirm plan line value is "null"
80
+ Confirm build_mode line value is "direct"
81
+ Confirm verify_mode line value is "light"
82
+ Confirm verify_result line value is "pending"
83
+ Confirm verified_at line value is "null"
84
+ Confirm archived line value is "false"
85
+ If any field does not match, retry write then verify again. Maximum 2 retries, report error and terminate if still fails.
86
+
87
+ ### 2. Lightweight Build (preset build)
88
+
89
+ Use tweak defaults: `build_mode: direct`. Skip `superpowers:brainstorming` and `superpowers:writing-plans`.
90
+
91
+ **Immediately execute:** Execute tasks one by one according to tasks.md:
92
+
93
+ 1. Read `openspec/changes/<name>/tasks.md`, get incomplete task list
94
+ 2. For each incomplete task:
95
+ - Modify target file according to task description
96
+ - Run `mvn spotless:apply` to format
97
+ - Run related tests to confirm pass
98
+ - Check corresponding `- [ ]` to `- [x]` in tasks.md
99
+ - Commit code, commit message format: `tweak: <brief change description>`
100
+ 3. After all tasks complete, enter verification
101
+
102
+ ### 3. Lightweight Verification (preset verify)
103
+
104
+ Reuse `/comet-verify`. Tweak must maintain lightweight verification conditions: ≤ 3 tasks, 5 files, no delta spec, no new capability.
105
+
106
+ **Immediately execute:** Use the Skill tool to load the `comet-verify` skill. Skipping this step is prohibited.
107
+
108
+ If scale assessment enters full verification path, stop tweak, upgrade to full `/comet`.
109
+
110
+ After verification passes, record `.comet.yaml` `verify_result` as `pass` according to `/comet-verify` rules, must not skip this status before archiving.
111
+
112
+ ### 4. Archive (preset archive)
113
+
114
+ Reuse `/comet-archive`. Must satisfy `verify_result: pass` in `.comet.yaml` before archiving.
115
+
116
+ **Immediately execute:** Use the Skill tool to load the `comet-archive` skill to archive. Skipping this step is prohibited.
117
+
118
+ ---
119
+
120
+ ## Continuous Execution Mode
121
+
122
+ <IMPORTANT>
123
+ Tweak workflow is **one-time continuous execution**. After invoking `/comet-tweak`, agent must automatically complete all 4 phases, without pausing to wait for user input mid-way (unless encountering upgrade conditions requiring user confirmation).
124
+
125
+ Execution order: quick open lightweight build lightweight verification archivecomplete
126
+
127
+ After each phase completes, immediately enter next phase, no need for user input again. Within each phase, must still call corresponding Comet/OpenSpec/Superpowers skill according to above requirements.
128
+ </IMPORTANT>
129
+
130
+ ---
131
+
132
+ ## Upgrade Conditions
133
+
134
+ When the following situations occur during execution, stop tweak workflow, upgrade to full `/comet`:
135
+
136
+ 1. Need new capability
137
+ 2. Need architecture adjustments
138
+ 3. Need interface changes
139
+ 4. Impact scope expands to > 5 files
140
+ 5. Task count exceeds 3
141
+ 6. Need delta spec
142
+
143
+ Upgrade method: On current change basis, supplement Design Doc (execute `/comet-design`), then proceed normally with full workflow.
144
+
145
+ ---
146
+
147
+ ## Exit Conditions
148
+
149
+ - Small change completed, tests pass
150
+ - Change archived
151
+ - No new capability, architecture adjustments, or interface changes
152
+ - **Phase guard**: Before build → verify run `bash $COMET_GUARD <change-name> build`, before verify → archive run `bash $COMET_GUARD <change-name> verify`