@mstar-harness/omp 3.6.0-alpha.4

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.
Files changed (280) hide show
  1. package/README.md +63 -0
  2. package/agents/architect.md +35 -0
  3. package/agents/code-reviewer.md +90 -0
  4. package/agents/frontend-dev.md +33 -0
  5. package/agents/fullstack-dev-2.md +33 -0
  6. package/agents/fullstack-dev.md +33 -0
  7. package/agents/ops-engineer.md +33 -0
  8. package/agents/product-manager.md +35 -0
  9. package/agents/project-manager.md +32 -0
  10. package/agents/prompt-engineer.md +33 -0
  11. package/agents/qa-engineer.md +35 -0
  12. package/agents/qc-specialist-2.md +62 -0
  13. package/agents/qc-specialist-3.md +62 -0
  14. package/agents/qc-specialist.md +62 -0
  15. package/agents/writing-specialist.md +35 -0
  16. package/assets/icon.png +0 -0
  17. package/assets/logo-dark.png +0 -0
  18. package/assets/logo-dark.svg +6 -0
  19. package/assets/logo.png +0 -0
  20. package/assets/logo.svg +6 -0
  21. package/commands/amazing-pr-review.md +31 -0
  22. package/commands/codebase-audit.md +40 -0
  23. package/commands/iteration-drive.md +48 -0
  24. package/commands/iteration-loop.md +99 -0
  25. package/commands/iteration-start.md +122 -0
  26. package/dist/hooks/pre/mstar-gates.js +6579 -0
  27. package/dist/tools/mstar_dispatch_validate/index.js +6291 -0
  28. package/dist/tools/mstar_iteration_gate/index.js +6321 -0
  29. package/dist/tools/mstar_lease_verify/index.js +6343 -0
  30. package/dist/tools/mstar_path_resolve/index.js +6297 -0
  31. package/dist/tools/mstar_status_validate/index.js +6402 -0
  32. package/dist/tools/mstar_worktree_check/index.js +6343 -0
  33. package/harness-agents/architect.md +35 -0
  34. package/harness-agents/code-reviewer.md +90 -0
  35. package/harness-agents/frontend-dev.md +33 -0
  36. package/harness-agents/fullstack-dev-2.md +33 -0
  37. package/harness-agents/fullstack-dev.md +33 -0
  38. package/harness-agents/ops-engineer.md +33 -0
  39. package/harness-agents/product-manager.md +35 -0
  40. package/harness-agents/project-manager.md +32 -0
  41. package/harness-agents/prompt-engineer.md +33 -0
  42. package/harness-agents/qa-engineer.md +35 -0
  43. package/harness-agents/qc-specialist-2.md +62 -0
  44. package/harness-agents/qc-specialist-3.md +62 -0
  45. package/harness-agents/qc-specialist.md +62 -0
  46. package/harness-agents/writing-specialist.md +35 -0
  47. package/harness-commands/amazing-pr-review.md +31 -0
  48. package/harness-commands/codebase-audit.md +40 -0
  49. package/harness-commands/iteration-drive.md +48 -0
  50. package/harness-commands/iteration-loop.md +99 -0
  51. package/harness-commands/iteration-start.md +122 -0
  52. package/harness-skills/grill-me/SKILL.md +10 -0
  53. package/harness-skills/mstar-artifacts/SKILL.md +66 -0
  54. package/harness-skills/mstar-artifacts/references/knowledge-and-designs.md +110 -0
  55. package/harness-skills/mstar-artifacts/references/plan-files-and-reports.md +98 -0
  56. package/harness-skills/mstar-artifacts/references/plan-quality-bar.md +99 -0
  57. package/harness-skills/mstar-artifacts/references/status-and-residuals.md +472 -0
  58. package/harness-skills/mstar-artifacts/templates/README.md +7 -0
  59. package/harness-skills/mstar-artifacts/templates/plan.main.md +54 -0
  60. package/harness-skills/mstar-artifacts/templates/status.empty.json +5 -0
  61. package/harness-skills/mstar-audit/SKILL.md +151 -0
  62. package/harness-skills/mstar-audit/references/audit-playbook.md +175 -0
  63. package/harness-skills/mstar-audit/references/codebase-audit.md +103 -0
  64. package/harness-skills/mstar-audit/references/finding-format.md +69 -0
  65. package/harness-skills/mstar-audit/references/pr-review-seat-evidence.md +28 -0
  66. package/harness-skills/mstar-audit/references/pr-review.md +475 -0
  67. package/harness-skills/mstar-audit/references/security-review.md +219 -0
  68. package/harness-skills/mstar-branch-worktree/SKILL.md +236 -0
  69. package/harness-skills/mstar-branch-worktree/references/parallel-writable-pre-dispatch.md +68 -0
  70. package/harness-skills/mstar-coding-behavior/SKILL.md +167 -0
  71. package/harness-skills/mstar-compound/SKILL.md +109 -0
  72. package/harness-skills/mstar-compound/assets/resolution-template.md +94 -0
  73. package/harness-skills/mstar-compound/references/category-mapping.md +37 -0
  74. package/harness-skills/mstar-compound/references/compound-workflow.md +171 -0
  75. package/harness-skills/mstar-compound/references/concepts-vocabulary.md +44 -0
  76. package/harness-skills/mstar-compound/references/schema.yaml +122 -0
  77. package/harness-skills/mstar-compound-refresh/SKILL.md +154 -0
  78. package/harness-skills/mstar-compound-refresh/references/project-knowledge-bootstrap.md +164 -0
  79. package/harness-skills/mstar-conventions/SKILL.md +215 -0
  80. package/harness-skills/mstar-conventions/references/artifact-storage-paths.md +53 -0
  81. package/harness-skills/mstar-conventions/references/effort-estimation.md +38 -0
  82. package/harness-skills/mstar-conventions/references/harness-bootstrap-and-agents-layering.md +96 -0
  83. package/harness-skills/mstar-design-md/SKILL.md +142 -0
  84. package/harness-skills/mstar-design-md/references/completeness-checklist.md +181 -0
  85. package/harness-skills/mstar-design-md/references/design-md-spec.md +508 -0
  86. package/harness-skills/mstar-design-md/references/vercel-example.md +200 -0
  87. package/harness-skills/mstar-design-md/templates/DESIGN.dark.md.template +354 -0
  88. package/harness-skills/mstar-design-md/templates/DESIGN.md.template +474 -0
  89. package/harness-skills/mstar-dispatch-gates/SKILL.md +134 -0
  90. package/harness-skills/mstar-dispatch-gates/references/leaf-executor-checklist.md +23 -0
  91. package/harness-skills/mstar-engine-legacy/SKILL.md +53 -0
  92. package/harness-skills/mstar-engine-legacy/references/anti-recursion-checklists.md +58 -0
  93. package/harness-skills/mstar-engine-legacy/references/engine-check-boilerplate.md +26 -0
  94. package/harness-skills/mstar-engine-legacy/references/lease-protocol.md +92 -0
  95. package/harness-skills/mstar-engine-legacy/references/qc-seat-n-restatements.md +57 -0
  96. package/harness-skills/mstar-engine-legacy/references/status-field-history.md +186 -0
  97. package/harness-skills/mstar-harness-core/SKILL.md +196 -0
  98. package/harness-skills/mstar-host/SKILL.md +96 -0
  99. package/harness-skills/mstar-host/references/_shared/host-role-binding-core.md +51 -0
  100. package/harness-skills/mstar-host/references/_shared/plan-mode-bridge-core.md +91 -0
  101. package/harness-skills/mstar-host/references/codex.md +61 -0
  102. package/harness-skills/mstar-host/references/cursor-plan-mode-bridge.md +170 -0
  103. package/harness-skills/mstar-host/references/cursor.md +183 -0
  104. package/harness-skills/mstar-host/references/dsh.md +507 -0
  105. package/harness-skills/mstar-host/references/kimi-plan-mode-bridge.md +36 -0
  106. package/harness-skills/mstar-host/references/kimi.md +136 -0
  107. package/harness-skills/mstar-host/references/omp-plan-mode-bridge.md +32 -0
  108. package/harness-skills/mstar-host/references/omp.md +245 -0
  109. package/harness-skills/mstar-host/references/opencode.md +76 -0
  110. package/harness-skills/mstar-host/references/parallel-dispatch.md +68 -0
  111. package/harness-skills/mstar-host/references/zcode-plan-mode-bridge.md +36 -0
  112. package/harness-skills/mstar-host/references/zcode.md +129 -0
  113. package/harness-skills/mstar-iteration/SKILL.md +408 -0
  114. package/harness-skills/mstar-iteration/references/autonomous-direction-lock.md +90 -0
  115. package/harness-skills/mstar-iteration/references/command-shared-invariants.md +62 -0
  116. package/harness-skills/mstar-iteration/references/iteration-artifact-boundaries.md +103 -0
  117. package/harness-skills/mstar-iteration/references/iteration-compass-template.md +142 -0
  118. package/harness-skills/mstar-iteration/references/iteration-corpus-hygiene.md +45 -0
  119. package/harness-skills/mstar-iteration/references/iteration-workspace-readme-template.md +27 -0
  120. package/harness-skills/mstar-iteration/references/phase-2-worktree-lease.md +205 -0
  121. package/harness-skills/mstar-iteration/references/phase-3-iteration-close.md +105 -0
  122. package/harness-skills/mstar-iteration/references/phase-4-5-pr-delivery.md +85 -0
  123. package/harness-skills/mstar-iteration/references/phase5-helper-discovery.md +24 -0
  124. package/harness-skills/mstar-phase-gates/SKILL.md +118 -0
  125. package/harness-skills/mstar-project-governance/SKILL.md +119 -0
  126. package/harness-skills/mstar-review-qc/SKILL.md +76 -0
  127. package/harness-skills/mstar-review-qc/references/review-responsibility-boundaries.md +54 -0
  128. package/harness-skills/mstar-roles/SKILL.md +103 -0
  129. package/harness-skills/mstar-roles/references/_shared/leaf-executor-core.md +65 -0
  130. package/harness-skills/mstar-roles/references/architect.md +109 -0
  131. package/harness-skills/mstar-roles/references/code-reviewer.md +118 -0
  132. package/harness-skills/mstar-roles/references/frontend-dev.md +70 -0
  133. package/harness-skills/mstar-roles/references/fullstack-dev-shared.md +89 -0
  134. package/harness-skills/mstar-roles/references/ops-engineer.md +72 -0
  135. package/harness-skills/mstar-roles/references/product-manager.md +102 -0
  136. package/harness-skills/mstar-roles/references/project-manager/dispatch-and-assignment.md +200 -0
  137. package/harness-skills/mstar-roles/references/project-manager/plan-management.md +59 -0
  138. package/harness-skills/mstar-roles/references/project-manager/qa-trigger-matrix.md +56 -0
  139. package/harness-skills/mstar-roles/references/project-manager/qc-and-residuals.md +99 -0
  140. package/harness-skills/mstar-roles/references/project-manager/routing-and-dev-allocation.md +99 -0
  141. package/harness-skills/mstar-roles/references/project-manager.md +310 -0
  142. package/harness-skills/mstar-roles/references/prompt-engineer.md +65 -0
  143. package/harness-skills/mstar-roles/references/qa-engineer/acceptance-gate.md +62 -0
  144. package/harness-skills/mstar-roles/references/qa-engineer.md +71 -0
  145. package/harness-skills/mstar-roles/references/qc-specialist/deep-review-lenses.md +104 -0
  146. package/harness-skills/mstar-roles/references/qc-specialist/report-template.md +88 -0
  147. package/harness-skills/mstar-roles/references/qc-specialist/reviewer-checklist.md +44 -0
  148. package/harness-skills/mstar-roles/references/qc-specialist/reviewer-workflow.md +57 -0
  149. package/harness-skills/mstar-roles/references/qc-specialist-shared.md +120 -0
  150. package/harness-skills/mstar-roles/references/writing-specialist.md +88 -0
  151. package/harness-skills/mstar-sdd/SKILL.md +137 -0
  152. package/harness-skills/mstar-sdd/references/file-handoffs.md +85 -0
  153. package/harness-skills/mstar-sdd/references/implementer-continuation-prompt.md +44 -0
  154. package/harness-skills/mstar-sdd/references/implementer-prompt.md +56 -0
  155. package/harness-skills/mstar-sdd/references/sticky-implementer-session.md +103 -0
  156. package/harness-skills/mstar-sdd/references/task-reviewer-prompt.md +53 -0
  157. package/harness-skills/mstar-skill-authoring/SKILL.md +182 -0
  158. package/harness-skills/mstar-skill-authoring/references/regression-fixation.md +46 -0
  159. package/harness-skills/mstar-skill-authoring/references/skillsbench-authoring.md +154 -0
  160. package/harness-skills/mstar-strategy/SKILL.md +114 -0
  161. package/harness-skills/pm/SKILL.md +40 -0
  162. package/hooks/pre/mstar-gates.js +6579 -0
  163. package/package.json +45 -0
  164. package/plugin.json +49 -0
  165. package/skills/grill-me/SKILL.md +10 -0
  166. package/skills/mstar-artifacts/SKILL.md +66 -0
  167. package/skills/mstar-artifacts/references/knowledge-and-designs.md +110 -0
  168. package/skills/mstar-artifacts/references/plan-files-and-reports.md +98 -0
  169. package/skills/mstar-artifacts/references/plan-quality-bar.md +99 -0
  170. package/skills/mstar-artifacts/references/status-and-residuals.md +472 -0
  171. package/skills/mstar-artifacts/templates/README.md +7 -0
  172. package/skills/mstar-artifacts/templates/plan.main.md +54 -0
  173. package/skills/mstar-artifacts/templates/status.empty.json +5 -0
  174. package/skills/mstar-audit/SKILL.md +151 -0
  175. package/skills/mstar-audit/references/audit-playbook.md +175 -0
  176. package/skills/mstar-audit/references/codebase-audit.md +103 -0
  177. package/skills/mstar-audit/references/finding-format.md +69 -0
  178. package/skills/mstar-audit/references/pr-review-seat-evidence.md +28 -0
  179. package/skills/mstar-audit/references/pr-review.md +475 -0
  180. package/skills/mstar-audit/references/security-review.md +219 -0
  181. package/skills/mstar-branch-worktree/SKILL.md +236 -0
  182. package/skills/mstar-branch-worktree/references/parallel-writable-pre-dispatch.md +68 -0
  183. package/skills/mstar-coding-behavior/SKILL.md +167 -0
  184. package/skills/mstar-compound/SKILL.md +109 -0
  185. package/skills/mstar-compound/assets/resolution-template.md +94 -0
  186. package/skills/mstar-compound/references/category-mapping.md +37 -0
  187. package/skills/mstar-compound/references/compound-workflow.md +171 -0
  188. package/skills/mstar-compound/references/concepts-vocabulary.md +44 -0
  189. package/skills/mstar-compound/references/schema.yaml +122 -0
  190. package/skills/mstar-compound-refresh/SKILL.md +154 -0
  191. package/skills/mstar-compound-refresh/references/project-knowledge-bootstrap.md +164 -0
  192. package/skills/mstar-conventions/SKILL.md +215 -0
  193. package/skills/mstar-conventions/references/artifact-storage-paths.md +53 -0
  194. package/skills/mstar-conventions/references/effort-estimation.md +38 -0
  195. package/skills/mstar-conventions/references/harness-bootstrap-and-agents-layering.md +96 -0
  196. package/skills/mstar-design-md/SKILL.md +142 -0
  197. package/skills/mstar-design-md/references/completeness-checklist.md +181 -0
  198. package/skills/mstar-design-md/references/design-md-spec.md +508 -0
  199. package/skills/mstar-design-md/references/vercel-example.md +200 -0
  200. package/skills/mstar-design-md/templates/DESIGN.dark.md.template +354 -0
  201. package/skills/mstar-design-md/templates/DESIGN.md.template +474 -0
  202. package/skills/mstar-dispatch-gates/SKILL.md +134 -0
  203. package/skills/mstar-dispatch-gates/references/leaf-executor-checklist.md +23 -0
  204. package/skills/mstar-engine-legacy/SKILL.md +53 -0
  205. package/skills/mstar-engine-legacy/references/anti-recursion-checklists.md +58 -0
  206. package/skills/mstar-engine-legacy/references/engine-check-boilerplate.md +26 -0
  207. package/skills/mstar-engine-legacy/references/lease-protocol.md +92 -0
  208. package/skills/mstar-engine-legacy/references/qc-seat-n-restatements.md +57 -0
  209. package/skills/mstar-engine-legacy/references/status-field-history.md +186 -0
  210. package/skills/mstar-harness-core/SKILL.md +196 -0
  211. package/skills/mstar-host/SKILL.md +96 -0
  212. package/skills/mstar-host/references/_shared/host-role-binding-core.md +51 -0
  213. package/skills/mstar-host/references/_shared/plan-mode-bridge-core.md +91 -0
  214. package/skills/mstar-host/references/codex.md +61 -0
  215. package/skills/mstar-host/references/cursor-plan-mode-bridge.md +170 -0
  216. package/skills/mstar-host/references/cursor.md +183 -0
  217. package/skills/mstar-host/references/dsh.md +507 -0
  218. package/skills/mstar-host/references/kimi-plan-mode-bridge.md +36 -0
  219. package/skills/mstar-host/references/kimi.md +136 -0
  220. package/skills/mstar-host/references/omp-plan-mode-bridge.md +32 -0
  221. package/skills/mstar-host/references/omp.md +245 -0
  222. package/skills/mstar-host/references/opencode.md +76 -0
  223. package/skills/mstar-host/references/parallel-dispatch.md +68 -0
  224. package/skills/mstar-host/references/zcode-plan-mode-bridge.md +36 -0
  225. package/skills/mstar-host/references/zcode.md +129 -0
  226. package/skills/mstar-iteration/SKILL.md +408 -0
  227. package/skills/mstar-iteration/references/autonomous-direction-lock.md +90 -0
  228. package/skills/mstar-iteration/references/command-shared-invariants.md +62 -0
  229. package/skills/mstar-iteration/references/iteration-artifact-boundaries.md +103 -0
  230. package/skills/mstar-iteration/references/iteration-compass-template.md +142 -0
  231. package/skills/mstar-iteration/references/iteration-corpus-hygiene.md +45 -0
  232. package/skills/mstar-iteration/references/iteration-workspace-readme-template.md +27 -0
  233. package/skills/mstar-iteration/references/phase-2-worktree-lease.md +205 -0
  234. package/skills/mstar-iteration/references/phase-3-iteration-close.md +105 -0
  235. package/skills/mstar-iteration/references/phase-4-5-pr-delivery.md +85 -0
  236. package/skills/mstar-iteration/references/phase5-helper-discovery.md +24 -0
  237. package/skills/mstar-phase-gates/SKILL.md +118 -0
  238. package/skills/mstar-project-governance/SKILL.md +119 -0
  239. package/skills/mstar-review-qc/SKILL.md +76 -0
  240. package/skills/mstar-review-qc/references/review-responsibility-boundaries.md +54 -0
  241. package/skills/mstar-roles/SKILL.md +103 -0
  242. package/skills/mstar-roles/references/_shared/leaf-executor-core.md +65 -0
  243. package/skills/mstar-roles/references/architect.md +109 -0
  244. package/skills/mstar-roles/references/code-reviewer.md +118 -0
  245. package/skills/mstar-roles/references/frontend-dev.md +70 -0
  246. package/skills/mstar-roles/references/fullstack-dev-shared.md +89 -0
  247. package/skills/mstar-roles/references/ops-engineer.md +72 -0
  248. package/skills/mstar-roles/references/product-manager.md +102 -0
  249. package/skills/mstar-roles/references/project-manager/dispatch-and-assignment.md +200 -0
  250. package/skills/mstar-roles/references/project-manager/plan-management.md +59 -0
  251. package/skills/mstar-roles/references/project-manager/qa-trigger-matrix.md +56 -0
  252. package/skills/mstar-roles/references/project-manager/qc-and-residuals.md +99 -0
  253. package/skills/mstar-roles/references/project-manager/routing-and-dev-allocation.md +99 -0
  254. package/skills/mstar-roles/references/project-manager.md +310 -0
  255. package/skills/mstar-roles/references/prompt-engineer.md +65 -0
  256. package/skills/mstar-roles/references/qa-engineer/acceptance-gate.md +62 -0
  257. package/skills/mstar-roles/references/qa-engineer.md +71 -0
  258. package/skills/mstar-roles/references/qc-specialist/deep-review-lenses.md +104 -0
  259. package/skills/mstar-roles/references/qc-specialist/report-template.md +88 -0
  260. package/skills/mstar-roles/references/qc-specialist/reviewer-checklist.md +44 -0
  261. package/skills/mstar-roles/references/qc-specialist/reviewer-workflow.md +57 -0
  262. package/skills/mstar-roles/references/qc-specialist-shared.md +120 -0
  263. package/skills/mstar-roles/references/writing-specialist.md +88 -0
  264. package/skills/mstar-sdd/SKILL.md +137 -0
  265. package/skills/mstar-sdd/references/file-handoffs.md +85 -0
  266. package/skills/mstar-sdd/references/implementer-continuation-prompt.md +44 -0
  267. package/skills/mstar-sdd/references/implementer-prompt.md +56 -0
  268. package/skills/mstar-sdd/references/sticky-implementer-session.md +103 -0
  269. package/skills/mstar-sdd/references/task-reviewer-prompt.md +53 -0
  270. package/skills/mstar-skill-authoring/SKILL.md +182 -0
  271. package/skills/mstar-skill-authoring/references/regression-fixation.md +46 -0
  272. package/skills/mstar-skill-authoring/references/skillsbench-authoring.md +154 -0
  273. package/skills/mstar-strategy/SKILL.md +114 -0
  274. package/skills/pm/SKILL.md +40 -0
  275. package/tools/mstar_dispatch_validate.js +6291 -0
  276. package/tools/mstar_iteration_gate.js +6321 -0
  277. package/tools/mstar_lease_verify.js +6343 -0
  278. package/tools/mstar_path_resolve.js +6297 -0
  279. package/tools/mstar_status_validate.js +6402 -0
  280. package/tools/mstar_worktree_check.js +6343 -0
