@mstar-harness/opencode 1.0.1 → 1.0.3
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 +260 -0
- package/README.md +62 -0
- package/harness-commands/iteration-drive.md +25 -1
- package/harness-commands/iteration-start.md +9 -9
- package/harness-skills/mstar-compound/SKILL.md +24 -2
- package/harness-skills/mstar-compound-refresh/SKILL.md +1 -1
- package/harness-skills/mstar-dispatch-gates/SKILL.md +1 -1
- package/harness-skills/mstar-host/references/cursor.md +1 -1
- package/harness-skills/mstar-host/references/opencode.md +1 -1
- package/harness-skills/mstar-iteration/SKILL.md +40 -16
- package/harness-skills/mstar-iteration/references/iteration-artifact-boundaries.md +94 -0
- package/harness-skills/mstar-iteration/references/iteration-compass-template.md +15 -0
- package/harness-skills/mstar-iteration/references/iteration-corpus-hygiene.md +51 -0
- package/harness-skills/mstar-iteration/references/iteration-workspace-readme-template.md +29 -0
- package/harness-skills/mstar-plan-artifacts/references/knowledge-and-designs.md +24 -13
- package/harness-skills/mstar-plan-conventions/references/artifact-storage-paths.md +3 -0
- package/harness-skills/mstar-roles/references/architect.md +1 -1
- package/harness-skills/mstar-roles/references/product-manager.md +1 -1
- package/harness-skills/mstar-roles/references/project-manager/dispatch-and-assignment.md +1 -1
- package/harness-skills/mstar-roles/references/project-manager.md +1 -1
- package/harness-skills/mstar-roles/references/writing-specialist.md +1 -0
- package/harness-skills/mstar-sdd/references/sticky-implementer-session.md +1 -1
- package/harness-skills/pm/SKILL.md +6 -5
- package/package.json +4 -2
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to the `@mstar-harness/opencode` package are documented in this file.
|
|
4
|
+
|
|
5
|
+
The monorepo root [CHANGELOG.md](../../CHANGELOG.md) summarizes cross-surface releases.
|
|
6
|
+
|
|
7
|
+
## 1.0.3
|
|
8
|
+
|
|
9
|
+
- Bundled skills/commands: iteration continuous execution (Phase 2–5 HARD push discipline in `iteration-drive` + `mstar-iteration` §2.6); skills command-agnostic cleanup; `pm` Autonomous Execute push rule; routing-eval v15.
|
|
10
|
+
|
|
11
|
+
See root [CHANGELOG.md](../../CHANGELOG.md) **1.0.3**.
|
|
12
|
+
|
|
13
|
+
## 1.0.2
|
|
14
|
+
|
|
15
|
+
- Bundled skills/commands: iteration artifact boundaries (`{ITERATION_DIR}/<id>/` workspace, specs-first start, compound workspace promotion at close); new iteration references; corpus hygiene aligned.
|
|
16
|
+
|
|
17
|
+
See root [CHANGELOG.md](../../CHANGELOG.md) **1.0.2**.
|
|
18
|
+
|
|
19
|
+
## 1.0.1
|
|
20
|
+
|
|
21
|
+
- Bundled skills/commands: `iteration-drive` + `mstar-iteration` Phase 2 per-task SDD mandate; optional sticky implementer session (`resume` + ledger); thin `pm` skill shim; routing-eval v14.
|
|
22
|
+
|
|
23
|
+
See root [CHANGELOG.md](../../CHANGELOG.md) **1.0.1**.
|
|
24
|
+
|
|
25
|
+
## 1.0.0
|
|
26
|
+
|
|
27
|
+
- Bundle `mstar-sdd` skill + scripts; SDD mandatory plan QC tri-review (`Execution mode: sdd`); inline/hotfix single-seat; plan template and SDD metadata fields.
|
|
28
|
+
|
|
29
|
+
See root [CHANGELOG.md](../../CHANGELOG.md) **1.0.0**.
|
|
30
|
+
|
|
31
|
+
## 0.7.9
|
|
32
|
+
|
|
33
|
+
- Bundled commands/skills: Assignment plain role ids across PM templates, dispatch gates, branch-worktree, iteration commands, opencode host hygiene, and role NEVER rules — avoids OpenCode `@` auto-dispatch in harness prose.
|
|
34
|
+
|
|
35
|
+
See root [CHANGELOG.md](../../CHANGELOG.md) **0.7.9**.
|
|
36
|
+
|
|
37
|
+
## 0.7.8
|
|
38
|
+
|
|
39
|
+
- Bundled commands/skills: `mstar-iteration` Phase 4–5 (PR delivery + merge-ready loop); `iteration-drive` sequences through Phase 5 with optional greploop/babysit helpers; core index and anti-patterns updated.
|
|
40
|
+
|
|
41
|
+
See root [CHANGELOG.md](../../CHANGELOG.md) **0.7.8**.
|
|
42
|
+
|
|
43
|
+
## 0.7.7
|
|
44
|
+
|
|
45
|
+
- Bundled commands/skills: standalone `mstar-*` invariant; bundle `grill-me` for `/iteration-start` only; remove Context7/OpenViking/Open Design from runtime load paths; distill `open-harness-principles.md` into core and plan-conventions references; keep Role → typical topic skills matrix in `mstar-roles`.
|
|
46
|
+
|
|
47
|
+
See root [CHANGELOG.md](../../CHANGELOG.md) **0.7.7**.
|
|
48
|
+
|
|
49
|
+
## 0.7.6
|
|
50
|
+
|
|
51
|
+
- Bundled commands/skills: commands–skills layering for iteration (`iteration-start` / `iteration-drive` orchestration vs `mstar-iteration` / `mstar-dispatch-gates` SSOT); hardened dispatch gates, Phase 2→3→PR transitions, canonical host dispatch (no Mode A/B/C fallbacks); Phase 1 Review & Edit chain is **sequential** product-manager → architect → writing-specialist.
|
|
52
|
+
|
|
53
|
+
See root [CHANGELOG.md](../../CHANGELOG.md) **0.7.6**.
|
|
54
|
+
|
|
55
|
+
## 0.7.5
|
|
56
|
+
|
|
57
|
+
- Bundled commands/skills: explicit iteration branch policy — `iteration_base_branch`, `spec_integration_branch`, and `target_branch` required in compass/status metadata; no silent default to `main` for integration branch or PR target. Hardened `iteration-start` / `iteration-drive` gates and QC merge-base rules.
|
|
58
|
+
|
|
59
|
+
See root [CHANGELOG.md](../../CHANGELOG.md) **0.7.5**.
|
|
60
|
+
|
|
61
|
+
## 0.7.4
|
|
62
|
+
|
|
63
|
+
- Bundled skills/docs: remove Superpowers runtime dependency from Morning Star guidance and host docs; assignments now rely on native mstar dispatch, worktree, plan, review, and evidence contracts.
|
|
64
|
+
- Bundled skills: add `mstar-skill-authoring`, delete `mstar-execution-practices`, and fold review feedback handling into `mstar-coding-behavior`.
|
|
65
|
+
|
|
66
|
+
See root [CHANGELOG.md](../../CHANGELOG.md) **0.7.4**.
|
|
67
|
+
|
|
68
|
+
## 0.7.3
|
|
69
|
+
|
|
70
|
+
- Bundled commands/skills: `mstar-iteration` Phase 3 close is now an explicit gate after all plans are `Done`; close requires compass normalization when needed, compound Phase 6 knowledge indexing, roadmap update, completed frontmatter, and close checklists before PR.
|
|
71
|
+
- Bundled docs: README command table now includes `/mstar-bootstrap`; workflow and skill overview now match the iteration lifecycle.
|
|
72
|
+
|
|
73
|
+
See root [CHANGELOG.md](../../CHANGELOG.md) **0.7.3**.
|
|
74
|
+
|
|
75
|
+
## 0.7.2
|
|
76
|
+
|
|
77
|
+
- Docs only at package level: root **0.7.2** documents CLI Cursor install layout (real git checkout at plugin path, not symlink). Re-bundle on publish if CLI dist changed.
|
|
78
|
+
|
|
79
|
+
See root [CHANGELOG.md](../../CHANGELOG.md) **0.7.2**.
|
|
80
|
+
|
|
81
|
+
## 0.7.1
|
|
82
|
+
|
|
83
|
+
- Bundled commands/skills: `/iteration-start` §5 Review & Edit chain is a hard gate before integration branch commit — Task dispatch for product-manager, architect, writing-specialist; evidence is edited docs + locked compass (no iteration `reports/` artifacts). Synced in `mstar-iteration` §1.6, `pm`, `mstar-dispatch-gates`, `mstar-harness-core`.
|
|
84
|
+
|
|
85
|
+
See root [CHANGELOG.md](../../CHANGELOG.md) **0.7.1**.
|
|
86
|
+
|
|
87
|
+
## 0.6.22
|
|
88
|
+
|
|
89
|
+
- Bundled skills: `mstar-dispatch-gates`, `mstar-roles` (qc-specialist-shared, dispatch-and-assignment) — replace prohibition-based anti-recursion with identity-deprivation framework. Assignment template gains IDENTITY + CAPABILITY BOUNDARY blocks before prohibitions, shifting from "I must not dispatch" (negation) to "I am a leaf executor; Task is not my tool" (capability deprivation).
|
|
90
|
+
|
|
91
|
+
See root [CHANGELOG.md](../../CHANGELOG.md) **0.6.22**.
|
|
92
|
+
|
|
93
|
+
## 0.6.21
|
|
94
|
+
|
|
95
|
+
- Bundled skills: `mstar-design-md` — add YAML frontmatter as SSOT for token values in templates and spec. Bump template format version to 0.1.0.
|
|
96
|
+
|
|
97
|
+
See root [CHANGELOG.md](../../CHANGELOG.md) **0.6.21**.
|
|
98
|
+
|
|
99
|
+
## 0.6.20
|
|
100
|
+
|
|
101
|
+
- Bundled commands: `/iteration-start` §5 changed to "Review & Edit Chain" — each reviewer now directly edits documents rather than only flagging issues. PM only does the final lock.
|
|
102
|
+
|
|
103
|
+
See root [CHANGELOG.md](../../CHANGELOG.md) **0.6.20**.
|
|
104
|
+
|
|
105
|
+
## 0.6.19
|
|
106
|
+
|
|
107
|
+
- Bundled skills: `mstar-coding-behavior` strengthened with distilled Ponytail principles — YAGNI gate, The Ladder (7-level decision hierarchy), "deletion over addition / boring over clever", `simplify:` marker discipline, "bug fix = root cause", and "minimal check for non-trivial logic".
|
|
108
|
+
|
|
109
|
+
See root [CHANGELOG.md](../../CHANGELOG.md) **0.6.19**.
|
|
110
|
+
|
|
111
|
+
## 0.6.18
|
|
112
|
+
|
|
113
|
+
- Bundled commands: `/iteration-start` now includes explicit `## 0. Boot` section aligned with `/iteration-drive`, loading core harness entry and PM role identity before research.
|
|
114
|
+
|
|
115
|
+
See root [CHANGELOG.md](../../CHANGELOG.md) **0.6.18**.
|
|
116
|
+
|
|
117
|
+
## 0.6.17
|
|
118
|
+
|
|
119
|
+
- Bundled commands: `/iteration-drive` PR target now resolved from iteration metadata (`target_branch` in `status.json`), defaulting to `main` when not set.
|
|
120
|
+
|
|
121
|
+
See root [CHANGELOG.md](../../CHANGELOG.md) **0.6.17**.
|
|
122
|
+
|
|
123
|
+
## 0.6.16
|
|
124
|
+
|
|
125
|
+
- Bundled commands: Add `/iteration-drive` command that invokes the PM Autonomous Execute driver to push all non-`Done` plans to completion (implement → QC → QA → Done loop, then optional PR to `main`).
|
|
126
|
+
|
|
127
|
+
See root [CHANGELOG.md](../../CHANGELOG.md) **0.6.16**.
|
|
128
|
+
|
|
129
|
+
## 0.6.15
|
|
130
|
+
|
|
131
|
+
- Bundled commands: New `harness-commands/` directory bundle and `loadBundledCommands()` registration in the config hook. Adds `/iteration-start` command that guides PM through iteration bootstrap (research, explore, lock, compass/plans, review chain, integration branch).
|
|
132
|
+
|
|
133
|
+
See root [CHANGELOG.md](../../CHANGELOG.md) **0.6.15**.
|
|
134
|
+
|
|
135
|
+
## 0.6.11
|
|
136
|
+
|
|
137
|
+
- Bundled agents: Cursor-first frontmatter on all role shells so hosts that share `agents/*.md` parse `name`/`description`/`model` before OpenCode fields.
|
|
138
|
+
|
|
139
|
+
See root [CHANGELOG.md](../../CHANGELOG.md) **0.6.11**.
|
|
140
|
+
|
|
141
|
+
## 0.6.10
|
|
142
|
+
|
|
143
|
+
- Bundled skills: Profile B `archived/plans-done.json` schema is `{ "plans": [<plan-id>, ...] }` only; add `plans-done.empty.json` template and bootstrap/PM init notes.
|
|
144
|
+
|
|
145
|
+
See root [CHANGELOG.md](../../CHANGELOG.md) **0.6.10**.
|
|
146
|
+
|
|
147
|
+
## 0.6.9
|
|
148
|
+
|
|
149
|
+
- Bundled skills: universal `pm` orchestration entry (Cursor/Codex `/pm`, OpenCode PM role switch) and Autonomous Execute driver (`status.json` backlog, `spec_integration_branch`, per-plan feature branches, host todos).
|
|
150
|
+
|
|
151
|
+
See root [CHANGELOG.md](../../CHANGELOG.md) **0.6.9**.
|
|
152
|
+
|
|
153
|
+
## 0.6.8
|
|
154
|
+
|
|
155
|
+
- Bundled skills: targeted QC re-review after fixes (owner seat only, in-place reports), short QC report basenames under `reports/<plan-id>/` (`qc1.md` …).
|
|
156
|
+
|
|
157
|
+
See root [CHANGELOG.md](../../CHANGELOG.md) **0.6.8**.
|
|
158
|
+
|
|
159
|
+
## 0.6.7
|
|
160
|
+
|
|
161
|
+
- Bundled skills: Codex Plan / Goal Mode bridge for keeping `/plan`, `update_plan`, `/goal`, and goal progress aligned with `.mstar/` SSOT.
|
|
162
|
+
|
|
163
|
+
See root [CHANGELOG.md](../../CHANGELOG.md) **0.6.7**.
|
|
164
|
+
|
|
165
|
+
## 0.6.6
|
|
166
|
+
|
|
167
|
+
- Bundled skills/agents: Codex custom-agent source files, `.mstar/` harness defaults, and updated host install docs.
|
|
168
|
+
|
|
169
|
+
See root [CHANGELOG.md](../../CHANGELOG.md) **0.6.6**.
|
|
170
|
+
|
|
171
|
+
## 0.6.5
|
|
172
|
+
|
|
173
|
+
- Bundled skills: Durable Roadmap Gate for staged/partial/temporary work, plus routing-eval v8.
|
|
174
|
+
|
|
175
|
+
See root [CHANGELOG.md](../../CHANGELOG.md) **0.6.5**.
|
|
176
|
+
|
|
177
|
+
## 0.6.4
|
|
178
|
+
|
|
179
|
+
- Bundled skills: Cursor Plan Build resume contract and routing-eval v7.
|
|
180
|
+
|
|
181
|
+
See root [CHANGELOG.md](../../CHANGELOG.md) **0.6.4**.
|
|
182
|
+
|
|
183
|
+
## 0.6.3
|
|
184
|
+
|
|
185
|
+
- Bundled skills: slim `/pm` with dispatch-first + `/pm`-only rules; PM shell pointer.
|
|
186
|
+
|
|
187
|
+
See root [CHANGELOG.md](../../CHANGELOG.md) **0.6.3**.
|
|
188
|
+
|
|
189
|
+
## 0.6.2
|
|
190
|
+
|
|
191
|
+
- Bundled skills: `/pm` Autonomous Execute push (iteration driver, multi-plan); PM shell cross-reference.
|
|
192
|
+
|
|
193
|
+
See root [CHANGELOG.md](../../CHANGELOG.md) **0.6.2**.
|
|
194
|
+
|
|
195
|
+
## 0.6.1
|
|
196
|
+
|
|
197
|
+
- Bundled skills: `tech-debt-rollup.sh`, PM dual fullstack spread defaults, routing-eval v6.
|
|
198
|
+
|
|
199
|
+
See root [CHANGELOG.md](../../CHANGELOG.md) **0.6.1**.
|
|
200
|
+
|
|
201
|
+
## 0.6.0
|
|
202
|
+
|
|
203
|
+
- Unified **`mstar-host`** in bundled `harness-skills/`; removed separate package `skills/` host path.
|
|
204
|
+
|
|
205
|
+
See root [CHANGELOG.md](../../CHANGELOG.md) **0.6.0**.
|
|
206
|
+
|
|
207
|
+
## 0.5.1
|
|
208
|
+
|
|
209
|
+
### Bundled harness skills (`harness-skills/` at publish)
|
|
210
|
+
|
|
211
|
+
- Cursor Plan mode dual-write bridge (`mstar-host`, `cursor-plan-mode-bridge`, `pm`, `mstar-harness-core`); `rules/mstar-cursor-plan-mode.mdc`.
|
|
212
|
+
|
|
213
|
+
See root [CHANGELOG.md](../../CHANGELOG.md).
|
|
214
|
+
|
|
215
|
+
## 0.5.0
|
|
216
|
+
|
|
217
|
+
### Bundled harness skills (`harness-skills/` at publish)
|
|
218
|
+
|
|
219
|
+
- Align bundled assets with the 0.5.0 harness release, including Codex plugin validation fixes in shared skill metadata.
|
|
220
|
+
|
|
221
|
+
See root [CHANGELOG.md](../../CHANGELOG.md).
|
|
222
|
+
|
|
223
|
+
## 0.4.1
|
|
224
|
+
|
|
225
|
+
### Bundled harness skills (`harness-skills/` at publish)
|
|
226
|
+
|
|
227
|
+
- **`mstar-plan-artifacts/templates/`**: `status.empty.json` and `notes.empty.json` moved from `mstar-plan-conventions` (paths in skill text updated).
|
|
228
|
+
|
|
229
|
+
See root [CHANGELOG.md](../../CHANGELOG.md).
|
|
230
|
+
|
|
231
|
+
## 0.4.0
|
|
232
|
+
|
|
233
|
+
### Bundled harness skills (`harness-skills/` at publish)
|
|
234
|
+
|
|
235
|
+
- **Topic skill split**: `mstar-phase-gates`, `mstar-dispatch-gates`, `mstar-branch-worktree`, `mstar-plan-artifacts` (status/residual included); slimmer `mstar-harness-core` and `mstar-plan-conventions`.
|
|
236
|
+
- **`mstar-roles`**: Per-role required skill lists; host adapters updated for on-demand topic loading.
|
|
237
|
+
- **`mstar-plan-conventions`**: `{ITERATION_DIR}`, `{KNOWLEDGE_DIR}`, content boundaries; optional `iteration_compass` / `iteration_refs`.
|
|
238
|
+
- **`mstar-phase-gates`**: Prepare **`clarify` core discipline** (shared understanding, explore before asking, recommended answers).
|
|
239
|
+
|
|
240
|
+
See root [CHANGELOG.md](../../CHANGELOG.md) for full release notes.
|
|
241
|
+
|
|
242
|
+
## 0.3.2
|
|
243
|
+
|
|
244
|
+
### Bundled harness skills (`harness-skills/` at publish)
|
|
245
|
+
|
|
246
|
+
- **`mstar-plan-conventions`**: Formalize `{ITERATION_DIR}` (`{HARNESS_DIR}/iterations/`) and `{KNOWLEDGE_DIR}` (`{HARNESS_DIR}/knowledge/`); add `docs/` vs harness subtree content boundaries; optional `iteration_compass` / `iteration_refs` in `status.json` metadata.
|
|
247
|
+
- **`mstar-harness-core`**: Embed Prepare **`clarify` core discipline** — walk the design decision tree to shared understanding, explore the codebase before asking the user, provide a recommended answer per question.
|
|
248
|
+
|
|
249
|
+
## 0.3.1
|
|
250
|
+
|
|
251
|
+
- Align package version with monorepo **0.3.1** (see root `CHANGELOG.md` for harness and host-adapter notes bundled via `harness-skills/` / `harness-agents/`).
|
|
252
|
+
|
|
253
|
+
## 0.3.0
|
|
254
|
+
|
|
255
|
+
- Align package version with monorepo **0.3.0** (see root `CHANGELOG.md` for harness and host-adapter notes bundled via `harness-skills/` / `harness-agents/`).
|
|
256
|
+
|
|
257
|
+
## 0.2.0
|
|
258
|
+
|
|
259
|
+
- Publish OpenCode plugin with bundled repo `skills/` and `agents/` (`bundle-assets` / root `postinstall`).
|
|
260
|
+
- Remove cwd-based harness path resolution; consume bundled assets only.
|
package/README.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# @mstar-harness/opencode
|
|
2
|
+
|
|
3
|
+
Morning Star (启明星) harness plugin for [OpenCode](https://opencode.ai).
|
|
4
|
+
|
|
5
|
+
Install this package via OpenCode’s `plugin` array — it bundles `mstar-*` skills, role agents, and iteration commands so multi-role workflows (PM routing, SDD implement, QC tri-review, iteration lifecycle) work the same way as in the Cursor and Codex plugins.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
Add to `opencode.json` (global or project):
|
|
10
|
+
|
|
11
|
+
```json
|
|
12
|
+
{
|
|
13
|
+
"plugin": ["@mstar-harness/opencode@latest"]
|
|
14
|
+
}
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Restart OpenCode.
|
|
18
|
+
|
|
19
|
+
Or use the installer CLI:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npx @mstar-harness/cli init --target opencode
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## What you get
|
|
26
|
+
|
|
27
|
+
| Path in package | Contents |
|
|
28
|
+
|-----------------|----------|
|
|
29
|
+
| `harness-skills/` | `mstar-harness-core`, `mstar-iteration`, `mstar-sdd`, roles, phase/dispatch gates, … |
|
|
30
|
+
| `harness-agents/` | Role shells (`project-manager`, `fullstack-dev`, `qc-specialist`, …) |
|
|
31
|
+
| `harness-commands/` | `/iteration-start`, `/iteration-drive`, `/mstar-bootstrap` |
|
|
32
|
+
|
|
33
|
+
The plugin resolves **only paths inside this package** — not `process.cwd()/skills`, so your app repo root does not affect harness loading.
|
|
34
|
+
|
|
35
|
+
## Quick start
|
|
36
|
+
|
|
37
|
+
1. Install the plugin (above).
|
|
38
|
+
2. In OpenCode, start with the **Project Manager** agent (`project-manager`).
|
|
39
|
+
3. For a full iteration: run **`/iteration-start`**, then **`/iteration-drive`** when plans are ready.
|
|
40
|
+
|
|
41
|
+
Entry skill: **`mstar-harness-core`** (loaded before other `mstar-*` skills).
|
|
42
|
+
|
|
43
|
+
## Docs
|
|
44
|
+
|
|
45
|
+
- [INSTALL.md](./INSTALL.md) — setup, monorepo checkout, migration from legacy git plugin, troubleshooting
|
|
46
|
+
- [Monorepo README](https://github.com/btspoony/mstar-harness#readme) — cross-host overview
|
|
47
|
+
- [CHANGELOG.md](./CHANGELOG.md) — package release notes
|
|
48
|
+
|
|
49
|
+
## Development (this monorepo)
|
|
50
|
+
|
|
51
|
+
From the repository root:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
bun install # postinstall bundles harness-skills/ + harness-agents/
|
|
55
|
+
bun run opencode:bundle-assets # if you used --ignore-scripts
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Plugin entry: `packages/opencode/src/mstar.ts` → `dist/mstar.js`.
|
|
59
|
+
|
|
60
|
+
## License
|
|
61
|
+
|
|
62
|
+
MIT — see [LICENSE](https://github.com/btspoony/mstar-harness/blob/main/LICENSE).
|
|
@@ -25,11 +25,33 @@ Phase 2: Autonomous Execute → Phase 3: iteration-close → Phase 4: Create
|
|
|
25
25
|
|
|
26
26
|
**Done 定义**:**仅** Phase 5 §5.5 exit checklist 全 `[x]`。**Phase 3 close ≠ Done;Phase 4 开 PR ≠ Done。**
|
|
27
27
|
|
|
28
|
+
## Continuous execution(HARD — Phase 2–5)
|
|
29
|
+
|
|
30
|
+
**Autonomous Execute push**:自 Phase 2 进入至 Phase 5 §5.5 exit 全 `[x]` 前,PM **连续编排**,不得把进度汇报、phase 标题或子 agent 返回当作**回合结束**。
|
|
31
|
+
|
|
32
|
+
| 禁止 | 必须 |
|
|
33
|
+
|------|------|
|
|
34
|
+
| plan / task / phase 边界问用户「是否继续」「要不要现在启动」「是否开 PR」等例行 yes/no | 进度摘要后**下一条动作** = **dispatch**(`Task`)或下一 phase 步骤(打印 checklist → 执行) |
|
|
35
|
+
| 用完整 Phase 2 汇报收束 turn 后等待用户 | 同 plan 内 task 间 → **`mstar-sdd` Continuous execution**;当前 plan Done 后 → **立刻**下一 plan dispatch |
|
|
36
|
+
| 把 `## Phase 3/4/5` 标题当作可停下协商点(除合法 STOP) | Phase 3 checklist `[x]` → **立刻** Phase 4;PR 创建后 → **立刻** Phase 5 loop |
|
|
37
|
+
| 跨 plan **并行** implement dispatch(多 plan 同时跑 implementer) | Per-plan **串行**:plan A implement→QC→QA→Done 后再 plan B(除非用户书面 override) |
|
|
38
|
+
|
|
39
|
+
**合法 STOP(仅此升级用户)**:
|
|
40
|
+
|
|
41
|
+
- §2.0 / Phase 4 branch metadata 缺失(`iteration_base_branch` / `target_branch`)
|
|
42
|
+
- **`Blocked`**:真冲突、secrets、不可逆范围缺口、Phase 5 多轮仍无法 merge-ready
|
|
43
|
+
- 用户本轮显式打断
|
|
44
|
+
|
|
45
|
+
**Turn 收束纪律**:若 host 即将结束本轮,最后一条 assistant 内容必须是 **in-flight 动作**(invoke 已发出、或写明下一 dispatch 的 Assignment 字段),**不得**以对用户的确认问句结尾。
|
|
46
|
+
|
|
47
|
+
SSOT 细化:`mstar-sdd`(task 级)· `mstar-iteration` §2.6(push 纪律)。
|
|
48
|
+
|
|
28
49
|
## PM invariants(Phase 2–5 全程有效)
|
|
29
50
|
|
|
30
51
|
| 禁止(PM 线程) | 必须 |
|
|
31
52
|
|-----------------|------|
|
|
32
53
|
| Write/Edit/Shell 产品代码、写测试、跑 QC 审查(Phase 2) | 每条 implement/QC/QA Assignment ⇒ **1 次 `Task`** |
|
|
54
|
+
| **进度汇报后问「是否继续」或以 phase 摘要收束 turn** | 汇报后**立刻** dispatch 或进入下一 phase 动作(见上节 Continuous execution) |
|
|
33
55
|
| **多 task plan 用 inline 大包派发**(整份 plan / T1–Tn 贴进一个 dev Assignment) | **SDD**:`mstar-sdd` per-task 循环 — `task-brief` → implementer → `review-package` → task reviewer → `progress.md` |
|
|
34
56
|
| 只写 Assignment 就进入下一 gate | 同轮 dispatch:`Subagent invokes issued: N`(N = Assignment 条数) |
|
|
35
57
|
| 最后一个 plan `Done` 后直接开 PR / 汇报结束 | **Phase 3 → 4 → 5** 顺序执行 |
|
|
@@ -60,6 +82,8 @@ Phase 2: Autonomous Execute → Phase 3: iteration-close → Phase 4: Create
|
|
|
60
82
|
|
|
61
83
|
## Phase 2: Autonomous Execute
|
|
62
84
|
|
|
85
|
+
**Continuous execution applies** — 本节全程遵守上节 **Continuous execution(HARD)**;Completion Report / 进度同步后不得 check-in,下一条必须是 dispatch 或下一 plan。
|
|
86
|
+
|
|
63
87
|
**Branch policy first** — before any plan dispatch(`mstar-iteration` §2.3):
|
|
64
88
|
|
|
65
89
|
| Field | SSOT | If missing |
|
|
@@ -107,7 +131,7 @@ Execute **`mstar-iteration` § Phase 2** exactly. Summary:
|
|
|
107
131
|
|------|---------|------|
|
|
108
132
|
| 1 | §3.0 / §3.0.5 | Phase 边界;legacy compass 规范化(frontmatter + `## Roadmap Position`) |
|
|
109
133
|
| 2 | §3.1 | 打印 close entry checklist,全部 `[x]` |
|
|
110
|
-
| 3 | §3.2 | Compound
|
|
134
|
+
| 3 | §3.2 | Compound + **`<iteration-id>/` workspace promotion**;新增 doc 完成 `mstar-compound` Phase 6(`{KNOWLEDGE_DIR}/README.md`) |
|
|
111
135
|
| 4 | §3.3 | `## Roadmap Position` current iteration → `delivered`;STRATEGY/tracker 按需更新 |
|
|
112
136
|
| 5 | §3.4 | frontmatter `status: completed` + `end_date`;Compound Summary + Retrospective |
|
|
113
137
|
| 6 | §3.5 | 打印 close exit checklist → commit → push |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: iteration-start
|
|
3
|
-
description: Start a new harness iteration — research
|
|
3
|
+
description: Start a new harness iteration — research, grill-me, compass/plans, Review & Edit chain (long-lived {SPECS_DIR}/ + {ITERATION_DIR}/<id>/ workspace; compound promotes workspace at close only), PM lock, integration branch.
|
|
4
4
|
agent: project-manager
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -28,7 +28,7 @@ Detailed workflow → **`mstar-iteration` § Phase 1: iteration-start**(含 §
|
|
|
28
28
|
|
|
29
29
|
1. `mstar-harness-core`
|
|
30
30
|
2. `mstar-roles` → `references/project-manager.md`
|
|
31
|
-
3. `mstar-iteration` → **§ Phase 1: iteration-start**(迭代范围、compass
|
|
31
|
+
3. `mstar-iteration` → **§ Phase 1: iteration-start**(迭代范围、compass 模板、**§1.5.5 产物边界**、§1.6 Review & Edit chain、状态初始化)
|
|
32
32
|
4. `mstar-dispatch-gates`
|
|
33
33
|
5. `mstar-phase-gates` → Prepare(specify → clarify → plan)
|
|
34
34
|
6. `mstar-plan-conventions`, `mstar-plan-artifacts`
|
|
@@ -98,12 +98,12 @@ Each role below **reviews and directly edits** the documents. Do not just flag i
|
|
|
98
98
|
|
|
99
99
|
| # | Role | Required action | Gate |
|
|
100
100
|
|---|------|-----------------|------|
|
|
101
|
-
| 5.1 | **product-manager** | invoke: **edit** compass, plans,
|
|
102
|
-
| 5.2 | **architect** | invoke: **edit** compass, plans, specs
|
|
103
|
-
| 5.3 | **writing-specialist** | invoke: **edit**
|
|
101
|
+
| 5.1 | **product-manager** | invoke: **edit** compass, plans, **`{SPECS_DIR}/`**, **`{ITERATION_DIR}/<iteration-id>/`**(`guides/`、`specs/` 按需)— **禁止** `{KNOWLEDGE_DIR}/` 新增 | 完成后方可 5.2 |
|
|
102
|
+
| 5.2 | **architect** | invoke: **edit** compass, plans, **`{SPECS_DIR}/`**, workspace `specs/`(含 5.1 后版本)— **禁止** `{KNOWLEDGE_DIR}/` 新增 | 5.1 返回后;完成后方可 5.3 |
|
|
103
|
+
| 5.3 | **writing-specialist** | invoke: **edit** compass / plans / specs / iteration 文档; **specs corpus hygiene**(全库 `{SPECS_DIR}/` + 既有 `{KNOWLEDGE_DIR}/` 卫生与错放纠正,**不**新增 knowledge)— `mstar-iteration/references/iteration-artifact-boundaries.md` + `iteration-corpus-hygiene.md` | 5.2 返回后 |
|
|
104
104
|
| 5.4 | **project-manager** | Merge subagent edits; resolve conflicts; **lock** compass (`status: locked`); confirm Prepare gates | 5.3 返回后 |
|
|
105
105
|
|
|
106
|
-
**Evidence of done** = edited compass / plans / specs on disk + compass `status: locked`. **No**
|
|
106
|
+
**Evidence of done** = edited compass / plans / **specs** / iteration docs on disk + specs corpus hygiene(及既有 knowledge 归档/错放纠正,如有)+ compass `status: locked`. **No** new `{KNOWLEDGE_DIR}/` from this chain — knowledge → **`mstar-compound`** @ iteration-close. **No** separate iteration review reports under `reports/`.
|
|
107
107
|
|
|
108
108
|
**Tool rule (hosts with invoke)** — per **`mstar-dispatch-gates`** · specialist review-and-edit dispatch(**顺序链**,非 parallel batch):
|
|
109
109
|
|
|
@@ -128,9 +128,9 @@ PM must print this block before §6; all `[ ]` must be `[x]`:
|
|
|
128
128
|
|
|
129
129
|
- [ ] grill-me decisions recorded in compass
|
|
130
130
|
- [ ] Draft compass + plans + `status.json` registered
|
|
131
|
-
- [ ] product-manager invoke completed — compass / plans / specs
|
|
132
|
-
- [ ] architect invoke completed — compass / specs edited
|
|
133
|
-
- [ ] writing-specialist invoke completed — iteration docs edited
|
|
131
|
+
- [ ] product-manager invoke completed — compass / plans / specs / **`<iteration-id>/` workspace**(按需);**未**向 `{KNOWLEDGE_DIR}/` 新增
|
|
132
|
+
- [ ] architect invoke completed — compass / **specs** edited;**未**向 `{KNOWLEDGE_DIR}/` 新增
|
|
133
|
+
- [ ] writing-specialist invoke completed — specs + iteration docs edited;**specs corpus hygiene** done(全库 `{SPECS_DIR}/`;既有 knowledge 仅卫生/归档;错放已迁回 `iterations/` 或 archive)
|
|
134
134
|
- [ ] PM final lock: compass `status: locked`; Prepare gates pass (blocked plans documented)
|
|
135
135
|
- [ ] Branch policy locked: `iteration_base_branch`, `spec_integration_branch`, and `target_branch` recorded in compass / `status.json`
|
|
136
136
|
- [ ] **THEN**: git commit + push `iteration/<iteration-id>`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: mstar-compound
|
|
3
|
-
description: Morning Star 知识结晶 —— 将已解决问题的经验沉淀为结构化知识文档,存入 `{KNOWLEDGE_DIR}
|
|
3
|
+
description: Morning Star 知识结晶 —— 将已解决问题的经验沉淀为结构化知识文档,存入 `{KNOWLEDGE_DIR}`;迭代收口时从 `{ITERATION_DIR}/<iteration-id>/` 工作区提升 specs/guides。支持 Bug track 与 Knowledge track 双轨。含重叠检测、可发现性检查、CONCEPTS.md 协同。触发:iteration-close(`mstar-iteration` §3.2)或独立触发。产出:`{KNOWLEDGE_DIR}/<category>/<slug>.md`。
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# mstar-compound(知识结晶)
|
|
@@ -79,6 +79,26 @@ iteration-start → [plan lifecycle × N: specify→...→Done] → iteration-cl
|
|
|
79
79
|
|
|
80
80
|
迭代内所有 plan Done 后,PM 回顾整轮迭代中产生的可结晶知识,批量 compound。per-plan Done 是 per-plan 的闭环终点;compound 是迭代级收口活动。
|
|
81
81
|
|
|
82
|
+
### Iteration workspace promotion(iteration-close 强制盘点)
|
|
83
|
+
|
|
84
|
+
正式迭代收口时,compound **除** plan 实现/debug/review 素材外,**必须**盘点当前迭代的 workspace:
|
|
85
|
+
|
|
86
|
+
**路径**:`{ITERATION_DIR}/<iteration-id>/**`(含 `guides/`、`specs/`、扁平 `.md`;不含根目录 `*-delivery-compass.md` 除非 PM 显式纳入)。
|
|
87
|
+
|
|
88
|
+
| 步骤 | 动作 |
|
|
89
|
+
|------|------|
|
|
90
|
+
| 1. Inventory | 列出 workspace 下全部 `.md`;读各文件 + workspace `README.md`(若有) |
|
|
91
|
+
| 2. Triage | 每篇:**Promote** / **Keep snapshot** / **Skip**(理由写入 compound 摘要) |
|
|
92
|
+
| 3. Promote | 值得跨迭代复用 → 走 Q1–Q8(或轻量判定)→ Phase 2 重叠检测 → Phase 3–6 **结构化重写**进 `{KNOWLEDGE_DIR}/`(**禁止**无改写整文件复制) |
|
|
93
|
+
| 4. Trace | 源文件顶栏或 workspace README:`Promoted to: <knowledge-path>`;`{KNOWLEDGE_DIR}/README.md` 的 Source 可记 `iteration:<iteration-id>/<relpath>` |
|
|
94
|
+
| 5. Summary | PM 写入 compass `## Compound Round Summary`:提升篇数、保留快照、跳过及原因 |
|
|
95
|
+
|
|
96
|
+
**Promote 典型**:迭代 spec 已验证且指导未来实现;guide 含非显而易见的过程知识或失败尝试。
|
|
97
|
+
|
|
98
|
+
**Keep snapshot**:仅迭代史、已被 `{SPECS_DIR}/` 取代的草案、或自检 ≤2 Yes 的琐碎笔记。
|
|
99
|
+
|
|
100
|
+
边界 SSOT → **`mstar-iteration/references/iteration-artifact-boundaries.md`**。
|
|
101
|
+
|
|
82
102
|
## When to use (trigger)
|
|
83
103
|
|
|
84
104
|
- **迭代收口时**(`mstar-iteration` § iteration-close):PM 批量回顾所有 plan 的产物
|
|
@@ -114,7 +134,9 @@ In Cursor, Full mode dispatches subagents via Task tool. PM selects mode.
|
|
|
114
134
|
|
|
115
135
|
## Phase 1: Gather context
|
|
116
136
|
|
|
117
|
-
Read the conversation history
|
|
137
|
+
Read the conversation history **and**, when `iteration_id` is known, scan **`{ITERATION_DIR}/<iteration-id>/`** workspace per **Iteration workspace promotion** above.
|
|
138
|
+
|
|
139
|
+
Understand:
|
|
118
140
|
- What problem was solved (the concrete issue)
|
|
119
141
|
- What was tried and didn't work
|
|
120
142
|
- What the working solution was
|
|
@@ -45,7 +45,7 @@ For each candidate document, classify into one of five outcomes:
|
|
|
45
45
|
3. **Match docs to reality.** When code differs from doc, update the doc — not ask whether the code change was "intentional."
|
|
46
46
|
4. **Be decisive.** When evidence is clear (file renamed, class moved), apply. Only ask PM when genuinely ambiguous.
|
|
47
47
|
5. **Avoid low-value churn.** Don't edit for typos, polish, or cosmetic changes that don't improve accuracy.
|
|
48
|
-
6. **Delete, don't archive
|
|
48
|
+
6. **Delete, don't archive** — **except** formal **iteration-start** §1.6 corpus hygiene (`mstar-iteration/references/iteration-corpus-hygiene.md`), which **moves** superseded/redundant knowledge/specs to `{HARNESS_DIR}/archived/knowledge|specs/`. Outside that gate, git history is the archive; `git log --diff-filter=D -- <path>` finds deleted docs.
|
|
49
49
|
7. **Evaluate document-set design.** Check whether two+ docs overlap and should be consolidated. Redundant docs silently drift apart.
|
|
50
50
|
|
|
51
51
|
## Scope selection
|
|
@@ -87,7 +87,7 @@ When **`Execution mode: sdd`** (`mstar-sdd`):
|
|
|
87
87
|
|
|
88
88
|
- PM 写初稿;各角色通过宿主 invoke **直接编辑**目标文件(**不**另写仅评论式 `reports/` 替代修订)。
|
|
89
89
|
- **1 Assignment ⇒ 1 invoke**。
|
|
90
|
-
- **Phase 1 Review & Edit chain**(`mstar-iteration` §1.6
|
|
90
|
+
- **Phase 1 Review & Edit chain**(`mstar-iteration` §1.6):主产出 **`{SPECS_DIR}/`** + **`{ITERATION_DIR}/<iteration-id>/`** workspace;**禁止** start 链向 `{KNOWLEDGE_DIR}/` 新增。close 时 **`mstar-compound`** 提升 workspace → knowledge。
|
|
91
91
|
- 其他彼此独立、无先后依赖的文档编辑任务:可并行(同条消息发满 N),见 **`parallel-dispatch.md`**。
|
|
92
92
|
- PM 线程代做全部专业编辑 = **反模式**(`mstar-iteration` §1.6、`mstar-harness-core` 反模式索引)。
|
|
93
93
|
- PM merge / lock(如 compass `status: locked`)在链末 subagent 返回后于 PM 线程完成。**不得**在 review-and-edit 链完成前 commit integration 分支。
|
|
@@ -6,7 +6,7 @@ Parallel PM dispatch: **`parallel-dispatch.md`** (Task tool uses same turn model
|
|
|
6
6
|
|
|
7
7
|
## Cursor-only context
|
|
8
8
|
|
|
9
|
-
- Role prompts: `mstar-roles`; **`/pm`** or **`pm` skill** → general PM orchestration (per-plan dispatch, gates, QC) without an iteration command. **`commands/`**
|
|
9
|
+
- Role prompts: `mstar-roles`; **`/pm`** or **`pm` skill** → general PM orchestration (per-plan dispatch, gates, QC) without an iteration command. Host **`commands/`** for formal iteration Phase 1–5 (semantics → **`mstar-iteration`**).
|
|
10
10
|
- Routing-eval: `.cursor/skills/mstar-routing-eval/` — regression tooling only; not runtime load order.
|
|
11
11
|
|
|
12
12
|
## Plan mode × harness dual-write
|
|
@@ -6,7 +6,7 @@ Parallel PM dispatch: **`parallel-dispatch.md`** (read in dispatch rounds).
|
|
|
6
6
|
|
|
7
7
|
## Role loading
|
|
8
8
|
|
|
9
|
-
- **PM entry**: **`/pm`** or **`pm` skill** → `project-manager` for general orchestration; **`commands/`**
|
|
9
|
+
- **PM entry**: **`/pm`** or **`pm` skill** → `project-manager` for general orchestration; host **`commands/`** for formal iteration Phase 1–5 (semantics → **`mstar-iteration`**).
|
|
10
10
|
- **Role shell**: `agents/<id>.md` referenced by `opencode.json` `agent.<id>` (frontmatter + role binding only).
|
|
11
11
|
- **Role body**: `mstar-roles` `references/<id>.md` (or shared references + parameters).
|
|
12
12
|
- Implementation evidence and RCA behavior: `mstar-coding-behavior`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: mstar-iteration
|
|
3
|
-
description: Morning Star 迭代管理 —— iteration-start
|
|
3
|
+
description: Morning Star 迭代管理 —— iteration-start(specs + `<iteration-id>/` workspace;禁止直写 knowledge)、Autonomous Execute、iteration-close(compound 提升 workspace → knowledge)、PR 交付、PR merge-ready loop。分支 SSOT:`status.json` + compass frontmatter。
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# mstar-iteration(迭代管理)
|
|
@@ -43,7 +43,7 @@ Phase 5: PR merge-ready loop —— 至 mergeable + CI 全绿 + reviews resolved
|
|
|
43
43
|
| **→ Phase 4** | §3.5 exit checklist 全 `[x]`;frontmatter `status: completed` + `end_date` | 打印 `## Phase 4: PR delivery`;开 PR 到 `metadata.target_branch`(§4) | 跳过 §3.1 entry checklist 或 compound Phase 6 |
|
|
44
44
|
| **→ Phase 5** | Phase 4 PR 已创建 | 打印 `## Phase 5: PR merge-ready`;执行 §5 loop 至 §5.5 exit | 开 PR 后停止;跳过 review resolve / CI loop |
|
|
45
45
|
| **→ 迭代交付完成** | §5.5 exit checklist 全 `[x]` | PR mergeable;required CI 全绿;reviews resolved | Phase 4 开 PR 即宣称完成 |
|
|
46
|
-
| **iteration-start → integration branch** | §1.6 Review & Edit chain |
|
|
46
|
+
| **iteration-start → integration branch** | §1.6 Review & Edit chain | 三角色按序 invoke;**specs** 为主产出;**禁止** start 链向 `{KNOWLEDGE_DIR}/` 新增;writing-specialist corpus hygiene + compass `status: locked` | PM 代做专业编辑;并行三角色;product/architect 写 knowledge;临时笔记进 specs |
|
|
47
47
|
|
|
48
48
|
**误判信号**:对话里出现 compound 摘要、roadmap 更新、或「所有 plan 已完成」但 **未** 打印 §3.1 / §3.5 checklist → 视为 **Phase 3 未执行**,回到 §3.0。
|
|
49
49
|
|
|
@@ -153,18 +153,31 @@ iteration 正式全流程**必须**写入 `{HARNESS_DIR}/status.json`:
|
|
|
153
153
|
|
|
154
154
|
compass frontmatter 的 `iteration_base_branch` / `target_branch` **必须与** `status.json` 一致;若仅写在 compass 而 status 缺失,§2.3 同轮 backfill。
|
|
155
155
|
|
|
156
|
+
### 1.5.5 产物边界(specs · iterations · knowledge)
|
|
157
|
+
|
|
158
|
+
Phase 1 与 §1.6 须遵守 **`references/iteration-artifact-boundaries.md`**(HARD):
|
|
159
|
+
|
|
160
|
+
| 树 | iteration-start 主责 | 说明 |
|
|
161
|
+
|----|---------------------|------|
|
|
162
|
+
| **`{SPECS_DIR}/`** | product-manager、architect | **长期**规范性产出:锁定规格、ADR、契约;plan `primary_spec` / `spec_refs` 主要挂此处 |
|
|
163
|
+
| **`{ITERATION_DIR}/`** | product-manager、architect、PM | compass(根)+ **`<iteration-id>/` workspace**(迭代级 specs & guides) |
|
|
164
|
+
| **`{KNOWLEDGE_DIR}/`** | **非** start/execute 直写;**`mstar-compound`** @ iteration-close(含 workspace **提升**) | 可复用实施 SSOT |
|
|
165
|
+
|
|
166
|
+
**禁止**:product/architect 在 §1.6 向 `{KNOWLEDGE_DIR}/` **新增**;把迭代级草案写入 `{SPECS_DIR}/`(应进 `<iteration-id>/specs/` 或 guides)。
|
|
167
|
+
|
|
156
168
|
### 1.6 Review & Edit chain(integration 分支前强制)
|
|
157
169
|
|
|
158
170
|
**Phase 1 在 PM lock 前不算完成**——compass/plans 初稿落盘 ≠ Done。
|
|
159
171
|
|
|
160
172
|
派发机制 → **`mstar-dispatch-gates`**(specialist review-and-edit dispatch,**顺序链**)。PM **不得**将迭代 harness 文档 commit 到 `spec_integration_branch`,直到:
|
|
161
173
|
|
|
162
|
-
1. **product-manager** → **architect** → **writing-specialist**
|
|
163
|
-
2.
|
|
174
|
+
1. **product-manager** → **architect** → **writing-specialist** 已按序 invoke 编辑 compass、plans、`{SPECS_DIR}/` 与 **`{ITERATION_DIR}/<iteration-id>/`** workspace(guides/specs,按需);**不得**在 start 链向 `{KNOWLEDGE_DIR}/` 新增
|
|
175
|
+
2. **writing-specialist** 完成 **corpus hygiene**:全库 `{SPECS_DIR}/` + 既有 `{KNOWLEDGE_DIR}/` 卫生;错放迁回 **`<iteration-id>/`** workspace;细则 → **`iteration-corpus-hygiene.md`**、**`iteration-artifact-boundaries.md`**
|
|
176
|
+
3. PM 将 compass `status` 设为 `locked`,并确认各 plan 的 Prepare gate(specify / clarify / plan)
|
|
164
177
|
|
|
165
|
-
**顺序理由**:产品范围与优先级 →
|
|
178
|
+
**顺序理由**:产品范围与优先级 → 架构与长期契约(specs)→ 行文、规格库卫生与错放纠正(须在 PM/architect 定稿后扫全库 specs)。并行会导致后手重复劳动或覆盖前手未定稿内容。OpenCode:plain role id — **`mstar-host/references/opencode.md`** § Role-mention hygiene。
|
|
166
179
|
|
|
167
|
-
**完成证据** = 磁盘上的 compass / plans / specs
|
|
180
|
+
**完成证据** = 磁盘上的 compass / plans / specs / iteration 文档修订 + specs(与既有 knowledge)卫生/归档(如有)+ 索引与 metadata 更新 + compass `status: locked`。**不**要求 `reports/<iteration-id>/` 审查报告——迭代审查的 SSOT 是被编辑的文档本身,无 per-plan QC 式审计链。
|
|
168
181
|
|
|
169
182
|
**反模式**:PM 线程代替三角色完成全部编辑而不 invoke;或将本链三角色并行派发 —— 见 **`mstar-harness-core`** 反模式索引。
|
|
170
183
|
|
|
@@ -270,11 +283,15 @@ Iteration Phase 2 附加:
|
|
|
270
283
|
- `Subagent invokes issued: 0` 而 Assignment 已写出 → **`dispatch incomplete`**;下一条补发 invoke,禁止 PM 顶替
|
|
271
284
|
- QC 初轮:**SDD → N=3**;**inline → N=1**;双轨 implement → **N=2**(同条消息发满 N)
|
|
272
285
|
|
|
273
|
-
### 2.6 Push
|
|
286
|
+
### 2.6 Push 纪律(Autonomous Execute)
|
|
287
|
+
|
|
288
|
+
**Continuous execution(HARD)**:Phase 2 Autonomous Execute 经 Phase 5 merge-ready exit 全程 — 不向用户做例行 yes/no check-in。
|
|
274
289
|
|
|
275
|
-
- 不因 harness
|
|
276
|
-
-
|
|
290
|
+
- 不因 harness 流程问题常问「是否继续」「要不要现在启动」—— **决策、记录、dispatch**
|
|
291
|
+
- 进度汇报 / subagent Completion Report 后,下一条必须是 **dispatch 或下一 gate 动作**,不得以确认问句收束 turn
|
|
292
|
+
- 未知 → 读 `mstar-*`;仅 **`Blocked`**、secrets、不可逆范围缺口、branch metadata 缺失、或 Phase 5 多轮仍 blocked 时升级用户
|
|
277
293
|
- 实际 Git ≠ `working_branch` → **同轮**更新 plan + status
|
|
294
|
+
- Per-plan loop **串行**(plan A Done 后再 plan B);plan 内 SDD task **串行** — 见 §2.4、§2.5、`mstar-sdd` Continuous execution
|
|
278
295
|
|
|
279
296
|
---
|
|
280
297
|
|
|
@@ -322,11 +339,12 @@ PM **必须**在对话中打印本 checklist;不得默认同过。
|
|
|
322
339
|
PM 批量触发后须:
|
|
323
340
|
|
|
324
341
|
1. 收集本迭代 plan 实现 / debug / review 素材,筛候选知识
|
|
325
|
-
2.
|
|
326
|
-
3.
|
|
327
|
-
4.
|
|
342
|
+
2. **盘点** `{ITERATION_DIR}/<iteration-id>/**` workspace(`guides/`、`specs/`)— **`mstar-compound`**「Iteration workspace promotion」;提升值得保留者进 `{KNOWLEDGE_DIR}/`
|
|
343
|
+
3. 逐条过 `mstar-compound` 自检;跳过项记入 compass `## Compound Round Summary`
|
|
344
|
+
4. 写入或更新 `{KNOWLEDGE_DIR}/<category>/<slug>.md`;新领域词更新 `CONCEPTS.md`
|
|
345
|
+
5. **每篇**新 doc 完成 Phase 6(`{KNOWLEDGE_DIR}/README.md` 登记)
|
|
328
346
|
|
|
329
|
-
|
|
347
|
+
若无结晶且无 workspace 提升,仍在 `## Compound Round Summary` 写明 `无可结晶知识` / workspace 盘点结论及原因。
|
|
330
348
|
|
|
331
349
|
### 3.3 更新 roadmap
|
|
332
350
|
|
|
@@ -350,7 +368,7 @@ PM 批量触发后须:
|
|
|
350
368
|
PM 打印 **iteration-close exit checklist**;全部为 `[x]` 后方可 `git commit`;然后进入 **Phase 4**(§4):
|
|
351
369
|
|
|
352
370
|
- [ ] §3.1 前置 gate 已打印并满足
|
|
353
|
-
- [ ] §3.2 compound
|
|
371
|
+
- [ ] §3.2 compound 完成;**`<iteration-id>/` workspace 已盘点**(提升 / 保留 / 跳过已记入 Compound Summary);新增 knowledge doc 均已登记 `{KNOWLEDGE_DIR}/README.md`(或已记录无可结晶原因)
|
|
354
372
|
- [ ] §3.3 `## Roadmap Position` current iteration 已标 `delivered`;tracker / STRATEGY 已按需更新
|
|
355
373
|
- [ ] §3.4 frontmatter `status: completed` + `end_date`;Compound Summary + Retrospective 已填
|
|
356
374
|
- [ ] 当前分支是 `spec_integration_branch`
|
|
@@ -436,8 +454,11 @@ PR **merge** 本身可仍由用户手动执行,除非 Assignment 明确授权
|
|
|
436
454
|
| `mstar-sdd` | SDD implement 波次 — per-plan loop |
|
|
437
455
|
| `mstar-review-qc` | SDD 强制 plan QC tri — per-plan loop |
|
|
438
456
|
| `mstar-branch-worktree` | 分支/merge/worktree 隔离 |
|
|
439
|
-
| `mstar-compound` | iteration-close
|
|
457
|
+
| `mstar-compound` | iteration-close 中触发知识结晶(**唯一**默认 knowledge 新增路径) |
|
|
440
458
|
| `mstar-compound-refresh` | iteration-close 后可触发知识维护 |
|
|
459
|
+
| `references/iteration-artifact-boundaries.md` | Phase 1 specs / iterations workspace / knowledge 分工 |
|
|
460
|
+
| `references/iteration-workspace-readme-template.md` | `<iteration-id>/README.md` 可选模板 |
|
|
461
|
+
| `references/iteration-corpus-hygiene.md` | §1.6 writing-specialist specs 卫生细则 |
|
|
441
462
|
| `mstar-strategy` | iteration-start 时读 `STRATEGY.md` 对齐方向 |
|
|
442
463
|
|
|
443
464
|
## NOT to do
|
|
@@ -453,5 +474,8 @@ PR **merge** 本身可仍由用户手动执行,除非 Assignment 明确授权
|
|
|
453
474
|
- 不要跳过 compound Phase 6(`{KNOWLEDGE_DIR}/README.md` 索引)——即使只结晶一篇文档
|
|
454
475
|
- 不要跳过 compound——如果本迭代确实没有可结晶的知识,在 compass `## Compound Round Summary` 写 `无可结晶知识(原因:<简述>)`
|
|
455
476
|
- 不要将 **Phase 4 开 PR** 等同于 **迭代交付完成** — 必须完成 **Phase 5** §5.5 merge-ready loop
|
|
456
|
-
-
|
|
477
|
+
- **不要在 iteration-start §1.6 由 product/architect 向 `{KNOWLEDGE_DIR}/` 新增文档**(知识 → iteration-close **`mstar-compound`**)
|
|
478
|
+
- **不要把迭代级草案写入 `{SPECS_DIR}/`**(应进 `{ITERATION_DIR}/<iteration-id>/specs/` 或 `guides/`)
|
|
479
|
+
- **不要在 iteration-close 跳过 `<iteration-id>/` workspace 盘点**(compound 提升 SSOT → **`mstar-compound`**)
|
|
480
|
+
- **不要在 iteration-start §1.6 跳过 writing-specialist 全库 specs corpus hygiene**(仅改当轮 compass/plans 而不扫 `{SPECS_DIR}/`)
|
|
457
481
|
- **不要在 SDD plan 上以单席 `qc.md` 收尾**(除非用户书面 `QC mode: single — override`)
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# iteration-start 产物边界(specs · iterations · knowledge)
|
|
2
|
+
|
|
3
|
+
> **When**: Phase 1 — PM 初稿落盘、§1.6 Review & Edit chain;Phase 2 迭代执行期可继续写入 iteration workspace;Phase 3 iteration-close 经 **`mstar-compound`** 提升。
|
|
4
|
+
> **Conflict**: 与 `mstar-plan-artifacts/references/knowledge-and-designs.md` 一致;冲突以 **`mstar-harness-core`** 为准。
|
|
5
|
+
|
|
6
|
+
## 三棵树分工(HARD)
|
|
7
|
+
|
|
8
|
+
| 树 | 路径 | 长期价值 | 谁写(何时) | 典型内容 |
|
|
9
|
+
|----|------|----------|--------------|----------|
|
|
10
|
+
| **Specs(仓库级)** | `{SPECS_DIR}/` | **是** — 跨迭代规范性权威 | product / architect @ **iteration-start** | 已锁定产品/API 规格、ADR、契约 |
|
|
11
|
+
| **Iterations** | `{ITERATION_DIR}/` | **迭代级** — 历史快照;可提升 | product / architect / PM @ start & execute | compass + **`<iteration-id>/` workspace** |
|
|
12
|
+
| **Knowledge** | `{KNOWLEDGE_DIR}/` | **是** — 可复用实施 SSOT | **`mstar-compound`** @ **iteration-close**(含 workspace 提升) | 结晶、提升后的长期实施知识 |
|
|
13
|
+
|
|
14
|
+
```text
|
|
15
|
+
iteration-start / execute
|
|
16
|
+
product / architect ──► {SPECS_DIR}/ 已锁定的长期规格
|
|
17
|
+
──► {ITERATION_DIR}/<id>/ 迭代级 specs + guides(工作区)
|
|
18
|
+
✗ {KNOWLEDGE_DIR}/ 不直接新增
|
|
19
|
+
|
|
20
|
+
iteration-close (§3.2)
|
|
21
|
+
mstar-compound ──► 读 plan 素材 + {ITERATION_DIR}/<id>/**
|
|
22
|
+
──► {KNOWLEDGE_DIR}/ 提升值得保留的 specs/guides
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## `{ITERATION_DIR}/<iteration-id>/` 工作区(迭代级 specs & guides)
|
|
26
|
+
|
|
27
|
+
compass 仍在根目录:`**{ITERATION_DIR}/<iteration-id>-delivery-compass.md**`(现有约定)。**迭代级** specs / guides 放入同名子目录工作区:
|
|
28
|
+
|
|
29
|
+
```text
|
|
30
|
+
{ITERATION_DIR}/
|
|
31
|
+
README.md
|
|
32
|
+
<iteration-id>-delivery-compass.md
|
|
33
|
+
<iteration-id>/
|
|
34
|
+
README.md # 可选:本迭代工作区索引
|
|
35
|
+
guides/ # 探索笔记、过程指南、未锁定权衡
|
|
36
|
+
specs/ # 迭代级规格草案(尚未升格到 {SPECS_DIR}/ 或 knowledge)
|
|
37
|
+
<flat-files>.md # 允许;大迭代可再分子目录
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
| 子路径 | 放什么 | 不放什么 |
|
|
41
|
+
|--------|--------|----------|
|
|
42
|
+
| **`<iteration-id>/guides/`** | 候选方案、调研、会议记录、实施过程说明 | 已锁定的仓库级规范 |
|
|
43
|
+
| **`<iteration-id>/specs/`** | 本迭代演进中的规格、迭代内契约草稿 | 已锁定、跨迭代 `{SPECS_DIR}/` 级权威(应升格或已在 `{SPECS_DIR}/`) |
|
|
44
|
+
| **compass(根)** | 范围、plans 表、验收、分支策略 | 长文探索正文(链到 workspace) |
|
|
45
|
+
|
|
46
|
+
**何时用 workspace 而非单文件 working guide**:一篇 guide 不够时,**默认**用 `<iteration-id>/` 目录;单文件 `<iteration-id>-working-guide.md` 仍允许作轻量入口(可链接进 workspace)。
|
|
47
|
+
|
|
48
|
+
**索引**:`{ITERATION_DIR}/README.md` 登记 compass 行 + workspace 目录行;workspace 内 `README.md` 列出 `guides/`、`specs/` 下文档。
|
|
49
|
+
|
|
50
|
+
## `{SPECS_DIR}/` 准入(仓库级长期)
|
|
51
|
+
|
|
52
|
+
写入 `{SPECS_DIR}/` 前须满足 **至少一条**(与 iteration workspace 区分):
|
|
53
|
+
|
|
54
|
+
- 决策**已锁定**,变更需显式评审
|
|
55
|
+
- 跨 plan、跨迭代仍成立
|
|
56
|
+
- 本迭代及后续 plan 的 **`primary_spec` / `spec_refs`** 权威来源
|
|
57
|
+
|
|
58
|
+
**不应**进 `{SPECS_DIR}/`:
|
|
59
|
+
|
|
60
|
+
- 仍在迭代内演进的草案 → **`<iteration-id>/specs/`**
|
|
61
|
+
- 探索 scratch → **`<iteration-id>/guides/`**
|
|
62
|
+
- 实施踩坑(未整理)→ 留 workspace 或 plan 素材,**close 时 compound 提升**
|
|
63
|
+
|
|
64
|
+
## Knowledge 与 compound 提升
|
|
65
|
+
|
|
66
|
+
- **`{KNOWLEDGE_DIR}/` 新增**:默认仅在 **iteration-close** §3.2 **`mstar-compound`**。
|
|
67
|
+
- **提升来源(iteration-close)**:除 plan 实现/debug/review 素材外,**必须盘点** `{ITERATION_DIR}/<iteration-id>/**`(`guides/`、`specs/`、扁平文件)。值得跨迭代复用的内容 → 按 compound 双轨模板**重写**进 `{KNOWLEDGE_DIR}/`(非整文件复制);细则 → **`mstar-compound`**「Iteration workspace promotion」。
|
|
68
|
+
- **提升后**:在源文件顶部或 workspace `README.md` 标注 `Promoted to: {KNOWLEDGE_DIR}/...`;源文件**保留**为迭代历史(或迁入 `<iteration-id>/archived/` 若团队约定)。
|
|
69
|
+
- **iteration-start §1.6**:product / architect **不得**向 `{KNOWLEDGE_DIR}/` **新增**;误写由 writing-specialist 迁回 **workspace**。
|
|
70
|
+
|
|
71
|
+
## §1.6 各角色编辑范围
|
|
72
|
+
|
|
73
|
+
| 角色 | 必须编辑 | 禁止 |
|
|
74
|
+
|------|----------|------|
|
|
75
|
+
| **product-manager** | compass、plans、`{SPECS_DIR}/`、`{ITERATION_DIR}/<iteration-id>/`(guides/specs) | `{KNOWLEDGE_DIR}/` **新增**;迭代草案写入 `{SPECS_DIR}/` |
|
|
76
|
+
| **architect** | 同上 + workspace `specs/` 技术向 | 同上;在 `{SPECS_DIR}/` 堆实施踩坑 |
|
|
77
|
+
| **writing-specialist** | 当轮文档 + `{SPECS_DIR}/` corpus hygiene + 既有 knowledge 卫生 | 代替 compound **提升**;跳过 specs 全库审查 |
|
|
78
|
+
|
|
79
|
+
Phase 2 执行期:各角色可继续向 **`<iteration-id>/`** 追加 guides/specs;**仍不**直写 `{KNOWLEDGE_DIR}/`。
|
|
80
|
+
|
|
81
|
+
## plans[].metadata 挂接
|
|
82
|
+
|
|
83
|
+
| 内容 | 挂接键 | 路径 |
|
|
84
|
+
|------|--------|------|
|
|
85
|
+
| 仓库级锁定规格 | `primary_spec` / `spec_refs` | `{SPECS_DIR}/` |
|
|
86
|
+
| 迭代上下文 | `iteration_compass` / `iteration_refs` | compass + `{ITERATION_DIR}/<iteration-id>/...` |
|
|
87
|
+
| 知识库(已有) | 仅历史链接 | `{KNOWLEDGE_DIR}/` — **start 不新增** |
|
|
88
|
+
|
|
89
|
+
## 反模式
|
|
90
|
+
|
|
91
|
+
- 用 `{KNOWLEDGE_DIR}/` 存迭代探索(应进 `<iteration-id>/guides/`)
|
|
92
|
+
- 把迭代 workspace 草案直接复制进 `{SPECS_DIR}/` 而不锁定评审
|
|
93
|
+
- iteration-close **只做** plan 素材 compound、**不**盘点 `<iteration-id>/` workspace
|
|
94
|
+
- 提升时整文件复制到 knowledge(应 compound 结构化重写)
|
|
@@ -71,6 +71,20 @@ Status values: `Todo` | `InProgress` | `InReview` | `Done` | `Blocked`
|
|
|
71
71
|
|------|-----------|--------|------------|
|
|
72
72
|
| <risk> | Low/Med/High | Low/Med/High | <mitigation> |
|
|
73
73
|
|
|
74
|
+
## Iteration workspace (optional)
|
|
75
|
+
|
|
76
|
+
> Iteration-level **specs** and **guides** live under `{ITERATION_DIR}/<iteration-id>/` — not in `{SPECS_DIR}/` or `{KNOWLEDGE_DIR}/`. Promoted to knowledge at iteration-close via **`mstar-compound`**.
|
|
77
|
+
|
|
78
|
+
| Path | Purpose |
|
|
79
|
+
|------|---------|
|
|
80
|
+
| `<iteration-id>/guides/` | Exploration, process notes |
|
|
81
|
+
| `<iteration-id>/specs/` | Iteration-scoped spec drafts |
|
|
82
|
+
| `<iteration-id>/README.md` | Workspace index (recommended when non-trivial) |
|
|
83
|
+
|
|
84
|
+
Link from compass when used:
|
|
85
|
+
|
|
86
|
+
- Workspace: `<iteration-id>/` | <one-line purpose>
|
|
87
|
+
|
|
74
88
|
## Compound Round Summary
|
|
75
89
|
|
|
76
90
|
> Filled at iteration-close.
|
|
@@ -105,6 +119,7 @@ Status values: `Todo` | `InProgress` | `InReview` | `Done` | `Blocked`
|
|
|
105
119
|
| `## Non-Goals` | Yes | Phase 1 |
|
|
106
120
|
| `## Roadmap Position` | **Yes** | Phase 1(必填节,非散落于 general context prose);Phase 3 §3.3(current iteration → `delivered`) |
|
|
107
121
|
| `## Risk Register` | Optional | Phase 1, Phase 2 (update) |
|
|
122
|
+
| Iteration workspace (`<iteration-id>/`) | Optional | Phase 1 §1.5.5 — `guides/` + `specs/`; index in `{ITERATION_DIR}/README.md` |
|
|
108
123
|
| `## Compound Round Summary` | Yes | Phase 3 §3.4 |
|
|
109
124
|
| `## Iteration Retrospective` | Recommended | Phase 3 §3.4 |
|
|
110
125
|
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# iteration-start corpus hygiene(specs primary · knowledge read-only)
|
|
2
|
+
|
|
3
|
+
> **When**: Phase 1 §1.6 — **writing-specialist** only, after product/architect landed compass / plans / `{SPECS_DIR}/` / **`{ITERATION_DIR}/<iteration-id>/`** workspace.
|
|
4
|
+
> **Boundaries**: **`iteration-artifact-boundaries.md`** — no `{KNOWLEDGE_DIR}/` adds @ start; iteration drafts → **`<iteration-id>/guides/`** or **`specs/`**.
|
|
5
|
+
|
|
6
|
+
## Scope (HARD)
|
|
7
|
+
|
|
8
|
+
| Priority | Tree | Action |
|
|
9
|
+
|----------|------|--------|
|
|
10
|
+
| **Primary** | `{SPECS_DIR}/**` | Full active corpus review |
|
|
11
|
+
| **Included** | `{ITERATION_DIR}/<iteration-id>/**` | Workspace guides/specs + compass cross-links |
|
|
12
|
+
| **Secondary** | `{KNOWLEDGE_DIR}/**` (existing) | Archive / relocate only — **no** new docs |
|
|
13
|
+
| **Included** | `{PLAN_DIR}/` plans touched this iteration | Spec refs, terminology |
|
|
14
|
+
|
|
15
|
+
**Out of scope**: compound promotion (iteration-close); `{PLAN_DIR}/reports/`; code.
|
|
16
|
+
|
|
17
|
+
## Misplaced content (relocate)
|
|
18
|
+
|
|
19
|
+
| Found in | Target |
|
|
20
|
+
|----------|--------|
|
|
21
|
+
| `{SPECS_DIR}/` | Iteration-only draft → `{ITERATION_DIR}/<iteration-id>/specs/` or `guides/` |
|
|
22
|
+
| `{SPECS_DIR}/` | Implementation/debug notes → workspace `guides/` (compound @ close) |
|
|
23
|
+
| `{KNOWLEDGE_DIR}/` | New exploration from start chain → `<iteration-id>/guides/` or archive |
|
|
24
|
+
| Flat `{ITERATION_DIR}/*-working-guide.md` | OK as entry; or merge into `<iteration-id>/guides/` when workspace exists |
|
|
25
|
+
|
|
26
|
+
## Classification
|
|
27
|
+
|
|
28
|
+
Same as before for specs + existing knowledge: Active / Superseded / Redundant / Obsolete / Unclear → archive under `archived/specs/` or `archived/knowledge/` with relative path preserved.
|
|
29
|
+
|
|
30
|
+
## Index and metadata
|
|
31
|
+
|
|
32
|
+
1. `{SPECS_DIR}/README.md` — update as needed
|
|
33
|
+
2. `{KNOWLEDGE_DIR}/README.md` — archive rows only; no new iteration exploration rows
|
|
34
|
+
3. `{ITERATION_DIR}/README.md` — compass + **`<iteration-id>/` workspace** directory row
|
|
35
|
+
4. `{ITERATION_DIR}/<iteration-id>/README.md` — list guides/specs (create if non-trivial)
|
|
36
|
+
5. `plans[].metadata` — `primary_spec` / `spec_refs` → `{SPECS_DIR}/`; `iteration_refs` → workspace paths
|
|
37
|
+
|
|
38
|
+
## Evidence of done
|
|
39
|
+
|
|
40
|
+
- No iteration scratch left in `{SPECS_DIR}/`
|
|
41
|
+
- Workspace used for iteration-level drafts (`<iteration-id>/guides|specs/`)
|
|
42
|
+
- No new `{KNOWLEDGE_DIR}/` from §1.6 chain
|
|
43
|
+
- Completion Report lists workspace paths + spec hygiene moves
|
|
44
|
+
|
|
45
|
+
## Distinction from compound @ iteration-close
|
|
46
|
+
|
|
47
|
+
| | §1.6 hygiene | compound workspace promotion |
|
|
48
|
+
|--|--------------|------------------------------|
|
|
49
|
+
| When | iteration-start | iteration-close §3.2 |
|
|
50
|
+
| `{ITERATION_DIR}/<id>/` | Create/edit drafts | **Inventory → promote** to `{KNOWLEDGE_DIR}/` |
|
|
51
|
+
| `{KNOWLEDGE_DIR}/` | No new writes | Structured new docs |
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Iteration workspace README (template)
|
|
2
|
+
|
|
3
|
+
Optional index inside `{ITERATION_DIR}/<iteration-id>/`. Copy when the workspace has more than a few files.
|
|
4
|
+
|
|
5
|
+
```markdown
|
|
6
|
+
# <iteration-id> workspace
|
|
7
|
+
|
|
8
|
+
Iteration-scoped **specs** and **guides** — not `{KNOWLEDGE_DIR}/`. Worthy content is **promoted** at iteration-close via `mstar-compound`.
|
|
9
|
+
|
|
10
|
+
## Guides
|
|
11
|
+
|
|
12
|
+
| Document | Description | Status |
|
|
13
|
+
|----------|-------------|--------|
|
|
14
|
+
| [guides/<name>.md](guides/<name>.md) | <purpose> | draft / active / promoted |
|
|
15
|
+
|
|
16
|
+
## Specs (iteration-level)
|
|
17
|
+
|
|
18
|
+
| Document | Description | Status |
|
|
19
|
+
|----------|-------------|--------|
|
|
20
|
+
| [specs/<name>.md](specs/<name>.md) | <purpose> | draft / locked-in-{SPECS_DIR} / promoted |
|
|
21
|
+
|
|
22
|
+
## Promotion log (filled at iteration-close)
|
|
23
|
+
|
|
24
|
+
| Source | Promoted to | Date | Notes |
|
|
25
|
+
|--------|-------------|------|-------|
|
|
26
|
+
| | | | |
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
**Status values**: `draft` | `active` | `promoted` (link knowledge path) | `superseded` | `snapshot-only`
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
| 区域 | 典型内容 | 受众 / 权威 |
|
|
13
13
|
|------|----------|-------------|
|
|
14
14
|
| **`docs/`**(或项目约定的用户文档根) | 安装/quickstart、稳定架构概览、贡献指南、对外 API 说明 | 人类贡献者与终端用户;clone 后应可读 |
|
|
15
|
-
| **`{SPECS_DIR}`**(可选) | 冻结 v1-spec、ADR、program roadmap | 产品/API
|
|
16
|
-
| **`{ITERATION_DIR}`**(可选) |
|
|
17
|
-
| **`{KNOWLEDGE_DIR}`**(可选) | 实现细节 SSOT、架构细则、契约说明、跨版本 tracker
|
|
15
|
+
| **`{SPECS_DIR}`**(可选) | 冻结 v1-spec、ADR、program roadmap — **跨迭代长期权威** | 产品/API 规范性最高权威;**iteration-start** 由 product/architect 主写 |
|
|
16
|
+
| **`{ITERATION_DIR}`**(可选) | delivery compass + **`<iteration-id>/` workspace**(`guides/`、`specs/`) | Agent handoff;迭代级草稿;close 时 compound **提升** → knowledge |
|
|
17
|
+
| **`{KNOWLEDGE_DIR}`**(可选) | 实现细节 SSOT、架构细则、契约说明、跨版本 tracker — **经 `mstar-compound` 结晶** | Agent handoff;**不**在 iteration-start 由 product/architect 新增 |
|
|
18
18
|
| **`{PLAN_DIR}/`** | 单 plan 主文件、`reports/`、可选 `residuals/` | 计划执行与审查留档 |
|
|
19
19
|
|
|
20
20
|
|
|
@@ -23,15 +23,21 @@
|
|
|
23
23
|
## `{ITERATION_DIR}`(可选·迭代/版本级 compass)
|
|
24
24
|
|
|
25
25
|
- **物理路径**:`**{ITERATION_DIR}/**`(推荐布局下常为 `**.mstar/iterations/**`,与 `{KNOWLEDGE_DIR}`、`{PLAN_DIR}` 并列;legacy 项目可继续为 `.agents/iterations/`)。
|
|
26
|
-
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
30
|
-
|
|
26
|
+
- **放什么**:delivery compass(根目录 `*-delivery-compass*.md`);**`<iteration-id>/` 工作区** — `guides/`(探索、过程)、`specs/`(迭代级规格草案);遗留规划快照。
|
|
27
|
+
- **不放什么**:已锁定的仓库级规范(→ **`{SPECS_DIR}/`**);已提升的跨迭代实施 SSOT(→ **`{KNOWLEDGE_DIR}/`**,经 compound);单 plan QC(→ `reports/`)。
|
|
28
|
+
- **索引**:`**{ITERATION_DIR}/README.md**` 登记 compass + workspace 目录;`<iteration-id>/README.md` 登记工作区内文档。
|
|
29
|
+
- **维护**:`@product-manager` / `@architect` 起草 workspace;`**@project-manager**` 维护索引与 metadata;**iteration-close** 时 **`mstar-compound`** 盘点 workspace 并**提升**至 `{KNOWLEDGE_DIR}/`。
|
|
30
|
+
|
|
31
|
+
## `{SPECS_DIR}`(可选·长期规格)
|
|
32
|
+
|
|
33
|
+
- `{SPECS_DIR}` 解析:优先 `{HARNESS_DIR}/specs/`,否则 `{HARNESS_DIR}/designs/`;皆无则建议新建 `specs/`。
|
|
34
|
+
- **放什么**:跨迭代有效、已锁定或待锁定的产品/API 规范、ADR、契约 — **iteration-start 主产出**(product/architect)。
|
|
35
|
+
- **不放什么**:本迭代-only 探索(→ `<iteration-id>/guides/`);迭代级 spec 草案(→ `<iteration-id>/specs/`);实施踩坑原文(→ workspace 或 plan 素材,**close 时 compound 提升**)。
|
|
36
|
+
- **索引**:非 trivial 树建议 `{SPECS_DIR}/README.md`;plan **`primary_spec` / `spec_refs`** 主要指向此处。
|
|
31
37
|
|
|
32
38
|
## `{KNOWLEDGE_DIR}`(可选·实施知识库)
|
|
33
39
|
|
|
34
|
-
-
|
|
40
|
+
- **新增 SSOT 默认路径**:**iteration-close** 时经 **`mstar-compound`** 写入;**iteration-start §1.6 禁止** product/architect 新增(见 **`mstar-iteration/references/iteration-artifact-boundaries.md`**)。
|
|
35
41
|
- **必须**维护 `**{KNOWLEDGE_DIR}/README.md**` 作为**目录索引**:至少包含表格列 **Document(链接)**、**Source Plan(`plans[].id`)**、**Description**、**Status**(如 `Active` / `Superseded by implementation (<plan-id>)` / `Archived`)。
|
|
36
42
|
- 可选:目录级 `**{KNOWLEDGE_DIR}/AGENTS.md**` 承载命名、维护节奏、与 `{SPECS_DIR}` 的权威边界(Nexus 模式);harness 宽规则仍以 `mstar-plan-conventions` 与本 reference 为准。
|
|
37
43
|
- 初始化启用知识库时:创建空表头的 `README.md`,随文档递增行。
|
|
@@ -44,16 +50,21 @@
|
|
|
44
50
|
|
|
45
51
|
## 与 `status.json` 的链接
|
|
46
52
|
|
|
47
|
-
- 某 plan
|
|
53
|
+
- 某 plan 的**权威设计输入**在规格、迭代 compass 或(已有)知识库中时,在 `**plans[].metadata**` 中登记路径:`**primary_spec**` / `**spec_refs**` → 优先 **`{SPECS_DIR}/`**;`**iteration_compass**` / `**iteration_refs**` → **`{ITERATION_DIR}/`**;已有 **`{KNOWLEDGE_DIR}/`** 链接保留,但 **iteration-start 不得新增** knowledge 路径。
|
|
48
54
|
- 执行方在 **implement 前**须按 metadata 读取这些文件,并与主 plan 核对;不得在未读链接文档的情况下**静默偏离**其中已写明的决策(若需偏离,先回写 knowledge 或 plan 并走 PM/architect 门禁)。
|
|
49
55
|
|
|
50
56
|
## 维护规则
|
|
51
57
|
|
|
52
|
-
1.
|
|
58
|
+
1. **新增**:
|
|
59
|
+
- **Specs(长期)**:`{SPECS_DIR}/` → spec 索引(若有)→ `plans[].metadata` 的 `primary_spec` / `spec_refs`
|
|
60
|
+
- **迭代 workspace**:`{ITERATION_DIR}/<iteration-id>/guides|specs/` → `{ITERATION_DIR}/README.md` + workspace README → `iteration_refs`
|
|
61
|
+
- **Knowledge**:**`mstar-compound`** @ iteration-close(含 workspace **提升**)→ `{KNOWLEDGE_DIR}/README.md`
|
|
53
62
|
2. **阅读**:开发类 agent 在开始编码前,**必须**阅读当前 plan 在 `metadata` 中指向的 knowledge 文档(若存在);`@project-manager` 在 Assignment 中可再次点名路径。
|
|
54
63
|
3. **修订**:评审或规格变更若改动了 knowledge 文件,同步更新 README 中 **Status** 或 Description;版本迭代优先新文件名 `v<N+1>` 或保留旧版并标明 Superseded。
|
|
55
|
-
4.
|
|
56
|
-
|
|
64
|
+
4. **归档**:
|
|
65
|
+
- **iteration-start(强制)**:`writing-specialist` §1.6 以 **`{SPECS_DIR}/` 全库卫生为主**;对**既有** `{KNOWLEDGE_DIR}/` 仅归档/错放纠正,**不**新增 knowledge。细则 → **`mstar-iteration/references/iteration-corpus-hygiene.md`**。
|
|
66
|
+
- **其它时机**:当文档内容已完全反映到已合并代码中、且非 iteration-start 扫库时:可将索引 **Status** 标为 `Superseded by implementation (...)` 或 `Archived`;可保留原位或迁入 `archived/knowledge/`。**不要**把知识库产物搬进 `{HARNESS_DIR}/archived/plans/`(该处用于**计划行**冷快照)。
|
|
67
|
+
5. **结晶(Compound)**:PM 在 **iteration-close** 触发 **`mstar-compound`**:plan 素材 + **`{ITERATION_DIR}/<iteration-id>/` workspace 提升** → `{KNOWLEDGE_DIR}/`。不在 per-plan Done 后单独执行。维护 → **`mstar-compound-refresh`**。
|
|
57
68
|
|
|
58
69
|
## 与 `reports/`、`{PLAN_DIR}/residuals/` 的区分
|
|
59
70
|
|
|
@@ -17,9 +17,12 @@
|
|
|
17
17
|
| **SDD scratch** | `{HARNESS_DIR}/sdd/<plan-id>/`(gitignored) | `mstar-sdd` |
|
|
18
18
|
| **status.json** | `.mstar/status.json` | `mstar-plan-artifacts` |
|
|
19
19
|
| **迭代 compass** | `.mstar/iterations/<iteration-id>-delivery-compass.md` | `mstar-iteration`(读写) |
|
|
20
|
+
| **迭代工作区** | `.mstar/iterations/<iteration-id>/`(`guides/`、`specs/` 等) | `mstar-iteration`(读写);close 时 `mstar-compound`(提升读) |
|
|
20
21
|
| **迭代索引** | `.mstar/iterations/README.md` | `mstar-iteration`(读写) |
|
|
21
22
|
| **规格** | `specs/`(优先),否则 `designs/` | `mstar-plan-artifacts` |
|
|
22
23
|
| **archived residuals** | `.mstar/archived/residuals/<plan-id>.json` | `mstar-plan-artifacts` |
|
|
24
|
+
| **archived knowledge** | `.mstar/archived/knowledge/`(保留原 `{KNOWLEDGE_DIR}` 相对路径) | `mstar-iteration` §1.6 corpus hygiene、`mstar-plan-artifacts` |
|
|
25
|
+
| **archived specs** | `.mstar/archived/specs/`(保留原 `{SPECS_DIR}` 相对路径) | `mstar-iteration` §1.6 corpus hygiene、`mstar-plan-artifacts` |
|
|
23
26
|
|
|
24
27
|
## 仓库根目录(`<repo-root>/`,与 `.git/` 同级)
|
|
25
28
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
**Always:** `mstar-harness-core`, `mstar-dispatch-gates`, `mstar-phase-gates` (Prepare: specify/clarify/plan), `mstar-plan-conventions` (`{PLAN_DIR}`, plan-writing path).
|
|
6
6
|
|
|
7
|
-
**Typically:** `mstar-plan-artifacts` (
|
|
7
|
+
**Typically:** `mstar-plan-artifacts` (specs, **`{ITERATION_DIR}/<id>/` workspace**); `mstar-design-md`; `mstar-coding-behavior`. Boundaries → **`mstar-iteration/references/iteration-artifact-boundaries.md`**.
|
|
8
8
|
|
|
9
9
|
**On demand:** `mstar-branch-worktree` (when committing architecture docs to the business repo).
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
**Always:** `mstar-harness-core`, `mstar-dispatch-gates`, `mstar-phase-gates` (Prepare / clarify), `mstar-plan-conventions` (`{PLAN_DIR}`, plan-writing path).
|
|
6
6
|
|
|
7
|
-
**Typically:** `mstar-plan-artifacts` (specs, knowledge
|
|
7
|
+
**Typically:** `mstar-plan-artifacts` (specs, **`{ITERATION_DIR}/<id>/` workspace** — not knowledge @ start); `mstar-design-md`; `mstar-coding-behavior`. Boundaries → **`mstar-iteration/references/iteration-artifact-boundaries.md`**.
|
|
8
8
|
|
|
9
9
|
**On demand:** `mstar-branch-worktree` (when committing product docs to the business repo).
|
|
10
10
|
|
|
@@ -177,4 +177,4 @@ read `mstar-host` → the active host reference and `references/parallel-dispatc
|
|
|
177
177
|
|
|
178
178
|
- 把整份 plan 或 T1–Tn 全文贴进 **一个** `fullstack-dev` leaf Assignment。
|
|
179
179
|
- 省略 `Execution mode` / `SDD dir` / `Model tier` 却期望 SDD 产物(`progress.md`、per-task review)。
|
|
180
|
-
- 期望 leaf `fullstack-dev` 载入 `mstar-sdd` 并自编排 per-task 循环 — **编排仅 PM**(`
|
|
180
|
+
- 期望 leaf `fullstack-dev` 载入 `mstar-sdd` 并自编排 per-task 循环 — **编排仅 PM**(`mstar-iteration` §2.4–2.5)。
|
|
@@ -143,7 +143,7 @@ If any fail -> do not dispatch implement.
|
|
|
143
143
|
| Entry | Next reads |
|
|
144
144
|
|-------|------------|
|
|
145
145
|
| **`/pm`** or **`pm` skill** (Codex, Cursor; OpenCode when no command) | This shim → **`project-manager.md`** § Required Reading + topic skills on demand |
|
|
146
|
-
| **Cursor / OpenCode**
|
|
146
|
+
| **Cursor / OpenCode** host iteration `commands/` | Command Boot + **`project-manager.md`** — iteration lifecycle only; **not** required for ordinary per-plan PM |
|
|
147
147
|
| **OpenCode** (no command, not `/pm`) | `project-manager` + `mstar-host` → `opencode.md` |
|
|
148
148
|
|
|
149
149
|
**Dispatch-first**, iteration branch policy(`iteration_base_branch` / `spec_integration_branch` / `target_branch`), Autonomous Execute → **`mstar-iteration`** §2. Routing, gates, Task Board, QC, templates → this file + topic `mstar-*` skills.
|
|
@@ -36,6 +36,7 @@ If any item below matches, **stop** and return `Blocked` to `project-manager` in
|
|
|
36
36
|
3. Marketing/copy writing
|
|
37
37
|
4. Script writing
|
|
38
38
|
5. Tone/style adaptation by audience
|
|
39
|
+
6. **iteration-start corpus hygiene** (§1.6 step 3): specs-first hygiene; misplaced drafts → **`{ITERATION_DIR}/<iteration-id>/`** workspace — **`iteration-artifact-boundaries.md`** + **`iteration-corpus-hygiene.md`**. **Promotion** workspace → knowledge is **`mstar-compound`** @ iteration-close only.
|
|
39
40
|
|
|
40
41
|
## Scope Boundaries
|
|
41
42
|
|
|
@@ -11,7 +11,7 @@ SSOT for mode selection and host resume → this file. Per-task artifacts → **
|
|
|
11
11
|
| **`fresh`** (default) | Independent tasks, module boundaries, different dev tracks, or first task on a plan |
|
|
12
12
|
| **`sticky`** | Same `fullstack-dev` (or same role id), sequential tasks on one branch, strong file/context continuity (e.g. T3+T4 daemon stderr + DB reset) |
|
|
13
13
|
|
|
14
|
-
**Prefer `sticky`** on iteration
|
|
14
|
+
**Prefer `sticky`** on iteration Phase 2 Autonomous Execute when PM will dispatch many tasks to the same dev on one plan feature branch.
|
|
15
15
|
|
|
16
16
|
## Assignment fields (implement dispatch)
|
|
17
17
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: pm
|
|
3
|
-
description: "PM entry shim — force project-manager orchestration when user invokes /pm or this skill (Codex and Cursor). General per-plan PM work: this skill + project-manager.md. Formal iteration lifecycle
|
|
3
|
+
description: "PM entry shim — force project-manager orchestration when user invokes /pm or this skill (Codex and Cursor). General per-plan PM work: this skill + project-manager.md. Formal iteration lifecycle: mstar-iteration (host commands/ may orchestrate Phase 1–5). Boot, routing, dispatch SSOT → mstar-roles/references/project-manager.md and topic mstar-* skills — not here."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# PM (entry shim)
|
|
@@ -12,10 +12,10 @@ description: "PM entry shim — force project-manager orchestration when user in
|
|
|
12
12
|
| Host | Use |
|
|
13
13
|
|------|-----|
|
|
14
14
|
| **Codex** | **`/pm`** or this skill → **`project-manager`** for the session |
|
|
15
|
-
| **Cursor** | **`/pm`** or this skill → general PM orchestration (single-plan, hotfix, QC waves, dispatch) **without** starting an iteration. Formal iteration → **`commands/`**
|
|
15
|
+
| **Cursor** | **`/pm`** or this skill → general PM orchestration (single-plan, hotfix, QC waves, dispatch) **without** starting an iteration. Formal iteration → host **`commands/`** + **`mstar-iteration`** |
|
|
16
16
|
| **OpenCode** | Same as Cursor when no command: **`project-manager`** via `mstar-roles` → `references/project-manager.md` |
|
|
17
17
|
|
|
18
|
-
**Iteration
|
|
18
|
+
**Iteration lifecycle** (optional): host `commands/` may sequence Phase 1–5; semantics SSOT → **`mstar-iteration`**. Not required for ordinary PM work.
|
|
19
19
|
|
|
20
20
|
Detect host → **`mstar-host`** → `references/codex.md` | `cursor.md` | `opencode.md`.
|
|
21
21
|
|
|
@@ -25,10 +25,11 @@ Detect host → **`mstar-host`** → `references/codex.md` | `cursor.md` | `open
|
|
|
25
25
|
2. `mstar-roles` → **`references/project-manager.md`** — required reading list, routing, dispatch-first, iteration branch policy
|
|
26
26
|
3. Topic skills **on demand** per that file and the active workflow (`mstar-dispatch-gates`, `mstar-iteration`, `mstar-sdd`, `mstar-review-qc`, …)
|
|
27
27
|
|
|
28
|
-
##
|
|
28
|
+
## Four rules (everything else is a pointer)
|
|
29
29
|
|
|
30
30
|
1. **Delegate** — PM does not implement, QC, or QA in-thread (`project-manager.md` Execution Boundary; hotfix → `mstar-phase-gates`).
|
|
31
31
|
2. **Dispatch** — when host has invoke/Task tools: **1 Assignment ⇒ 1 invoke** (`mstar-dispatch-gates`). Markdown alone is not dispatch.
|
|
32
|
-
3. **SSOT** — iteration lifecycle → **`mstar-iteration
|
|
32
|
+
3. **SSOT** — iteration lifecycle → **`mstar-iteration`**; Cursor Plan mode → **`mstar-host/references/cursor-plan-mode-bridge.md`**.
|
|
33
|
+
4. **Autonomous Execute push** — multi-plan iteration Phase 2–5: continuously dispatch implement → QC → QA → Done through merge-ready exit without routine yes/no prompts; **Blocked** only on true conflicts or metadata gaps → **`mstar-iteration` §2.6**.
|
|
33
34
|
|
|
34
35
|
Conflict: user instructions → project `AGENTS.md` / `CLAUDE.md` → `mstar-harness-core` → this file.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mstar-harness/opencode",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Morning Star harness OpenCode plugin (skills bootstrap and agent loading).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -16,7 +16,9 @@
|
|
|
16
16
|
"harness-agents",
|
|
17
17
|
"harness-commands",
|
|
18
18
|
"AGENTS.md",
|
|
19
|
-
"INSTALL.md"
|
|
19
|
+
"INSTALL.md",
|
|
20
|
+
"README.md",
|
|
21
|
+
"CHANGELOG.md"
|
|
20
22
|
],
|
|
21
23
|
"scripts": {
|
|
22
24
|
"bundle-assets": "bun run scripts/bundle-harness-assets.ts",
|