@mstar-harness/opencode 0.7.9 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/harness-commands/iteration-drive.md +1 -1
- package/harness-skills/mstar-coding-behavior/SKILL.md +1 -0
- package/harness-skills/mstar-dispatch-gates/SKILL.md +19 -8
- package/harness-skills/mstar-harness-core/SKILL.md +7 -5
- package/harness-skills/mstar-host/SKILL.md +1 -1
- package/harness-skills/mstar-host/references/codex.md +1 -1
- package/harness-skills/mstar-host/references/cursor.md +18 -8
- package/harness-skills/mstar-host/references/parallel-dispatch.md +24 -6
- package/harness-skills/mstar-iteration/SKILL.md +17 -33
- package/harness-skills/mstar-phase-gates/SKILL.md +11 -46
- package/harness-skills/mstar-plan-artifacts/SKILL.md +1 -0
- package/harness-skills/mstar-plan-artifacts/references/plan-files-and-reports.md +16 -4
- package/harness-skills/mstar-plan-artifacts/references/status-and-residuals.md +3 -0
- package/harness-skills/mstar-plan-artifacts/templates/plan.main.md +54 -0
- package/harness-skills/mstar-plan-conventions/SKILL.md +6 -3
- package/harness-skills/mstar-plan-conventions/references/artifact-storage-paths.md +2 -1
- package/harness-skills/mstar-plan-conventions/references/harness-bootstrap-and-agents-layering.md +1 -1
- package/harness-skills/mstar-review-qc/SKILL.md +5 -5
- package/harness-skills/mstar-review-qc/references/review-responsibility-boundaries.md +41 -0
- package/harness-skills/mstar-roles/SKILL.md +5 -1
- package/harness-skills/mstar-roles/references/project-manager/dispatch-and-assignment.md +5 -0
- package/harness-skills/mstar-roles/references/project-manager/qc-and-residuals.md +33 -24
- package/harness-skills/mstar-roles/references/project-manager/routing-and-dev-allocation.md +2 -1
- package/harness-skills/mstar-roles/references/project-manager.md +12 -9
- package/harness-skills/mstar-roles/references/qc-specialist-shared.md +5 -3
- package/harness-skills/mstar-sdd/SKILL.md +118 -0
- package/harness-skills/mstar-sdd/references/file-handoffs.md +73 -0
- package/harness-skills/mstar-sdd/references/implementer-prompt.md +53 -0
- package/harness-skills/mstar-sdd/references/task-reviewer-prompt.md +51 -0
- package/harness-skills/mstar-sdd/scripts/review-package +43 -0
- package/harness-skills/mstar-sdd/scripts/sdd-workspace +26 -0
- package/harness-skills/mstar-sdd/scripts/task-brief +40 -0
- package/harness-skills/pm/SKILL.md +5 -4
- package/package.json +1 -1
|
@@ -76,7 +76,7 @@ Execute **`mstar-iteration` § Phase 2** exactly. Summary:
|
|
|
76
76
|
- Create plan feature branch from integration
|
|
77
77
|
- Dispatch implement subagents (dispatch-first)
|
|
78
78
|
- Update `status.json` + main plan after each Completion Report v2
|
|
79
|
-
- QC tri-review
|
|
79
|
+
- QC **full tri-review** (`QC mode: full tri-review`, **N=3**, `mstar-review-qc`) + QA per plan
|
|
80
80
|
- Merge plan branch → integration branch
|
|
81
81
|
- Cross-plan progress sync → compass
|
|
82
82
|
- Next plan
|
|
@@ -202,6 +202,7 @@ Core idea: how you communicate about code matters as much as the code itself.
|
|
|
202
202
|
|
|
203
203
|
## Integration Notes
|
|
204
204
|
|
|
205
|
+
- **SDD implementer reports** (`mstar-sdd`): completion evidence must include TDD triple — test file(s), command, output — in `task-N-report.md`; fix rounds add the same for new/changed tests.
|
|
205
206
|
- This skill must not be used to bypass:
|
|
206
207
|
- branch constraints,
|
|
207
208
|
- QC/QA gate definitions,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: mstar-dispatch-gates
|
|
3
|
-
description: Morning Star 派发与委派门禁 —— 仅 PM 可增派 subagent、`Execute as` 与 `Delegation`、承接方反递归 NEVER
|
|
3
|
+
description: Morning Star 派发与委派门禁 —— 仅 PM 可增派 subagent、`Execute as` 与 `Delegation`、承接方反递归 NEVER 红线、SDD implement 串行派发、**SDD 路径 plan QC 强制 tri-review(N=3)**、inline 单席 QC 例外、Assignment 文案≠派发、未齐不发。`project-manager` 派发时必读;leaf 动手前必读反递归。worktree 见 `mstar-branch-worktree`;SDD 见 `mstar-sdd`;宿主见 `mstar-host`。
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## Load order(必读顺序)
|
|
@@ -54,8 +54,9 @@ description: Morning Star 派发与委派门禁 —— 仅 PM 可增派 subagent
|
|
|
54
54
|
当 PM 声明「并发分派」时,须同时满足**文案并发**与**工具并发**:
|
|
55
55
|
|
|
56
56
|
- **工具并发**:同一调度轮次内,多个 subagent 调用须在**同一条 assistant 消息**里一次性发出(宿主允许时)。
|
|
57
|
-
- **QC
|
|
58
|
-
- **QC
|
|
57
|
+
- **QC tri-review(SDD 强制)**:`Execution mode: sdd` 且全部 task 完成后 → `qc-specialist` / `qc-specialist-2` / `qc-specialist-3` 同条消息 **N=3**(`qc1`…`qc3` + `qc-consolidated.md`)。Assignment 须含 branch **review-package** 路径。适用于**单 plan 与 iteration**。
|
|
58
|
+
- **QC 单席(例外)**:`Execution mode: inline`(hotfix 等),或 Assignment 显式 `QC mode: single` / `QC mode: single — override: <reason>` → `qc-specialist` ×1,`N=1`,`qc.md`。
|
|
59
|
+
- **QC targeted re-review**:Assignment 含 **`QC re-review: targeted — reviewers: …`** 时,**N** = 所列席位数(1–3),同条消息发满 **N**。
|
|
59
60
|
- **先自检再发送**:发送前核对「Assignment 条数 = 本条消息中的实际 **派发** 调用条数」。
|
|
60
61
|
- **前置步骤与派发回合分离(防串行 rollout)**:为派发准备的 **`bash` / `read` / `glob` / `grep`**(如 `merge-base`、`Review range`、`git rev-parse`)**不计入** `N` 次派发;可在上一条仅含准备的消息完成。准备完成后,**下一条派发消息**须**一次性**含 **`N` 次** Task / subagent invoke。**禁止**先发 `1` 次、等返回再补发其余 `N-1` 次。
|
|
61
62
|
- **未齐不发(emit zero until batch-ready)**:需并发 `N≥2` 而当前只能发 `1` 条时,本条应发 **`0` 条派发 invoke`**(可继续 read/bash 补齐),**禁止**「先发一个顶一下」;`N` 份 payload 就绪后**单次消息发满 `N`**。见 **`mstar-host`** → `references/parallel-dispatch.md`(具备 invoke / Task / subagent 工具的宿主共用)。
|
|
@@ -64,11 +65,20 @@ description: Morning Star 派发与委派门禁 —— 仅 PM 可增派 subagent
|
|
|
64
65
|
|
|
65
66
|
在支持具名角色 / Task 的宿主上,`## Assignment` **正文不会**拉起子会话。PM 须在**同一条 assistant 消息**(或宿主等价机制)发出与 Assignment **条数一致**的 invoke / Task;仅打印 Markdown = **分派未完成**。**几条 Assignment ⇒ 几次 tool 调用**(默认同消息并行)。
|
|
66
67
|
|
|
68
|
+
## SDD implement 波次(PM only)
|
|
69
|
+
|
|
70
|
+
When **`Execution mode: sdd`** (`mstar-sdd`):
|
|
71
|
+
|
|
72
|
+
- **串行**:one implementer at a time; one task reviewer after each — **never** parallel implementers (write conflicts).
|
|
73
|
+
- File handoffs only — no pasted plan/diff/history in dispatch prompts.
|
|
74
|
+
- Record per-task BASE SHA; use `review-package` for diffs — **never `HEAD~1`**.
|
|
75
|
+
- After all tasks: branch `review-package` → **mandatory tri-review N=3** when `Execution mode: sdd`; **N=1** only for `inline` / explicit single override.
|
|
76
|
+
|
|
67
77
|
## 并行规则(摘要)
|
|
68
78
|
|
|
69
|
-
-
|
|
70
|
-
- **QC
|
|
71
|
-
-
|
|
79
|
+
- 独立模块可并行 **implement 轨道**(不同 dev Assignment);**SDD 单 plan 内 task** 仍串行。
|
|
80
|
+
- **Plan QC tri** after SDD task loop(`Execution mode: sdd`);**单席**仅 `inline` / hotfix。共用 `Review cwd` / `Working branch` / `plan_id` / `Review range`(**`mstar-branch-worktree`**)。
|
|
81
|
+
- **Tri 同消息规则**:plan QC tri(SDD 或 Assignment 显式 `QC mode: full tri-review`)时三席 **同一条消息**、**同一套** scope 字段。
|
|
72
82
|
|
|
73
83
|
## Specialist review-and-edit dispatch
|
|
74
84
|
|
|
@@ -83,8 +93,9 @@ description: Morning Star 派发与委派门禁 —— 仅 PM 可增派 subagent
|
|
|
83
93
|
|
|
84
94
|
## 反模式(派发)
|
|
85
95
|
|
|
86
|
-
- QC
|
|
87
|
-
- 仅 1 次 invoke
|
|
96
|
+
- QC 三审拆在多条消息(tri 模式)或单席却未附 review-package 路径。
|
|
97
|
+
- 仅 1 次 invoke 却声称「tri-review 已并行启动」(tri 模式 N=3)。
|
|
98
|
+
- SDD 并行 implementer dispatch。
|
|
88
99
|
- 递归同角色 subagent;把 Handoff / 多轨编排措辞当 invoke。
|
|
89
100
|
- Review-and-edit 链未完成即 commit integration 分支;PM 代做专业角色编辑而不 invoke。
|
|
90
101
|
- Phase 1 review-and-edit 链三角色并行派发,或未等上一角色返回即派发下一角色。
|
|
@@ -30,7 +30,7 @@ description: Morning Star (启明星) harness **强制全局入口** —— 信
|
|
|
30
30
|
|
|
31
31
|
## 最小交付循环
|
|
32
32
|
|
|
33
|
-
**per-plan**:`specify → clarify → plan` → `plan(locked) → tasks → implement
|
|
33
|
+
**per-plan**:`specify → clarify → plan` → `plan(locked) → tasks → implement`(多 task 默认 SDD)→ plan QC tri + QA → Done(`inline` 单席例外)。阶段细则 → **`mstar-phase-gates`**。
|
|
34
34
|
|
|
35
35
|
**迭代级**:`iteration-start → [per-plan cycle × N] → iteration-close → PR delivery → PR merge-ready loop`。细则 → **`mstar-iteration`**。
|
|
36
36
|
|
|
@@ -39,11 +39,11 @@ description: Morning Star (启明星) harness **强制全局入口** —— 信
|
|
|
39
39
|
| 角色 | 始终 | 按任务追加(典型) |
|
|
40
40
|
|------|------|-------------------|
|
|
41
41
|
| **全部** | 本 skill | — |
|
|
42
|
-
| **`@project-manager`** | 本 skill | `mstar-dispatch-gates`、`mstar-phase-gates`、`mstar-plan-conventions`、`mstar-roles`;派 QC 前 `mstar-review-qc`;并行/审查 `mstar-branch-worktree`;plan/status/reports `mstar-plan-artifacts`;UI 类 plan Prepare 阶段 `mstar-design-md`(DESIGN.md 门禁);新建/大改 skill 时 `mstar-skill-authoring`;迭代管理 `mstar-iteration`(Phase 1–5);战略性工作 `mstar-strategy`。**不**读 `mstar-coding-behavior` |
|
|
42
|
+
| **`@project-manager`** | 本 skill | `mstar-dispatch-gates`、`mstar-phase-gates`、`mstar-plan-conventions`、`mstar-roles`;implement 波次 `mstar-sdd`;派 QC 前 `mstar-review-qc`;并行/审查 `mstar-branch-worktree`;plan/status/reports `mstar-plan-artifacts`;UI 类 plan Prepare 阶段 `mstar-design-md`(DESIGN.md 门禁);新建/大改 skill 时 `mstar-skill-authoring`;迭代管理 `mstar-iteration`(Phase 1–5);战略性工作 `mstar-strategy`。**不**读 `mstar-coding-behavior` |
|
|
43
43
|
| **实现/审查/QA/运维** | 本 skill + `mstar-coding-behavior` + 角色 ref | 有 git 写:`mstar-branch-worktree`;有 plan 路径:`mstar-plan-conventions`(路径符号节);QC/QA:`mstar-review-qc`;改 status/residual:`mstar-plan-artifacts`;UI 任务:`mstar-design-md`(读取 DESIGN.md tokens);写入知识库 `{KNOWLEDGE_DIR}`:`mstar-compound`(PM 触发) |
|
|
44
44
|
| **leaf 承接方** | 上栏 + **`mstar-dispatch-gates`**(反递归节) | — |
|
|
45
45
|
|
|
46
|
-
Routing eval(Cursor
|
|
46
|
+
Routing eval(Cursor 插件内回归用,**非**运行时必读)→ `.cursor/skills/mstar-routing-eval/`。
|
|
47
47
|
|
|
48
48
|
## 状态机
|
|
49
49
|
|
|
@@ -88,7 +88,8 @@ PM 在 Assignment 写 **`Task category`**(主类 + 可选 `secondary`):
|
|
|
88
88
|
| `mstar-harness-core` | 本文件:入口、状态机、Task category、explore、索引、护栏 |
|
|
89
89
|
| `mstar-phase-gates` | per-plan 双阶段门禁:Prepare/Execute、意图门禁、hotfix、可验证编辑 |
|
|
90
90
|
| `mstar-iteration` | 迭代管理:Phase 1–5(start / Autonomous Execute / iteration-close / PR delivery / PR merge-ready loop) |
|
|
91
|
-
| `mstar-dispatch-gates` | 派发、Delegation
|
|
91
|
+
| `mstar-dispatch-gates` | 派发、Delegation、反递归、SDD 串行、SDD 路径 plan QC 强制 tri |
|
|
92
|
+
| `mstar-sdd` | Subagent-driven development:file handoff、per-task review、ledger |
|
|
92
93
|
| `mstar-branch-worktree` | 功能分支、worktree、QC/QA 检出对齐 |
|
|
93
94
|
| `mstar-plan-conventions` | `{HARNESS_DIR}` 发现、初始化、Spec 分支模型摘要、产物路径 SSOT |
|
|
94
95
|
| `mstar-plan-artifacts` | 主 plan、reports、`status.json`、residual、knowledge、Done 归档 |
|
|
@@ -135,7 +136,8 @@ Read **`mstar-host`** after this skill; detect host per its table, then Read the
|
|
|
135
136
|
|
|
136
137
|
| 反模式 | 详见 |
|
|
137
138
|
|--------|------|
|
|
138
|
-
|
|
|
139
|
+
| SDD paste-only / 跳过 task review / 并行 implementer | `mstar-sdd` · `mstar-dispatch-gates` |
|
|
140
|
+
| SDD plan 以单席 `qc.md` 收尾 / 跳过 plan tri | `mstar-dispatch-gates` · `mstar-review-qc` · `mstar-sdd` |
|
|
139
141
|
| fix 后无脑重派三审 / 用 `-rev2` 代替原位复验 | `mstar-plan-artifacts` · `mstar-review-qc` |
|
|
140
142
|
| 递归误派 / 误读 Handoff | `mstar-dispatch-gates` |
|
|
141
143
|
| `quick` 跳过 Prepare | 上表 + `mstar-phase-gates` |
|
|
@@ -19,7 +19,7 @@ Read **`mstar-harness-core`** before this skill (even when the host injects proj
|
|
|
19
19
|
4. Load role via `mstar-roles`
|
|
20
20
|
5. Execute with evidence-first completion checks
|
|
21
21
|
|
|
22
|
-
Load topic skills **on demand** per `mstar-roles` (do not read every `mstar-*` skill by default). Cursor
|
|
22
|
+
Load topic skills **on demand** per `mstar-roles` (do not read every `mstar-*` skill by default). Cursor routing-eval (`.cursor/skills/mstar-routing-eval/`) is regression tooling only — not part of runtime load order.
|
|
23
23
|
|
|
24
24
|
## Detect active host
|
|
25
25
|
|
|
@@ -38,7 +38,7 @@ Use skill names in prompts and references. Avoid absolute local paths unless the
|
|
|
38
38
|
- **No invoke tool / no linked custom agent = no dispatch**: printing `## Assignment` does not start another Codex worker.
|
|
39
39
|
- If Codex exposes custom-agent / multi-agent tools and matching Morning Star agents are linked, PM may dispatch through those tools and must follow `parallel-dispatch.md`.
|
|
40
40
|
- If no invoke tool is present when dispatch is required, return **`Blocked`** — report missing invoke capability to the user. Do not substitute single-session role execution in the PM thread unless the user explicitly overrides harness dispatch for this turn.
|
|
41
|
-
- QC
|
|
41
|
+
- QC: **`Execution mode: sdd`** → **N=3** tri-review; **`inline`** → **N=1**. Cannot emit required **N** → **`Blocked`**.
|
|
42
42
|
- Leaf executors still follow `mstar-dispatch-gates`: no recursive Task/subagent calls unless Assignment says `Delegation: allowed (...)`.
|
|
43
43
|
|
|
44
44
|
## Files, shell, and approvals
|
|
@@ -7,7 +7,7 @@ Parallel PM dispatch: **`parallel-dispatch.md`** (Task tool uses same turn model
|
|
|
7
7
|
## Cursor-only context
|
|
8
8
|
|
|
9
9
|
- Role prompts: `mstar-roles`; **`/pm`** → `project-manager` via `pm` skill + `mstar-roles`.
|
|
10
|
-
- Routing-eval: `.cursor/skills/mstar-routing-eval/` —
|
|
10
|
+
- Routing-eval: `.cursor/skills/mstar-routing-eval/` — regression tooling only; not runtime load order.
|
|
11
11
|
|
|
12
12
|
## Plan mode × harness dual-write
|
|
13
13
|
|
|
@@ -38,13 +38,11 @@ Enforcement: `rules/mstar-cursor-plan-mode.mdc` when plugin active.
|
|
|
38
38
|
3. `mstar-harness-core` and `mstar-*` skills
|
|
39
39
|
4. `mstar-host` + this reference
|
|
40
40
|
|
|
41
|
-
## Task tool (QC
|
|
41
|
+
## Task tool (QC: SDD → N=3)
|
|
42
42
|
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
- Parallel QC ≠ different review cwd per reviewer; one integrated HEAD for scope.
|
|
47
|
-
- Status Update may note QC ran via parallel Task subagents.
|
|
43
|
+
- **`Execution mode: sdd`**: **N=3** Tasks (`qc-specialist`, `qc-specialist-2`, `qc-specialist-3`) + branch review-package path.
|
|
44
|
+
- **`inline`**: **N=1** per `parallel-dispatch.md`.
|
|
45
|
+
- SDD implement/reviewer: **serial** — see **`mstar-sdd`**.
|
|
48
46
|
|
|
49
47
|
## Dispatch execution(canonical)
|
|
50
48
|
|
|
@@ -68,9 +66,21 @@ Implementation roles use `mstar-coding-behavior` for RCA, test-first checks, rev
|
|
|
68
66
|
|
|
69
67
|
## Gotchas
|
|
70
68
|
|
|
71
|
-
-
|
|
69
|
+
- Single-seat and tri-review need identical `plan_id` and review scope fields.
|
|
72
70
|
- Task parallelism does not relax branch/worktree isolation.
|
|
73
71
|
|
|
72
|
+
## Model tier (SDD + QC)
|
|
73
|
+
|
|
74
|
+
Map Assignment **`Model tier`** to Task `model` (host-specific slugs):
|
|
75
|
+
|
|
76
|
+
| Tier | Typical use |
|
|
77
|
+
|------|-------------|
|
|
78
|
+
| `fast` | Transcription tasks; 1–2 file mechanical edits |
|
|
79
|
+
| `standard` | SDD prose implementer; task reviewer floor; plan QC tri seats |
|
|
80
|
+
| `capable` | Large branch QC diff; integration judgment |
|
|
81
|
+
|
|
82
|
+
**Turn count beats token price** — reviewers and prose implementers use `standard` floor minimum. See `mstar-sdd` SKILL.
|
|
83
|
+
|
|
74
84
|
## Project rules
|
|
75
85
|
|
|
76
86
|
Project `AGENTS.md` / `CLAUDE.md` upward from cwd override global harness defaults when they conflict with Cursor-side rules; user instructions win.
|
|
@@ -27,11 +27,29 @@ Printing `## Assignment` in the main thread **without** matching host invocation
|
|
|
27
27
|
- Dual-track implement: **`N = 2` ⇒ two invocations in one message** when parallel is required.
|
|
28
28
|
- Status Update on dispatch turns: **`Subagent invokes issued: N`** (must match Assignment count). If Assignments were written but `N = 0` → **`dispatch failed — paste-only`**; fix next message.
|
|
29
29
|
|
|
30
|
-
## QC
|
|
30
|
+
## QC default (initial wave)
|
|
31
31
|
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
|
|
32
|
+
- **`Execution mode: sdd`**: **N=3** tri-review + branch review-package path → `qc1`…`qc3` + consolidated.
|
|
33
|
+
- **`inline` / override**: **N=1** → `qc.md`.
|
|
34
|
+
|
|
35
|
+
## QC iteration / SDD (same rule)
|
|
36
|
+
|
|
37
|
+
Formal iteration Phase 2 uses the same SDD + tri rule — not a separate carve-out.
|
|
38
|
+
|
|
39
|
+
## QC full tri-review(非 SDD 但显式 tri)
|
|
40
|
+
|
|
41
|
+
当 plan 为 **`Execution mode: inline`** 或单轨,但 Assignment 仍写 **`QC mode: full tri-review`** 时:
|
|
42
|
+
|
|
43
|
+
- Launch `qc-specialist`, `qc-specialist-2`, `qc-specialist-3` in **one** dispatch turn (**N=3**).
|
|
44
|
+
- Post-dispatch: verify three distinct agent IDs; on mismatch → invalid dispatch.
|
|
45
|
+
|
|
46
|
+
(**SDD 默认**已在上一节;本节仅覆盖显式 tri 的非 SDD 场景。)
|
|
47
|
+
|
|
48
|
+
## SDD implement (serial — not parallel)
|
|
49
|
+
|
|
50
|
+
- **`Execution mode: sdd`**: implementer and task reviewer dispatches are **one at a time** per task.
|
|
51
|
+
- **Never** multiple implementer Tasks in one message for the same plan.
|
|
52
|
+
- See **`mstar-sdd`**.
|
|
35
53
|
|
|
36
54
|
## QC targeted re-review (after fixes)
|
|
37
55
|
|
|
@@ -44,5 +62,5 @@ Printing `## Assignment` in the main thread **without** matching host invocation
|
|
|
44
62
|
1. Required assignments this turn? (`N`)
|
|
45
63
|
2. Prerequisite-only message? → **zero** batch dispatches unless `N = 1`.
|
|
46
64
|
3. Dispatch message contains **exactly `N`** invocation calls?
|
|
47
|
-
4. QC initial
|
|
48
|
-
5.
|
|
65
|
+
4. QC initial: **`Execution mode: sdd`** → **N=3**? **`inline`** → **N=1**? Targeted re-review → **N** = Assignment reviewer count?
|
|
66
|
+
5. SDD implement → **serial** (never batch implementers)?
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: mstar-iteration
|
|
3
|
-
description: Morning Star 迭代管理 —— iteration-start、Autonomous Execute
|
|
3
|
+
description: Morning Star 迭代管理 —— iteration-start、Autonomous Execute(per-plan SDD + plan QC tri)、iteration-close、PR 交付(Phase 4)、PR merge-ready loop(Phase 5)。显式分支策略;compass `{ITERATION_DIR}/`;分支 SSOT:`status.json` metadata + compass frontmatter。**必须**在 iteration-start / iteration-drive / 多 plan 编排、integration 分支、iteration-close 或 PR merge-ready 时 Read;`@project-manager` 迭代编排必读。
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# mstar-iteration(迭代管理)
|
|
@@ -228,7 +228,7 @@ SSOT = `{HARNESS_DIR}/status.json` + `{PLAN_DIR}/`。todos 只追踪本轮下一
|
|
|
228
228
|
|
|
229
229
|
1. **Plan start — feature branch**:Assignment 用 `Working branch: create <plan-feature-branch> from <spec_integration_branch>`。一个 plan 一条专用实现分支;内部并行 → topic branches + worktrees(`mstar-branch-worktree`)
|
|
230
230
|
2. **Implement → InReview**:dispatch-only 循环(`§ 2.5`);每次 Completion Report v2 后更新 `status.json` + 主 plan
|
|
231
|
-
3. **QC → QA → Done
|
|
231
|
+
3. **QC → QA → Done**:per-plan 审查链 → **`mstar-sdd`**(L1–L2)+ **`mstar-review-qc/references/review-responsibility-boundaries.md`**(L3 tri / inline 单席)+ QA。
|
|
232
232
|
4. **Plan complete — merge back**:合并 plan feature branch → `spec_integration_branch`;在下一 plan 或 QC 前解决冲突
|
|
233
233
|
5. **Cross-plan 进度同步**:更新 `{ITERATION_DIR}/<iteration-id>-delivery-compass.md` 的 `## Plans` 表状态列
|
|
234
234
|
6. **Next plan** 从步骤 1 继续
|
|
@@ -241,21 +241,13 @@ SSOT = `{HARNESS_DIR}/status.json` + `{PLAN_DIR}/`。todos 只追踪本轮下一
|
|
|
241
241
|
|
|
242
242
|
### 2.5 Dispatch-first(implement 派发约束)
|
|
243
243
|
|
|
244
|
-
|
|
244
|
+
派发纪律 SSOT → **`mstar-dispatch-gates`** · **`mstar-host/references/parallel-dispatch.md`** · **`skills/pm/SKILL.md`**(Dispatch-first)。
|
|
245
245
|
|
|
246
|
-
|
|
247
|
-
2. **下一条派发消息**的第一动作 = 发出全部 `Task`(QC 初轮 **N=3** 同条消息;双轨 implement **N=2**)。
|
|
248
|
-
3. `Subagent invokes issued: 0` 而 Assignment 已写出 → **`dispatch incomplete`**;下一条必须补发 invoke,**禁止** PM 线程亲自实现顶替。
|
|
246
|
+
Iteration Phase 2 附加:
|
|
249
247
|
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
| 1 Assignment ⇒ 1 invoke | Assignment 只写 markdown 不 invoke |
|
|
254
|
-
| merge/branch/handoff 写入 Assignment | 因"上下文已有"而跳过 subagent |
|
|
255
|
-
|
|
256
|
-
- **NEVER** implement while staying PM — 实现一律 delegate dev 角色
|
|
257
|
-
- Delegate scope:`mstar-roles` → PM Execution Boundary
|
|
258
|
-
- 例外:用户显式要求 PM thread 实现;hotfix(`mstar-phase-gates`)
|
|
248
|
+
- PM **NEVER** 在 PM 线程实现产品代码(delegate dev;hotfix 例外见 **`mstar-phase-gates`**)
|
|
249
|
+
- `Subagent invokes issued: 0` 而 Assignment 已写出 → **`dispatch incomplete`**;下一条补发 invoke,禁止 PM 顶替
|
|
250
|
+
- QC 初轮:**SDD → N=3**;**inline → N=1**;双轨 implement → **N=2**(同条消息发满 N)
|
|
259
251
|
|
|
260
252
|
### 2.6 Push 纪律
|
|
261
253
|
|
|
@@ -304,26 +296,16 @@ PM **必须**在对话中打印本 checklist;不得默认同过。
|
|
|
304
296
|
|
|
305
297
|
### 3.2 知识结晶(Compound)—— 迭代级核心收口
|
|
306
298
|
|
|
307
|
-
**Compound 在此执行,不在 per-plan Done 后独立执行。**
|
|
308
|
-
|
|
309
|
-
PM 触发 `mstar-compound`(可批量):
|
|
310
|
-
|
|
311
|
-
1. **收集素材**:回顾本迭代所有 plan 的实现、debug、review 过程,识别以下类型的可结晶知识:
|
|
312
|
-
- 非平凡 bug 修复及其诊断过程
|
|
313
|
-
- 新引入的架构模式或约定
|
|
314
|
-
- 工具链决策及其理由
|
|
315
|
-
- 跨 plan 重复出现的模式
|
|
316
|
-
- 有价值的排错经验
|
|
317
|
-
|
|
318
|
-
2. **逐条判定**:对每条候选知识,回答 `mstar-compound` 的 Q1-Q8 自检;跳过项要在 compass `## Compound Round Summary` 记录原因。
|
|
319
|
-
|
|
320
|
-
3. **写入或更新**:值得结晶的条目按 `mstar-compound` Phase 1-7 写入 `{KNOWLEDGE_DIR}/<category>/<slug>.md`,或在高重叠时更新已有文档。
|
|
299
|
+
**Compound 在此执行,不在 per-plan Done 后独立执行。** 工作流 SSOT → **`mstar-compound`**(Q1–Q8 自检、Phase 1–7、Phase 6 索引登记强制)。
|
|
321
300
|
|
|
322
|
-
|
|
301
|
+
PM 批量触发后须:
|
|
323
302
|
|
|
324
|
-
|
|
303
|
+
1. 收集本迭代 plan 实现 / debug / review 素材,筛候选知识
|
|
304
|
+
2. 逐条过 `mstar-compound` 自检;跳过项记入 compass `## Compound Round Summary`
|
|
305
|
+
3. 写入或更新 `{KNOWLEDGE_DIR}/<category>/<slug>.md`;新领域词更新 `CONCEPTS.md`
|
|
306
|
+
4. **每篇**新 doc 完成 Phase 6(`{KNOWLEDGE_DIR}/README.md` 登记)
|
|
325
307
|
|
|
326
|
-
|
|
308
|
+
若无结晶,仍在 `## Compound Round Summary` 写明 `无可结晶知识` 及原因。
|
|
327
309
|
|
|
328
310
|
### 3.3 更新 roadmap
|
|
329
311
|
|
|
@@ -430,7 +412,8 @@ PR **merge** 本身可仍由用户手动执行,除非 Assignment 明确授权
|
|
|
430
412
|
| `mstar-phase-gates` | per-plan gate 判定 |
|
|
431
413
|
| `mstar-plan-conventions` | 路径符号(`{ITERATION_DIR}`、`{HARNESS_DIR}`) |
|
|
432
414
|
| `mstar-plan-artifacts` | `status.json` SSOT、`{ITERATION_DIR}` 索引维护 |
|
|
433
|
-
| `mstar-
|
|
415
|
+
| `mstar-sdd` | SDD implement 波次 — per-plan loop |
|
|
416
|
+
| `mstar-review-qc` | SDD 强制 plan QC tri — per-plan loop |
|
|
434
417
|
| `mstar-branch-worktree` | 分支/merge/worktree 隔离 |
|
|
435
418
|
| `mstar-compound` | iteration-close 中触发知识结晶 |
|
|
436
419
|
| `mstar-compound-refresh` | iteration-close 后可触发知识维护 |
|
|
@@ -449,3 +432,4 @@ PR **merge** 本身可仍由用户手动执行,除非 Assignment 明确授权
|
|
|
449
432
|
- 不要跳过 compound——如果本迭代确实没有可结晶的知识,在 compass `## Compound Round Summary` 写 `无可结晶知识(原因:<简述>)`
|
|
450
433
|
- 不要将 **Phase 4 开 PR** 等同于 **迭代交付完成** — 必须完成 **Phase 5** §5.5 merge-ready loop
|
|
451
434
|
- 不要在 Phase 5 跳过 review comment + resolve 纪律(§5.1 step 5)
|
|
435
|
+
- **不要在 SDD plan 上以单席 `qc.md` 收尾**(除非用户书面 `QC mode: single — override`)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: mstar-phase-gates
|
|
3
|
-
description: Morning Star (启明星) Spec-Driven 双阶段门禁 —— Prepare(`specify → clarify → plan`)、Execute(`plan(locked) → tasks → implement
|
|
3
|
+
description: Morning Star (启明星) Spec-Driven 双阶段门禁 —— Prepare(`specify → clarify → plan`)、Execute(`plan(locked) → tasks → implement`;多 task 默认 **`Execution mode: sdd`**)、意图门禁、长期目标优先、分批 roadmap 强制落盘、clarify 核心纪律、hotfix 压缩路径、可验证编辑、Phase Gate 最小证据。**必须**在 PM 判定 gate、首次 implement 派单前、产品/架构参与 Prepare、或解释为何不能跳过 plan/clarify 时 Read;`@project-manager` 每轮编排非 hotfix 任务必读;`@product-manager` / `@architect` 写规格与锁 plan 时必读 Prepare 节;实现角色 Read Execute 与 hotfix 例外即可。Task category 与 `quick` 禁豁免规则仍在 `mstar-harness-core`。实现行为见 `mstar-coding-behavior`;SDD 见 `mstar-sdd`;迭代级活动见 `mstar-iteration`。
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## Load order(必读顺序)
|
|
@@ -29,7 +29,7 @@ description: Morning Star (启明星) Spec-Driven 双阶段门禁 —— Prepare
|
|
|
29
29
|
- **`plan(locked)`** — 冻结基线;实现中出现新约束时**先回写 plan 再继续**。
|
|
30
30
|
- **`tasks`** — 含依赖顺序、并行标记、完成判据;每任务可追踪到 plan、roadmap 批次与验收标准。
|
|
31
31
|
- **并行标签**:若 PM 将 ≥2 条实现轨 **同时** 分派,须在 Assignment 写明 `Dispatch mode: parallel independent tracks`;同仓 ≥2 可写并发时写明 `Worktree isolation: required`(见 **`mstar-dispatch-gates`** 与 **`mstar-branch-worktree`**)。
|
|
32
|
-
- **`implement`** — 按 tasks
|
|
32
|
+
- **`implement`** — 按 tasks 顺序执行;多 task plan **默认** `Execution mode: sdd`(`mstar-sdd`);hotfix 可 `inline`。完成进入 `InReview`;遵循 **`mstar-coding-behavior`**。
|
|
33
33
|
|
|
34
34
|
### 可验证编辑与上下文纪律
|
|
35
35
|
|
|
@@ -39,55 +39,20 @@ description: Morning Star (启明星) Spec-Driven 双阶段门禁 —— Prepare
|
|
|
39
39
|
|
|
40
40
|
### Hotfix 例外
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
压缩路径与事后补记见下文 **§ Hotfix 例外**(Playbook 末尾)。
|
|
43
43
|
|
|
44
44
|
## Phase Gate Playbook
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
执行动作与最小产物见上文 **§ Spec-Driven 双阶段门禁**。本节仅 **Playbook 补充**(不重复 Prepare/Execute 长文)。
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
### Execute 补充(Playbook 专有)
|
|
49
49
|
|
|
50
|
-
-
|
|
51
|
-
- 热修可走压缩路径,但必须补事后 `clarify/RCA` 记录。
|
|
52
|
-
|
|
53
|
-
## 两阶段门禁(per-plan Playbook)
|
|
54
|
-
|
|
55
|
-
### A. Prepare
|
|
56
|
-
|
|
57
|
-
顺序:`specify -> clarify -> plan`
|
|
58
|
-
|
|
59
|
-
- `specify`
|
|
60
|
-
- 目标:定义问题、范围、验收。
|
|
61
|
-
- 最小产物:问题陈述、目标用户价值、非目标、DoD 草案。
|
|
62
|
-
- `clarify`
|
|
63
|
-
- 目标:收敛会影响方案或验收的歧义。
|
|
64
|
-
- 最小产物:歧义清单 + 结论;若未收敛则 `blocked`。
|
|
65
|
-
- **意图**:区分字面请求与真实目标;手段/目标混淆须在此收敛(见本 skill `SKILL.md` Intent gate)。
|
|
66
|
-
- **结构化澄清**:与用户核对歧义或决策时,`@project-manager`(及直接与用户对话的角色)在**宿主支持**时优先用 `question` 类能力拉齐输入;否则用等价结构化正文。宿主差异细则见当前宿主的 `mstar-host` skill。
|
|
67
|
-
- **`clarify` 核心纪律**(见 **`mstar-phase-gates` SKILL.md** Prepare · `clarify`):逐方面核对至共享理解;沿设计决策树逐枝、一次一决;能探索代码库则先探索;每问附推荐答案;阶段末汇总已决与仍 open 假设。
|
|
68
|
-
- `plan`
|
|
69
|
-
- 目标:给出可执行技术方案与风险控制。
|
|
70
|
-
- 最小产物:目标状态、方案、模块边界/接口契约、风险与回滚、验证计划。
|
|
71
|
-
- **准入**:能书面写出真实目标、成功判据、非目标后再锁 plan(同 `SKILL.md`)。
|
|
72
|
-
- **分批准入**:若计划不是一次性交付完整范围,须写 `Roadmap / Batch Plan`:本批做什么、后续批次做什么、依赖顺序、暂缓项、owner/触发条件、最终 Done 定义;缺失则 `blocked`。
|
|
73
|
-
|
|
74
|
-
### B. Execute
|
|
75
|
-
|
|
76
|
-
顺序:`plan locked -> tasks -> implement`
|
|
77
|
-
|
|
78
|
-
- `plan locked`
|
|
79
|
-
- 目标:冻结本轮基线,防止边做边漂移。
|
|
50
|
+
- **`plan locked`**
|
|
80
51
|
- 最小动作:在 plan 或 notes 记录当前锁定版本(日期或 hash)。
|
|
81
|
-
- `
|
|
82
|
-
|
|
83
|
-
-
|
|
84
|
-
-
|
|
85
|
-
- `implement`
|
|
86
|
-
- 目标:按任务执行并提交证据,进入审查。
|
|
87
|
-
- 最小产物:实现 diff、自检证据、回报与 handoff。
|
|
88
|
-
- **行为准则**:执行中遵循 `mstar-coding-behavior`(不静默假设、优先简单方案、只做与任务直接相关的手术式改动、按 `Step -> verify` 推进)。
|
|
89
|
-
- **编辑纪律**:改文件前以磁盘为准重读;Patch 失败则重读、缩小步长,禁止盲试(见 **`mstar-phase-gates` SKILL.md**「可验证编辑与上下文纪律」)。
|
|
90
|
-
- **知识库 / 迭代 compass**:若项目在 `plans[].metadata` 中登记了 `primary_spec` / `spec_refs` / `iteration_compass` / `iteration_refs`,**开工前**须阅读并在回报中说明已对齐;规则见 **`mstar-plan-conventions`** 与 **`mstar-plan-artifacts/references/knowledge-and-designs.md`**。
|
|
52
|
+
- **Plan 质量门**(新 plan / 大改):无 placeholder(`...`、`TBD`、`etc.`);含 **Global Constraints** 与 per-task **Interfaces**;PM self-review 三问(每 task 可独立验证?依赖顺序清晰?无隐含假设?)— 见 `mstar-plan-artifacts/templates/plan.main.md`。
|
|
53
|
+
- **`implement`**
|
|
54
|
+
- 最小产物:实现 diff、自检证据、回报与 handoff;行为准则 → **`mstar-coding-behavior`**;编辑纪律 → 上文「可验证编辑与上下文纪律」。
|
|
55
|
+
- **知识库 / 迭代 compass**:若 `plans[].metadata` 登记了 `primary_spec` / `spec_refs` / `iteration_compass` / `iteration_refs`,**开工前**须阅读并在回报中说明已对齐 → **`mstar-plan-conventions`** · **`mstar-plan-artifacts/references/knowledge-and-designs.md`**。
|
|
91
56
|
|
|
92
57
|
## 角色职责
|
|
93
58
|
|
|
@@ -112,7 +77,7 @@ per-plan Done 是 per-plan 的闭环终点;compound 是迭代级收口活动
|
|
|
112
77
|
|
|
113
78
|
## Plan 目录与审查报告(启用 `{PLAN_DIR}` 时)
|
|
114
79
|
|
|
115
|
-
- 进入 `InReview` 后,QC
|
|
80
|
+
- 进入 `InReview` 后,QC 产出落入 `{PLAN_DIR}/reports/<plan-id>/`(**SDD 默认 tri** `qc1`…`qc-consolidated`;**inline** 单席 `qc.md`)。**fix 后默认 targeted re-review**。SDD per-task review 在 implement 波次内完成(`mstar-sdd` task reviewer)。
|
|
116
81
|
- 非阻断项与后续技术债:PM 汇总后写入 `{HARNESS_DIR}/status.json` 根级 `residual_findings[<plan-id>]`(**open**,与 `plans` 平级;canonical 见 **`mstar-plan-artifacts` SKILL.md**);关闭后迁入 `{HARNESS_DIR}/archived/residuals/<plan-id>.json`,与 `mstar-review-qc` 一致。每条 **`severity`** 遵守 **`mstar-plan-artifacts/references/status-and-residuals.md`**「Residual findings:severity(SSOT,机器字段)」。
|
|
117
82
|
|
|
118
83
|
## 快速判定(PM)
|
|
@@ -12,6 +12,7 @@ description: Morning Star plan harness artifacts — `{PLAN_DIR}` main plans and
|
|
|
12
12
|
| Topic | See |
|
|
13
13
|
|-------|-----|
|
|
14
14
|
| Main plan, reports naming, QC waves, residual and plan index order | `references/plan-files-and-reports.md` |
|
|
15
|
+
| Plan template (Global Constraints, Interfaces) | `templates/plan.main.md` |
|
|
15
16
|
| knowledge / iterations / specs boundaries and indexes | `references/knowledge-and-designs.md` |
|
|
16
17
|
| Done row compaction Profile A/B | `references/done-compaction.md` |
|
|
17
18
|
| `status.json`, residual severity, lifecycle, `jq` | `references/status-and-residuals.md` |
|
|
@@ -15,10 +15,21 @@
|
|
|
15
15
|
| 类型 | 文件名(相对 `reports/<plan-id>/`) |
|
|
16
16
|
|------|--------|
|
|
17
17
|
| 架构/设计评审 | `<plan-id>-review.md`(或团队约定的 `review.md`) |
|
|
18
|
-
| QC
|
|
19
|
-
| QC
|
|
18
|
+
| QC 三审报告(**SDD 默认** `Execution mode: sdd`) | `qc1.md`、`qc2.md`、`qc3.md` |
|
|
19
|
+
| QC 单席报告(**`inline` / hotfix 例外**) | `qc.md` |
|
|
20
|
+
| QC 汇总结论(tri 模式) | `qc-consolidated.md` |
|
|
20
21
|
|
|
21
|
-
##
|
|
22
|
+
## SDD 运行时(不入 reports)
|
|
23
|
+
|
|
24
|
+
Per-task briefs, implementer reports, and review diffs live under **`{SDD_DIR}`** (`mstar-plan-conventions`). Gitignored. Main plan may index `{SDD_DIR}` path only — do not paste SDD bodies into plan markdown.
|
|
25
|
+
|
|
26
|
+
Plan template with Global Constraints / Interfaces → **`templates/plan.main.md`**.
|
|
27
|
+
|
|
28
|
+
## QC 模式(L3 plan 级)
|
|
29
|
+
|
|
30
|
+
职责分层 L1–L4 → **`mstar-review-qc/references/review-responsibility-boundaries.md`**。报告 basename 见上表;触发时机与 re-review 波次见下节 **§ QC 三审触发时机**。
|
|
31
|
+
|
|
32
|
+
## QC 分报告与 consolidated(tri 模式)
|
|
22
33
|
|
|
23
34
|
- **不要删除** `qc1.md`、`qc2.md`、`qc3.md` **只因为**已写入 `qc-consolidated.md`。`reports/<plan-id>/` 是**审计链**:分 reviewer 原文保留**证据出处、分歧与独立视角**;**consolidated** 是 PM 的**门控摘要**,二者**叠加**,**不互为替代**。
|
|
24
35
|
- **极窄例外**(须团队显式采纳并承担审计缺口):例如仓库体积极敏感时,仅保留 consolidated + 指向外部归档的链接——**不在**本默认 harness 中推荐;默认仍保留三份 `qc*.md`。
|
|
@@ -34,7 +45,8 @@
|
|
|
34
45
|
|
|
35
46
|
## QC 三审触发时机(单 plan · 多 batch)
|
|
36
47
|
|
|
37
|
-
-
|
|
48
|
+
- **默认(SDD)**:同一 **`plan_id`** 下,**plan QC tri-review**(`qc-specialist` ×3 → `qc1`…`qc3` + consolidated)**仅在** dev team 按该 plan 约定范围全部交付、且 **L2 task reviewers** 均已通过后执行 **一次**。**不要**在每个中间 batch 跑完整三审。
|
|
49
|
+
- **单席例外**:`Execution mode: inline` / hotfix → 交付完成后 **一次** `qc.md`(`QC mode: single`)。
|
|
38
50
|
- **batch 之间**:依赖实现方按 **`mstar-coding-behavior`** 提供完成证据、主 plan 任务勾选与 PM 协调;需要书面中间意见时,用对话、主 plan 批注或**非三审**的定向检查(如单审、架构 review),**不**默认等同「又一轮完整三审」。
|
|
39
51
|
- **After `Request Changes` (default — targeted re-review)**:PM maps each **blocking** finding to the QC seat that raised it (`source` on R#, consolidated table, or the originating `qcN.md` / `F-###`). Dispatch **only** those reviewers (`QC re-review: targeted — reviewers: qc-specialist, qc-specialist-2, …`). Each re-reviewing QC **updates the same** `qc1.md` / `qc2.md` / `qc3.md` in place (add `## Revalidation`, refresh verdict / `generated_at`); **do not** add `qc1-rev2.md` siblings on this path. PM **updates the same** `qc-consolidated.md` in place. Git history is the audit trail.
|
|
40
52
|
- **Full tri re-review (exception)**:Only when Assignment states **`QC re-review: full tri-review`**. Run **three** parallel reviews again; use **new basenames** (`qc1-rev2.md` … `qc3-rev2.md`, `qc-consolidated-rev2.md`) so wave-1 files stay immutable; PM states **active wave** in consolidated decision. See `mstar-review-qc` · `mstar-dispatch-gates`.
|
|
@@ -125,6 +125,9 @@ In old JSON, **`"severity": "warning"`** is read and rolled up as **`low`**. **F
|
|
|
125
125
|
| `iteration_compass` | string | Optional `{ITERATION_DIR}/…` |
|
|
126
126
|
| `iteration_refs` | string[] | Optional multiple compass paths |
|
|
127
127
|
| `qc_status` / `tests` / `commits` | string | InReview/Done snapshots; not a substitute for `{PLAN_DIR}/reports/` |
|
|
128
|
+
| `sdd_dir` | string | SDD scratch path, e.g. `{HARNESS_DIR}/sdd/<plan-id>/` (gitignored; `mstar-sdd`) |
|
|
129
|
+
| `sdd_progress` | string | Optional pointer to `{SDD_DIR}/progress.md` ledger |
|
|
130
|
+
| `task_commits` | array\<object\> | SDD recovery: `{ "task_id": "T1", "base": "<sha>", "head": "<sha>" }` per completed task |
|
|
128
131
|
|
|
129
132
|
### Optional delivery ledger (`phase` + `batches` + `verification`)
|
|
130
133
|
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# [Feature Name] Implementation Plan
|
|
2
|
+
|
|
3
|
+
> **For agentic workers:** REQUIRED SUB-SKILL: Use `mstar-sdd` (recommended) or inline execution. Steps use checkbox (`- [ ]`) syntax.
|
|
4
|
+
|
|
5
|
+
**Goal:** [One sentence]
|
|
6
|
+
|
|
7
|
+
**Architecture:** [2–3 sentences]
|
|
8
|
+
|
|
9
|
+
**Tech Stack:** [Key technologies]
|
|
10
|
+
|
|
11
|
+
**Execution:** mstar-sdd | inline
|
|
12
|
+
|
|
13
|
+
## Global Constraints
|
|
14
|
+
|
|
15
|
+
[Project-wide requirements — version floors, naming, exact values — copied verbatim from spec. Every task implicitly includes this section.]
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
### Task 1: [Component Name]
|
|
20
|
+
|
|
21
|
+
**Files:**
|
|
22
|
+
- Create: `exact/path/to/file`
|
|
23
|
+
- Modify: `exact/path/existing.py`
|
|
24
|
+
- Test: `tests/path/test.py`
|
|
25
|
+
|
|
26
|
+
**Interfaces:**
|
|
27
|
+
- Consumes: [signatures from earlier tasks]
|
|
28
|
+
- Produces: [what later tasks rely on]
|
|
29
|
+
|
|
30
|
+
- [ ] **Step 1: Write the failing test**
|
|
31
|
+
|
|
32
|
+
```python
|
|
33
|
+
# complete test code
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
- [ ] **Step 2: Run test — expect FAIL**
|
|
37
|
+
|
|
38
|
+
Run: `pytest tests/path/test.py -v`
|
|
39
|
+
|
|
40
|
+
- [ ] **Step 3: Minimal implementation**
|
|
41
|
+
|
|
42
|
+
- [ ] **Step 4: Run test — expect PASS**
|
|
43
|
+
|
|
44
|
+
- [ ] **Step 5: Commit**
|
|
45
|
+
|
|
46
|
+
## Plan self-review (PM before locked)
|
|
47
|
+
|
|
48
|
+
1. **Spec coverage:** every spec requirement maps to a task
|
|
49
|
+
2. **Placeholder scan:** no TBD, no "add tests" without code
|
|
50
|
+
3. **Type consistency:** names match across tasks
|
|
51
|
+
|
|
52
|
+
## SDD runtime (ephemeral)
|
|
53
|
+
|
|
54
|
+
When using `mstar-sdd`, artifacts live under `{SDD_DIR}` (see `mstar-plan-conventions`). Do not duplicate briefs/reports in this file.
|
|
@@ -11,7 +11,8 @@ description: Morning Star (启明星) harness 计划目录约定 —— `{HARNES
|
|
|
11
11
|
|-----------------|------|
|
|
12
12
|
| `mstar-plan-artifacts` | 主 plan、reports、`status.json`、residual、InReview/QC 波次、knowledge |
|
|
13
13
|
| `mstar-branch-worktree` | Assignment 写分支 / worktree / QC 检出 |
|
|
14
|
-
| `mstar-review-qc` | 派 QC
|
|
14
|
+
| `mstar-review-qc` | 派 QC(PM 同轮必读;SDD 强制 tri) |
|
|
15
|
+
| `mstar-sdd` | PM 执行 `Execution mode: sdd` 的 implement 波次 |
|
|
15
16
|
|
|
16
17
|
## 路径符号(SSOT)
|
|
17
18
|
|
|
@@ -19,6 +20,7 @@ description: Morning Star (启明星) harness 计划目录约定 —— `{HARNES
|
|
|
19
20
|
|------|------|
|
|
20
21
|
| `{HARNESS_DIR}` | `.mstar/` |
|
|
21
22
|
| `{PLAN_DIR}` | `{HARNESS_DIR}/plans/` |
|
|
23
|
+
| `{SDD_DIR}` | `{HARNESS_DIR}/sdd/<plan-id>/`(SDD 运行时 scratch;gitignore) |
|
|
22
24
|
| `{ITERATION_DIR}` | `{HARNESS_DIR}/iterations/` |
|
|
23
25
|
| `{KNOWLEDGE_DIR}` | `{HARNESS_DIR}/knowledge/` |
|
|
24
26
|
| `{SPECS_DIR}` | `specs/` 优先,否则 `designs/` |
|
|
@@ -51,8 +53,9 @@ description: Morning Star (启明星) harness 计划目录约定 —— `{HARNES
|
|
|
51
53
|
PM 在需要持久化追踪时:
|
|
52
54
|
|
|
53
55
|
1. 建 `.mstar/`、`plans/`、`status.json`(空模板见 **`mstar-plan-artifacts/templates/status.empty.json`**)
|
|
54
|
-
2. 可选 `notes.json`(模板 **`mstar-plan-artifacts/templates/notes.empty.json`**)、`reports/README.md`、`knowledge/`、`iterations/`、`specs
|
|
55
|
-
3.
|
|
56
|
+
2. 可选 `notes.json`(模板 **`mstar-plan-artifacts/templates/notes.empty.json`**)、`reports/README.md`、`knowledge/`、`iterations/`、`specs/`、`sdd/`(空目录占位;运行时 per-plan 子目录由 `mstar-sdd/scripts/sdd-workspace` 创建)
|
|
57
|
+
3. 项目根 `.gitignore` 追加 `.mstar/sdd/`(或 `.agents/sdd/` legacy)— CLI `init` 可自动添加
|
|
58
|
+
4. Git:团队交付 **勿** ignore 整个 `{HARNESS_DIR}`(handoff 需 clone 可达)
|
|
56
59
|
|
|
57
60
|
步骤与 `{HARNESS_DIR}/AGENTS.md` 分层 → **`references/harness-bootstrap-and-agents-layering.md`**。
|
|
58
61
|
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
| **知识文档** | `.mstar/knowledge/<category>/<slug>.md` | `mstar-compound`(写)、`mstar-compound-refresh`(读写) |
|
|
14
14
|
| **知识索引** | `.mstar/knowledge/README.md` | `mstar-compound`(写)、`mstar-compound-refresh`(读写) |
|
|
15
15
|
| **主 plan** | `.mstar/plans/<plan-id>-<name>.md` | PM / `mstar-plan-artifacts` |
|
|
16
|
-
| **QC 报告** | `.mstar/plans/reports/<plan-id>/
|
|
16
|
+
| **QC 报告** | `.mstar/plans/reports/<plan-id>/qc1.md`…`qc3.md` + consolidated(**SDD 默认**);`qc.md`(inline 例外) | `mstar-review-qc` |
|
|
17
|
+
| **SDD scratch** | `{HARNESS_DIR}/sdd/<plan-id>/`(gitignored) | `mstar-sdd` |
|
|
17
18
|
| **status.json** | `.mstar/status.json` | `mstar-plan-artifacts` |
|
|
18
19
|
| **迭代 compass** | `.mstar/iterations/<iteration-id>-delivery-compass.md` | `mstar-iteration`(读写) |
|
|
19
20
|
| **迭代索引** | `.mstar/iterations/README.md` | `mstar-iteration`(读写) |
|
package/harness-skills/mstar-plan-conventions/references/harness-bootstrap-and-agents-layering.md
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
1. 创建 `{HARNESS_DIR}`(推荐 `.mstar/`)与 `{PLAN_DIR}`(推荐 `.mstar/plans/`)。
|
|
16
16
|
2. 初始化 `status.json`:从 **`mstar-plan-artifacts/templates/status.empty.json`** 复制;residual canonical 见 **`mstar-plan-artifacts` SKILL.md**;字段与生命周期见 **`mstar-plan-artifacts/references/status-and-residuals.md`**。
|
|
17
|
-
3. 初始化可选 `notes.json`(**`mstar-plan-artifacts/templates/notes.empty.json`**)与 `plans/reports/README.md
|
|
17
|
+
3. 初始化可选 `notes.json`(**`mstar-plan-artifacts/templates/notes.empty.json`**)与 `plans/reports/README.md`;`sdd/` 空目录占位(per-plan 子目录由 `mstar-sdd/scripts/sdd-workspace` 创建;项目根 `.gitignore` 须含 `.mstar/sdd/`)。
|
|
18
18
|
4. **Profile B**(统一 Done 压缩)时另建 `{HARNESS_DIR}/archived/plans/` 与 `archived/plans-done.json`(自 **`mstar-plan-artifacts/templates/plans-done.empty.json`** 复制;schema 仅 `{ "plans": [] }`,见 **`mstar-plan-artifacts/references/done-compaction.md`**)。
|
|
19
19
|
5. 可选:创建 `{ITERATION_DIR}`(`iterations/` + `README.md`)与 `{KNOWLEDGE_DIR}`(`knowledge/` + `README.md`);内容边界见 `mstar-plan-conventions` SKILL.md 与 `references/knowledge-and-designs.md`。
|
|
20
20
|
6. 创建 `{HARNESS_DIR}/AGENTS.md`(harness 子树规则):符号表可复述 `{HARNESS_DIR}`、`{PLAN_DIR}`、`{ITERATION_DIR}`、`{KNOWLEDGE_DIR}`、`{SPECS_DIR}` 与 `docs/` 分工;新项目推荐 `.mstar/AGENTS.md`,已有项目可继续使用 `.agents/AGENTS.md`。
|