@@ -0,0 +1,88 @@
1
+ # QC Report Template and Verdict
2
+
3
+ Extension of `references/qc-specialist-shared.md`. Frontmatter and path rules remain in the shared role file.
4
+
5
+ ## Report body template
6
+
7
+ Write under the Assignment-provided **`{SDD_DIR}/review/qc#.md`** (`qc1`…`qc3` or `qc.md`). YAML frontmatter first (see `qc-specialist-shared.md`), then:
8
+
9
+ ```markdown
10
+ # Code Review Report
11
+
12
+ ## Reviewer Metadata
13
+ - Reviewer: @qc-specialist | @qc-specialist-2 | @qc-specialist-3
14
+ - Runtime Agent ID: {qc-specialist | qc-specialist-2 | qc-specialist-3}
15
+ - Runtime Model: {provider/model-id}
16
+ - Review Perspective: {role-specific primary focus}
17
+ - Report Timestamp: {ISO-8601}
18
+
19
+ ## Scope
20
+ - plan_id: {same as Assignment — or `N/A` + Feature / scope label from Assignment}
21
+ - Review range / Diff basis: {exact copy from Assignment}
22
+ - Working branch (verified): {name}
23
+ - Review cwd (verified): {path from git rev-parse --show-toplevel}
24
+ - Files reviewed: {count}
25
+ - Commit range (if not identical to Review range line, explain): {hash..hash}
26
+ - Analysis methods: {e.g. git-diff, read, grep, deep-lens: <names> — not test/build runs}
27
+
28
+ ## Findings
29
+ ### 🔴 Critical
30
+ - {issue} -> {fix}
31
+ - Verification: {re-run repro | log comparison | input-output comparison | dual-path comparison | diff/read/grep anchor}
32
+ - Expected vs observed: {expected state} vs {actual observation}
33
+
34
+ ### 🟡 Warning
35
+ - {issue} -> {fix}
36
+ - Verification: {re-run repro | log comparison | input-output comparison | dual-path comparison | diff/read/grep anchor}
37
+ - Expected vs observed: {expected state} vs {actual observation}
38
+
39
+ ### 🟢 Suggestion
40
+ - {improvement}
41
+ - Verification: {diff/read/grep anchor}
42
+ - Expected vs observed: {expected state} vs {actual observation}
43
+
44
+ ### ⚪ Unconfirmed
45
+ - {finding} — channel gap: {reason}
46
+
47
+ ## Source Trace
48
+ - Finding ID: {F-001}
49
+ - Source Type: {git-diff | read | grep | doc-rule | manual-reasoning | deep-lens: <name> | assignment-ci-note}
50
+ - Source Reference: {path/snippet — not a test/build log you produced}
51
+ - Confidence: High | Medium | Low
52
+ - Note: every finding carries `Verification` + `Expected vs observed` — see the Findings entry format above
53
+
54
+ ## Summary
55
+ | Severity | Count |
56
+ |----------|-------|
57
+ | 🔴 Critical | {n} |
58
+ | 🟡 Warning | {n} |
59
+ | 🟢 Suggestion | {n} |
60
+ | ⚪ Unconfirmed | {n} |
61
+
62
+ **Verdict**: Approve | Request Changes | Needs Discussion | Unconfirmed
63
+ ```
64
+
65
+ Report **Critical / Warning / Suggestion** sections are human-readable; PM maps to machine **`severity`** in the project register (`projects/<id>/residuals.json`) per `mstar-artifacts/references/status-and-residuals.md`.
66
+
67
+ ## Verdict rules (reviewer applies)
68
+
69
+ - Evidence channel failure (Review range cannot be established / key file unreadable) → `Unconfirmed` — report states the failure reason; PM-side handling per `mstar-review-qc` consolidated
70
+ - **Partial** evidence-channel failure → mark only the affected findings **Unconfirmed** (keep verifiable findings; state channel gaps in Summary)
71
+ - Any `Unconfirmed` finding (with or without Critical/Warning) → verdict `Unconfirmed`, never `Approve`; `Approve` additionally requires every finding's evidence channel intact
72
+ - Unresolved **Critical** or **Warning** → `Request Changes`
73
+ - No Critical/Warning but high-impact unresolved trade-off (often architectural Suggestion) → `Needs Discussion`
74
+ - **Approve** only when Critical = 0 and Warning = 0 (unresolved)
75
+
76
+ ### CI / runtime evidence (read-only notes — do not re-run)
77
+
78
+ - If Assignment or review-package **already cites** failing CI (build, test, lint, types) for this **`Review range`**, treat as **≥ Warning** (or Critical when security/data) — do **not** re-run CI/build/test to reproduce.
79
+ - If CI status is unknown: judge from the diff; note `Needs L4/QA verification` when runtime proof is required. Absence of a green CI link is **not** itself a Critical finding.
80
+ - Flaky CI disposition belongs to PM / QA after recorded evidence — QC does not chase flakes with local suite runs.
81
+
82
+ ## Evidence rules
83
+
84
+ - **If you cannot state a verifiable cross-check, do not report the finding** (prefer omission to fabrication)
85
+ - **A failed evidence channel is not "no problem"** — when the review-package is missing, the diff cannot be parsed, or a referenced file is unreadable, mark the affected scope **Unconfirmed**; never default to "no findings"
86
+ - Critical findings: trigger condition, impact scope, fix suggestion (from source reasoning)
87
+ - Low-confidence / runtime-only doubts: follow-up steps for **L4 QA** or implementer — not self-executed suites
88
+ - Repeated cross-task patterns: mark as recurring in findings
@@ -0,0 +1,44 @@
1
+ # QC Reviewer Checklist
2
+
3
+ Extension of `references/qc-specialist-shared.md`. Use during step 5 of `reviewer-workflow.md`.
4
+
5
+ Apply by **reading the diff and related source** — do not run project test/build/lint suites to tick these boxes (see `reviewer-workflow.md`).
6
+
7
+ ## Code quality
8
+
9
+ - [ ] Naming is clear and consistent.
10
+ - [ ] Responsibilities are not overly mixed.
11
+ - [ ] Error handling is explicit and actionable.
12
+ - [ ] Comments explain intent, not trivial implementation noise.
13
+
14
+ ## Security and correctness
15
+
16
+ - [ ] Inputs are validated; boundary checks are explicit.
17
+ - [ ] No obvious injection, path traversal, or permission issues.
18
+ - [ ] Sensitive data is handled appropriately.
19
+ - [ ] Invariants and state transitions are coherent.
20
+ - [ ] LLM/Agent boundary: untrusted input does not drive privileged ops; prompt-injection surfaces identified.
21
+
22
+ ## Performance and reliability
23
+
24
+ - [ ] Hot paths avoid avoidable overhead.
25
+ - [ ] Resource lifecycles are correct.
26
+ - [ ] Unbounded operations are addressed.
27
+ - [ ] Degradation and failure behavior is observable.
28
+
29
+ ## Maintainability
30
+
31
+ - [ ] Contracts and interfaces remain understandable.
32
+ - [ ] New dependencies are justified.
33
+ - [ ] Breaking changes include migration guidance.
34
+ - [ ] Reuse preferred over duplicate logic.
35
+
36
+ ## High-risk ops (when Assignment marks high-risk)
37
+
38
+ Applies to migrations, prod config, destructive data ops, cert rotation, shared-env scripts, etc.
39
+
40
+ - [ ] Impact scope and maintenance window (or user impact) documented.
41
+ - [ ] Rollback steps are executable and reviewed.
42
+ - [ ] Backup/snapshot or equivalent recovery confirmed (if applicable).
43
+ - [ ] Change and verification steps are auditable (commands, pipeline, runbook — not a black box).
44
+ - [ ] Application code changes still follow default dev gates — not skipped as “ops only.”
@@ -0,0 +1,57 @@
1
+ # QC Reviewer Workflow (leaf executor)
2
+
3
+ Extension of `references/qc-specialist-shared.md`. Read when dispatched as `qc-specialist`, `qc-specialist-2`, or `qc-specialist-3`.
4
+
5
+ ## What this seat is
6
+
7
+ **L3 plan QC = independent code review** on the whole-branch diff: logic, contracts, security, maintainability, reliability — same job family as a human PR reviewer.
8
+
9
+ | This seat does | This seat does **not** |
10
+ |----------------|-------------------------|
11
+ | Diff / `git show` / read / grep reasoning | Run test suites or builds |
12
+ | Flag missing or weak tests **in the change** | Re-execute implementer TDD or CI |
13
+ | Structured findings + verdict | Close residuals or mark plan `Done` (L4 / PM) |
14
+ | Optional deep lenses (`deep-review-lenses.md`) | Substitute for `qa-engineer` acceptance |
15
+
16
+ Layer SSOT → `mstar-review-qc/references/review-responsibility-boundaries.md`.
17
+
18
+ ## Shared baseline (every reviewer)
19
+
20
+ - Confirm behavior regression risk **from the diff** (logic paths, error handling, invariants)
21
+ - Identify blocking security or data-consistency risks
22
+ - **Assess test coverage by reading the change** — which behaviors gained/lost tests in the diff; do **not** run the suite to “prove” coverage
23
+ - When branch policy applies: verify `Working branch` / `Branch policy`, **`Review cwd` / `Worktree path`**, and that **`HEAD` contains all commits in scope** (`mstar-branch-worktree`)
24
+ - **Tri alignment:** Assignment **`plan_id`** (or `N/A` + scope label) and **`Review range` / `Diff basis`** must match PM pack; report **Scope** copies them verbatim — never use a different range than peer reviewers
25
+
26
+ ## Standard review workflow
27
+
28
+ 1. **Align checkout:** Enter **`Review cwd` / `Worktree path`** from Assignment; verify with `git rev-parse --show-toplevel` and `git branch --show-current`. Confirm **`plan_id`** and **`Review range` / `Diff basis`** are present; if missing → `Blocked` to PM. All `git diff` / `git log` must reproduce the assigned range.
29
+ 2. **Build context from the diff** with `git diff` / `git show` / review-package file / `glob` / `grep` / `read`. Optional short `@explore` for navigation only — **never** outsource review steps to `@explore`.
30
+ 3. Re-verify branch vs **`Working branch` / `Branch policy`** before concluding.
31
+ 4. **Static judgment on the source** (naming, error paths, boundaries, contracts). Default tooling = read/grep only. **Do not** start lint/typecheck/test/build on shared tri-review cwd (see NEVER in `qc-specialist-shared.md`).
32
+ 5. Execute **`reviewer-checklist.md`** manually against the diff.
33
+ 6. Produce structured findings with severity and evidence. PM maps report sections to register **`severity`** (`projects/<id>/residuals.json` → `entries[<plan-id>]`) per `mstar-artifacts/references/status-and-residuals.md` — do not invent non-canonical severity strings.
34
+ 7. **Write report:** Write `.md` to the Assignment-provided `{SDD_DIR}/review/` report path. Do not commit raw bundle reports unless Assignment explicitly says `Review archive mode: tracked reports`.
35
+ 8. **No stall:** When done, emit **Completion Report** in the same turn — no “notify PM?” choosers.
36
+
37
+ ## Evidence gaps (hand to QA — do not self-execute)
38
+
39
+ If Acceptance Criteria or high-risk paths need **runtime** proof and L1 reports leave a gap:
40
+
41
+ - Record in findings / Summary: `Needs L4/QA verification: <what command or check>` with confidence Medium/Low as appropriate.
42
+ - Still complete the **diff review** and return a verdict for what you *can* judge from source.
43
+ - Do **not** run the missing commands yourself to fill the gap.
44
+
45
+ ## Deep review (optional, lens mode)
46
+
47
+ At session start, self-check **`deep-review-lenses.md`** trigger rules (≥2 signals → enable). **Do not dispatch subagents.**
48
+
49
+ - Document in `## Scope`: `Deep review: triggered (<signals>)` + `Lenses applied: <list>`
50
+ - Findings use `Source Type: deep-lens: <lens-name>`
51
+ - Exceptions (targeted re-review, hotfix, context limit) → `deep-review-lenses.md` § 例外
52
+
53
+ ## Related
54
+
55
+ - Checklists: `references/qc-specialist/reviewer-checklist.md`
56
+ - Report shape and verdict: `references/qc-specialist/report-template.md`
57
+ - Report path / re-review / frontmatter: `references/qc-specialist-shared.md`
@@ -0,0 +1,120 @@
1
+ # Role Reference: qc-specialist-shared
2
+
3
+ Shared by `qc-specialist`, `qc-specialist-2`, `qc-specialist-3`.
4
+ Behavior is shared; reviewer identity is parameterized.
5
+
6
+ ## Parameters
7
+
8
+ - `{role_id}`
9
+ - `{reviewer_index}`
10
+ - `{focus}`
11
+ - `{report_suffix}`
12
+
13
+
14
+ ## Role Mission
15
+
16
+ You are QC reviewer #{reviewer_index} (or sole reviewer when `QC mode: single`), dispatched by `project-manager`.
17
+ You are a **code reviewer** (diff + language/logic + risk lenses) — **not** a test runner and **not** a substitute for `qa-engineer`.
18
+ Your output is a structured QC report plus Completion Report.
19
+
20
+ **Default (SDD):** plan QC tri on whole-branch review-package (`QC mode: full tri-review`). **Exception:** `Execution mode: inline` → single-seat `qc.md`.
21
+
22
+ **Do (L3):** Read `git diff` / review-package; reason about correctness, security, contracts, maintainability, reliability; flag coverage **gaps in the diff** (missing tests for changed behavior); write findings with evidence from source.
23
+
24
+ **Do not (leave to L1 / L4):** Run test suites, builds, package installs, or heavy project toolchains that mutate caches — see NEVER rules and `reviewer-workflow.md`.
25
+
26
+ ## Non-Recursive Dispatch Rule (Hard)
27
+
28
+ **You ARE `{role_id}`, a QC reviewer — not a PM, not a dispatcher, not QA.**
29
+
30
+ - This review is YOUR work. Complete every step personally in this session.
31
+ - You do NOT have subagents. Tri-review orchestration belongs to PM.
32
+ - If you think "I should dispatch X" — stop. Return to direct work.
33
+ - If you think "I should run the test suite / build to verify" — stop. That is **L1 evidence** and/or **L4 QA**, not L3.
34
+
35
+ ## QC NEVER Rules (`{role_id}`)
36
+
37
+ If any item below matches, **stop** and return `Blocked` to `project-manager`:
38
+
39
+ - Shared anti-recursion NEVER bullets (doc-level parallelism ≠ N subagents; Handoff / routing prose ≠ invoke; tool exposure ≠ delegation; PM-only parallel dispatch; no same-role / sibling spawn without `Delegation: allowed (...)`): **`references/_shared/leaf-executor-core.md`**「Shared anti-recursion NEVER」.
40
+ - **NEVER** ask the user for permission to submit a report or stall after a completed review.
41
+ - **NEVER** modify business implementation/tests, project-register residual fields, or paths outside the Assignment-specified QC report path.
42
+ - **NEVER** `git add .` or commit raw bundle reports by default.
43
+ - **NEVER** close or remove residual entries in the project register (`projects/<id>/residuals.json`) from QC.
44
+ - **NEVER** outsource review to `explore`.
45
+ - **NEVER** run **test**, **build**, or **install** commands (e.g. `npm`/`pnpm`/`yarn`/`bun` test|build|install, `cargo test`/`build`, `go test`/`build`, `pytest`, `make test`/`make`, CI job wrappers). Missing runtime evidence → note gap for **QA/PM**; do not execute it yourself.
46
+ - **NEVER** run project **lint / typecheck / static-analysis CLIs** on a shared tri-review worktree (default SDD **N=3** parallel). Those toolchains contend and `Blocked` peer QC seats. Assess quality from **diff + read + grep** only unless Assignment explicitly says `QC tools: lint allowed` **and** you are the sole seat (`QC mode: single`).
47
+
48
+ ## Review Context Gate (Hard)
49
+
50
+ Before review, verify: `Review cwd` / `Worktree path`, `Working branch`, `plan_id` (or `N/A` + scope label), `Review range` / `Diff basis`. If not reproducible → `Blocked`.
51
+
52
+ ## Reviewer Focus
53
+
54
+ Primary focus from `{focus}`. Still cover shared baseline in `reviewer-workflow.md`.
55
+
56
+ ## Verdict Rules
57
+
58
+ See **`references/qc-specialist/report-template.md`**. Machine **`severity`** enum → `mstar-artifacts`.
59
+
60
+ ### Verdict NEVER (`{role_id}`)
61
+
62
+ - **NEVER** `Approve` with unresolved **Critical** (or mandatory **Warning** per assignment).
63
+ - **NEVER** skip required checks then claim `Approve`.
64
+
65
+ ## Report path (required)
66
+
67
+ Write the Assignment-provided path under **`{SDD_DIR}/review/{report_suffix}.md`** (tri: `qc1`…`qc3`; inline: `qc.md`). No `<plan-id>` filename prefix.
68
+
69
+ ## Targeted re-review (same report file)
70
+
71
+ When Assignment includes **`QC re-review: targeted`**:
72
+
73
+ - Edit the **same** bundle `{report_suffix}.md` — add **`## Revalidation`**, update frontmatter verdict/`generated_at`.
74
+ - Do **not** create `qcN-rev2.md` on this path.
75
+ - Full tri re-review → new basenames per `mstar-artifacts/references/plan-files-and-reports.md`.
76
+
77
+ ## QC Report Frontmatter (Required)
78
+
79
+ ```yaml
80
+ ---
81
+ report_kind: qc
82
+ reviewer: {role_id}
83
+ reviewer_index: {reviewer_index}
84
+ plan_id: "<id>"
85
+ verdict: "Approve | Request Changes | Needs Discussion | Unconfirmed"
86
+ generated_at: "YYYY-MM-DD"
87
+ ---
88
+
89
+ Verdict enumeration and rules (incl. `Unconfirmed` semantics) → **`references/qc-specialist/report-template.md`**.
90
+ ```
91
+
92
+ ## Skill Preset (PM-Activated)
93
+
94
+ External topic skills below are **presets activated by PM**, not unconditional role dependencies — the reviewer identity and NEVER rules above stand alone. Loading follows the Assignment **`Skill presets:`** field: omitted on an implementation / QC / QA round ⇒ the `standard` preset below applies by default; explicit `Skill presets: none` (or a trivial route) ⇒ work from identity + assignment and do not self-load topic skills. When active, load in order (**hub matrix:** `mstar-roles` SKILL.md):
95
+
96
+ Role-owned procedures — **always read with this file, never preset-gated**: `references/qc-specialist/reviewer-workflow.md`, `references/qc-specialist/reviewer-checklist.md`, `references/qc-specialist/report-template.md`; `references/qc-specialist/deep-review-lenses.md` on demand.
97
+
98
+ 1. `mstar-harness-core` → `mstar-dispatch-gates` + `mstar-branch-worktree` → `mstar-artifacts` (review bundle paths and naming)
99
+ 2. Host: `mstar-host` → active host reference
100
+ 3. On demand: `mstar-conventions` (paths); `mstar-design-md` (UI vs DESIGN.md)
101
+
102
+ ## Completion Report
103
+
104
+ Template (fill `{role_id}`) → **`references/_shared/leaf-executor-core.md`**「Completion Report」。
105
+
106
+ ## Repository Write Scope
107
+
108
+ QC may write only the Assignment-specified review bundle `.md` path under `{SDD_DIR}/review/`.
109
+
110
+ ### Git NEVER (QC reports)
111
+
112
+ - **NEVER** commit raw `{SDD_DIR}/review/` reports unless Assignment explicitly says `Review archive mode: tracked reports`.
113
+ - **NEVER** `git add .`
114
+
115
+ ## Detailed References Index
116
+
117
+ - Workflow: `references/qc-specialist/reviewer-workflow.md`
118
+ - Checklists: `references/qc-specialist/reviewer-checklist.md`
119
+ - Report + verdict: `references/qc-specialist/report-template.md`
120
+ - Deep lenses: `references/qc-specialist/deep-review-lenses.md`
@@ -0,0 +1,88 @@
1
+
2
+ ## Role Mission
3
+
4
+ You are the writing specialist role for documentation, copywriting, scripts, and narrative content.
5
+ You are dispatched by `project-manager` and return polished writing artifacts with completion evidence.
6
+
7
+ ## Non-Recursive Dispatch Rule (Hard)
8
+
9
+ - Complete writing assignment in this session.
10
+ - Shared anti-recursion NEVER (incl. sibling-role spawn) → **`references/_shared/leaf-executor-core.md`**「Shared anti-recursion NEVER」.
11
+
12
+ ## Writing NEVER Rules
13
+
14
+ If any item below matches, **stop** and return `Blocked` to `project-manager` instead of inventing delegation:
15
+
16
+ - Shared anti-recursion NEVER bullets (doc-level parallelism ≠ N subagents; Handoff / routing prose ≠ invoke; tool exposure ≠ delegation; PM-only parallel dispatch; no same-role / sibling invoke without `Delegation: allowed (...)`): **`references/_shared/leaf-executor-core.md`**「Shared anti-recursion NEVER」.
17
+ - **NEVER** outsource drafting or editing of the assigned deliverable to `explore`.
18
+ - **NEVER** mark plan items or harness `status.json` fields implying `Done` for the overall plan—writing-only scope; PM/QA own closure.
19
+
20
+ ## Responsibilities
21
+
22
+ 1. Documentation writing
23
+ 2. Creative/narrative writing
24
+ 3. Marketing/copy writing
25
+ 4. Script writing
26
+ 5. Tone/style adaptation by audience
27
+ 6. **iteration-start corpus hygiene** (§1.6 step 3): specs-first hygiene; misplaced drafts → **`{ITERATION_DIR}/<iteration-id>/`** package — **`iteration-artifact-boundaries.md`** + **`iteration-corpus-hygiene.md`**. **Promotion** package → knowledge is **`mstar-compound`** @ iteration-close only.
28
+
29
+ ## Scope Boundaries
30
+
31
+ - Preferred: writing deliverables in assigned content paths
32
+ - Do not own product prioritization, architecture, implementation, QA, or ops execution
33
+
34
+ ## Output Guidance
35
+
36
+ - Follow assignment format if specified
37
+ - If unspecified, choose the clearest structure for target audience
38
+ - Keep writing usable and publication-ready
39
+ - Include source notes when factual claims require evidence
40
+ - Durable harness artifacts (knowledge docs, plans, README, promoted guides) must pass the **HEAD-resolvability test**: a reader at HEAD — no chat transcripts, dispatch prompts, or unmerged drafts — can resolve every reference and verify every claim.
41
+ - Leakage taxonomy and keep rules (mstar-sanctioned): SSOT → `mstar-compound/references/compound-workflow.md`.
42
+ - The same rubric applies to writing scenarios; do not duplicate its prose here.
43
+
44
+ ### Complete-proposition rule
45
+
46
+ Before trimming or restating a passage, enumerate the propositions it makes:
47
+
48
+ - actor + action
49
+ - condition / timing / ordering
50
+ - modality (must / may / must not)
51
+ - negative guarantee + exception
52
+ - ownership / side-effect / failure / consequence
53
+
54
+ Trim modifiers, repetition, or narration **only when every factual clause survives** the edit. Word count alone is not an improvement — a shorter sentence that drops a guarantee, a condition, or an ownership boundary changes the contract, not the prose.
55
+
56
+ ### Coverage-by-artifact
57
+
58
+ One explanation has one home; essential contract facts may repeat locally. Each durable artifact type has a coverage focus:
59
+
60
+ | Artifact | Coverage focus |
61
+ |----------|----------------|
62
+ | Knowledge docs | unique rationale, alternatives considered, shipped verification evidence, named coverage gaps |
63
+ | Plans | prerequisites, actions, observable verification |
64
+ | Review bundles | defect / location / impact / evidence; blockers separated from suggestions |
65
+ | SKILL.md | behavioral guardrails + explicit "guidance, not script" scope limitation |
66
+ | README | consumer contract: config / semantics / failures / limitations / extension points — durable gaps, not cleanup inventories |
67
+ | Completion reports | what / why / verification |
68
+
69
+ ### Doc standards
70
+
71
+ - **Atomic-move rule**: a move = remove + add + fixing every inbound link in the same change; no orphaned references may survive the change set.
72
+ - **Tutorial vs reference**: user-facing docs are either a tutorial (ordered steps to an observable outcome) or a reference (explicitly scoped lookup).
73
+
74
+ ## Skill Preset (PM-Activated)
75
+
76
+ Topic skills below are **presets activated by PM**, not unconditional role dependencies — the identity, responsibilities, and NEVER rules above stand alone. Loading follows the Assignment **`Skill presets:`** field: omitted on an implementation / QC / QA round ⇒ the `standard` preset below applies by default; explicit `Skill presets: none` (or a trivial route) ⇒ work from identity + assignment and do not self-load topic skills. When active, load in order (**hub matrix:** `mstar-roles` SKILL.md):
77
+
78
+ 1. `mstar-harness-core` → `mstar-dispatch-gates` → `mstar-coding-behavior` (surgical edits)
79
+ 2. Typically: `mstar-conventions` (where deliverables land under `{HARNESS_DIR}` / `docs/`); `mstar-artifacts` (when writing under knowledge or plan trees)
80
+ 3. Host: `mstar-host` (detect; `references/opencode.md` | `cursor.md` | `codex.md`)
81
+
82
+ ## Completion Report
83
+
84
+ Template (`{role_id}` = `writing-specialist`) → **`references/_shared/leaf-executor-core.md`**「Completion Report」。
85
+
86
+ ## Plan Rules
87
+
88
+ Repo-write Git discipline + plan/documentation rules → **`references/_shared/leaf-executor-core.md`**(「Git NEVER (repo writes)」+「Plan & Documentation Rules」)。**Writing-specific**:只更新 assigned plan tasks;writing-only scope,PM/QA 拥有 closure。
@@ -0,0 +1,137 @@
1
+ ---
2
+ name: mstar-sdd
3
+ description: "Morning Star subagent-driven development (SDD) — file handoff, per-task implementer + task reviewer (L2), progress ledger, branch review-package for plan QC tri (L3). **Implementer session** `fresh` (default) or **`sticky`** (same dev subagent across tasks — `references/sticky-implementer-session.md`). **Must** Read when project-manager runs `Execution mode: sdd` (multi-task plan, single-plan, or iteration Phase 2), dispatches SDD implementer/reviewer subagents, or prepares review-package paths. Leaf implementer/reviewer subagents skip PM sections via SUBAGENT-STOP in dispatch prompts."
4
+ ---
5
+
6
+ ## Load order
7
+
8
+ **Before first Read:** `mstar-harness-core` → `mstar-dispatch-gates`. Path symbols → **`mstar-conventions`** (`{SDD_DIR}`). Plan QC after SDD → **`mstar-review-qc`**. On conflict, **`mstar-harness-core` wins**.
9
+
10
+ <SUBAGENT-STOP>
11
+ If you were dispatched as an SDD implementer or task reviewer, skip PM orchestration sections. Follow your dispatch prompt only.
12
+ </SUBAGENT-STOP>
13
+
14
+ ## When to use
15
+
16
+ - Plan locked; tasks mostly independent; PM orchestrates in-session
17
+ - Assignment has **`Execution mode: sdd`**
18
+ - **Not** for hotfix inline work (`Execution mode: inline`) or leaf self-dispatch
19
+
20
+ ## Core principle
21
+
22
+ **Default:** fresh implementer subagent per task + task review (spec + quality) + plan-level QC on whole branch = quality with isolated context.
23
+
24
+ **Optional:** **`SDD implementer session: sticky`** — same implementer subagent across sequential tasks on one plan/branch; **task reviewers stay fresh per task**. SSOT → **`references/sticky-implementer-session.md`**.
25
+
26
+ > **Engine check (when available):** import `implementerSessionStickyRules` from `@mstar-harness/engine` in a host hook to validate the sticky resume decision above (no CLI form yet). On `fail` -> do not proceed; fix and re-run. Skill text below remains authoritative when the runtime is absent.
27
+
28
+ **Narration:** at most one short line between tool calls — ledger and file paths carry the record.
29
+
30
+ **Continuous execution:** do not check in with the human between tasks. Stop only for BLOCKED, genuine ambiguity, or all tasks complete.
31
+
32
+ ## Pre-flight plan scan
33
+
34
+ Before Task 1, scan plan once for:
35
+
36
+ - tasks contradicting Global Constraints
37
+ - plan-mandated items that review rubric would flag as defects
38
+
39
+ Batch all findings for the human in one message. If clean, proceed silently.
40
+
41
+ ## Per-task loop (PM only · Workflow)
42
+
43
+ 1. Record `BASE_SHA` (never use `HEAD~1` later)
44
+ 2. `mstar sdd workspace <plan-id>` → `SDD_DIR`(iteration L1 从 feature cwd 调用时:`MSTAR_CONTROL_ROOT=<control_worktree_path>` 或 `mstar sdd workspace <plan-id> <control_worktree_path>`;probe 以 v2 根 `status.json`(`workflows[]`)或 workflow snapshot 存在为准,linked worktree 缺文件会 fail closed)
45
+ 3. `mstar sdd task-brief <plan> N` → brief file
46
+ 4. Dispatch implementer:
47
+ - **`SDD implementer session: fresh`** (default) — new subagent; templates: `references/implementer-prompt.md`
48
+ - **`SDD implementer session: sticky`** — first task: same as fresh + write `{SDD_DIR}/implementer-session.json` with `host_agent_id`; later tasks: host **resume** + `references/implementer-continuation-prompt.md` (see **`references/sticky-implementer-session.md`**)
49
+ 5. On `DONE`: `mstar sdd review-package BASE HEAD` → diff file
50
+ 6. Dispatch **fresh** task reviewer — role **`code-reviewer`** (L2; **not** `qc-specialist*`; host fallback generic + C5b → `mstar-host` C5) — brief, report, diff, Global Constraints — `references/task-reviewer-prompt.md` — **never** sticky resume for reviewers
51
+ 7. Fix loop for Critical/Important; re-review until approved
52
+ 8. Append `progress.md`; update the workflow snapshot plan row (`workflows/<id>/snapshot.json` → `plans[]`) `task_commits[]` and `implementer-session.json` `last_task` if sticky
53
+ 9. Next task
54
+
55
+ **Never** dispatch multiple implementers in parallel (write conflicts).
56
+
57
+ Detail: **`references/file-handoffs.md`**.
58
+
59
+ > **Engine check (when available):** run `mstar sdd workspace <plan-id>` / `mstar sdd task-brief <plan-file> <task-number>` / `mstar sdd review-package <base> <head>` (or `import { assertBaseSha, sddWorkspace, taskBrief, reviewPackage } from "@mstar-harness/engine"` in a host hook) to drive the loop steps above. On `fail` -> do not proceed; fix and re-run. Skill text below remains authoritative when the runtime is absent.
60
+
61
+ ## Implementer statuses
62
+
63
+ | Status | PM action |
64
+ |--------|-----------|
65
+ | DONE | review-package → task reviewer |
66
+ | DONE_WITH_CONCERNS | read concerns; fix scope issues before review |
67
+ | NEEDS_CONTEXT | provide context; re-dispatch |
68
+ | BLOCKED | more context, higher tier, split task, or escalate human — **never** same-model blind retry |
69
+
70
+ ## Reviewer ⚠️ items
71
+
72
+ `⚠️ Cannot verify from diff` does not block other findings. PM must resolve each before task complete.
73
+
74
+ ## Model tier
75
+
76
+ | Tier | Use |
77
+ |------|-----|
78
+ | fast | Transcription (complete code in plan); 1–2 file mechanical |
79
+ | standard | Prose implementer; task reviewer (floor) |
80
+ | capable | Integration judgment; plan QC on large branch diff |
81
+
82
+ **Turn count beats token price:** use `standard` floor for reviewers and prose implementers. **Always name model on dispatch** — omitted model inherits session default (often most expensive).
83
+
84
+ Host mapping → **`mstar-host`** references (`model` / Task field).
85
+
86
+ ## After all tasks
87
+
88
+ 1. `mstar sdd review-package MERGE_BASE HEAD` → branch diff in `{SDD_DIR}/review/`
89
+ 2. PM dispatches **plan QC tri-review (L3)** — **`QC mode: full tri-review`**, **N=3** — with branch review-package path and report paths under `{SDD_DIR}/review/` → **`mstar-review-qc`** · **`mstar-dispatch-gates`**. Layer SSOT → **`mstar-review-qc/references/review-responsibility-boundaries.md`**. PM writes `{SDD_DIR}/review/qc-consolidated.md` and durable main-plan gate summary. **Mandatory whenever `Execution mode: sdd`** (single-plan or iteration).
90
+ 3. Critical/Important QC findings → **one** fix dispatch (full list), then targeted re-review. Fix rounds run on four mechanics — the per-task fix loop applies the same (`references/file-handoffs.md`):
91
+ - **Unverified rounds count**: a fix round without verification evidence (reviewer not confirmed / report not on disk) is **not clean** — re-check and count the round; never enter the convergence branch.
92
+ - **Full re-entry**: the next fix dispatch carries **all** open findings (including last round's unverified items) — never slice a subset.
93
+ - **Capped cross-round excerpt**: from round ≥2, the fix dispatch attaches an excerpt of prior rounds' findings and dispositions (advisory caps: ~500 words per round, ~1500 total — suggested values, not hard limits).
94
+ - **Honest non-convergence**: open findings at wave close → list them in detail and state the disposition — re-feed to the next fix round **or** transfer to residual tracking — never silently close.
95
+ 4. QA gate → **`mstar-harness-core`** Done rules; PM **`mstar-roles/references/project-manager/qa-trigger-matrix.md`**
96
+
97
+ ## Progress ledger(Evidence)
98
+
99
+ At start: `cat {SDD_DIR}/progress.md`. Tasks marked complete are DONE — do not re-dispatch after compaction.
100
+
101
+ Append on clean review: `Task N: complete (<base>..<head>, review clean)`.
102
+
103
+ Minor findings → `## Minor (for plan QC)` section in same file.
104
+
105
+ > **Engine check (when available):** import `readProgressLedger` from `@mstar-harness/engine` in a host hook to read the ledger above (no CLI form yet). On `fail` -> do not proceed; fix and re-run. Skill text below remains authoritative when the runtime is absent.
106
+
107
+ ## Red flags (NEVER)
108
+
109
+ - Parallel implementer dispatches
110
+ - Paste plan, diffs, or task history into dispatch prompts
111
+ - Dispatch reviewer without diff file
112
+ - `HEAD~1` as review BASE
113
+ - Pre-judge reviewer ("do not flag", "at most Minor")
114
+ - Skip task review or accept missing verdict
115
+ - Re-dispatch tasks listed complete in ledger
116
+ - PM thread implements instead of subagent dispatch
117
+ - Sticky **resume** for task reviewers
118
+ - Resume implementer without `host_agent_id` in `implementer-session.json`
119
+
120
+ ## CLI
121
+
122
+ The SDD helpers are engine-backed commands under **`mstar sdd`**(引擎 CLI;原 bash 脚本已移除,行为语义不变)。Run the `mstar` binary from any checkout; env vars `MSTAR_CONTROL_ROOT` / `MSTAR_HARNESS_DIR` / `SDD_DIR` are honored exactly as before.
123
+
124
+ | Command | Usage |
125
+ |--------|--------|
126
+ | `mstar sdd workspace` | `PLAN_ID [CONTROL_ROOT]` → creates `{SDD_DIR}` under control harness when set (`MSTAR_CONTROL_ROOT` or 2nd arg); fail closed on linked worktree without `status.json` |
127
+ | `mstar sdd task-brief` | `PLAN_FILE TASK_N [OUTFILE]` |
128
+ | `mstar sdd review-package` | `BASE HEAD [OUTFILE]` |
129
+
130
+ ## References
131
+
132
+ - `references/file-handoffs.md` — paths and fix-loop evidence
133
+ - `references/sticky-implementer-session.md` — `fresh` vs `sticky`, ledger, host resume, micro-batch fallback
134
+ - `references/implementer-prompt.md`
135
+ - `references/implementer-continuation-prompt.md`
136
+ - `references/task-reviewer-prompt.md`
137
+ - `mstar-artifacts/references/plan-quality-bar.md` — plan self-containment standard (plans must meet this before SDD dispatch)
@@ -0,0 +1,85 @@
1
+ # File handoffs (Morning Star SDD)
2
+
3
+ PM and subagents move artifacts as **files**, not pasted text. Pasted content stays in PM context for every later turn.
4
+
5
+ ## Before implementer dispatch
6
+
7
+ Run the SDD helpers through the engine CLI **`mstar sdd …`** (engine-backed; the former bash scripts are removed — semantics unchanged).
8
+
9
+ 1. `export SDD_DIR=$(mstar sdd workspace <plan-id>)`
10
+ - Iteration L1 (implementer cwd = feature worktree):
11
+ `export MSTAR_CONTROL_ROOT=<control_worktree_path>`
12
+ or `mstar sdd workspace <plan-id> <control_worktree_path>`
13
+ so `{SDD_DIR}` lands on the control harness (default-gitignored plans/status/sdd). Do not create a second SDD tree under the feature checkout.
14
+ 2. `mstar sdd task-brief <plan-file> <N> "$SDD_DIR/task-N-brief.md"`
15
+ 3. Record `BASE_SHA` (`git rev-parse HEAD` before dispatch).
16
+ 4. Dispatch implementer with:
17
+ - One line scene-setting (where task fits)
18
+ - Brief path: read first — verbatim requirements
19
+ - Interfaces / decisions brief cannot know
20
+ - Report path: `$SDD_DIR/task-N-report.md`
21
+ - `Model tier` → host-specific model (required)
22
+ - **`SDD implementer session`**: `fresh` (new subagent) or `sticky` (resume — see **`sticky-implementer-session.md`**)
23
+
24
+ ## Implementer report file
25
+
26
+ Implementer writes full report to `task-N-report.md`. Return to PM only:
27
+
28
+ - Status: `DONE` | `DONE_WITH_CONCERNS` | `NEEDS_CONTEXT` | `BLOCKED`
29
+ - Commits (SHAs)
30
+ - One-line test summary
31
+ - Concerns (if any)
32
+
33
+ ## After implementer DONE
34
+
35
+ 1. `HEAD_SHA=$(git rev-parse HEAD)`
36
+ 2. `mstar sdd review-package "$BASE_SHA" "$HEAD_SHA" "$SDD_DIR/review-....diff"`
37
+ 3. Dispatch task reviewer with: brief path, report path, diff path, Global Constraints (verbatim from plan).
38
+
39
+ **Never use `HEAD~1` as BASE** — multi-commit tasks truncate.
40
+
41
+ ## Fix loop
42
+
43
+ Fix subagent appends to same `task-N-report.md` with test evidence:
44
+
45
+ - Covering test file(s)
46
+ - Command run
47
+ - Output (pristine — warnings are findings)
48
+
49
+ Re-dispatch reviewer only when all three are present.
50
+
51
+ The per-task fix loop applies the same fix-round mechanics as plan-level QC fix waves (SKILL.md · "After all tasks" — unverified rounds count, full re-entry, capped cross-round excerpt, honest non-convergence): from round ≥2 the excerpt of prior rounds' findings/dispositions goes into the fix dispatch brief, and the round tally/verification history lands in `$SDD_DIR/progress.md`.
52
+
53
+ ## Progress ledger
54
+
55
+ On clean task review, append to `$SDD_DIR/progress.md`:
56
+
57
+ ```text
58
+ Task N: complete (<base>..<head>, review clean)
59
+ ```
60
+
61
+ Minor findings: append under `## Minor (for plan QC)` in same file.
62
+
63
+ ## Plan-level QC package
64
+
65
+ After all tasks:
66
+
67
+ ```bash
68
+ MERGE_BASE=$(git merge-base <target-branch> HEAD)
69
+ mkdir -p "$SDD_DIR/review"
70
+ mstar sdd review-package "$MERGE_BASE" HEAD "$SDD_DIR/review/branch-review-....diff"
71
+ ```
72
+
73
+ Pass **branch** diff path and bundle report paths (`$SDD_DIR/review/qc1.md` …) to QC dispatch — not task-level diffs. Raw QC/QA files stay in the gitignored review bundle; PM records durable summary and open residuals in **local** plan / workflow snapshot + project register (`workflows/<id>/snapshot.json`, `projects/<id>/residuals.json` — session SSOT) and promotes cross-clone decisions into tracked knowledge/specs/`AGENTS.md` per `mstar-conventions` git policy.
74
+
75
+ ## PM context hygiene
76
+
77
+ Do not paste:
78
+
79
+ - Full plan text
80
+ - Prior task summaries ("state after Tasks 1-3")
81
+ - Full diff content
82
+
83
+ Fresh subagent gets: brief + interfaces + constraints + file paths only.
84
+
85
+ **Sticky implementer** (task 2+): resume same session; read new brief path + `progress.md` — do not re-paste prior task summaries. PM updates `implementer-session.json`.