@mstar-harness/opencode 1.2.0 → 1.2.1
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
CHANGED
|
@@ -4,6 +4,13 @@ All notable changes to the `@mstar-harness/opencode` package are documented in t
|
|
|
4
4
|
|
|
5
5
|
The monorepo root [CHANGELOG.md](../../CHANGELOG.md) summarizes cross-surface releases.
|
|
6
6
|
|
|
7
|
+
## 1.2.1
|
|
8
|
+
|
|
9
|
+
- Bundled commands: `/iteration-start` Cursor Plan mode path — blank Phase 1 CreatePlan scaffold, staged grill-me plan updates, Build-gated Review chain.
|
|
10
|
+
- Bundled skills: `mstar-iteration` §1.2 host Plan UX scaffold-then-converge; `mstar-host` Cursor Phase 1 Plan mode bridge (no command-name reverse refs).
|
|
11
|
+
|
|
12
|
+
See root [CHANGELOG.md](../../CHANGELOG.md) **1.2.1**.
|
|
13
|
+
|
|
7
14
|
## 1.2.0
|
|
8
15
|
|
|
9
16
|
- Bundled commands: add `/iteration-loop` (autonomous Phase 1→5; optional `direction` + `scale`).
|
|
@@ -22,17 +22,106 @@ Start a new Morning Star harness iteration. **Not Done until the Review & Edit c
|
|
|
22
22
|
|
|
23
23
|
**完成定义**:compass `status: locked` + 三角色 invoke 已返回 + pre-commit checklist 全 `[x]` — 不是初稿落盘。
|
|
24
24
|
|
|
25
|
-
Detailed workflow → **`mstar-iteration` § Phase 1
|
|
25
|
+
Detailed workflow → **`mstar-iteration` § Phase 1**(含 §1.6 Review & Edit chain);per-plan Prepare gates → **`mstar-phase-gates`**(specify → clarify → plan)。
|
|
26
|
+
|
|
27
|
+
**Path split(HARD)**:
|
|
28
|
+
|
|
29
|
+
| 宿主上下文 | 走哪条 |
|
|
30
|
+
|------------|--------|
|
|
31
|
+
| **Cursor Plan mode**(CreatePlan / Plan 会话活跃) | §0 Boot → §P(本命令 Plan 分支)— **先**空白 CreatePlan,再动态 grill-me 改文档;**Build 前不执行** Review 链 / commit / integration 分支 |
|
|
32
|
+
| **其它**(Agent、OpenCode、非 Plan) | §0 Boot → §1–§6(Research → Explore → grill-me → Write → Review → branch) |
|
|
26
33
|
|
|
27
34
|
## 0. Boot
|
|
28
35
|
|
|
29
36
|
1. `mstar-harness-core`
|
|
30
37
|
2. `mstar-roles` → `references/project-manager.md`
|
|
31
|
-
3. `mstar-iteration` → **§ Phase 1
|
|
38
|
+
3. `mstar-iteration` → **§ Phase 1**(迭代范围、compass 模板、**§1.5.5 产物边界**、§1.6 Review & Edit chain、状态初始化)
|
|
32
39
|
4. `mstar-dispatch-gates`
|
|
33
40
|
5. `mstar-phase-gates` → Prepare(specify → clarify → plan)
|
|
34
41
|
6. `mstar-plan-conventions`, `mstar-plan-artifacts`
|
|
35
|
-
7. `mstar-host` → active host reference(invoke
|
|
42
|
+
7. `mstar-host` → active host reference(invoke 能力);若 Cursor Plan mode → 另读 **`cursor-plan-mode-bridge.md`**(`mstar-iteration` Phase 1 in Plan mode)
|
|
43
|
+
|
|
44
|
+
**若 Cursor Plan mode 活跃 → 进入 §P;否则继续 §1。**
|
|
45
|
+
|
|
46
|
+
## P. Cursor Plan mode(Phase 1 scaffold → staged grill → Build)
|
|
47
|
+
|
|
48
|
+
**Detect**:会话处于 Cursor Plan mode(系统要求 CreatePlan / SwitchMode,或 Plan 工具可用且当前为 Plan 会话)。
|
|
49
|
+
|
|
50
|
+
**语义**:Plan 模式期间 **只维护 CreatePlan + SSOT 草稿**;**不**把 grill 段标成已执行 todo;**不**派发 Review 链;**不** commit;**不**建 integration 分支。点 **Build** 后才执行下方 Build todos(对齐 `mstar-host/references/cursor-plan-mode-bridge.md` · Phase 1 in Plan mode)。
|
|
51
|
+
|
|
52
|
+
### P.1 Research(只读)
|
|
53
|
+
|
|
54
|
+
执行与 §1 相同的调研(structured + unstructured + `STRATEGY.md`)。**不要**在本步写 compass/plans 终稿。
|
|
55
|
+
|
|
56
|
+
### P.2 Early CreatePlan(空白脚手架 — 先于方向锁定)
|
|
57
|
+
|
|
58
|
+
Research 后 **立刻** CreatePlan(**禁止**等 grill-me 全部完成再 CreatePlan)。
|
|
59
|
+
|
|
60
|
+
**CreatePlan 最小结构**(session mirror;dual-write 草稿见 P.3):
|
|
61
|
+
|
|
62
|
+
```markdown
|
|
63
|
+
# Phase 1: <iteration-id-or-TBD>
|
|
64
|
+
|
|
65
|
+
## Direction
|
|
66
|
+
TBD
|
|
67
|
+
|
|
68
|
+
## Scope
|
|
69
|
+
TBD
|
|
70
|
+
|
|
71
|
+
## Acceptance Criteria
|
|
72
|
+
TBD
|
|
73
|
+
|
|
74
|
+
## Non-Goals
|
|
75
|
+
TBD
|
|
76
|
+
|
|
77
|
+
## Delivery Branch Policy
|
|
78
|
+
| Field | Value |
|
|
79
|
+
|-------|-------|
|
|
80
|
+
| iteration_base_branch | TBD |
|
|
81
|
+
| spec_integration_branch | TBD |
|
|
82
|
+
| target_branch | TBD |
|
|
83
|
+
|
|
84
|
+
## Plans
|
|
85
|
+
| plan_id | Name | Status | Notes |
|
|
86
|
+
|---------|------|--------|-------|
|
|
87
|
+
| TBD | | Todo | |
|
|
88
|
+
|
|
89
|
+
## Grill-me log
|
|
90
|
+
(每段收敛后追加:日期 / 议题 / 决议)
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
**Build 才勾的 todos**(顺序;**不要**把 grill 段写成 Build todo):
|
|
94
|
+
|
|
95
|
+
1. `harness-init` — 若 `{HARNESS_DIR}` / `status.json` 缺失则初始化
|
|
96
|
+
2. `finalize-compass-plans` — 将 CreatePlan 正文落成 compass + `{PLAN_DIR}/` plans + `status.json` 登记 + `{ITERATION_DIR}/README.md`
|
|
97
|
+
3. `review-edit-product-manager` — §5.1 invoke
|
|
98
|
+
4. `review-edit-architect` — §5.2 invoke
|
|
99
|
+
5. `review-edit-writing-specialist` — §5.3 invoke
|
|
100
|
+
6. `pm-lock` — §5.4 compass `status: locked` + Prepare gates
|
|
101
|
+
7. `integration-branch` — §6
|
|
102
|
+
|
|
103
|
+
### P.3 Dynamic grill-me(不固定段数)
|
|
104
|
+
|
|
105
|
+
**Before this step:** Read `skills/grill-me/SKILL.md`(**仅本命令**引用;勿从 `mstar-*` 加载)。
|
|
106
|
+
|
|
107
|
+
**Direction lock mode: `interactive`**。按决策树 **动态切段**(段数不固定;随用户需求增减):
|
|
108
|
+
|
|
109
|
+
- 一段一问;能靠读代码回答的先探索代码
|
|
110
|
+
- 每段收敛后 **立刻** 更新 CreatePlan body(Direction / Scope / Acceptance / Non-Goals / Branch policy / Plans 表)并 **追加** `## Grill-me log`
|
|
111
|
+
- 同轮 dual-write SSOT **草稿**(可选但推荐):`{ITERATION_DIR}/` compass stub、`{PLAN_DIR}/` plan stubs、`status.json` 业务 plan 行(方向收敛后至少有草稿登记)
|
|
112
|
+
- **禁止**:固定死 4/5 段;把 grill 标成「已执行完的 todo」;Plan 模式内派发 §5 / commit / §6
|
|
113
|
+
|
|
114
|
+
用户表示方向/范围已够用、可 Build 时 → 停止 grill;确认 CreatePlan 与草稿 SSOT 已反映锁定内容。
|
|
115
|
+
|
|
116
|
+
### P.4 Build(执行 Phase 1 可执行门禁)
|
|
117
|
+
|
|
118
|
+
用户点击 **Build**(或 Plan → Agent)后:
|
|
119
|
+
|
|
120
|
+
1. 按 Build todos 顺序执行:`harness-init` → `finalize-compass-plans` → §5 Review 链(5.1→5.2→5.3)→ `pm-lock` → §6
|
|
121
|
+
2. **禁止**把 Build 当成重新跑一遍 grill-me
|
|
122
|
+
3. pre-commit checklist(见 §5)全 `[x]` 后再 commit / push integration 分支
|
|
123
|
+
|
|
124
|
+
**非 Plan 路径从这里继续 ↓**
|
|
36
125
|
|
|
37
126
|
## 1. Research
|
|
38
127
|
|
|
@@ -57,6 +146,8 @@ Also read `STRATEGY.md`(if exists)for strategic alignment.
|
|
|
57
146
|
|
|
58
147
|
## 2. Explore Directions
|
|
59
148
|
|
|
149
|
+
> **非 Plan 路径**。Cursor Plan mode 已在 §P 处理;勿与 §P 并行再跑一遍。
|
|
150
|
+
|
|
60
151
|
Explore candidate directions targeting **product completeness**:
|
|
61
152
|
|
|
62
153
|
- Default to completing deferred items from previous iterations
|
|
@@ -65,9 +156,11 @@ Explore candidate directions targeting **product completeness**:
|
|
|
65
156
|
|
|
66
157
|
## 3. Lock Direction — bundled `grill-me`
|
|
67
158
|
|
|
159
|
+
> **非 Plan 路径**。Cursor Plan mode 用 §P.3 动态 grill-me(先 CreatePlan 再分阶段改文档)。
|
|
160
|
+
|
|
68
161
|
**Direction lock mode: `interactive`**(`mstar-iteration` §1.2 默认;本命令不使用 `autonomous`)。
|
|
69
162
|
|
|
70
|
-
This command bundles a **non-`mstar-*`** skill at `skills/grill-me/SKILL.md`. **Only this command step
|
|
163
|
+
This command bundles a **non-`mstar-*`** skill at `skills/grill-me/SKILL.md`. **Only this command step**(及 §P.3)references it — **do not** load it from `mstar-harness-core` or other `mstar-*` skills.
|
|
71
164
|
|
|
72
165
|
**Before this step:** Read `skills/grill-me/SKILL.md`.
|
|
73
166
|
|
|
@@ -83,6 +176,8 @@ Run **grill-me** to stress-test candidate directions with the user:
|
|
|
83
176
|
|
|
84
177
|
## 4. Write Compass & Plans
|
|
85
178
|
|
|
179
|
+
> **非 Plan 路径**。Plan mode 在 §P.2–P.3 维护草稿,Build 时由 `finalize-compass-plans` 落盘终稿。
|
|
180
|
+
|
|
86
181
|
Produce harness artifacts per **`mstar-iteration` § 1.3**(template: `mstar-iteration/references/iteration-compass-template.md`):
|
|
87
182
|
|
|
88
183
|
- `{ITERATION_DIR}/<iteration-id>-delivery-compass.md` — YAML frontmatter **must** include `iteration_base_branch`, `target_branch`, `status: active`
|
|
@@ -183,6 +183,23 @@ When `/pm` runs under Plan mode:
|
|
|
183
183
|
- Prepare phase (`specify → clarify → plan`) still applies; `mirror-plan` is the harness **`plan`** artifact, not a substitute for clarify.
|
|
184
184
|
- Before QC dispatch, read **`mstar-review-qc`** (unchanged).
|
|
185
185
|
|
|
186
|
+
## `mstar-iteration` Phase 1 in Plan mode
|
|
187
|
+
|
|
188
|
+
When starting a **new iteration** under Cursor Plan mode (host command may orchestrate Phase 1):
|
|
189
|
+
|
|
190
|
+
| Phase | Behavior | Forbidden |
|
|
191
|
+
|-------|----------|-----------|
|
|
192
|
+
| Early CreatePlan | After read-only research, **immediately** CreatePlan with blank Phase 1 scaffold (Direction / Scope / Acceptance / Non-Goals / Branch policy / Plans / Grill log placeholders) + Build-bound todos | Wait until interactive direction lock finishes before CreatePlan |
|
|
193
|
+
| Staged interactive lock | Dynamic number of clarify stages in the Plan session; after each stage, **update CreatePlan body** and dual-write SSOT **drafts** (`{ITERATION_DIR}` compass stub, `{PLAN_DIR}` plan stubs, `status.json` rows when direction converges) | Treat lock stages as completed Build todos; fix a hard-coded stage count; dispatch Review & Edit / commit / integration branch |
|
|
194
|
+
| Pre-Build | Maintain documents only | Execute Review chain, commit, or create `spec_integration_branch` |
|
|
195
|
+
| Build | Run Phase 1 executable todos: finalize SSOT → sequential Review & Edit (`product-manager` → `architect` → `writing-specialist`) → PM lock → integration branch | Replay interactive direction lock as if Plan session never happened |
|
|
196
|
+
|
|
197
|
+
**Plan mode ≠ executing todos.** Build = Phase 1 executable gate (Review chain, lock, branch).
|
|
198
|
+
|
|
199
|
+
**Bootstrap relationship**: ordinary per-plan work still uses `harness-init` / `spec-register` / `mirror-plan`. Phase 1 CreatePlan uses Phase 1 todos (`harness-init` → `finalize-compass-plans` → review-edit seats → `pm-lock` → `integration-branch`). Business `plans[]` rows should exist as drafts before Build when direction has converged.
|
|
200
|
+
|
|
201
|
+
**Helpers**: third-party interview helpers are **not** named here; host **command** layer discovers them when needed.
|
|
202
|
+
|
|
186
203
|
## Anti-patterns
|
|
187
204
|
|
|
188
205
|
| Anti-pattern | Fix |
|
|
@@ -194,6 +211,8 @@ When `/pm` runs under Plan mode:
|
|
|
194
211
|
| Skip `spec-register` | Add `plans[]` row before implement |
|
|
195
212
|
| Build starts coding in the parent session | Resume PM context; dispatch implement work or block on missing Assignment |
|
|
196
213
|
| Follow-up only in chat / no roadmap section | Add `Roadmap / deferred scope` to CreatePlan and SSOT plan before implement |
|
|
214
|
+
| Phase 1 Plan mode: grill/lock finishes before first CreatePlan | CreatePlan blank scaffold first; update body each lock stage |
|
|
215
|
+
| Phase 1 Plan mode: Review / commit / branch before Build | Keep Pre-Build document-only; execute those todos after Build |
|
|
197
216
|
|
|
198
217
|
## Related skills
|
|
199
218
|
|
|
@@ -29,6 +29,8 @@ Before **SwitchMode → Agent**: mirror plan exists; `status.json` lists `plan_i
|
|
|
29
29
|
|
|
30
30
|
After **Build**: treat the run as plan resume, not `/pm` replay. Reload `mstar-harness-core` + this Cursor reference, resume Morning Star plans as `project-manager` orchestration, and dispatch implementation through Task unless the user explicitly overrides the harness.
|
|
31
31
|
|
|
32
|
+
**`mstar-iteration` Phase 1 in Plan mode**: CreatePlan blank scaffold **before** interactive direction lock; update CreatePlan + SSOT drafts each lock stage; **do not** run Review & Edit / commit / integration branch until **Build**. Detail → **`cursor-plan-mode-bridge.md`** § `mstar-iteration` Phase 1 in Plan mode.
|
|
33
|
+
|
|
32
34
|
Enforcement: `rules/mstar-cursor-plan-mode.mdc` when plugin active.
|
|
33
35
|
|
|
34
36
|
## `/pm` precedence
|
|
@@ -92,6 +92,8 @@ compass/plans 初稿落盘前,必须锁定**单一**迭代方向、成功标
|
|
|
92
92
|
| **`interactive`** | **默认**(未显式声明 mode 时一律用此) | 与用户/产品**逐问**收敛方向与 branch policy;不得静默默认 `main`/`master` |
|
|
93
93
|
| **`autonomous`** | **仅**当 caller / Assignment **显式**声明 `Direction lock mode: autonomous`(或等价书面 opt-in) | 代码优先调研 → 排序候选 → **锁定推荐方向并落盘 rationale**;不因「是否同意该方向」例行问用户。细则 → **`references/autonomous-direction-lock.md`** |
|
|
94
94
|
|
|
95
|
+
**宿主 Plan UX(interactive)**:若宿主提供 Plan 会话(先写 session plan、后点 Build 才执行 todos),允许 **先 scaffold 空白 Phase 1 文档/todos,再分阶段收敛**方向与 branch policy,并在每段收敛后更新 scaffold;**非** Plan 会话仍按「收敛后再写 compass/plans 初稿」的默认顺序。此条 **不**改变 autonomous 路径,也 **不**要求非 Plan 宿主先写空文件。
|
|
96
|
+
|
|
95
97
|
**禁止**:在未显式 opt-in 时自行切换到 `autonomous`(例如仅因读了本 skill 或存在 roadmap next)。
|
|
96
98
|
|
|
97
99
|
**Branch policy gate(interactive — 默认路径)**:若用户、现有 roadmap、或项目约定未明确 `iteration_base_branch` / `target_branch`,PM 必须检查当前分支并向用户确认。**不得**因为存在 `main` / `master` 就默认从默认分支开 iteration 或向默认分支提 PR。
|