@mstar-harness/opencode 0.6.2 → 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,9 +131,9 @@ Before first implement dispatch (non-hotfix):
131
131
 
132
132
  If any fail -> do not dispatch implement.
133
133
 
134
- ### Autonomous Execute (sessions entered via `/pm`)
134
+ ### `/pm` sessions
135
135
 
136
- After first **implement** dispatch with **GO**, continuously drive the **active iteration** backlog (possibly **multiple** `plan_id`s) through implement → InReview → Done. Do **not** pause for basic yes/no harness questions—use PM-recommended defaults and act. Process or gate uncertainty: **Read** the relevant `mstar-*` skill; **`Blocked`** only when rules still conflict or an irreversible scope choice is missing from plan/spec. Full rules: `skills/pm/SKILL.md` § **Autonomous Execute push**.
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 `mstar-harness-core`, run as `project-manager`, and after Execute starts continuously drive one iteration's pending work (possibly multiple plans) with PM-default decisions—no basic yes/no prompts; resolve process rules from `mstar-*` skills. Read `mstar-review-qc` before any QC dispatch."
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
- # Project-Manager Force Entry (`/pm`)
6
+ # `/pm` Morning Star PM force entry
7
7
 
8
- Use `/pm` as a hard switch for the current session: enter Morning Star PM mode using only `mstar-*` skills.
8
+ Hard switch: **`mstar-*` only**, execute as **`project-manager`**.
9
9
 
10
- ## Mandatory steps (in order)
10
+ **One line:** `/pm` = **orchestrate and dispatch** — not parent-agent product implementation (full Cursor/Shell tools **do not** waive this).
11
11
 
12
- 1. Load `mstar-harness-core` skill first (global entry and invariants).
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
- ## Cursor Plan mode (when CreatePlan / SwitchMode is available)
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
- If this session runs in Cursor **Plan mode**:
20
+ Prepare/Execute gates, routing, Assignment templates, Task Board, QC tri-review, residuals → **topic skills + `project-manager` references** (not repeated here).
20
21
 
21
- 1. After step 1, Read **`mstar-host`** (Cursor detection) and **`mstar-host/references/cursor-plan-mode-bridge.md`**.
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
- ## Autonomous Execute push (iteration driver)
24
+ Everything else defers to `mstar-harness-core` and the table above.
27
25
 
28
- Once **Execute** has started (`plan` locked, `tasks` ready, **Pre-implement Gate Check** = `GO`):
26
+ ### 1. Dispatch-first (`implement`)
29
27
 
30
- 1. **Drive the whole iteration backlog** — Treat the active **iteration** (see `{ITERATION_DIR}` / `status.json` `iteration_*` when present) as the unit of forward motion. **Continuously** advance **all** pending implement → InReview → Done work for that iteration before pausing for routine progress checks.
31
- 2. **Multiple plans, one push** — One iteration may reference **several** `{PLAN_DIR}` plans (`plan_id`s). Do **not** stop after closing a single plan if sibling plans in the same iteration still have open tasks, open residuals, or incomplete QC/QA waves. Use **`mstar-plan-artifacts`** + **`references/project-manager/plan-management.md`** for status/residual sync across plans.
32
- 3. **Default-forward, no basic prompts** Do **not** ask the user binary or “should I continue?” questions for harness basics (next task, batch size, default route, parallel vs serial when the task board already allows it, standard QC tri-review, report-to-status rhythm). **Decide and dispatch** using PM judgment and the **recommended** option (same spirit as Prepare **`clarify`** in **`mstar-phase-gates`**: explore first, recommend, act).
33
- 4. **Process uncertainty Read `mstar-*`, don't improvise** Gate order, dispatch shape, branch/worktree, residuals, Superpowers stacking, host invoke rules: **Read** the authoritative topic skill (`mstar-phase-gates`, `mstar-dispatch-gates`, `mstar-branch-worktree`, `mstar-plan-conventions`, `mstar-plan-artifacts`, `mstar-review-qc`, `mstar-superpowers-align`, `mstar-host`) and follow it. Only **`Blocked`** or escalate when rules still conflict after reading, or when the user must choose an **irreversible** product/scope trade-off **not** already locked in plan/spec.
34
- 5. **Rhythm (unchanged)** Per batch: dispatch → wait for Completion Report v2 → **status.json** + plan sync next dispatch. Parallel batches still obey **`mstar-dispatch-gates`** (one turn, N invokes when required).
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
- **Still ask the user** when: explicit user stop/redirect; true **`Blocked`** after harness lookup; missing secrets/credentials; or a high-impact ambiguity that **cannot** be resolved from repo/spec/plan and would change acceptance materially.
34
+ - **NEVER** implement while staying PM including “not QC turn yet” (QC is later; **implement still delegates** `fullstack-dev` / `frontend-dev` / …).
35
+ - **Delegate scope / PM whitelist:** `mstar-roles` → PM Execution Boundary.
37
36
 
38
- ## Operating baseline
37
+ ### 2. Autonomous Execute push (after Pre-implement **GO**)
39
38
 
40
- - Prefer **`specify clarify plan tasks delegate`** (align with `mstar-phase-gates`; do not skip `specify`).
41
- - After Execute starts, follow **Autonomous Execute push** above coordinate and **keep dispatching** until the iteration backlog is done or legitimately **`Blocked`**.
42
- - Before dispatching any QC task, read `mstar-review-qc` (and relevant references) in the current round.
43
- - Require evidence before completion claims.
44
- - Treat `mstar-harness-core` as SSOT for gates, routing, and delivery loop.
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` and related runtime `mstar-*` skills under `skills/` (`mstar-roles`, `mstar-phase-gates`, `mstar-dispatch-gates`, `mstar-plan-conventions`, `mstar-review-qc`, `mstar-superpowers-align`; plus `mstar-branch-worktree`, `mstar-plan-artifacts` when the round needs them). Routing regression is **maint-only**: `.cursor/skills/mstar-routing-eval/` (not part of `/pm` runtime load).
51
- 4. This `/pm` command skill
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mstar-harness/opencode",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "description": "Morning Star harness OpenCode plugin (skills bootstrap and agent loading).",
5
5
  "license": "MIT",
6
6
  "repository": {