@mstar-harness/opencode 3.1.3 → 3.2.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/CHANGELOG.md +13 -0
- package/dist/mstar.js +5 -5
- package/harness-commands/codebase-audit.md +3 -3
- package/harness-commands/iteration-drive.md +1 -1
- package/harness-commands/iteration-loop.md +1 -1
- package/harness-commands/iteration-start.md +1 -1
- package/harness-commands/pr-deep-review.md +37 -0
- package/harness-skills/{mstar-plan-artifacts → mstar-artifacts}/SKILL.md +3 -3
- package/harness-skills/{mstar-plan-artifacts → mstar-artifacts}/references/knowledge-and-designs.md +6 -6
- package/harness-skills/{mstar-plan-artifacts → mstar-artifacts}/references/plan-files-and-reports.md +6 -6
- package/harness-skills/{mstar-plan-artifacts → mstar-artifacts}/references/status-and-residuals.md +3 -3
- package/harness-skills/mstar-artifacts/templates/README.md +7 -0
- package/harness-skills/{mstar-plan-artifacts → mstar-artifacts}/templates/plan.main.md +1 -1
- package/harness-skills/mstar-audit/SKILL.md +36 -89
- package/harness-skills/mstar-audit/references/audit-playbook.md +1 -1
- package/harness-skills/mstar-audit/references/codebase-audit.md +85 -0
- package/harness-skills/mstar-audit/references/pr-review.md +139 -0
- package/harness-skills/mstar-branch-worktree/SKILL.md +5 -5
- package/harness-skills/mstar-compound/SKILL.md +4 -4
- package/harness-skills/mstar-compound/references/compound-workflow.md +1 -1
- package/harness-skills/mstar-compound-refresh/SKILL.md +3 -3
- package/harness-skills/mstar-compound-refresh/references/project-knowledge-bootstrap.md +3 -3
- package/harness-skills/{mstar-plan-conventions → mstar-conventions}/SKILL.md +9 -9
- package/harness-skills/{mstar-plan-conventions → mstar-conventions}/references/artifact-storage-paths.md +13 -13
- package/harness-skills/{mstar-plan-conventions → mstar-conventions}/references/harness-bootstrap-and-agents-layering.md +5 -5
- package/harness-skills/mstar-design-md/SKILL.md +3 -3
- package/harness-skills/mstar-dispatch-gates/SKILL.md +2 -2
- package/harness-skills/mstar-engine-legacy/SKILL.md +1 -1
- package/harness-skills/mstar-engine-legacy/references/lease-protocol.md +1 -1
- package/harness-skills/mstar-engine-legacy/references/status-field-history.md +1 -1
- package/harness-skills/mstar-harness-core/SKILL.md +17 -17
- package/harness-skills/mstar-host/references/_shared/plan-mode-bridge-core.md +5 -5
- package/harness-skills/mstar-host/references/cursor-plan-mode-bridge.md +7 -7
- package/harness-skills/mstar-host/references/cursor.md +1 -1
- package/harness-skills/mstar-host/references/kimi-plan-mode-bridge.md +1 -1
- package/harness-skills/mstar-host/references/omp-plan-mode-bridge.md +1 -1
- package/harness-skills/mstar-host/references/parallel-dispatch.md +1 -1
- package/harness-skills/mstar-host/references/zcode-plan-mode-bridge.md +1 -1
- package/harness-skills/mstar-iteration/SKILL.md +7 -7
- package/harness-skills/mstar-iteration/references/iteration-artifact-boundaries.md +1 -1
- package/harness-skills/mstar-iteration/references/phase-2-worktree-lease.md +3 -3
- package/harness-skills/mstar-iteration/references/phase-3-iteration-close.md +1 -1
- package/harness-skills/mstar-phase-gates/SKILL.md +5 -5
- package/harness-skills/mstar-project-governance/SKILL.md +9 -9
- package/harness-skills/mstar-review-qc/SKILL.md +4 -4
- package/harness-skills/mstar-roles/SKILL.md +7 -7
- package/harness-skills/mstar-roles/references/_shared/leaf-executor-core.md +9 -1
- package/harness-skills/mstar-roles/references/architect.md +4 -4
- package/harness-skills/mstar-roles/references/code-reviewer.md +6 -6
- package/harness-skills/mstar-roles/references/frontend-dev.md +4 -1
- package/harness-skills/mstar-roles/references/fullstack-dev-shared.md +4 -1
- package/harness-skills/mstar-roles/references/ops-engineer.md +1 -1
- package/harness-skills/mstar-roles/references/product-manager.md +5 -5
- package/harness-skills/mstar-roles/references/project-manager/dispatch-and-assignment.md +1 -1
- package/harness-skills/mstar-roles/references/project-manager/plan-management.md +3 -3
- package/harness-skills/mstar-roles/references/project-manager/qa-trigger-matrix.md +2 -2
- package/harness-skills/mstar-roles/references/project-manager/qc-and-residuals.md +3 -3
- package/harness-skills/mstar-roles/references/project-manager.md +5 -5
- package/harness-skills/mstar-roles/references/prompt-engineer.md +2 -2
- package/harness-skills/mstar-roles/references/qa-engineer/acceptance-gate.md +2 -2
- package/harness-skills/mstar-roles/references/qa-engineer.md +2 -2
- package/harness-skills/mstar-roles/references/qc-specialist/report-template.md +1 -1
- package/harness-skills/mstar-roles/references/qc-specialist/reviewer-workflow.md +1 -1
- package/harness-skills/mstar-roles/references/qc-specialist-shared.md +4 -4
- package/harness-skills/mstar-roles/references/writing-specialist.md +1 -1
- package/harness-skills/mstar-sdd/SKILL.md +2 -2
- package/harness-skills/mstar-sdd/references/file-handoffs.md +1 -1
- package/harness-skills/mstar-strategy/SKILL.md +3 -3
- package/package.json +1 -1
- package/harness-skills/mstar-plan-artifacts/templates/README.md +0 -7
- /package/harness-skills/{mstar-plan-artifacts → mstar-artifacts}/references/plan-quality-bar.md +0 -0
- /package/harness-skills/{mstar-plan-artifacts → mstar-artifacts}/templates/status.empty.json +0 -0
- /package/harness-skills/{mstar-plan-conventions → mstar-conventions}/references/effort-estimation.md +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: mstar-harness-core
|
|
3
|
-
description: Morning Star (启明星) harness **强制全局入口** —— 信息源优先级、最小交付循环、状态机与 Done 权限、Task category 路由(含 quick 禁豁免)、@explore 边界、长任务纪律、护栏不变量、反模式索引、Morning Star Skill 索引与宿主入口。**任何**非平凡任务开始前必须先 Read 本 skill;再按角色与任务 **按需** Read 其它 `mstar-*` 专题(勿默认通读全部)。`@project-manager` 开轮必读 + `mstar-dispatch-gates` / `mstar-phase-gates` / `mstar-
|
|
3
|
+
description: Morning Star (启明星) harness **强制全局入口** —— 信息源优先级、最小交付循环、状态机与 Done 权限、Task category 路由(含 quick 禁豁免)、@explore 边界、长任务纪律、护栏不变量、反模式索引、Morning Star Skill 索引与宿主入口。**任何**非平凡任务开始前必须先 Read 本 skill;再按角色与任务 **按需** Read 其它 `mstar-*` 专题(勿默认通读全部)。`@project-manager` 开轮必读 + `mstar-dispatch-gates` / `mstar-phase-gates` / `mstar-conventions` 等;实现/审查/QA 必读本 skill + `mstar-coding-behavior` 及角色清单(见 `mstar-roles`)。Prepare/派发/Git/residual/QC 细则在专题 skill,不在此重复。
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Morning Star Harness Core(启明星核心)
|
|
@@ -41,8 +41,8 @@ description: Morning Star (启明星) harness **强制全局入口** —— 信
|
|
|
41
41
|
| 角色 | 始终 | 按任务追加(典型) |
|
|
42
42
|
|------|------|-------------------|
|
|
43
43
|
| **全部** | 本 skill | — |
|
|
44
|
-
| **`@project-manager`** | 本 skill | `mstar-dispatch-gates`、`mstar-phase-gates`、`mstar-
|
|
45
|
-
| **实现/审查/运维** | 本 skill + `mstar-coding-behavior` + 角色 ref | 有 git 写:`mstar-branch-worktree`;有 plan 路径:`mstar-
|
|
44
|
+
| **`@project-manager`** | 本 skill | `mstar-dispatch-gates`、`mstar-phase-gates`、`mstar-conventions`、`mstar-roles`;implement 波次 `mstar-sdd`;派 QC 前 `mstar-review-qc`;并行/审查 `mstar-branch-worktree`;plan/status/review bundle `mstar-artifacts`;UI 类 plan Prepare 阶段 `mstar-design-md`(DESIGN.md 门禁);新建/大改 skill 时 `mstar-skill-authoring`;迭代管理 `mstar-iteration`(Phase 1–5);战略性工作 `mstar-strategy`;`audit` 类请求 `mstar-audit`(执行归 `@code-reviewer`)。**不**读 `mstar-coding-behavior` |
|
|
45
|
+
| **实现/审查/运维** | 本 skill + `mstar-coding-behavior` + 角色 ref | 有 git 写:`mstar-branch-worktree`;有 plan 路径:`mstar-conventions`;**PM** 派 QC 前:`mstar-review-qc`;**`qc-specialist*`**:`mstar-roles` → `references/qc-specialist/`;`qa-engineer`:`references/qa-engineer/`;改 status/residual:`mstar-artifacts`;UI:`mstar-design-md`;知识库:`mstar-compound`(PM) |
|
|
46
46
|
| **leaf 承接方** | 上栏 + **`mstar-dispatch-gates`**(反递归节) | — |
|
|
47
47
|
|
|
48
48
|
Routing eval(Cursor 插件内回归用,**非**运行时必读)→ `.cursor/skills/mstar-routing-eval/`。
|
|
@@ -54,7 +54,7 @@ Routing eval(Cursor 插件内回归用,**非**运行时必读)→ `.cursor
|
|
|
54
54
|
- **`Done`**:仅 `@project-manager` 或 `@qa-engineer`。
|
|
55
55
|
- 实现类可设 **`InReview`**,不可设 **`Done`**。
|
|
56
56
|
|
|
57
|
-
`status.json`(v2 根)/ workflow snapshot / project register 字段与 residual → **`mstar-
|
|
57
|
+
`status.json`(v2 根)/ workflow snapshot / project register 字段与 residual → **`mstar-artifacts`**。
|
|
58
58
|
|
|
59
59
|
## Task category(路由摘要)
|
|
60
60
|
|
|
@@ -70,7 +70,7 @@ PM 在 Assignment 写 **`Task category`**(主类 + 可选 `secondary`):
|
|
|
70
70
|
| `docs` | `@product-manager` / `@architect` / `@writing-specialist` |
|
|
71
71
|
| `audit` | `@code-reviewer`(mstar-audit 承载;大型仓库经 Assignment `Delegation: allowed (scout/explore only, read-only)` 扇出只读 scout;read-only advisory;不进入状态机) |
|
|
72
72
|
|
|
73
|
-
**硬规则**:`quick` **从不**跳过 `specify → clarify → plan`;禁止把新 CLI/API/多模块/新测例标为 `quick`。已启用 `{HARNESS_DIR}` 时,首次 implement 前须有主 plan 路径 + `status.json` 登记(见 **`mstar-
|
|
73
|
+
**硬规则**:`quick` **从不**跳过 `specify → clarify → plan`;禁止把新 CLI/API/多模块/新测例标为 `quick`。已启用 `{HARNESS_DIR}` 时,首次 implement 前须有主 plan 路径 + `status.json` 登记(见 **`mstar-conventions`**)。
|
|
74
74
|
|
|
75
75
|
## `@explore` 边界
|
|
76
76
|
|
|
@@ -95,8 +95,8 @@ PM 在 Assignment 写 **`Task category`**(主类 + 可选 `secondary`):
|
|
|
95
95
|
| `mstar-engine-legacy` | 条件契约档案(engine-absent fallback):status v1→v2 字段历史、lease 协议全文、各宿主 N=3/N=1 重述、反递归全清单、Engine-check 样板;engine 激活时不加载 |
|
|
96
96
|
| `mstar-sdd` | Subagent-driven development:file handoff、per-task review、ledger |
|
|
97
97
|
| `mstar-branch-worktree` | 功能分支、worktree、QC/QA 检出对齐 |
|
|
98
|
-
| `mstar-
|
|
99
|
-
| `mstar-
|
|
98
|
+
| `mstar-conventions` | `{HARNESS_DIR}` 发现、初始化、Spec 分支模型摘要、产物路径 SSOT |
|
|
99
|
+
| `mstar-artifacts` | 主 plan、review bundle / durable summaries、`status.json`(v2 根)+ workflow snapshots + project register、residual、knowledge |
|
|
100
100
|
| `mstar-project-governance` | 项目治理层:`projects/<id>/roadmap.md` 编写约定 + `residuals.json` register 生命周期(open → verified close in place)、`_default` 回退、provenance;schema 与 engine `project.ts` 逐字一致 |
|
|
101
101
|
| `mstar-design-md` | DESIGN.md 设计系统规范 —— 创建/审计/维护 design tokens,三级检查清单,light/dark 双主题 |
|
|
102
102
|
| `mstar-review-qc` | PM:QC tri 编排、residual 留档、四层边界;leaf 执行 → `mstar-roles/references/qc-specialist/` |
|
|
@@ -105,7 +105,7 @@ PM 在 Assignment 写 **`Task category`**(主类 + 可选 `secondary`):
|
|
|
105
105
|
| `mstar-compound-refresh` | 知识维护 —— 审查/更新/合并/删除 `{KNOWLEDGE_DIR}` 文档;**项目知识 bootstrap**(无/残旧 STRATEGY.md、CONCEPTS.md、`{KNOWLEDGE_DIR}`)→ `references/project-knowledge-bootstrap.md` |
|
|
106
106
|
| `mstar-strategy` | `STRATEGY.md` 全局战略方向 —— 产品愿景、技术方向、决策原则 |
|
|
107
107
|
| `mstar-skill-authoring` | 通用 skill 撰写门控(SkillsBench 六原则):trigger 契约、紧凑 5 问 body、渐进披露、paired 证据 |
|
|
108
|
-
| `mstar-audit` |
|
|
108
|
+
| `mstar-audit` | Variant carrier:common core(hard rules、recon、vet、variant dispatch)+ SKILL.md `## Plan output (all variants)`(Status block、plan files、handoff)+ `references/codebase-audit.md`(full-audit 变体:9 类别 fan-out、effort、scope variants、Phase 4 excerpt/reconcile、audit index 模板)+ `references/pr-review.md`(`pr` 变体);`audit-playbook` + `finding-format` + `plan-quality-bar` |
|
|
109
109
|
| `mstar-roles` | 角色正文 hub |
|
|
110
110
|
| `mstar-host` | 宿主适配(自动识别;`references/opencode.md` / `cursor.md` / `codex.md` / `kimi.md` / `parallel-dispatch.md`) |
|
|
111
111
|
|
|
@@ -127,7 +127,7 @@ Read **`mstar-host`** after this skill; detect host per its table, then Read the
|
|
|
127
127
|
- 行为变更须有验证证据。
|
|
128
128
|
- 业务仓默认功能分支(Assignment `Branch policy` 例外)→ **`mstar-branch-worktree`**。
|
|
129
129
|
- **Dev 三角**:`@fullstack-dev` 后端主导;UI → `@frontend-dev`;第二轨 → `@fullstack-dev-2`(`mstar-roles` PM 节)。
|
|
130
|
-
- 工期仅 agent-oriented → **`mstar-
|
|
130
|
+
- 工期仅 agent-oriented → **`mstar-conventions`** · effort-estimation。
|
|
131
131
|
- plan-writing artifacts land in `{PLAN_DIR}`, not external default plan directories.
|
|
132
132
|
- PM Assignment 键名英文;任务正文可中文;产出/报告默认英文。
|
|
133
133
|
|
|
@@ -145,17 +145,17 @@ Read **`mstar-host`** after this skill; detect host per its table, then Read the
|
|
|
145
145
|
|--------|------|
|
|
146
146
|
| SDD paste-only / 跳过 task review / 并行 implementer | `mstar-sdd` · `mstar-dispatch-gates` |
|
|
147
147
|
| SDD plan 以单席 `qc.md` 收尾 / 跳过 plan tri | `mstar-dispatch-gates` · `mstar-review-qc` · `mstar-sdd` |
|
|
148
|
-
| fix 后无脑重派三审 / 用 `-rev2` 代替原位复验 | `mstar-
|
|
148
|
+
| fix 后无脑重派三审 / 用 `-rev2` 代替原位复验 | `mstar-artifacts` · `mstar-review-qc` |
|
|
149
149
|
| 递归误派 / 误读 Handoff | `mstar-dispatch-gates` |
|
|
150
150
|
| `quick` 跳过 Prepare | 上表 + `mstar-phase-gates` |
|
|
151
151
|
| 多 worktree 未归并就 QC | `mstar-branch-worktree` |
|
|
152
152
|
| 因默认 gitignore 致 feature 缺 plans 而 `Worktree mode: waived`(应保留 feature worktree + control 绝对 Plan Path / SDD dir;无 flock 仅 → `Plan parallelism: serial`) | `mstar-branch-worktree` · `mstar-iteration` §2.0 #5 · `phase-2-worktree-lease` |
|
|
153
153
|
| 并行 writable implement 无隔离(L2 同 plan 多轨:N invoke ≠ worktree;L1 跨 plan:无 verified `execution_lease` + feature worktree) | `mstar-branch-worktree` L1/L2 · `mstar-iteration` §2.6 · `references/parallel-writable-pre-dispatch.md` |
|
|
154
|
-
| 跨 plan 可写派发无 verified `execution_lease` / steal 活跃 lease / 并行 merge 入 `spec_integration_branch` | `mstar-iteration` · `mstar-
|
|
155
|
-
| `InProgress` 无 `execution_lease`(snapshot 行)未恢复即可写派发 | `mstar-
|
|
154
|
+
| 跨 plan 可写派发无 verified `execution_lease` / steal 活跃 lease / 并行 merge 入 `spec_integration_branch` | `mstar-iteration` · `mstar-artifacts`(leases)· `mstar-branch-worktree` L1 |
|
|
155
|
+
| `InProgress` 无 `execution_lease`(snapshot 行)未恢复即可写派发 | `mstar-artifacts` — orphan recovery |
|
|
156
156
|
| 混淆跨 plan lease 门控并行与单 plan 内 SDD 并行 implementer | `mstar-dispatch-gates` · `mstar-sdd` |
|
|
157
|
-
| residual 只写 plan 不写 SSOT | `mstar-
|
|
158
|
-
| `zero-residual` 下把可修 findings 登记为 open R# / 草草 `Approve with residuals` | `mstar-
|
|
157
|
+
| residual 只写 plan 不写 SSOT | `mstar-artifacts` |
|
|
158
|
+
| `zero-residual` 下把可修 findings 登记为 open R# / 草草 `Approve with residuals` | `mstar-artifacts` Findings cleanup modes · `mstar-review-qc` |
|
|
159
159
|
| 角色文件塞流程长文 | 用专题 skill |
|
|
160
160
|
| 无证据宣称完成 | `mstar-coding-behavior` / verification |
|
|
161
161
|
| CreatePlan 不落盘 / 无 `{HARNESS_DIR}` mirror | `mstar-host` · `cursor-plan-mode-bridge` |
|
|
@@ -167,7 +167,7 @@ Read **`mstar-host`** after this skill; detect host per its table, then Read the
|
|
|
167
167
|
| Phase 4 开 PR 后跳过 merge-ready loop | `mstar-iteration` §5 |
|
|
168
168
|
| Phase 5 在 CI / AI review 仍在跑时 push | `mstar-iteration` §5.1a |
|
|
169
169
|
| iteration-close 无 frontmatter completed / 漏 compound Phase 6 | `mstar-iteration` §3.0.5、§3.4、§3.2 #5 |
|
|
170
|
-
| iteration 默认 `main` 作 base 或 PR 目标 | `mstar-iteration` §1.2、§2.3;`mstar-
|
|
170
|
+
| iteration 默认 `main` 作 base 或 PR 目标 | `mstar-iteration` §1.2、§2.3;`mstar-conventions` Spec 分支模型 |
|
|
171
171
|
|
|
172
172
|
## 常见 harness 说法对照(帮助理解角色分工)
|
|
173
173
|
|
|
@@ -179,6 +179,6 @@ Read **`mstar-host`** after this skill; detect host per its table, then Read the
|
|
|
179
179
|
| 持续推进 / 不半途而废 | Phase Gate + Todo/`tasks` + 验证门禁 |
|
|
180
180
|
| 行级哈希锚定编辑 | 以 **读后再改 + 小步 Patch** 纪律落实(`mstar-phase-gates`) |
|
|
181
181
|
|
|
182
|
-
项目根 **`AGENTS.md` 写什么、分层 bootstrap** → **`mstar-
|
|
182
|
+
项目根 **`AGENTS.md` 写什么、分层 bootstrap** → **`mstar-conventions`** `references/harness-bootstrap-and-agents-layering.md`(勿在 core 重复长文)。
|
|
183
183
|
|
|
184
|
-
**专题 skill**(规则在各自 `SKILL.md`):`mstar-phase-gates`、`mstar-branch-worktree`、`mstar-
|
|
184
|
+
**专题 skill**(规则在各自 `SKILL.md`):`mstar-phase-gates`、`mstar-branch-worktree`、`mstar-artifacts` 等 — 见上表索引。
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Plan-Mode Bridge Core (shared)
|
|
2
2
|
|
|
3
|
-
> **Load order**: Read **`mstar-harness-core`** first, then **`mstar-host`** and the host reference + this bridge. When plan management is required, also read **`mstar-
|
|
3
|
+
> **Load order**: Read **`mstar-harness-core`** first, then **`mstar-host`** and the host reference + this bridge. When plan management is required, also read **`mstar-conventions`** and **`mstar-artifacts`** before creating or claiming any durable plan state. Path symbols `{HARNESS_DIR}`, `{PLAN_DIR}`, `{SPECS_DIR}` are defined in `mstar-conventions`. On conflict, **`mstar-harness-core`** wins.
|
|
4
4
|
|
|
5
5
|
Each per-host bridge (`cursor-plan-mode-bridge.md`, `kimi-plan-mode-bridge.md`, `zcode-plan-mode-bridge.md`, `omp-plan-mode-bridge.md`) loads this core and adds its host-specific plan UX (plan tooling, approval gate, todo UI, command surfaces). Codex Plan Mode reads this core directly via `references/codex.md` (no per-host codex plan bridge; the `/goal` rule is host-agnostic in `mstar-host` SKILL.md).
|
|
6
6
|
|
|
@@ -19,9 +19,9 @@ The host **Plan mode** (session plan file, todos, UI) is a **session UX mirror**
|
|
|
19
19
|
|
|
20
20
|
## Before the first plan (bootstrap init)
|
|
21
21
|
|
|
22
|
-
1. **Read** (minimum): `mstar-
|
|
23
|
-
2. **Discover** `{HARNESS_DIR}` / `{PLAN_DIR}` per `mstar-
|
|
24
|
-
3. **Initialize** if absent: `{HARNESS_DIR}/`, `{PLAN_DIR}/`, `status.json` from `mstar-
|
|
22
|
+
1. **Read** (minimum): `mstar-conventions`, `mstar-artifacts` (SKILL.md); Prepare gates from `mstar-phase-gates` if not hotfix.
|
|
23
|
+
2. **Discover** `{HARNESS_DIR}` / `{PLAN_DIR}` per `mstar-conventions` (prefer `.mstar/` + `.mstar/plans/`; reuse legacy `.agents/` only when already present and `.mstar/` is absent).
|
|
24
|
+
3. **Initialize** if absent: `{HARNESS_DIR}/`, `{PLAN_DIR}/`, `status.json` from `mstar-artifacts/templates/status.empty.json` (v2 shape), Morning Star process-artifact gitignore set (canonical snippet → `mstar-conventions` SKILL.md「Git 跟踪策略」; `workflows/` / `projects/` subdirs are created on demand by engine writers, not pre-created). Full PM checklist: `mstar-roles/references/project-manager/plan-management.md`.
|
|
25
25
|
|
|
26
26
|
## Build resume contract
|
|
27
27
|
|
|
@@ -57,7 +57,7 @@ After the host plan is created, keep the host plan body and mirror file **in syn
|
|
|
57
57
|
|
|
58
58
|
1. **Commit**: `git add` + `git commit` on the authorized **Working branch** for this **task id** (one commit per task unless PM explicitly allowed batched commits in Assignment).
|
|
59
59
|
2. **Plan checkbox**: Set `- [x]` on the matching line in `{PLAN_DIR}/<plan-id>-<name>.md`.
|
|
60
|
-
3. **status.json / snapshot** (when PM round requires): bump the snapshot plan row `plans[].status` (e.g. `InProgress`) or append coordination notes to `{WORKFLOW_DIR}/<id>/notes.jsonl` per `mstar-
|
|
60
|
+
3. **status.json / snapshot** (when PM round requires): bump the snapshot plan row `plans[].status` (e.g. `InProgress`) or append coordination notes to `{WORKFLOW_DIR}/<id>/notes.jsonl` per `mstar-artifacts`.
|
|
61
61
|
4. **Evidence**: Record real `git log -1 --oneline` in Completion Report **Git** (or the plan-mode status note if executing as PM in Plan mode).
|
|
62
62
|
|
|
63
63
|
**NEVER**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Cursor Plan Mode × Harness Dual-Write Bridge
|
|
2
2
|
|
|
3
|
-
> **Load order**: Read **`mstar-harness-core`** first, then **`mstar-host`** and **`references/cursor.md`**, then **`references/_shared/plan-mode-bridge-core.md`** (shared contract) + this bridge. When plan management is required, also read **`mstar-
|
|
3
|
+
> **Load order**: Read **`mstar-harness-core`** first, then **`mstar-host`** and **`references/cursor.md`**, then **`references/_shared/plan-mode-bridge-core.md`** (shared contract) + this bridge. When plan management is required, also read **`mstar-conventions`** and **`mstar-artifacts`** before the first **CreatePlan** in Plan mode. Path symbols `{HARNESS_DIR}`, `{PLAN_DIR}`, `{SPECS_DIR}` are defined in `mstar-conventions`. On conflict, **`mstar-harness-core`** wins.
|
|
4
4
|
|
|
5
5
|
**Shared contract** (dual-write SSOT rule + priority, bootstrap init, Build resume contract, bootstrap todos, implement done-gate, Phase 1 gate, shared anti-patterns) → **`references/_shared/plan-mode-bridge-core.md`**. This bridge covers Cursor **CreatePlan** / **SwitchMode** / Plan-mode specifics only.
|
|
6
6
|
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
|
|
12
12
|
## Before the first CreatePlan
|
|
13
13
|
|
|
14
|
-
1. **Read** (minimum): `mstar-
|
|
15
|
-
2. **Discover** `{HARNESS_DIR}` / `{PLAN_DIR}` per `mstar-
|
|
16
|
-
3. **Initialize** if absent — checklist in core; full PM checklist (incl. process-artifact gitignore set): `mstar-roles/references/project-manager/plan-management.md` (canonical gitignore snippet → `mstar-
|
|
14
|
+
1. **Read** (minimum): `mstar-conventions`, `mstar-artifacts` (SKILL.md); Prepare gates from `mstar-phase-gates` if not hotfix.
|
|
15
|
+
2. **Discover** `{HARNESS_DIR}` / `{PLAN_DIR}` per `mstar-conventions` (prefer `.mstar/` + `.mstar/plans/`; reuse legacy `.agents/` only when already present and `.mstar/` is absent).
|
|
16
|
+
3. **Initialize** if absent — checklist in core; full PM checklist (incl. process-artifact gitignore set): `mstar-roles/references/project-manager/plan-management.md` (canonical gitignore snippet → `mstar-conventions` SKILL.md「Git 跟踪策略」).
|
|
17
17
|
|
|
18
18
|
## CreatePlan specifics
|
|
19
19
|
|
|
@@ -46,7 +46,7 @@ Add a root `workflows[]` entry to `status.json` (v2) + one `plans[]` object to t
|
|
|
46
46
|
}
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
-
Set `updated_at` on `status.json` / the snapshot to today (`YYYY-MM-DD`). Commit **tracked results** in the business repo when applicable: `{HARNESS_DIR}/AGENTS.md`, `{KNOWLEDGE_DIR}/`, `{SPECS_DIR}/` (default git policy — see `mstar-
|
|
49
|
+
Set `updated_at` on `status.json` / the snapshot to today (`YYYY-MM-DD`). Commit **tracked results** in the business repo when applicable: `{HARNESS_DIR}/AGENTS.md`, `{KNOWLEDGE_DIR}/`, `{SPECS_DIR}/` (default git policy — see `mstar-conventions`). Do **not** default `git add` for `status.json`, `workflows/`, `projects/`, `plans/`, or `iterations/`.
|
|
50
50
|
|
|
51
51
|
### `mirror-plan` minimum content
|
|
52
52
|
|
|
@@ -164,7 +164,7 @@ When starting a **new iteration** under Cursor Plan mode (host command may orche
|
|
|
164
164
|
|
|
165
165
|
## Related skills
|
|
166
166
|
|
|
167
|
-
- `mstar-
|
|
168
|
-
- `mstar-
|
|
167
|
+
- `mstar-conventions` — discovery, init, plan-writing path gate
|
|
168
|
+
- `mstar-artifacts` — `status.json`, review bundle summaries, checkboxes, residual
|
|
169
169
|
- `mstar-phase-gates` — Prepare / Execute order
|
|
170
170
|
- `mstar-roles/references/project-manager/dispatch-and-assignment.md` — Checkpoint: commit → Completion Report → Status Update
|
|
@@ -14,7 +14,7 @@ Parallel PM dispatch: **`parallel-dispatch.md`** (Task tool uses same turn model
|
|
|
14
14
|
|
|
15
15
|
When **Plan mode** is active, **CreatePlan is session UX**; SSOT is **`{HARNESS_DIR}`** (default `.mstar/`, legacy `.agents/`) — `{PLAN_DIR}/<plan-id>-<name>.md`, `{HARNESS_DIR}/status.json` (v2 root `workflows[]`) + `{WORKFLOW_DIR}/<id>/snapshot.json` (`plans[]` rows).
|
|
16
16
|
|
|
17
|
-
Before first **CreatePlan**: Read `mstar-
|
|
17
|
+
Before first **CreatePlan**: Read `mstar-conventions`, `mstar-artifacts`, Prepare gates from `mstar-phase-gates` when not hotfix. Full procedure: **`cursor-plan-mode-bridge.md`**.
|
|
18
18
|
|
|
19
19
|
**Bootstrap CreatePlan todos (prefix, before implement):**
|
|
20
20
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Kimi Plan Mode × Harness Dual-Write Bridge
|
|
2
2
|
|
|
3
|
-
> **Load order**: Read **`mstar-harness-core`** first, then **`mstar-host`** and **`references/kimi.md`**, then **`references/_shared/plan-mode-bridge-core.md`** (shared contract) + this bridge. When Plan mode is active, also read **`mstar-
|
|
3
|
+
> **Load order**: Read **`mstar-harness-core`** first, then **`mstar-host`** and **`references/kimi.md`**, then **`references/_shared/plan-mode-bridge-core.md`** (shared contract) + this bridge. When Plan mode is active, also read **`mstar-conventions`** and **`mstar-artifacts`**. Path symbols `{HARNESS_DIR}`, `{PLAN_DIR}`, `{SPECS_DIR}` are defined in `mstar-conventions`. On conflict, **`mstar-harness-core`** wins.
|
|
4
4
|
|
|
5
5
|
**Shared contract** (dual-write SSOT rule + priority, bootstrap init, Build resume contract, bootstrap todos, implement done-gate, Phase 1 gate, shared anti-patterns) → **`references/_shared/plan-mode-bridge-core.md`**. This bridge covers Kimi plan-UX specifics only.
|
|
6
6
|
|
|
@@ -12,7 +12,7 @@ omp session plans, composer todos, and plan-mode UI text are **session UX only**
|
|
|
12
12
|
| Plan registry | `{HARNESS_DIR}/status.json` (v2 root `workflows[]`) + `{WORKFLOW_DIR}/<id>/snapshot.json` (`plans[]` rows) |
|
|
13
13
|
| Iteration compass | `{ITERATION_DIR}/…` when in formal iteration |
|
|
14
14
|
|
|
15
|
-
Bootstrap before treating a plan as ready for Execute (read `mstar-
|
|
15
|
+
Bootstrap before treating a plan as ready for Execute (read `mstar-conventions` + `mstar-artifacts`; ensure `{HARNESS_DIR}` / `{PLAN_DIR}` exist with process-artifact gitignore entries; mirror the active omp plan into the SSOT main plan path; register the root `workflows[]` entry + snapshot plan row when required by Prepare gates) → core.
|
|
16
16
|
|
|
17
17
|
**Never** use only the omp session plan / UI todo list as **Plan Path**.
|
|
18
18
|
|
|
@@ -56,7 +56,7 @@ Formal iteration Phase 2 uses the same SDD + tri rule — not a separate carve-o
|
|
|
56
56
|
|
|
57
57
|
- Assignment: **`QC re-review: targeted — reviewers: <role-ids>`** → **N** = listed seats only (1–3), **one** dispatch turn with **N** invocations.
|
|
58
58
|
- Do **not** default to three invocations after a routine fix round.
|
|
59
|
-
- Post-dispatch: verify only **dispatched** seats returned; PM updates same bundle `qc-consolidated.md` and durable plan summary (see `mstar-
|
|
59
|
+
- Post-dispatch: verify only **dispatched** seats returned; PM updates same bundle `qc-consolidated.md` and durable plan summary (see `mstar-artifacts/references/plan-files-and-reports.md`).
|
|
60
60
|
|
|
61
61
|
## Self-check before send
|
|
62
62
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ZCode Plan Mode × Harness Dual-Write Bridge
|
|
2
2
|
|
|
3
|
-
> **Load order**: Read **`mstar-harness-core`** first, then **`mstar-host`** and **`references/zcode.md`**, then **`references/_shared/plan-mode-bridge-core.md`** (shared contract) + this bridge. When Plan mode is active, also read **`mstar-
|
|
3
|
+
> **Load order**: Read **`mstar-harness-core`** first, then **`mstar-host`** and **`references/zcode.md`**, then **`references/_shared/plan-mode-bridge-core.md`** (shared contract) + this bridge. When Plan mode is active, also read **`mstar-conventions`** and **`mstar-artifacts`**. Path symbols `{HARNESS_DIR}`, `{PLAN_DIR}`, `{SPECS_DIR}` are defined in `mstar-conventions`. On conflict, **`mstar-harness-core`** wins.
|
|
4
4
|
|
|
5
5
|
**Shared contract** (dual-write SSOT rule + priority, bootstrap init, Build resume contract, bootstrap todos, implement done-gate, Phase 1 gate, shared anti-patterns) → **`references/_shared/plan-mode-bridge-core.md`**. This bridge covers ZCode plan-UX specifics only.
|
|
6
6
|
|
|
@@ -7,7 +7,7 @@ description: "Use when starting, driving, resuming, or closing a Morning Star it
|
|
|
7
7
|
|
|
8
8
|
## Load order
|
|
9
9
|
|
|
10
|
-
**Read `mstar-harness-core` first.** Path symbols → **`mstar-
|
|
10
|
+
**Read `mstar-harness-core` first.** Path symbols → **`mstar-conventions`**. Per-plan gates → **`mstar-phase-gates`**. Knowledge crystallization → **`mstar-compound`**. **Phase 1 角色派发**(每次 invoke 前的 assignment preflight;`enforcement: hard` fail-fast)→ **`references/command-shared-invariants.md`**(本 skill 直接触发时不依赖 command 层)。**Phase 2 entry**(control worktree + lease)→ **`references/phase-2-worktree-lease.md`** + **`mstar-branch-worktree`**。**Phase 2 implement 波次**(进入 per-plan implement 前)→ **`mstar-sdd`** + **`mstar-dispatch-gates`**。Phase 2 QC 前 → **`mstar-review-qc`**。On conflict, **`mstar-harness-core` wins**.
|
|
11
11
|
|
|
12
12
|
## 设计思路
|
|
13
13
|
|
|
@@ -55,7 +55,7 @@ Phase 5: PR merge-ready loop —— 至 mergeable + CI 全绿 + reviews resolved
|
|
|
55
55
|
|
|
56
56
|
## 产物存储位置
|
|
57
57
|
|
|
58
|
-
**SSOT**: `mstar-
|
|
58
|
+
**SSOT**: `mstar-conventions/references/artifact-storage-paths.md`。迭代 package → `{ITERATION_DIR}/<iteration-id>/`(含 `delivery-compass.md`、`guides/`、`specs/`);根索引 → `{ITERATION_DIR}/README.md`。Legacy flat `{ITERATION_DIR}/<id>-delivery-compass.md` 仅兼容读。
|
|
59
59
|
|
|
60
60
|
---
|
|
61
61
|
|
|
@@ -219,7 +219,7 @@ Phase 1 与 §1.6 须遵守 **`references/iteration-artifact-boundaries.md`**(
|
|
|
219
219
|
|
|
220
220
|
**本 Phase 是本 skill 的核心**——定义 per-plan 派发循环的完整流程:前置条件检查、session todos、backlog 读取、integration 分支管理、per-plan dispatch 循环(分支→实现→QC→**QA gate**→Done→合并)、dispatch-first 约束、push 纪律。PM 读取本 Phase 即可执行迭代。
|
|
221
221
|
|
|
222
|
-
**Findings cleanup(默认)**:Phase 2 每个 plan Assignment 默认 **`Findings cleanup: zero-residual`**(可修 findings 当轮 fix→re-review 清干净;仅真 blocker-defer + Durable Roadmap 可留 open R#)。compass 或 Assignment 可显式覆写为 `allow-residual`。SSOT → **`mstar-
|
|
222
|
+
**Findings cleanup(默认)**:Phase 2 每个 plan Assignment 默认 **`Findings cleanup: zero-residual`**(可修 findings 当轮 fix→re-review 清干净;仅真 blocker-defer + Durable Roadmap 可留 open R#)。compass 或 Assignment 可显式覆写为 `allow-residual`。SSOT → **`mstar-artifacts`**「Findings cleanup modes」。
|
|
223
223
|
|
|
224
224
|
### 2.0 前置条件(五道闸)
|
|
225
225
|
|
|
@@ -231,7 +231,7 @@ Phase 1 与 §1.6 须遵守 **`references/iteration-artifact-boundaries.md`**(
|
|
|
231
231
|
4. **Branch metadata gate**:snapshot `branch.base`(`iteration_base_branch`)、`branch.target`(`target_branch`)已登记,且至少一条 active plan 有 `metadata.spec_integration_branch`(或可从 compass 同轮 backfill)。**缺失 → STOP**,不得用 `main`/`master` 补位。
|
|
232
232
|
5. **Control-worktree + lease defaults**(iteration 命令;可被 `Worktree mode: waived` 豁免):除非本轮 Assignment 显式 `Worktree mode: waived`(或等价用户指令),Phase 2 **必须**在入口建立 control worktree、经 control 路径读写默认 gitignored 的 harness 进程产物(根 `status.json`、`workflows/`、`projects/`、`{PLAN_DIR}`、`{ITERATION_DIR}`、`{SDD_DIR}` 等),并在可写派发前 claim workflow snapshot 的 `plans[].execution_lease` / 顶层 `integration_merge_lease`。可写 Assignment 须含绝对 feature **`Worktree path`** + 绝对 control 系 **`Plan Path`** / **`SDD dir`**(见 **`mstar-branch-worktree`**「Harness path SSOT under default gitignore」)。**禁止**因 feature worktree 在默认 gitignore 下看不到 plans 而推断 `Worktree mode: waived`。`Plan parallelism: serial` **不** waive 本闸——仅强制跨 plan **implement** 串行调度;control worktree + lease 仍须满足。**跨 plan 并行安全闸**(**不可**被 `Worktree mode: waived` 豁免):跨 plan **并行可写 implement** 须满足下列之一——(a) coordination 路径(control snapshot 或 waived 时主 checkout `{HARNESS_DIR}/status.json`)上 **same-host 独占写锁可用且每次 status/协调变更持锁**;(b) 默认 **`Plan parallelism: serial`**(**waived 时尤其优先默认串行**;**无 flock / 无共享锁时只触发本条,不豁免 worktree**);(c) 用户本轮显式 `Cross-host lease race: accepted`(或等价)+ `plans[].notes` 审计。**禁止**将 `Worktree mode: waived` 当作跨主机无锁并行的授权。细则 → **`references/phase-2-worktree-lease.md`**。
|
|
233
233
|
|
|
234
|
-
> **Engine-check(lease verify / verify-integration)唯一规范体:** `mstar-
|
|
234
|
+
> **Engine-check(lease verify / verify-integration)唯一规范体:** `mstar-artifacts` `SKILL.md`(Engine check lease 行;standalone 保证同文)。
|
|
235
235
|
|
|
236
236
|
任一 false → **stop**。Phase 1 / Prepare 未完成 → 先完成 Phase 1 或 per-plan Prepare,再进入本 Phase。
|
|
237
237
|
|
|
@@ -249,7 +249,7 @@ SSOT = `{WORKFLOW_DIR}/<id>/snapshot.json` + `{PLAN_DIR}/`。todos 只追踪本
|
|
|
249
249
|
|
|
250
250
|
### 2.2 Read backlog
|
|
251
251
|
|
|
252
|
-
1. 读 `mstar-
|
|
252
|
+
1. 读 `mstar-artifacts` + workflow snapshot(`{WORKFLOW_DIR}/<id>/snapshot.json`)与根 `status.json`
|
|
253
253
|
2. 列出 snapshot 中 `status` ∈ `{Todo, InProgress, InReview, Blocked}` 的 plan(优先级:`InProgress` → `InReview` → `Todo` → unblock `Blocked`)
|
|
254
254
|
3. 读 snapshot `branch.base` / `branch.target`,以及 plan `metadata.spec_integration_branch` / `merge_target` / `primary_spec` 链接
|
|
255
255
|
|
|
@@ -296,7 +296,7 @@ SSOT = `{WORKFLOW_DIR}/<id>/snapshot.json` + `{PLAN_DIR}/`。todos 只追踪本
|
|
|
296
296
|
- 自 control 路径 **重读** workflow snapshot(`{WORKFLOW_DIR}/<id>/snapshot.json`)定位 plan 行
|
|
297
297
|
- 若已有 `execution_lease` 且 `holder` **等于本 session** → **resume**:校验 `worktree_path` / `working_branch` 与 Assignment 一致后继续(**不是** steal / Blocked)
|
|
298
298
|
- 若 `execution_lease` 存在且 `holder` **不同** → **Blocked**
|
|
299
|
-
- 若 `status: InProgress` 但 **无** `execution_lease` → **STOP** 升级(孤儿状态恢复 → **`mstar-
|
|
299
|
+
- 若 `status: InProgress` 但 **无** `execution_lease` → **STOP** 升级(孤儿状态恢复 → **`mstar-artifacts`**;本 skill 不自行补 lease)
|
|
300
300
|
- 否则按 **`references/phase-2-worktree-lease.md`** claim:`Todo`/`Blocked` → `InProgress` + 写入完整 `execution_lease`;verify 通过前 **禁止**可写派发
|
|
301
301
|
2. **Plan start — feature worktree + branch**:创建/校验 dedicated feature worktree;Assignment 须含绝对 `Worktree path` + `Working branch`(与 lease 一致)。plan 内多可写并行轨 → **`mstar-branch-worktree`** **`references/parallel-writable-pre-dispatch.md`**
|
|
302
302
|
3. **Implement → InReview**(`§ 2.5`;产品编辑在 feature worktree;plans / snapshot / iterations / SDD 经 control 绝对路径):
|
|
@@ -353,7 +353,7 @@ Iteration Phase 2 附加:
|
|
|
353
353
|
- 实际 Git ≠ `working_branch` → **同轮**更新 plan + snapshot + `execution_lease.working_branch`(如适用)
|
|
354
354
|
- **跨 plan implement**(**无论** `Worktree mode: waived`):并行可写 implement 须满足 §2.0 #5 跨 plan 并行安全闸——same-host 独占写锁 + 每次协调变更持锁,或默认 **`Plan parallelism: serial`**(waived 时尤其优先),或用户本轮 `Cross-host lease race: accepted` + audit `notes`;**禁止**将 waived 当作无锁跨主机并行授权;未 waive 时另须 verified `execution_lease` + feature worktree。**integration merge 串行**(`integration_merge_lease` 或 waived 下无 lease 仍须串行 merge)
|
|
355
355
|
- plan 内 SDD task **串行** — 见 §2.4、§2.5、`mstar-sdd` Continuous execution
|
|
356
|
-
- **zero-residual(默认)**:单 plan QC findings 尽量在当轮清干净;仅真 blocker 才 defer 到后续迭代(须 Durable Roadmap)— 见 **`mstar-
|
|
356
|
+
- **zero-residual(默认)**:单 plan QC findings 尽量在当轮清干净;仅真 blocker 才 defer 到后续迭代(须 Durable Roadmap)— 见 **`mstar-artifacts`** Findings cleanup modes
|
|
357
357
|
- iteration 命令共享的 PM invariants / preflight / todos / STOP → **`references/command-shared-invariants.md`**
|
|
358
358
|
|
|
359
359
|
## Phase 3: iteration-close(收口迭代)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# iteration-start 产物边界(specs · iterations · knowledge)
|
|
2
2
|
|
|
3
3
|
> **When**: Phase 1 — PM 初稿落盘、§1.6 Review & Edit chain;Phase 2 迭代执行期可继续写入 iteration package;Phase 3 iteration-close 经 **`mstar-compound`** 提升。
|
|
4
|
-
> **Conflict**: 与 `mstar-
|
|
4
|
+
> **Conflict**: 与 `mstar-artifacts/references/knowledge-and-designs.md` 一致;冲突以 **`mstar-harness-core`** 为准。
|
|
5
5
|
|
|
6
6
|
## 三棵树分工(HARD)
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Phase 2 control worktree + execution lease
|
|
2
2
|
|
|
3
3
|
Normative field names → field SSOT
|
|
4
|
-
`mstar-
|
|
4
|
+
`mstar-artifacts/references/status-and-residuals.md`; the **full lease
|
|
5
5
|
protocol prose** (single canonical copy) → `mstar-engine-legacy/references/lease-protocol.md`
|
|
6
6
|
(engine-absent fallback). This reference is the **iteration-command execution
|
|
7
7
|
checklist** — do not invent alternate lease field names; do not re-state the
|
|
@@ -79,7 +79,7 @@ Immediately before **any** writable implement dispatch, re-read the control
|
|
|
79
79
|
snapshot and re-verify `execution_lease` holder + paths match this session;
|
|
80
80
|
mismatch → **STOP**.
|
|
81
81
|
|
|
82
|
-
> **Lease Engine-check:** canonical callout lives in `mstar-
|
|
82
|
+
> **Lease Engine-check:** canonical callout lives in `mstar-artifacts` `SKILL.md`(Engine-check lease 行)— this file carries the execution checklist only.
|
|
83
83
|
|
|
84
84
|
## Feature worktree (per plan)
|
|
85
85
|
|
|
@@ -137,7 +137,7 @@ If a plan row is `InProgress` but has **no** `execution_lease` in the snapshot,
|
|
|
137
137
|
escalate — do not invent a lease or writable-dispatch. Unattended "Recover with
|
|
138
138
|
claim" is permitted **only** for the **same** stable `holder`; different holder
|
|
139
139
|
requires verified quiescence + handoff or current-turn user override + audit.
|
|
140
|
-
Recovery semantics → `mstar-
|
|
140
|
+
Recovery semantics → `mstar-artifacts` (not iteration skill).
|
|
141
141
|
|
|
142
142
|
## Multi-plan parallelism
|
|
143
143
|
|
|
@@ -31,7 +31,7 @@ PM 在迭代内全部 plan Done 后执行。**本 Phase 在 integration 分支
|
|
|
31
31
|
**STOP**: 打印下方 checklist,且全部为 `[x]` 后,才可进入 §3.2 Compound。
|
|
32
32
|
|
|
33
33
|
- [ ] 所有 compass 中登记的 plan 在 workflow snapshot(`{WORKFLOW_DIR}/<id>/snapshot.json`)均为 `Done`
|
|
34
|
-
- [ ] 所有 plan 的 residual findings 已收口:优先 empty register 条目(`projects/<id>/residuals.json` → `entries[<plan-id>]`);若仍有 open R#,须均为 Phase 2 `zero-residual` 允许的 blocker-defer + roadmap,或已 closed(`lifecycle` / `closed_at` / `closure_note`,见 `mstar-
|
|
34
|
+
- [ ] 所有 plan 的 residual findings 已收口:优先 empty register 条目(`projects/<id>/residuals.json` → `entries[<plan-id>]`);若仍有 open R#,须均为 Phase 2 `zero-residual` 允许的 blocker-defer + roadmap,或已 closed(`lifecycle` / `closed_at` / `closure_note`,见 `mstar-artifacts` Findings cleanup modes)
|
|
35
35
|
- [ ] compass `## Plans` 表状态列已与 snapshot 同步
|
|
36
36
|
- [ ] 迭代 `## Acceptance Criteria` 已达成或显式豁免(compass 或对话记录原因)
|
|
37
37
|
- [ ] compass shape 已满足(frontmatter + `## Roadmap Position` + close 占位节)
|
|
@@ -5,7 +5,7 @@ description: "Morning Star Spec-Driven 双阶段门禁:Prepare(`specify →
|
|
|
5
5
|
|
|
6
6
|
## Load order(必读顺序)
|
|
7
7
|
|
|
8
|
-
**首次 Read 本 skill 前:必须先 Read `mstar-harness-core`(SKILL.md)。** `{PLAN_DIR}` / plan 文件落盘见 **`mstar-
|
|
8
|
+
**首次 Read 本 skill 前:必须先 Read `mstar-harness-core`(SKILL.md)。** `{PLAN_DIR}` / plan 文件落盘见 **`mstar-conventions`**。冲突时 **以 `mstar-harness-core` 为准**。
|
|
9
9
|
|
|
10
10
|
## Spec-Driven 双阶段门禁(非热修强制)
|
|
11
11
|
|
|
@@ -49,10 +49,10 @@ description: "Morning Star Spec-Driven 双阶段门禁:Prepare(`specify →
|
|
|
49
49
|
|
|
50
50
|
- **`plan locked`**
|
|
51
51
|
- 最小动作:在 plan 或 notes 记录当前锁定版本(日期或 hash)。
|
|
52
|
-
- **Plan 质量门**(新 plan / 大改):无 placeholder(`...`、`TBD`、`etc.`);含 **Global Constraints** 与 per-task **Interfaces**;PM self-review 三问(每 task 可独立验证?依赖顺序清晰?无隐含假设?)— 见 `mstar-
|
|
52
|
+
- **Plan 质量门**(新 plan / 大改):无 placeholder(`...`、`TBD`、`etc.`);含 **Global Constraints** 与 per-task **Interfaces**;PM self-review 三问(每 task 可独立验证?依赖顺序清晰?无隐含假设?)— 见 `mstar-artifacts/templates/plan.main.md` + **`mstar-artifacts/references/plan-quality-bar.md`**(自包含/验证门/STOP 条件/drift check/done criteria)。
|
|
53
53
|
- **`implement`**
|
|
54
54
|
- 最小产物:实现 diff、自检证据、回报与 handoff;行为准则 → **`mstar-coding-behavior`**;编辑纪律 → 上文「可验证编辑与上下文纪律」。
|
|
55
|
-
- **知识库 / 迭代 compass**:**默认**开工前扫 `{KNOWLEDGE_DIR}/README.md` 索引(若存在)并阅读与当轮相关的 **Active** 行(**即使 metadata 无 knowledge 链接**);若 `plans[].metadata` 登记了 `primary_spec` / `spec_refs` / `iteration_compass` / `iteration_refs`,所链接文档**仍须**阅读;两类阅读均须在回报中说明已对齐 → **`mstar-
|
|
55
|
+
- **知识库 / 迭代 compass**:**默认**开工前扫 `{KNOWLEDGE_DIR}/README.md` 索引(若存在)并阅读与当轮相关的 **Active** 行(**即使 metadata 无 knowledge 链接**);若 `plans[].metadata` 登记了 `primary_spec` / `spec_refs` / `iteration_compass` / `iteration_refs`,所链接文档**仍须**阅读;两类阅读均须在回报中说明已对齐 → **`mstar-conventions`** · **`mstar-artifacts/references/knowledge-and-designs.md`**。
|
|
56
56
|
|
|
57
57
|
## 角色职责
|
|
58
58
|
|
|
@@ -79,7 +79,7 @@ per-plan Done 是 per-plan 的闭环终点;compound 是迭代级收口活动
|
|
|
79
79
|
## Plan 目录与审查证据(启用 `{PLAN_DIR}` 时)
|
|
80
80
|
|
|
81
81
|
- 进入 `InReview` 后,QC/QA 原始过程报告默认落入 `{SDD_DIR}/review/`(**SDD 默认 tri** `qc1`…`qc-consolidated`;**inline** 单席 `qc.md`)。**fix 后默认 targeted re-review**。SDD per-task review 在 implement 波次内完成(`mstar-sdd` task reviewer)。PM 将 durable gate summary 回写主 plan / workflow snapshot,而不是把 raw reports 作为默认 git 产物。
|
|
82
|
-
- 非阻断项与后续技术债:PM 汇总后写入 project register `{PROJECT_DIR}/<id>/residuals.json` → `entries[<plan-id>]`(**open**,默认 `{HARNESS_DIR}/projects/<id>/`;canonical 见 **`mstar-
|
|
82
|
+
- 非阻断项与后续技术债:PM 汇总后写入 project register `{PROJECT_DIR}/<id>/residuals.json` → `entries[<plan-id>]`(**open**,默认 `{HARNESS_DIR}/projects/<id>/`;canonical 见 **`mstar-artifacts` SKILL.md**);关闭时在 register 内 **in place** 置 `lifecycle` / `closed_at` / `closure_note`,与 `mstar-review-qc` 一致。每条 **`severity`** 遵守 **`mstar-artifacts/references/status-and-residuals.md`**「Residual findings:severity(SSOT,机器字段)」。
|
|
83
83
|
|
|
84
84
|
## 快速判定(PM)
|
|
85
85
|
|
|
@@ -113,6 +113,6 @@ per-plan Done 是 per-plan 的闭环终点;compound 是迭代级收口活动
|
|
|
113
113
|
|
|
114
114
|
## References
|
|
115
115
|
|
|
116
|
-
- plan 文件落盘与路径符号 → **`mstar-
|
|
116
|
+
- plan 文件落盘与路径符号 → **`mstar-conventions`**
|
|
117
117
|
- 多 task 默认 `Execution mode: sdd` 的 implement 波次 → **`mstar-sdd`**
|
|
118
118
|
- QC / QA 审查链与 residual 登记 → **`mstar-review-qc`**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: mstar-project-governance
|
|
3
|
-
description: Morning Star 项目治理层约定 —— `projects/<id>/roadmap.md` 编写约定(frontmatter schema + body 约定)与 `projects/<id>/residuals.json` register 生命周期(open → verified close in place、severity 枚举、provenance 字段)、`_default` 项目回退规则。写/审 roadmap、登记或关闭 residual、判断项目归属(含无项目流程的 `_default` fallback)、或对齐 roadmap/register 与 engine 校验时 Read。schema 事实与 `packages/engine/src/project.ts` 逐字一致;字段语义 SSOT → `mstar-
|
|
3
|
+
description: Morning Star 项目治理层约定 —— `projects/<id>/roadmap.md` 编写约定(frontmatter schema + body 约定)与 `projects/<id>/residuals.json` register 生命周期(open → verified close in place、severity 枚举、provenance 字段)、`_default` 项目回退规则。写/审 roadmap、登记或关闭 residual、判断项目归属(含无项目流程的 `_default` fallback)、或对齐 roadmap/register 与 engine 校验时 Read。schema 事实与 `packages/engine/src/project.ts` 逐字一致;字段语义 SSOT → `mstar-artifacts`;路径符号 → `mstar-conventions`。
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# mstar-project-governance(项目治理层:roadmap + register)
|
|
@@ -8,8 +8,8 @@ description: Morning Star 项目治理层约定 —— `projects/<id>/roadmap.md
|
|
|
8
8
|
## Load Order
|
|
9
9
|
|
|
10
10
|
- 先 Read **`mstar-harness-core`**(SKILL.md;冲突时以 core 为准)。
|
|
11
|
-
- 路径符号(`{PROJECT_DIR}` / `{WORKFLOW_DIR}` 解析与 `.mstarc` 声明)→ **`mstar-
|
|
12
|
-
- 字段语义 SSOT(severity 含义、findings cleanup modes、close 协议全文、engine-check 查询)→ **`mstar-
|
|
11
|
+
- 路径符号(`{PROJECT_DIR}` / `{WORKFLOW_DIR}` 解析与 `.mstarc` 声明)→ **`mstar-conventions`**。
|
|
12
|
+
- 字段语义 SSOT(severity 含义、findings cleanup modes、close 协议全文、engine-check 查询)→ **`mstar-artifacts`**(`references/status-and-residuals.md`)。本 skill 只承载**编写约定与生命周期规则**,不重复字段全文。
|
|
13
13
|
|
|
14
14
|
## Scope
|
|
15
15
|
|
|
@@ -63,9 +63,9 @@ residuals_ref: residuals.json # optional
|
|
|
63
63
|
|
|
64
64
|
## Register 生命周期(`projects/<id>/residuals.json`)
|
|
65
65
|
|
|
66
|
-
### 文档形状、必填字段与枚举(单址 → `mstar-
|
|
66
|
+
### 文档形状、必填字段与枚举(单址 → `mstar-artifacts`)
|
|
67
67
|
|
|
68
|
-
Register 文档形状(`entries[<plan-id>]` 数组 JSON)、**9 个必填字段**(`id`/`title`/`severity`/`source`/`scope`/`decision`/`owner`/`target`/`tracking`,engine `RESIDUAL_REQUIRED_FIELDS`)与 **severity / decision / lifecycle 枚举**的逐字 schema → **`mstar-
|
|
68
|
+
Register 文档形状(`entries[<plan-id>]` 数组 JSON)、**9 个必填字段**(`id`/`title`/`severity`/`source`/`scope`/`decision`/`owner`/`target`/`tracking`,engine `RESIDUAL_REQUIRED_FIELDS`)与 **severity / decision / lifecycle 枚举**的逐字 schema → **`mstar-artifacts`** `references/status-and-residuals.md`(「Basic structure · project register」+「Residual findings: severity」)。本 skill 只承载编写约定与生命周期规则,**不重复字段全文**。
|
|
69
69
|
|
|
70
70
|
- `entries[<plan-id>]` 值是**数组** —— v1 `residual_findings[plan-id]` 多 finding 语义逐字保留(一个 plan 可持 2+ open residual)。
|
|
71
71
|
- 每条 = v1 residual entry **逐字** + provenance 字段。
|
|
@@ -76,7 +76,7 @@ Register 文档形状(`entries[<plan-id>]` 数组 JSON)、**9 个必填字
|
|
|
76
76
|
- **close(唯一关闭路径)**:在 register **in place** 置 `lifecycle`(≠ `open`)+ `closed_at`(`YYYY-MM-DD`)+ `closure_note`;推荐 `closure_evidence`。v1 的 `archived/residuals/` 归档路径与 `status archive-residuals` 已移除(该命令现为报错桩,指向 register 状态变更)。
|
|
77
77
|
- **closed 完整性**:`lifecycle` ≠ `open` 时缺 `closed_at` / `closure_note` = violation。
|
|
78
78
|
- **谁更新**:PM 在 consolidated 决策后分配 R# 并登记;`QA gate: mandatory` 时 `qa-engineer` 验证后关闭;`pm-acceptance` 时 PM 验收清单完成后关闭。
|
|
79
|
-
- close 协议全文 → **`mstar-
|
|
79
|
+
- close 协议全文 → **`mstar-artifacts`** `references/status-and-residuals.md`(「Residual findings lifecycle」)。
|
|
80
80
|
|
|
81
81
|
### Provenance(register 专属字段)
|
|
82
82
|
|
|
@@ -91,7 +91,7 @@ Register 文档形状(`entries[<plan-id>]` 数组 JSON)、**9 个必填字
|
|
|
91
91
|
- Assignment **`Findings cleanup: zero-residual | allow-residual`** 是唯一 mode 来源(`metadata.findings_cleanup` mirror 已删);迭代 Phase 2 默认 `zero-residual`。
|
|
92
92
|
- `zero-residual`:可修 findings 当轮 fix → re-review 清干净;仅真 blocker 可 defer 且须 Durable Roadmap + `target`;`nit` 必须当场修或删;waived/risk-accepted 必须关闭,不得留 open。
|
|
93
93
|
- `allow-residual`:仅 unresolved **critical** 阻止 Approve。
|
|
94
|
-
- mode 全文与 enforcement → **`mstar-
|
|
94
|
+
- mode 全文与 enforcement → **`mstar-artifacts`** `references/status-and-residuals.md`(「Findings cleanup modes」+ 其 engine check)。
|
|
95
95
|
|
|
96
96
|
## Workflow
|
|
97
97
|
|
|
@@ -114,6 +114,6 @@ Register 文档形状(`entries[<plan-id>]` 数组 JSON)、**9 个必填字
|
|
|
114
114
|
|
|
115
115
|
## References
|
|
116
116
|
|
|
117
|
-
- **`mstar-
|
|
118
|
-
- **`mstar-
|
|
117
|
+
- **`mstar-artifacts`**(`references/status-and-residuals.md`)— 字段语义 SSOT:severity 含义与门禁关系、findings cleanup modes 全文、close 协议、engine-check 查询示例
|
|
118
|
+
- **`mstar-conventions`** — `{PROJECT_DIR}` / `{WORKFLOW_DIR}` 路径符号、`.mstarc` 声明、gitignore 策略
|
|
119
119
|
- **`mstar-review-qc`** — PM QC 编排与 residual 留档(PM 同轮必读)
|
|
@@ -21,7 +21,7 @@ description: "Morning Star QC orchestration — **SDD mandatory plan QC tri-revi
|
|
|
21
21
|
|
|
22
22
|
- **`Execution mode: sdd`**:全部 task + L2 task reviewers 完成后 → **强制 tri-review**(`QC mode: full tri-review`,**N=3**)。Assignment 须含 **branch review-package** 路径与 `{SDD_DIR}/review/qcN.md` report paths。PM 汇总 `{SDD_DIR}/review/qc-consolidated.md` 并回写主 plan durable summary。
|
|
23
23
|
- **`Execution mode: inline`**:单席 `qc-specialist` → `{SDD_DIR}/review/qc.md`(**N=1**),或按 hotfix 路由跳过。
|
|
24
|
-
- **After `Request Changes` (default)**:**Targeted re-review** — PM dispatches only seats that **raised** blocking findings; each updates **the same** `{SDD_DIR}/review/qcN.md` (`## Revalidation`, update verdict). **Do not** spawn `qcN-rev2.md` for targeted re-review. Naming → **`mstar-
|
|
24
|
+
- **After `Request Changes` (default)**:**Targeted re-review** — PM dispatches only seats that **raised** blocking findings; each updates **the same** `{SDD_DIR}/review/qcN.md` (`## Revalidation`, update verdict). **Do not** spawn `qcN-rev2.md` for targeted re-review. Naming → **`mstar-artifacts/references/plan-files-and-reports.md`** § QC 三审触发时机.
|
|
25
25
|
- **Full tri re-review (exception)**:Assignment **`QC re-review: full tri-review`** → new basenames (`qc1-rev2.md` …); PM marks **active wave** in consolidated decision.
|
|
26
26
|
|
|
27
27
|
> **Engine check (when available):** run `mstar review seats <assignment-file> [--mode sdd|inline|targeted] [--reviewers <role1,role2,...>]` (or `import { executionModeToN, assertTriIdentity } from "@mstar-harness/engine"` in a host hook) to map `Execution mode` to its QC seat count N above and assert tri identity. On `fail` -> do not proceed; fix and re-run. Skill text below remains authoritative when the runtime is absent.
|
|
@@ -36,10 +36,10 @@ description: "Morning Star QC orchestration — **SDD mandatory plan QC tri-revi
|
|
|
36
36
|
|
|
37
37
|
## Residual Findings 留档门禁(PM)
|
|
38
38
|
|
|
39
|
-
- 先读 Assignment **`Findings cleanup`**(`plans[].metadata.findings_cleanup` mirror 已删——Assignment 是唯一 mode 来源)→ **`mstar-
|
|
39
|
+
- 先读 Assignment **`Findings cleanup`**(`plans[].metadata.findings_cleanup` mirror 已删——Assignment 是唯一 mode 来源)→ **`mstar-artifacts/references/status-and-residuals.md`**「Findings cleanup modes」。
|
|
40
40
|
- **`Findings cleanup: zero-residual`**(iteration Phase 2 默认):可修 **Warning / Suggestion / Critical** → **fix-now + targeted re-review**,**禁止**把可修项登记为 open R# 或用 `Approve with residuals` 收口;**`nit`** 当场修或丢弃(无 R#)。仅 **真 blocker-defer**(外部依赖 / 须下轮产品决策 / 用户本轮显式 defer + Durable Roadmap)可登记 open R#(`decision: defer`)。此时 `Approve with residuals` **仅**允许剩余项全是该类 defer。
|
|
41
41
|
- **`Findings cleanup: allow-residual`**(standalone / hotfix / inline 默认):阻断项修复后仍有 **Warning / Suggestion** 或技术债 → 必须留档;**`Approve with residuals`** 仅当无 open **Critical**;PM 汇总结论须含 residual 清单与跟踪位置。
|
|
42
|
-
- **`severity`** 仅允许 `mstar-
|
|
42
|
+
- **`severity`** 仅允许 `mstar-artifacts/references/status-and-residuals.md` 枚举。
|
|
43
43
|
- **Open SSOT**:`{PROJECT_DIR}/<id>/residuals.json`(默认 `{HARNESS_DIR}/projects/<id>/`;无项目流程 `_default`)→ `entries[<plan-id>]`;PM 在 consolidated 决策分配 **R1…** 并写入。关闭 → 在 register 内 **in place** 置 `lifecycle` / `closed_at` / `closure_note`(v1 `archived/residuals/` 与 `archive-residuals` 已移除)。
|
|
44
44
|
- 主 plan 仅作人类索引;不得作为唯一 SSOT。
|
|
45
45
|
- 未完成 residual 留档(`allow-residual`)或未清干净可修 findings(`zero-residual`)→ 不得进入 plan **Done**。
|
|
@@ -73,4 +73,4 @@ QC 编排主链:plan 全部 task + L2 完成后 → PM 按 `Execution mode`
|
|
|
73
73
|
|
|
74
74
|
- Leaf QC 执行(checklist / 报告模板 / 透镜)→ **`mstar-roles/references/qc-specialist/`**
|
|
75
75
|
- Per-task review(L2,implement 波次内)→ **`mstar-sdd`**
|
|
76
|
-
- Review bundle 命名与 QC 触发时机 → **`mstar-
|
|
76
|
+
- Review bundle 命名与 QC 触发时机 → **`mstar-artifacts/references/plan-files-and-reports.md`**
|
|
@@ -38,12 +38,12 @@ If any conflict appears, `mstar-harness-core` remains the authoritative source f
|
|
|
38
38
|
|
|
39
39
|
| Role | Typical adds |
|
|
40
40
|
| --- | --- |
|
|
41
|
-
| `project-manager` | `mstar-dispatch-gates`, `mstar-phase-gates`, `mstar-
|
|
42
|
-
| `fullstack-dev*`, `frontend-dev` | `mstar-coding-behavior`, `mstar-dispatch-gates`, `mstar-branch-worktree` (if repo writes); plan path symbols from `mstar-
|
|
43
|
-
| `qc-specialist*` | `mstar-branch-worktree`, `mstar-
|
|
44
|
-
| `qa-engineer` | `mstar-branch-worktree`, `mstar-
|
|
45
|
-
| `architect`, `product-manager` | `mstar-phase-gates` (Prepare), `mstar-
|
|
46
|
-
| `code-reviewer` | `mstar-sdd` (per-task review mode); `mstar-audit` (audit mode: full workflow); `mstar-
|
|
41
|
+
| `project-manager` | `mstar-dispatch-gates`, `mstar-phase-gates`, `mstar-conventions`, `mstar-roles` ref; + `references/project-manager/qa-trigger-matrix.md` for QA gate tiers; + `mstar-review-qc` before QC; + `mstar-branch-worktree` / `mstar-artifacts` as the round requires; + `mstar-skill-authoring` for skill work; + `mstar-iteration` for iteration lifecycle (start/drive/close); + `mstar-strategy` for strategic alignment; + `mstar-compound` / `mstar-compound-refresh` pre-loaded by `mstar-iteration` § iteration-close |
|
|
42
|
+
| `fullstack-dev*`, `frontend-dev` | `mstar-coding-behavior`, `mstar-dispatch-gates`, `mstar-branch-worktree` (if repo writes); plan path symbols from `mstar-conventions` (minimal); `mstar-design-md` when implementing styled UI |
|
|
43
|
+
| `qc-specialist*` | `mstar-branch-worktree`, `mstar-artifacts` (review bundle paths); `references/qc-specialist/` (workflow, checklist, template, lenses); `mstar-design-md` when reviewing UI |
|
|
44
|
+
| `qa-engineer` | `mstar-branch-worktree`, `mstar-artifacts` (closing R#); `references/qa-engineer/acceptance-gate.md`; `mstar-design-md` when verifying visual output |
|
|
45
|
+
| `architect`, `product-manager` | `mstar-phase-gates` (Prepare), `mstar-artifacts` (knowledge/specs); `mstar-design-md` (creator + design intent); `mstar-strategy` (STRATEGY.md creation/maintenance) |
|
|
46
|
+
| `code-reviewer` | `mstar-sdd` (per-task review mode); `mstar-audit` (audit mode: full workflow); `mstar-conventions` (paths); `mstar-artifacts` (plan-quality-bar for audit plans) |
|
|
47
47
|
| `ops-engineer` | `mstar-coding-behavior`, `mstar-branch-worktree` |
|
|
48
48
|
| `prompt-engineer` | All topic skills when editing harness text |
|
|
49
49
|
|
|
@@ -74,7 +74,7 @@ Role `references/*.md` files include explicit **`NEVER`** sections (anti-recursi
|
|
|
74
74
|
| `qc-specialist-2` | `2` | Security and correctness risk | `qc2` → `{SDD_DIR}/review/qc2.md` |
|
|
75
75
|
| `qc-specialist-3` | `3` | Performance and reliability risk | `qc3` → `{SDD_DIR}/review/qc3.md` |
|
|
76
76
|
|
|
77
|
-
PM consolidated (tri mode): `{SDD_DIR}/review/qc-consolidated.md` (same folder; no `<plan-id>` basename prefix) + durable main-plan summary. Naming SSOT: `mstar-
|
|
77
|
+
PM consolidated (tri mode): `{SDD_DIR}/review/qc-consolidated.md` (same folder; no `<plan-id>` basename prefix) + durable main-plan summary. Naming SSOT: `mstar-artifacts/references/plan-files-and-reports.md`.
|
|
78
78
|
|
|
79
79
|
> **Engine check (when available):** run `mstar roles validate` (or import `validateRoleMapping` / `lintLoadOrder` from `@mstar-harness/engine` in a host hook) to validate the mapping and parameter tables above against the on-disk `references/*.md` layout (shared families included) and lint the load-order declarations. On `fail` -> do not proceed; fix and re-run. Skill text below remains authoritative when the runtime is absent.
|
|
80
80
|
|
|
@@ -32,7 +32,7 @@ Apply when the assignment writes tracked repo files:
|
|
|
32
32
|
|
|
33
33
|
## Plan & Documentation Rules
|
|
34
34
|
|
|
35
|
-
- Follow `{HARNESS_DIR}` / `{PLAN_DIR}` conventions from `mstar-
|
|
35
|
+
- Follow `{HARNESS_DIR}` / `{PLAN_DIR}` conventions from `mstar-conventions`.
|
|
36
36
|
- Update assigned task checkboxes and plan notes for your scope.
|
|
37
37
|
- Do not mark full plan `Done` (only `project-manager` or `qa-engineer` per `mstar-harness-core`).
|
|
38
38
|
|
|
@@ -54,3 +54,11 @@ All leaf executors share these anti-recursion red lines (role-specific sibling l
|
|
|
54
54
|
- **NEVER** infer you may call `Task` / subagents because the host **lists** `subagent_type` names (`architect`, `fullstack-dev`, …). **Tool availability ≠ delegation authorization**; only **`Delegation: allowed (...)`** grants callees.
|
|
55
55
|
- **NEVER** execute parallel-agent dispatch yourself to fan out child agents; dispatch is **PM-orchestration-only** (see `mstar-dispatch-gates`). If parallel runners are needed, report to PM for re-dispatch.
|
|
56
56
|
- **NEVER** invoke a same-role or sibling role to perform **this** assignment unless `Delegation: allowed (...)` explicitly lists them.
|
|
57
|
+
## Audit Mode (read-only review, shared)
|
|
58
|
+
|
|
59
|
+
When the assignment is a review/audit dispatch — `Task category: audit`, `Audit mode: on`, or a `pr-deep-review` batch seat — the executor operates as a **read-only audit seat**, not an implementer:
|
|
60
|
+
|
|
61
|
+
- **Permission contract**: no tracked-file writes, no `edit`/`write`/`ast_edit` on the reviewed worktree, no merge, no approve-as-merge. The write permissions the role normally has are **suspended for the assignment**; do not "fix things while reviewing".
|
|
62
|
+
- **Process**: load `mstar-audit` (`pr` variant or audit process) + its references + `mstar-coding-behavior` evidence discipline; run the concern-lens review and the three-way attack; produce `findings` + `verdict` (`ship it` / `needs review` / `blocked` for PR review) + `unverified` in the `pr-deep-review` output shape.
|
|
63
|
+
- **Mode lock**: one assignment = one mode. Review-assigned work is completed as review only; implementation mode applies to implementation assignments only.
|
|
64
|
+
- **Completion Report**: `Status: Done`; `Git:` states `read-only, no commits` unless PM explicitly authorized a comment post.
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
**Hub matrix:** `mstar-roles` SKILL.md.
|
|
4
4
|
|
|
5
|
-
**Always:** `mstar-harness-core`, `mstar-dispatch-gates`, `mstar-phase-gates` (Prepare: specify/clarify/plan), `mstar-
|
|
5
|
+
**Always:** `mstar-harness-core`, `mstar-dispatch-gates`, `mstar-phase-gates` (Prepare: specify/clarify/plan), `mstar-conventions` (`{PLAN_DIR}`, plan-writing path).
|
|
6
6
|
|
|
7
|
-
**Typically:** `mstar-
|
|
7
|
+
**Typically:** `mstar-artifacts` (specs, **`{ITERATION_DIR}/<id>/` package**); `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); `mstar-design-md` (when the plan involves UI work / design tokens — read DESIGN.md for design specs).
|
|
10
10
|
|
|
@@ -29,7 +29,7 @@ If any item below matches, **stop** and return `Blocked` to `project-manager` in
|
|
|
29
29
|
- **NEVER** treat `Gate Decision: blocked` (material, high-impact ambiguities still open) as permission to hand off “ready for implement” architecture—finish clarify, update the package, or return `Blocked` to PM.
|
|
30
30
|
- **NEVER** use a temporary, mixed, or partial design as the selected approach unless the target architecture and staged roadmap are written in the assigned plan/spec. “Later” without a tracking location is `Blocked`, not a handoff.
|
|
31
31
|
- **NEVER** edit application implementation source, automated tests, CI workflows, Dockerfiles, or secrets-bearing runtime configuration unless the assignment explicitly limits you to doc-only placeholders **and** PM recorded the risk acceptance.
|
|
32
|
-
- **NEVER** persist planning artifacts under external default plan directories; only `{PLAN_DIR}` per `mstar-
|
|
32
|
+
- **NEVER** persist planning artifacts under external default plan directories; only `{PLAN_DIR}` per `mstar-conventions`.
|
|
33
33
|
|
|
34
34
|
These rules align with `mstar-harness-core` executor anti-recursion invariants.
|
|
35
35
|
|
|
@@ -37,7 +37,7 @@ These rules align with `mstar-harness-core` executor anti-recursion invariants.
|
|
|
37
37
|
|
|
38
38
|
Use `mstar-phase-gates` for trade-off exploration and technical plan checkpoints. Use `mstar-coding-behavior` only when editing tracked files or responding to review feedback. Same-repo multi-writer parallelism is governed by `mstar-branch-worktree`.
|
|
39
39
|
|
|
40
|
-
Plan artifacts must follow `{PLAN_DIR}` from `mstar-
|
|
40
|
+
Plan artifacts must follow `{PLAN_DIR}` from `mstar-conventions`, not external default paths.
|
|
41
41
|
|
|
42
42
|
## Responsibilities
|
|
43
43
|
|