@mstar-harness/opencode 0.6.2 → 0.6.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.
|
@@ -148,6 +148,22 @@ Before switching from Plan to Agent for implementation (or declaring Plan phase
|
|
|
148
148
|
|
|
149
149
|
If any item fails → **Blocked**; finish harness sync before implement.
|
|
150
150
|
|
|
151
|
+
## Build resume contract
|
|
152
|
+
|
|
153
|
+
Cursor **Build** resumes the current plan in Agent mode. Do not assume it replays `/pm` or re-enters a role skill automatically.
|
|
154
|
+
|
|
155
|
+
First action after Build, before product-code edits:
|
|
156
|
+
|
|
157
|
+
1. Reload the harness entry: `mstar-harness-core` → `mstar-host` Cursor reference → this bridge.
|
|
158
|
+
2. If the plan is a Morning Star plan, resume as `project-manager` for coordination and dispatch only.
|
|
159
|
+
3. Read the SSOT plan and `status.json`; use them as the source of truth over the Cursor plan URI.
|
|
160
|
+
4. For each implement/code todo, require a PM Assignment with `Execute as`, `Delegation`, `Working branch` or `Branch policy`, and SSOT `Plan Path`.
|
|
161
|
+
5. If the Assignment or SSOT state is missing, report **Blocked** and repair the harness state before implementation.
|
|
162
|
+
|
|
163
|
+
Allowed in the parent Build session: plan/status maintenance, routing decisions, Assignment writing, and host Task dispatch.
|
|
164
|
+
|
|
165
|
+
Not allowed in the parent Build session by default: product implementation, test implementation, QC execution, QA execution, deployment, or ops changes. Those follow the normal PM dispatch rules unless the user explicitly overrides the harness.
|
|
166
|
+
|
|
151
167
|
## PM in Plan mode (`/pm`)
|
|
152
168
|
|
|
153
169
|
When `/pm` runs under Plan mode:
|
|
@@ -166,6 +182,7 @@ When `/pm` runs under Plan mode:
|
|
|
166
182
|
| Drift between CreatePlan and SSOT plan | Update both in same round |
|
|
167
183
|
| Cursor plan URI as Plan Path | Use `{PLAN_DIR}/...` path |
|
|
168
184
|
| Skip `spec-register` | Add `plans[]` row before implement |
|
|
185
|
+
| Build starts coding in the parent session | Resume PM context; dispatch implement work or block on missing Assignment |
|
|
169
186
|
|
|
170
187
|
## Related skills
|
|
171
188
|
|
|
@@ -27,6 +27,8 @@ Each **implement todo**: per–task-ID **git commit** on Working branch → SSOT
|
|
|
27
27
|
|
|
28
28
|
Before **SwitchMode → Agent**: mirror plan exists; `status.json` lists `plan_id`; bootstrap todos done. **Never** use only the Cursor plan URI as **Plan Path**.
|
|
29
29
|
|
|
30
|
+
After **Build**: treat the run as plan resume, not `/pm` replay. Reload `mstar-harness-core` + this Cursor reference, resume Morning Star plans as `project-manager` orchestration, and dispatch implementation through Task unless the user explicitly overrides the harness.
|
|
31
|
+
|
|
30
32
|
Enforcement: `rules/mstar-cursor-plan-mode.mdc` when plugin active.
|
|
31
33
|
|
|
32
34
|
## `/pm` precedence
|
|
@@ -131,9 +131,9 @@ Before first implement dispatch (non-hotfix):
|
|
|
131
131
|
|
|
132
132
|
If any fail -> do not dispatch implement.
|
|
133
133
|
|
|
134
|
-
###
|
|
134
|
+
### `/pm` sessions
|
|
135
135
|
|
|
136
|
-
|
|
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
137
|
|
|
138
138
|
---
|
|
139
139
|
|
|
@@ -1,51 +1,60 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: pm
|
|
3
|
-
description: "Force Morning Star PM mode (`/pm`): load
|
|
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
|
-
|
|
26
|
+
### 1. Dispatch-first (`implement`)
|
|
29
27
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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) |
|
|
35
33
|
|
|
36
|
-
**
|
|
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.
|
|
37
36
|
|
|
38
|
-
|
|
37
|
+
### 2. Autonomous Execute push (after Pre-implement **GO**)
|
|
39
38
|
|
|
40
|
-
-
|
|
41
|
-
-
|
|
42
|
-
-
|
|
43
|
-
|
|
44
|
-
|
|
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.
|
|
45
52
|
|
|
46
53
|
## Conflict order
|
|
47
54
|
|
|
48
|
-
1. User explicit instructions
|
|
49
|
-
2. Project `AGENTS.md` / `CLAUDE.md`
|
|
50
|
-
3. `mstar-harness-core`
|
|
51
|
-
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.
|