@mstar-harness/opencode 0.6.1 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -131,6 +131,10 @@ Before first implement dispatch (non-hotfix):
|
|
|
131
131
|
|
|
132
132
|
If any fail -> do not dispatch implement.
|
|
133
133
|
|
|
134
|
+
### `/pm` sessions
|
|
135
|
+
|
|
136
|
+
When the session entered via **`/pm`**, follow **`skills/pm/SKILL.md`** § **`/pm`-only rules** (dispatch-first, iteration push, branch truth). Routing, gates, Task Board, QC, and templates remain in this file and topic `mstar-*` skills.
|
|
137
|
+
|
|
134
138
|
---
|
|
135
139
|
|
|
136
140
|
## Phase Routing Pre-Flight (Mandatory)
|
|
@@ -1,39 +1,60 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: pm
|
|
3
|
-
description: "Force
|
|
3
|
+
description: "Force Morning Star PM mode (`/pm`): load mstar-harness-core and project-manager; dispatch-only in Execute (Task per implement batch—no parent product code); continuous iteration push without basic yes/no prompts. Use when user invokes /pm or wants harness-only PM orchestration."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# `/pm` — Morning Star PM force entry
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
Hard switch: **`mstar-*` only**, execute as **`project-manager`**.
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
**One line:** `/pm` = **orchestrate and dispatch** — not parent-agent product implementation (full Cursor/Shell tools **do not** waive this).
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
2. Load `mstar-roles` skill.
|
|
14
|
-
3. Load `mstar-roles` `project-manager` role reference.
|
|
15
|
-
4. Execute as Morning Star `project-manager` for this thread.
|
|
12
|
+
## Boot (order)
|
|
16
13
|
|
|
17
|
-
|
|
14
|
+
1. `mstar-harness-core`
|
|
15
|
+
2. `mstar-roles` → `references/project-manager.md`
|
|
16
|
+
3. Before first **implement** (non-hotfix): `mstar-dispatch-gates` + `mstar-host` (`references/cursor.md` | `opencode.md` | `codex.md`)
|
|
17
|
+
4. Before **QC**: `mstar-review-qc`
|
|
18
|
+
5. **On demand:** `mstar-phase-gates`, `mstar-plan-conventions`, `mstar-plan-artifacts`, `mstar-branch-worktree`, `mstar-superpowers-align`
|
|
18
19
|
|
|
19
|
-
|
|
20
|
+
Prepare/Execute gates, routing, Assignment templates, Task Board, QC tri-review, residuals → **topic skills + `project-manager` references** (not repeated here).
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
2. Before the first **CreatePlan**, Read **`mstar-plan-conventions`** and **`mstar-plan-artifacts`**.
|
|
23
|
-
3. **CreatePlan** must dual-write to harness SSOT: fixed prefix todos **`harness-init`** → **`spec-register`** → **`mirror-plan`**, then implement todos. Do **not** skip bootstrap todos or mark implement todos done without per–task-ID **commit** + SSOT plan checkbox + evidence (`git log -1 --oneline`).
|
|
24
|
-
4. Before **SwitchMode → Agent**, verify mirror plan file and `status.json` `plan_id` registration per the bridge reference.
|
|
22
|
+
## `/pm`-only rules (SSOT for this entry)
|
|
25
23
|
|
|
26
|
-
|
|
24
|
+
Everything else defers to `mstar-harness-core` and the table above.
|
|
27
25
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
### 1. Dispatch-first (`implement`)
|
|
27
|
+
|
|
28
|
+
| Do | Don't |
|
|
29
|
+
| --- | --- |
|
|
30
|
+
| **Loop:** `## Assignment` → invoke → Completion Report v2 → report-to-status → next batch | Parent **Write/Edit/Shell** on product code to “move faster” |
|
|
31
|
+
| **1 Assignment ⇒ 1 invoke** in the dispatch message when host supports Task/@agent (`mstar-dispatch-gates`) | Assignment markdown only, no matching invoke |
|
|
32
|
+
| Put merge/branch/handoff from **this thread** into Assignment | Skip subagent because context is “already here” (cold start ≠ excuse) |
|
|
33
|
+
|
|
34
|
+
- **NEVER** implement while staying PM — including “not QC turn yet” (QC 3× is later; **implement still delegates** `fullstack-dev` / `frontend-dev` / …).
|
|
35
|
+
- **Delegate scope / PM whitelist:** `mstar-roles` → PM Execution Boundary.
|
|
36
|
+
|
|
37
|
+
### 2. Autonomous Execute push (after Pre-implement **GO**)
|
|
38
|
+
|
|
39
|
+
- Drive the **active iteration** to done via **dispatch loops** (may span **multiple** `plan_id`s — don’t stop after one plan if siblings are open).
|
|
40
|
+
- **No** routine “should I continue?” on harness basics — decide, record in Assignment if needed, **dispatch**.
|
|
41
|
+
- Process unknowns → **Read** `mstar-*`; **`Blocked`** or user only for stop, secrets, irreversible scope gaps, or post-read rule conflict (`mstar-phase-gates` clarify spirit).
|
|
42
|
+
|
|
43
|
+
### 3. Branch truth (no silent cwd)
|
|
44
|
+
|
|
45
|
+
Actual Git strategy ≠ plan/`status.json` `working_branch` → **same round** update plan + status **or** worktree dispatches (`mstar-branch-worktree`) before next implement dispatch.
|
|
46
|
+
|
|
47
|
+
**Exceptions:** user explicitly asks PM thread to implement; hotfix per `mstar-phase-gates` (still prefer invoke when available).
|
|
48
|
+
|
|
49
|
+
## Cursor Plan mode
|
|
50
|
+
|
|
51
|
+
If CreatePlan / SwitchMode: Read **`mstar-host/references/cursor-plan-mode-bridge.md`** (+ `mstar-plan-conventions`, `mstar-plan-artifacts` before first CreatePlan). Bootstrap todos `harness-init` → `spec-register` → `mirror-plan`; implement commits/evidence on **subagent** work, not PM parent edits alone.
|
|
33
52
|
|
|
34
53
|
## Conflict order
|
|
35
54
|
|
|
36
|
-
1. User explicit instructions
|
|
37
|
-
2. Project `AGENTS.md` / `CLAUDE.md`
|
|
38
|
-
3. `mstar-harness-core`
|
|
39
|
-
4. This
|
|
55
|
+
1. User explicit instructions
|
|
56
|
+
2. Project `AGENTS.md` / `CLAUDE.md`
|
|
57
|
+
3. `mstar-harness-core` + runtime `mstar-*` (routing-eval: maint-only `.cursor/skills/mstar-routing-eval/`)
|
|
58
|
+
4. This skill
|
|
59
|
+
|
|
60
|
+
**Dispatch-first + `mstar-dispatch-gates` win** over “fast parent agent” unless user overrides.
|