@mstar-harness/opencode 2.0.4 → 2.0.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.
- package/CHANGELOG.md +10 -0
- package/README.md +1 -1
- package/harness-commands/iteration-loop.md +2 -3
- package/harness-commands/iteration-start.md +52 -9
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,16 @@ The monorepo root [CHANGELOG.md](../../CHANGELOG.md) summarizes cross-surface re
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [2.0.5] - 2026-08-10
|
|
10
|
+
|
|
11
|
+
### Harness
|
|
12
|
+
|
|
13
|
+
- `/iteration-start`: accepts an optional `direction` hint (constrains §2 candidates, seeds §3 grill-me — start stays interactive) and a `pause` flag; auto-continues into Phase 2→5 (execute → close → PR → merge-ready) after Phase 1 lock + integration branch, by default. `/iteration-drive` remains standalone for re-entry/resume on an already-locked iteration. Updated `iteration-loop` vs-commands table, README/README_CN command tables + workflow diagrams, OpenCode package quick start; added routing eval `iteration-start-auto-continue-phase2`.
|
|
14
|
+
|
|
15
|
+
- Version alignment with harness **2.0.5** (no OpenCode package API change).
|
|
16
|
+
|
|
17
|
+
See root [CHANGELOG.md](../../CHANGELOG.md) **2.0.5**.
|
|
18
|
+
|
|
9
19
|
## [2.0.4] - 2026-08-09
|
|
10
20
|
|
|
11
21
|
### Bundled harness skills (`harness-skills/` at publish)
|
package/README.md
CHANGED
|
@@ -46,7 +46,7 @@ The plugin registers a non-blocking `tool.execute.before` lint for the `task` to
|
|
|
46
46
|
|
|
47
47
|
1. Install the plugin (above).
|
|
48
48
|
2. In OpenCode, start with the **Project Manager** agent (`project-manager`).
|
|
49
|
-
3. For a full iteration: run **`/iteration-start`**
|
|
49
|
+
3. For a full iteration: run **`/iteration-start`** (Phase 1 grill-me → auto-continues Phase 2→5; add `pause` to stop after Phase 1), or one-shot **`/iteration-loop`** (autonomous Phase 1→5). Use **`/iteration-drive`** to resume an interrupted iteration.
|
|
50
50
|
|
|
51
51
|
Entry skill: **`mstar-harness-core`** (loaded before other `mstar-*` skills).
|
|
52
52
|
|
|
@@ -11,9 +11,8 @@ Run a **full** Morning Star iteration with minimal human intervention. **Done =
|
|
|
11
11
|
**vs other commands:**
|
|
12
12
|
|
|
13
13
|
| Command | Scope |
|
|
14
|
-
|
|
15
|
-
| `iteration-
|
|
16
|
-
| `iteration-drive` | Phase 2→5 on an already locked iteration |
|
|
14
|
+
| `iteration-start` | Phase 1 (**grill-me** with user) → **auto-continue** Phase 2→5(`pause` 止于 Phase 1) |
|
|
15
|
+
| `iteration-drive` | Phase 2→5 re-entry / resume on an already locked iteration |
|
|
17
16
|
| **`iteration-loop`** | Phase 1→5 end-to-end; **autonomous** direction lock |
|
|
18
17
|
|
|
19
18
|
Phase gate SSOT → **`mstar-iteration`** §1–§5. This command is a **consumer**; it does not redefine skill semantics.
|
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: iteration-start
|
|
3
|
-
description: Start a new harness iteration — research, grill-me, compass/plans, Review & Edit chain (long-lived {SPECS_DIR}/ + {ITERATION_DIR}/<id>/ package; compound promotes package at close only), PM lock, integration branch.
|
|
3
|
+
description: "Start a new harness iteration — optional direction hint, research, grill-me, compass/plans, Review & Edit chain (long-lived {SPECS_DIR}/ + {ITERATION_DIR}/<id>/ package; compound promotes package at close only), PM lock, integration branch; then auto-continue Phase 2→5 (execute → close → PR → merge-ready) unless `pause` arg given."
|
|
4
4
|
agent: project-manager
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Start Iteration
|
|
8
8
|
|
|
9
|
-
Start a new Morning Star harness iteration. **
|
|
9
|
+
Start a new Morning Star harness iteration. **Phase 1 is not complete until the Review & Edit chain runs via dispatched roles and PM lock — not when compass files are first written.** By default, after Phase 1 lock + integration branch, **auto-continue into Phase 2→5** (execute → close → PR → merge-ready); pass **`pause`** to stop after Phase 1 and resume later with `/iteration-drive`.
|
|
10
|
+
|
|
11
|
+
## Args
|
|
12
|
+
|
|
13
|
+
```text
|
|
14
|
+
/iteration-start [direction] [pause]
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
| Arg | Meaning | Default |
|
|
18
|
+
|-----|---------|---------|
|
|
19
|
+
| `direction` | Iteration direction hint — constrains §2 candidates and seeds §3 grill-me; **not** a lock (start stays interactive) | Research → grill-me converges with user |
|
|
20
|
+
| `pause` | Stop after Phase 1 (lock + integration branch); run `/iteration-drive` later to resume | **Auto-continue** into Phase 2→5 |
|
|
21
|
+
|
|
22
|
+
**Parse**: if any token is exactly `pause` (case-insensitive), treat as the `pause` flag; the remaining tokens (joined) are the `direction` hint. `/iteration-start pause` = pause with empty direction.
|
|
10
23
|
|
|
11
24
|
## PM invariants(本命令全程有效 — 读完再动手)
|
|
12
25
|
|
|
@@ -20,10 +33,12 @@ Start a new Morning Star harness iteration. **Not Done until the Review & Edit c
|
|
|
20
33
|
|
|
21
34
|
派发细则 → **`mstar-dispatch-gates`**(specialist review-and-edit dispatch)+ **`mstar-host`**(宿主 invoke 能力)。**不得**在 PM 线程加载其他 role reference 代劳。
|
|
22
35
|
|
|
23
|
-
|
|
36
|
+
**Phase 1 完成定义**:compass `status: locked` + 三角色 invoke 已返回 + pre-commit checklist 全 `[x]` — 不是初稿落盘。**Command Done**(§7 auto-continue)= Phase 5 §5.5 exit checklist 全 `[x]`(同 `iteration-drive`);`pause` 时 = Phase 1 完成。
|
|
24
37
|
|
|
25
38
|
Detailed workflow → **`mstar-iteration` § Phase 1**;per-plan Prepare gates → **`mstar-phase-gates`**(specify → clarify → plan)。
|
|
26
39
|
|
|
40
|
+
**Phase 2–5 auto-continue(§7)invariants** → **`iteration-drive`**「PM invariants」表(不写产品代码 / 不 inline 大包 / 每 Assignment 1 invoke / Phase 3→4→5 顺序 / Phase 5 dispatch 改代码)。
|
|
41
|
+
|
|
27
42
|
## Path split(HARD — 路由)
|
|
28
43
|
|
|
29
44
|
| 宿主上下文 | 走哪条 |
|
|
@@ -31,6 +46,8 @@ Detailed workflow → **`mstar-iteration` § Phase 1**;per-plan Prepare gates
|
|
|
31
46
|
| **Cursor Plan mode**(CreatePlan / Plan 会话活跃) | §0 Boot → **§P** — **先**空白 CreatePlan,再 **feedback-driven** 自主改同一份 plan;grill-me **仅**在用户明确结束反馈后、仍有阻塞疑问时;**Build 前不执行** Review 链 / commit / integration 分支 |
|
|
32
47
|
| **其它**(Agent、OpenCode、非 Plan) | §0 Boot → §1–§6(Research → Explore → grill-me → Write → Review → branch) |
|
|
33
48
|
|
|
49
|
+
**Both paths converge at §6**(integration branch)。Default → §7 auto-continue Phase 2→5;`pause` → command ends at §6。
|
|
50
|
+
|
|
34
51
|
## 0. Boot
|
|
35
52
|
|
|
36
53
|
1. `mstar-harness-core`
|
|
@@ -58,11 +75,9 @@ Command-unique 补充(bridge 未枚举):
|
|
|
58
75
|
|
|
59
76
|
Survey structured harness dirs(`{HARNESS_DIR}/status.json`、`{ITERATION_DIR}/`、`{KNOWLEDGE_DIR}/`、`{SPECS_DIR}/`)+ glob for planning artifacts(`**/roadmap*.md`、`**/deferred*.md`、`**/features*.md`、`**/backlog*.md`、`**/TODO*.md`、`**/*.plan.md`);read matches with iteration-level / deferred-scope information;read `STRATEGY.md`(if exists)。Prioritize deferred / incomplete items from prior iterations。
|
|
60
77
|
|
|
61
|
-
**Optional — codebase audit**: if a prior `/codebase-audit` run exists under `{PLAN_DIR}/audit-<date>/`, read its findings index as evidence-grounded direction candidates for §2(not mandatory;one source among many)。
|
|
62
|
-
|
|
63
78
|
## 2. Explore Directions
|
|
64
79
|
|
|
65
|
-
Scope **2–4** candidates targeting **product completeness**(default to deferred items from previous iterations;allow substantive refactoring where it accelerates product maturity
|
|
80
|
+
Scope **2–4** candidates targeting **product completeness**(default to deferred items from previous iterations;allow substantive refactoring where it accelerates product maturity)。**If `direction` arg given** — narrow candidates to that hint (still scope 2–4 unless the hint is explicitly singular); record the hint in grill-me context。**非 Plan 路径**(Plan mode 已由 §P 处理)。
|
|
66
81
|
|
|
67
82
|
## 3. Lock Direction — bundled `grill-me`
|
|
68
83
|
|
|
@@ -72,7 +87,7 @@ Scope **2–4** candidates targeting **product completeness**(default to defer
|
|
|
72
87
|
|
|
73
88
|
This command bundles a **non-`mstar-*`** skill at `skills/grill-me/SKILL.md`. **Only this command step**(及 §P.3.5 deferred grill)references it — **do not** load it from `mstar-harness-core` or other `mstar-*` skills.
|
|
74
89
|
|
|
75
|
-
**Before this step:** Read `skills/grill-me/SKILL.md`. Run **grill-me** to stress-test candidate directions with the user: walk through trade-offs, converge on a **single iteration direction** with shared understanding, document locked direction + success criteria + non-goals。Confirm delivery branch policy(`iteration_base_branch`、`target_branch`)per **`mstar-iteration` §1.2** — **Do not default to `main` / `master` just because those names exist.**
|
|
90
|
+
**Before this step:** Read `skills/grill-me/SKILL.md`. Run **grill-me** to stress-test candidate directions with the user: walk through trade-offs, converge on a **single iteration direction** with shared understanding, document locked direction + success criteria + non-goals。**If `direction` arg given** — seed grill-me with it as the recommended direction (still interactive: user may correct/refine; the hint does **not** skip grill-me)。Confirm delivery branch policy(`iteration_base_branch`、`target_branch`)per **`mstar-iteration` §1.2** — **Do not default to `main` / `master` just because those names exist.**
|
|
76
91
|
|
|
77
92
|
## 4. Write Compass & Plans
|
|
78
93
|
|
|
@@ -130,6 +145,34 @@ git checkout -b <spec_integration_branch> <iteration_base_branch>
|
|
|
130
145
|
- Register `iteration_base_branch`, `spec_integration_branch`, and `target_branch` in compass frontmatter **and** `{HARNESS_DIR}/status.json` root `metadata`
|
|
131
146
|
- Commit all documents to the integration branch and push to remote
|
|
132
147
|
|
|
133
|
-
**Phase 2 note**:control worktree + `execution_lease` 门控在 Phase 2 入口(`iteration-drive` / `iteration-loop`)——见 **`mstar-iteration/references/phase-2-worktree-lease.md`**。
|
|
134
|
-
|
|
135
148
|
**STOP** if `iteration_base_branch` or `target_branch` is missing. Ask the user or derive only from an already documented project/iteration policy; never silently substitute `main`.
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
## 7. Phase 2–5: Execute → close → PR → merge-ready(auto-continue)
|
|
153
|
+
|
|
154
|
+
**`pause` arg → command ends here.** Phase 1 locked + integration branch pushed;run `/iteration-drive` later to resume。
|
|
155
|
+
|
|
156
|
+
**Default(no `pause`)→ auto-continue** into Phase 2→5。
|
|
157
|
+
|
|
158
|
+
### Phase 2 boot(load before delegating)
|
|
159
|
+
|
|
160
|
+
1. `mstar-iteration` → **§ Phase 2–5**(§2 Autonomous Execute、§3 close、§4 PR、§5 merge-ready)
|
|
161
|
+
2. **`mstar-sdd`** — before first implement dispatch(per-task loop SSOT)
|
|
162
|
+
3. `mstar-review-qc` — before first QC dispatch
|
|
163
|
+
4. `mstar-compound` — before Phase 3 §3.2
|
|
164
|
+
5. `mstar-branch-worktree` + **`mstar-iteration/references/phase-2-worktree-lease.md`** — control worktree + lease(§2.0 #5 未 waive)
|
|
165
|
+
|
|
166
|
+
### Delegate to `iteration-drive` Phase 2→5
|
|
167
|
+
|
|
168
|
+
Execute **`iteration-drive`** Phase 2–5 exactly:Phase 2 → **`mstar-iteration` §2**(§2.0 五道闸 → §2.6 push 纪律;SDD per-task;QC tri N=3 + QA)、Phase 3 → **§3** + `references/phase-3-iteration-close.md`、Phase 4/5 → **§4–§5** + `references/phase-4-5-pr-delivery.md`、Phase 5 helper discovery → `mstar-iteration/references/phase5-helper-discovery.md`。
|
|
169
|
+
|
|
170
|
+
**Continuous execution(HARD)**:自 Phase 2 进入至 Phase 5 §5.5 exit,PM **连续编排**(**`mstar-iteration` §2.6**),进度汇报后下一条必须是 dispatch 或下一 phase 步骤,不向用户例行 yes/no check-in。合法 STOP 仅限:branch metadata 缺失、真冲突 / secrets / 不可逆范围缺口、Phase 5 多轮仍无法 merge-ready、用户本轮显式打断。
|
|
171
|
+
|
|
172
|
+
**Assignment preflight**:同 §5(每次 implement/QC/QA 派发前校验;`mstar-harness` bin 未安装时静默跳过)。
|
|
173
|
+
|
|
174
|
+
**Done = Phase 5 §5.5 exit checklist 全 `[x]`**(同 `iteration-drive`)。
|
|
175
|
+
|
|
176
|
+
**Then** report: iteration id, direction lock summary, plans completed, compound summary, PR link, merge-ready evidence(CI snapshot + review resolution + Greptile if applicable)。
|
|
177
|
+
|
|
178
|
+
PR merge itself may remain manual unless user authorized auto-merge.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mstar-harness/opencode",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"description": "Morning Star harness OpenCode plugin — skills bootstrap + engine-backed runtime hooks (status lint, dispatch validation, Enforcement: hard gates).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -36,6 +36,6 @@
|
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@mstar-harness/engine": "2.0.
|
|
39
|
+
"@mstar-harness/engine": "2.0.5"
|
|
40
40
|
}
|
|
41
41
|
}
|