@mstar-harness/omp 3.6.0-alpha.4 → 3.6.1
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/agents/architect.md +1 -3
- package/agents/code-reviewer.md +1 -3
- package/agents/frontend-dev.md +1 -3
- package/agents/fullstack-dev-2.md +1 -3
- package/agents/fullstack-dev.md +1 -3
- package/agents/ops-engineer.md +1 -3
- package/agents/product-manager.md +1 -3
- package/agents/project-manager.md +1 -3
- package/agents/prompt-engineer.md +1 -3
- package/agents/qa-engineer.md +1 -3
- package/agents/qc-specialist-2.md +1 -3
- package/agents/qc-specialist-3.md +1 -3
- package/agents/qc-specialist.md +1 -3
- package/agents/writing-specialist.md +1 -3
- package/harness-agents/architect.md +1 -3
- package/harness-agents/code-reviewer.md +1 -3
- package/harness-agents/frontend-dev.md +1 -3
- package/harness-agents/fullstack-dev-2.md +1 -3
- package/harness-agents/fullstack-dev.md +1 -3
- package/harness-agents/ops-engineer.md +1 -3
- package/harness-agents/product-manager.md +1 -3
- package/harness-agents/project-manager.md +1 -3
- package/harness-agents/prompt-engineer.md +1 -3
- package/harness-agents/qa-engineer.md +1 -3
- package/harness-agents/qc-specialist-2.md +1 -3
- package/harness-agents/qc-specialist-3.md +1 -3
- package/harness-agents/qc-specialist.md +1 -3
- package/harness-agents/writing-specialist.md +1 -3
- package/harness-skills/mstar-host/SKILL.md +1 -1
- package/harness-skills/mstar-host/references/_shared/host-role-binding-core.md +6 -6
- package/harness-skills/mstar-host/references/omp.md +1 -1
- package/harness-skills/mstar-host/references/zcode.md +45 -17
- package/package.json +1 -1
- package/plugin.json +1 -1
- package/skills/mstar-host/SKILL.md +1 -1
- package/skills/mstar-host/references/_shared/host-role-binding-core.md +6 -6
- package/skills/mstar-host/references/omp.md +1 -1
- package/skills/mstar-host/references/zcode.md +45 -17
package/agents/architect.md
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: architect
|
|
3
|
-
description:
|
|
4
|
-
技术架构师 - 系统设计、技术决策与技术向文档编写(架构说明、ADR、接口契约等)。
|
|
5
|
-
Architect - system design, technical decisions, and technical documentation (architecture notes, ADRs, interface contracts).
|
|
3
|
+
description: "Architect - system design, technical decisions, and technical documentation (architecture notes, ADRs, interface contracts)."
|
|
6
4
|
mode: subagent
|
|
7
5
|
tools:
|
|
8
6
|
write: true
|
package/agents/code-reviewer.md
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: code-reviewer
|
|
3
|
-
description:
|
|
4
|
-
代码审查员 - SDD 任务级审查(L2)+ 代码库审计执行(audit)。只读席位:不实现、不修代码、不占 QC 席。
|
|
5
|
-
Code Reviewer - SDD per-task review (L2) + codebase audit execution (audit). Read-only seat: does not implement, fix, or occupy a QC seat.
|
|
3
|
+
description: "Code Reviewer - SDD per-task review (L2) + codebase audit execution (audit). Read-only seat: does not implement, fix, or occupy a QC seat."
|
|
6
4
|
mode: subagent
|
|
7
5
|
tools:
|
|
8
6
|
write: true
|
package/agents/frontend-dev.md
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: frontend-dev
|
|
3
|
-
description:
|
|
4
|
-
前端开发工程师 - 页面/组件/交互/a11y/前端性能。全栈功能里默认前端主责(与 `@fullstack-dev` 分轨);纯 UI 任务首选本角色。
|
|
5
|
-
Frontend Developer - pages/components/interactions/accessibility/frontend performance. This is the default frontend owner in fullstack work (split with `@fullstack-dev`) and the preferred role for pure UI tasks.
|
|
3
|
+
description: "Frontend Developer - pages/components/interactions/accessibility/frontend performance. This is the default frontend owner in fullstack work (split with `@fullstack-dev`) and the preferred role for pure UI tasks."
|
|
6
4
|
mode: subagent
|
|
7
5
|
tools:
|
|
8
6
|
write: true
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: fullstack-dev-2
|
|
3
|
-
description:
|
|
4
|
-
全栈开发工程师 - 与 `@fullstack-dev` 并行的第二实现轨(独立模块/API/页面岛)。PM 在 tasks 可并行或加速时指派;须写明模块边界与分支,勿当作闲置备用。
|
|
5
|
-
Fullstack Developer (Track 2) - the second implementation track parallel to `@fullstack-dev` (independent modules/APIs/page islands). PM should assign this role when tasks can run in parallel or when acceleration is needed, with explicit module boundaries and branch ownership.
|
|
3
|
+
description: "Fullstack Developer (Track 2) - the second implementation track parallel to `@fullstack-dev` (independent modules/APIs/page islands). PM should assign this role when tasks can run in parallel or when acceleration is needed, with explicit module boundaries and branch ownership."
|
|
6
4
|
mode: subagent
|
|
7
5
|
tools:
|
|
8
6
|
write: true
|
package/agents/fullstack-dev.md
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: fullstack-dev
|
|
3
|
-
description:
|
|
4
|
-
全栈开发工程师 - 后端主导的全栈实现(API/业务/数据层)。UI 重或新页面多时由 PM 拆给 `@frontend-dev`;第二并行实现轨用 `@fullstack-dev-2`。Hotfix/单流小改可一人完成。
|
|
5
|
-
Fullstack Developer - backend-led fullstack implementation (API/business/data). PM should split UI-heavy or new-page work to `@frontend-dev`, and use `@fullstack-dev-2` for the second parallel track. One developer can handle hotfixes or small single-stream updates.
|
|
3
|
+
description: "Fullstack Developer - backend-led fullstack implementation (API/business/data). PM should split UI-heavy or new-page work to `@frontend-dev`, and use `@fullstack-dev-2` for the second parallel track. One developer can handle hotfixes or small single-stream updates."
|
|
6
4
|
mode: subagent
|
|
7
5
|
tools:
|
|
8
6
|
write: true
|
package/agents/ops-engineer.md
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: ops-engineer
|
|
3
|
-
description:
|
|
4
|
-
运维工程师 - 部署、监控和基础设施。
|
|
5
|
-
Ops Engineer - deployment, monitoring, and infrastructure operations, including CI/CD and observability.
|
|
3
|
+
description: "Ops Engineer - deployment, monitoring, and infrastructure operations, including CI/CD and observability."
|
|
6
4
|
mode: subagent
|
|
7
5
|
tools:
|
|
8
6
|
write: true
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: product-manager
|
|
3
|
-
description:
|
|
4
|
-
产品经理 - 需求分析、产品规划、市场/用户研究与产品向文档编写。
|
|
5
|
-
Product Manager - requirements analysis, product planning, market/user research, and product-facing documentation.
|
|
3
|
+
description: "Product Manager - requirements analysis, product planning, market/user research, and product-facing documentation."
|
|
6
4
|
mode: subagent
|
|
7
5
|
tools:
|
|
8
6
|
write: true
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: project-manager
|
|
3
|
-
description:
|
|
4
|
-
项目经理 - 协调开发团队,管理项目进度。
|
|
5
|
-
Project Manager - coordinate the team, track progress, and orchestrate execution across roles.
|
|
3
|
+
description: "Project Manager - coordinate the team, track progress, and orchestrate execution across roles."
|
|
6
4
|
mode: primary
|
|
7
5
|
tools:
|
|
8
6
|
write: true
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: prompt-engineer
|
|
3
|
-
description:
|
|
4
|
-
提示词工程师 - 设计与优化 Agent 提示词与技能。
|
|
5
|
-
Prompt Engineer - design and optimize prompts and skills for agents, including refactoring and debugging prompt systems.
|
|
3
|
+
description: "Prompt Engineer - design and optimize prompts and skills for agents, including refactoring and debugging prompt systems."
|
|
6
4
|
mode: subagent
|
|
7
5
|
tools:
|
|
8
6
|
write: true
|
package/agents/qa-engineer.md
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: qa-engineer
|
|
3
|
-
description:
|
|
4
|
-
测试工程师 - L4 验收席(分级派发):DoD 映射、residual 验证、report-only 调查。
|
|
5
|
-
QA Engineer - tiered L4 acceptance (DoD mapping, residual verify, report-only); dispatched when PM sets QA gate mandatory.
|
|
3
|
+
description: "QA Engineer - tiered L4 acceptance (DoD mapping, residual verify, report-only); dispatched when PM sets QA gate mandatory."
|
|
6
4
|
mode: subagent
|
|
7
5
|
tools:
|
|
8
6
|
write: true
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: qc-specialist-2
|
|
3
|
-
description:
|
|
4
|
-
质量控制专家(Reviewer #2)- 代码审查(diff / 逻辑 / 安全正确性)。非测试执行席。
|
|
5
|
-
Quality Control Specialist (Reviewer #2) - code review (diff, logic, security/correctness). Not a test runner.
|
|
3
|
+
description: "Quality Control Specialist (Reviewer #2) - code review (diff, logic, security/correctness). Not a test runner."
|
|
6
4
|
mode: subagent
|
|
7
5
|
tools:
|
|
8
6
|
write: true
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: qc-specialist-3
|
|
3
|
-
description:
|
|
4
|
-
质量控制专家(Reviewer #3)- 代码审查(diff / 逻辑 / 性能可靠性)。非测试执行席。
|
|
5
|
-
Quality Control Specialist (Reviewer #3) - code review (diff, logic, performance/reliability). Not a test runner.
|
|
3
|
+
description: "Quality Control Specialist (Reviewer #3) - code review (diff, logic, performance/reliability). Not a test runner."
|
|
6
4
|
mode: subagent
|
|
7
5
|
tools:
|
|
8
6
|
write: true
|
package/agents/qc-specialist.md
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: qc-specialist
|
|
3
|
-
description:
|
|
4
|
-
质量控制专家(Reviewer #1)- 代码审查(diff / 逻辑 / 架构可维护性)。非测试执行席。
|
|
5
|
-
Quality Control Specialist (Reviewer #1) - code review (diff, logic, maintainability). Not a test runner.
|
|
3
|
+
description: "Quality Control Specialist (Reviewer #1) - code review (diff, logic, maintainability). Not a test runner."
|
|
6
4
|
mode: subagent
|
|
7
5
|
tools:
|
|
8
6
|
write: true
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: writing-specialist
|
|
3
|
-
description:
|
|
4
|
-
写作专家 - 文档写作、小说写作、文案写作与脚本写作。
|
|
5
|
-
Writing Specialist - documentation, fiction, copywriting, and script writing.
|
|
3
|
+
description: "Writing Specialist - documentation, fiction, copywriting, and script writing."
|
|
6
4
|
mode: subagent
|
|
7
5
|
tools:
|
|
8
6
|
write: true
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: architect
|
|
3
|
-
description:
|
|
4
|
-
技术架构师 - 系统设计、技术决策与技术向文档编写(架构说明、ADR、接口契约等)。
|
|
5
|
-
Architect - system design, technical decisions, and technical documentation (architecture notes, ADRs, interface contracts).
|
|
3
|
+
description: "Architect - system design, technical decisions, and technical documentation (architecture notes, ADRs, interface contracts)."
|
|
6
4
|
mode: subagent
|
|
7
5
|
tools:
|
|
8
6
|
write: true
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: code-reviewer
|
|
3
|
-
description:
|
|
4
|
-
代码审查员 - SDD 任务级审查(L2)+ 代码库审计执行(audit)。只读席位:不实现、不修代码、不占 QC 席。
|
|
5
|
-
Code Reviewer - SDD per-task review (L2) + codebase audit execution (audit). Read-only seat: does not implement, fix, or occupy a QC seat.
|
|
3
|
+
description: "Code Reviewer - SDD per-task review (L2) + codebase audit execution (audit). Read-only seat: does not implement, fix, or occupy a QC seat."
|
|
6
4
|
mode: subagent
|
|
7
5
|
tools:
|
|
8
6
|
write: true
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: frontend-dev
|
|
3
|
-
description:
|
|
4
|
-
前端开发工程师 - 页面/组件/交互/a11y/前端性能。全栈功能里默认前端主责(与 `@fullstack-dev` 分轨);纯 UI 任务首选本角色。
|
|
5
|
-
Frontend Developer - pages/components/interactions/accessibility/frontend performance. This is the default frontend owner in fullstack work (split with `@fullstack-dev`) and the preferred role for pure UI tasks.
|
|
3
|
+
description: "Frontend Developer - pages/components/interactions/accessibility/frontend performance. This is the default frontend owner in fullstack work (split with `@fullstack-dev`) and the preferred role for pure UI tasks."
|
|
6
4
|
mode: subagent
|
|
7
5
|
tools:
|
|
8
6
|
write: true
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: fullstack-dev-2
|
|
3
|
-
description:
|
|
4
|
-
全栈开发工程师 - 与 `@fullstack-dev` 并行的第二实现轨(独立模块/API/页面岛)。PM 在 tasks 可并行或加速时指派;须写明模块边界与分支,勿当作闲置备用。
|
|
5
|
-
Fullstack Developer (Track 2) - the second implementation track parallel to `@fullstack-dev` (independent modules/APIs/page islands). PM should assign this role when tasks can run in parallel or when acceleration is needed, with explicit module boundaries and branch ownership.
|
|
3
|
+
description: "Fullstack Developer (Track 2) - the second implementation track parallel to `@fullstack-dev` (independent modules/APIs/page islands). PM should assign this role when tasks can run in parallel or when acceleration is needed, with explicit module boundaries and branch ownership."
|
|
6
4
|
mode: subagent
|
|
7
5
|
tools:
|
|
8
6
|
write: true
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: fullstack-dev
|
|
3
|
-
description:
|
|
4
|
-
全栈开发工程师 - 后端主导的全栈实现(API/业务/数据层)。UI 重或新页面多时由 PM 拆给 `@frontend-dev`;第二并行实现轨用 `@fullstack-dev-2`。Hotfix/单流小改可一人完成。
|
|
5
|
-
Fullstack Developer - backend-led fullstack implementation (API/business/data). PM should split UI-heavy or new-page work to `@frontend-dev`, and use `@fullstack-dev-2` for the second parallel track. One developer can handle hotfixes or small single-stream updates.
|
|
3
|
+
description: "Fullstack Developer - backend-led fullstack implementation (API/business/data). PM should split UI-heavy or new-page work to `@frontend-dev`, and use `@fullstack-dev-2` for the second parallel track. One developer can handle hotfixes or small single-stream updates."
|
|
6
4
|
mode: subagent
|
|
7
5
|
tools:
|
|
8
6
|
write: true
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: ops-engineer
|
|
3
|
-
description:
|
|
4
|
-
运维工程师 - 部署、监控和基础设施。
|
|
5
|
-
Ops Engineer - deployment, monitoring, and infrastructure operations, including CI/CD and observability.
|
|
3
|
+
description: "Ops Engineer - deployment, monitoring, and infrastructure operations, including CI/CD and observability."
|
|
6
4
|
mode: subagent
|
|
7
5
|
tools:
|
|
8
6
|
write: true
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: product-manager
|
|
3
|
-
description:
|
|
4
|
-
产品经理 - 需求分析、产品规划、市场/用户研究与产品向文档编写。
|
|
5
|
-
Product Manager - requirements analysis, product planning, market/user research, and product-facing documentation.
|
|
3
|
+
description: "Product Manager - requirements analysis, product planning, market/user research, and product-facing documentation."
|
|
6
4
|
mode: subagent
|
|
7
5
|
tools:
|
|
8
6
|
write: true
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: project-manager
|
|
3
|
-
description:
|
|
4
|
-
项目经理 - 协调开发团队,管理项目进度。
|
|
5
|
-
Project Manager - coordinate the team, track progress, and orchestrate execution across roles.
|
|
3
|
+
description: "Project Manager - coordinate the team, track progress, and orchestrate execution across roles."
|
|
6
4
|
mode: primary
|
|
7
5
|
tools:
|
|
8
6
|
write: true
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: prompt-engineer
|
|
3
|
-
description:
|
|
4
|
-
提示词工程师 - 设计与优化 Agent 提示词与技能。
|
|
5
|
-
Prompt Engineer - design and optimize prompts and skills for agents, including refactoring and debugging prompt systems.
|
|
3
|
+
description: "Prompt Engineer - design and optimize prompts and skills for agents, including refactoring and debugging prompt systems."
|
|
6
4
|
mode: subagent
|
|
7
5
|
tools:
|
|
8
6
|
write: true
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: qa-engineer
|
|
3
|
-
description:
|
|
4
|
-
测试工程师 - L4 验收席(分级派发):DoD 映射、residual 验证、report-only 调查。
|
|
5
|
-
QA Engineer - tiered L4 acceptance (DoD mapping, residual verify, report-only); dispatched when PM sets QA gate mandatory.
|
|
3
|
+
description: "QA Engineer - tiered L4 acceptance (DoD mapping, residual verify, report-only); dispatched when PM sets QA gate mandatory."
|
|
6
4
|
mode: subagent
|
|
7
5
|
tools:
|
|
8
6
|
write: true
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: qc-specialist-2
|
|
3
|
-
description:
|
|
4
|
-
质量控制专家(Reviewer #2)- 代码审查(diff / 逻辑 / 安全正确性)。非测试执行席。
|
|
5
|
-
Quality Control Specialist (Reviewer #2) - code review (diff, logic, security/correctness). Not a test runner.
|
|
3
|
+
description: "Quality Control Specialist (Reviewer #2) - code review (diff, logic, security/correctness). Not a test runner."
|
|
6
4
|
mode: subagent
|
|
7
5
|
tools:
|
|
8
6
|
write: true
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: qc-specialist-3
|
|
3
|
-
description:
|
|
4
|
-
质量控制专家(Reviewer #3)- 代码审查(diff / 逻辑 / 性能可靠性)。非测试执行席。
|
|
5
|
-
Quality Control Specialist (Reviewer #3) - code review (diff, logic, performance/reliability). Not a test runner.
|
|
3
|
+
description: "Quality Control Specialist (Reviewer #3) - code review (diff, logic, performance/reliability). Not a test runner."
|
|
6
4
|
mode: subagent
|
|
7
5
|
tools:
|
|
8
6
|
write: true
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: qc-specialist
|
|
3
|
-
description:
|
|
4
|
-
质量控制专家(Reviewer #1)- 代码审查(diff / 逻辑 / 架构可维护性)。非测试执行席。
|
|
5
|
-
Quality Control Specialist (Reviewer #1) - code review (diff, logic, maintainability). Not a test runner.
|
|
3
|
+
description: "Quality Control Specialist (Reviewer #1) - code review (diff, logic, maintainability). Not a test runner."
|
|
6
4
|
mode: subagent
|
|
7
5
|
tools:
|
|
8
6
|
write: true
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: writing-specialist
|
|
3
|
-
description:
|
|
4
|
-
写作专家 - 文档写作、小说写作、文案写作与脚本写作。
|
|
5
|
-
Writing Specialist - documentation, fiction, copywriting, and script writing.
|
|
3
|
+
description: "Writing Specialist - documentation, fiction, copywriting, and script writing."
|
|
6
4
|
mode: subagent
|
|
7
5
|
tools:
|
|
8
6
|
write: true
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: mstar-host
|
|
3
|
-
description: Morning Star host adapter
|
|
3
|
+
description: Morning Star host adapter for OpenCode, Cursor, Codex, Kimi, ZCode, omp, and dsh. Use after mstar-harness-core whenever host entry, clarify, dispatch, plan mode, or tool UX differs by platform - per-host subagent invoke, plan-mode bridge, parallel dispatch, and skill/command loading. Auto-detect the host from session tools, then Read references/<host>.md. Always load after mstar-harness-core.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Morning Star Host Adapter
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
# Host role-binding core (C5/C5b)
|
|
2
2
|
|
|
3
|
-
Shared role-binding contract for **Kimi
|
|
3
|
+
Shared role-binding contract for **Kimi** — the host where Morning Star role ids are **never** valid invoke types, so picking `subagent_type` alone cannot carry Assignment IDENTITY + skill load.
|
|
4
4
|
|
|
5
|
-
Other hosts follow their own `references/<host>.md` and do **not** use this file for agent selection. Read this file only when the active host reference is Kimi
|
|
5
|
+
Other hosts follow their own `references/<host>.md` and do **not** use this file for agent selection. Read this file only when the active host reference is Kimi.
|
|
6
6
|
|
|
7
|
-
## C5 — invoke type selection (Kimi
|
|
7
|
+
## C5 — invoke type selection (Kimi)
|
|
8
8
|
|
|
9
9
|
| Host | Invoke-type selection (C5) | Prompt role binding (C5b) |
|
|
10
10
|
|------|----------------------------|---------------------------|
|
|
11
|
-
| **Kimi
|
|
11
|
+
| **Kimi** | Built-in types only (`coder` / `explore` / `plan`, …). Morning Star role ids are **never** valid invoke types. | **Required** |
|
|
12
12
|
|
|
13
13
|
- **Never invent** agent / subagent names. The **live tool schema** (plus the active host reference C5 table) is SSOT every session.
|
|
14
14
|
- Morning Star role ids (`product-manager`, `fullstack-dev`, `qc-specialist`, …) are **not** valid invoke types — map via the host reference table (`coder` / `explore` / `plan`, …), then rely on C5b.
|
|
15
15
|
|
|
16
16
|
## C5b — role binding in prompt (required)
|
|
17
17
|
|
|
18
|
-
Every dispatch on Kimi
|
|
18
|
+
Every dispatch on Kimi **must** carry the played Morning Star role in the **Assignment** and in the **invoke prompt**:
|
|
19
19
|
|
|
20
20
|
1. **`Execute as: <role-id>`** in Assignment (harness routing SSOT).
|
|
21
21
|
2. **`Act as <role-id>`** (or equivalent) at the top of the invoke prompt.
|
|
@@ -48,4 +48,4 @@ Load: `mstar-harness-core` → `mstar-host` → `<host>.md` → `mstar-roles`
|
|
|
48
48
|
<task body>
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
-
The active host reference shows the matching invoke shape (same turn) — e.g. Kimi
|
|
51
|
+
The active host reference shows the matching invoke shape (same turn) — e.g. Kimi `Agent` with `subagent_type: "coder"` plus this C5b body.
|
|
@@ -106,7 +106,7 @@ Single-task shorthand may exist depending on host version — always match the l
|
|
|
106
106
|
|
|
107
107
|
### Role binding in prompt (C5b — required)
|
|
108
108
|
|
|
109
|
-
omp C5/C5b SSOT is **this file
|
|
109
|
+
omp C5/C5b SSOT is **this file**. Even when `agent` already matches the role id, still bind Morning Star process in the Assignment / `task` body (agent shell ≠ full role prompt; skill load is not automatic).
|
|
110
110
|
|
|
111
111
|
Required in every role dispatch:
|
|
112
112
|
|
|
@@ -11,9 +11,9 @@ Parallel PM dispatch: read **`parallel-dispatch.md`** when dispatching **N ≥ 2
|
|
|
11
11
|
- Plugin manifest: **`.zcode-plugin/plugin.json`** (plugin root is the **repo root**; paths stay `./skills/`, `./commands/`, `./agents/`).
|
|
12
12
|
- Runtime skills: repo `skills/` mounted by the plugin (`"skills": "./skills/"`).
|
|
13
13
|
- Plugin commands: repo `commands/` → `/morning-star-harness:<name>` (e.g. `/morning-star-harness:iteration-start`).
|
|
14
|
-
- Plugin agents: repo `agents/*.md` (role frontmatter `name` + `description
|
|
14
|
+
- Plugin agents: repo `agents/*.md` (role frontmatter `name` + **single-line quoted English `description`** — ZCode's flat frontmatter parser cannot read `|-` block scalars and silently drops nested `tools`/`permission` maps). ZCode registers them as callable `subagent_type`s in both bare (`fullstack-dev`) and plugin-qualified (`morning-star-harness:fullstack-dev`) forms (see C5).
|
|
15
15
|
- **No `sessionStart.skill`** (ZCode has no Kimi-style session auto-load) — enter PM manually via **`/morning-star-harness:pm`** or the **`pm`** skill, then **Read next** → `mstar-harness-core` → `project-manager.md`.
|
|
16
|
-
- Install (user-scoped, recommended): `npx @mstar-harness/cli init --target zcode --scope global`, then in ZCode **Settings → Plugin Management → Discover** install **morning-star-harness** from the **mstar-local** marketplace
|
|
16
|
+
- Install (user-scoped, recommended): `npx @mstar-harness/cli init --target zcode --scope global`, then in ZCode **Settings → Plugin Management → Discover** install **morning-star-harness** from the **mstar-local** marketplace. Direct-add also works without the CLI: the repo ships `.claude-plugin/marketplace.json` (root `marketplace.json` fallback), which ZCode discovers when refreshing a `github`-source marketplace.
|
|
17
17
|
- Plugins are **user-scoped** (all projects); managed copy lives under `~/.zcode/cli/plugins/` after install.
|
|
18
18
|
- Project `.agents/skills/` symlinks are **not** required when using the plugin — commands and skills come from the plugin mount.
|
|
19
19
|
|
|
@@ -31,7 +31,7 @@ Use skill names in prompts and references. Avoid absolute local paths unless mai
|
|
|
31
31
|
|
|
32
32
|
| ZCode tool | Harness use |
|
|
33
33
|
|------------|-------------|
|
|
34
|
-
| **Agent** | Primary dispatch — delegate one subagent task (`subagent_type`:
|
|
34
|
+
| **Agent** | Primary dispatch — delegate one subagent task (`subagent_type`: bare Morning Star role id, e.g. `fullstack-dev`; `general-purpose` fallback; `Explore` read-only) |
|
|
35
35
|
| **AskUserQuestion** | Structured clarify (1–4 questions, 2–4 options each); prefer over free-form when choices are known |
|
|
36
36
|
| **EnterPlanMode** / **ExitPlanMode** | Plan mode entry/approval → **`zcode-plan-mode-bridge.md`** |
|
|
37
37
|
| **TodoWrite** | Session UX only; mirror to SSOT plan / workflow snapshot (`{WORKFLOW_DIR}/<id>/snapshot.json`) when durable |
|
|
@@ -40,34 +40,62 @@ Use skill names in prompts and references. Avoid absolute local paths unless mai
|
|
|
40
40
|
| **Edit** / **Write** | Edits |
|
|
41
41
|
| **Glob** / **Grep** | Search (prefer over shell find/grep) |
|
|
42
42
|
| **WebSearch** / **WebFetch** | External docs / facts |
|
|
43
|
+
| **Skill** | Invoke bundled skills (`/morning-star-harness:pm`, `mstar-harness-core`, …) |
|
|
43
44
|
| **TaskOutput** / **TaskStop** | Long-running task management when present |
|
|
44
45
|
|
|
45
46
|
OpenCode-style `question`/`task`, Cursor **Task**, and Kimi **AgentSwarm** are **not** ZCode tools — do not assume them.
|
|
46
47
|
|
|
47
|
-
## Role agents (C5
|
|
48
|
+
## Role agents (C5)
|
|
48
49
|
|
|
49
|
-
ZCode
|
|
50
|
+
ZCode registers the plugin's Morning Star agents (`agents/*.md`) as callable **`subagent_type`** values alongside the built-in profiles, in both **bare role id** (`fullstack-dev`) and **plugin-qualified** (`morning-star-harness:fullstack-dev`) forms. Prefer the **bare role id** (verified on ZCode 0.16.5: the bare form loads the role shell body; the qualified form can silently fall back to the default prompt):
|
|
50
51
|
|
|
51
52
|
| `subagent_type` | ZCode profile | Harness mapping |
|
|
52
53
|
|-----------------|---------------|-----------------|
|
|
53
|
-
| `
|
|
54
|
-
| `
|
|
54
|
+
| `<role-id>` (bare, e.g. `fullstack-dev`, `qc-specialist`) | Registered plugin agent | **Preferred** for the matching Morning Star role |
|
|
55
|
+
| `Explore` | Built-in read-only exploration | Orientation, codebase survey, Prepare explore passes |
|
|
56
|
+
| `general-purpose` | Built-in general profile | **Universal fallback** when a role id is not exposed |
|
|
55
57
|
|
|
56
|
-
|
|
58
|
+
Role shells are thin — each body only states the role identity and points at the `mstar-roles` skill — so C5b prompt binding stays **required** on every dispatch regardless of `subagent_type`.
|
|
57
59
|
|
|
58
60
|
### Role binding in prompt (C5b — required)
|
|
59
61
|
|
|
60
|
-
|
|
62
|
+
ZCode C5/C5b SSOT is **this file** — do **not** load `_shared/host-role-binding-core.md` (that file is Kimi only). Role shells are thin (identity + skill pointer, not the full role prompt), so every role dispatch must carry:
|
|
63
|
+
|
|
64
|
+
1. **`Execute as: <role-id>`** in Assignment (harness routing SSOT).
|
|
65
|
+
2. **`Act as <role-id>`** (or equivalent) at the top of the invoke prompt.
|
|
66
|
+
3. **Skill load list** — instruct the subagent to read `mstar-roles` → `references/<role-id>.md` (or shared reference + parameters) and topic skills per that reference.
|
|
67
|
+
4. **`subagent_type`** — bare Morning Star role id per C5; `general-purpose` fallback.
|
|
68
|
+
|
|
69
|
+
Paste-only Assignment **without** an invoke call is **not** dispatch. Anti-recursion NEVER: leaf executors are already `Execute as` — no recursive invoke of the same role; Assignment wins (`Delegation: forbidden` unless stated). **Never** multiple implementer invokes in one message for the same plan (SDD serial → **`parallel-dispatch.md`** § SDD implement).
|
|
70
|
+
|
|
71
|
+
ZCode invoke shape (same turn):
|
|
61
72
|
|
|
62
73
|
```text
|
|
63
74
|
Agent(
|
|
64
|
-
subagent_type: "
|
|
75
|
+
subagent_type: "fullstack-dev",
|
|
65
76
|
description: "<short task label>",
|
|
66
|
-
prompt: "<full Assignment body including Act as + skill load>"
|
|
77
|
+
prompt: "<full Assignment body including Execute as + Act as + skill load>"
|
|
67
78
|
)
|
|
68
79
|
```
|
|
69
80
|
|
|
70
|
-
|
|
81
|
+
Assignment / prompt template:
|
|
82
|
+
|
|
83
|
+
```markdown
|
|
84
|
+
## Assignment
|
|
85
|
+
|
|
86
|
+
**Execute as**: fullstack-dev
|
|
87
|
+
**Delegation**: forbidden
|
|
88
|
+
**Working branch**: feat/example
|
|
89
|
+
**Plan Path**: .mstar/plans/20260717-example.md
|
|
90
|
+
|
|
91
|
+
**IDENTITY:** You ARE `fullstack-dev`. Act as `fullstack-dev` for this task.
|
|
92
|
+
|
|
93
|
+
Load: `mstar-harness-core` → `mstar-host` → `zcode.md` → `mstar-roles` → `references/fullstack-dev-shared.md` → topic skills per that reference.
|
|
94
|
+
|
|
95
|
+
<task body>
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
Role id not exposed (older ZCode) → `subagent_type: "general-purpose"` with the same body. For **`Explore`** orientation:
|
|
71
99
|
|
|
72
100
|
```text
|
|
73
101
|
Agent(subagent_type: "Explore", description: "...", prompt: "... Act as explore-only orientation; Execute as: n/a ...")
|
|
@@ -75,24 +103,24 @@ Agent(subagent_type: "Explore", description: "...", prompt: "... Act as explore-
|
|
|
75
103
|
|
|
76
104
|
## PM dispatch (`Agent`)
|
|
77
105
|
|
|
78
|
-
Harness **dispatch** on ZCode = **one or more `Agent` tool calls** with correct **`subagent_type`** and role-bound prompts (C5b
|
|
106
|
+
Harness **dispatch** on ZCode = **one or more `Agent` tool calls** with correct **`subagent_type`** and role-bound prompts (C5b — this file). N-parallel / 1-Assignment-1-invoke / paste-only mechanics → **`parallel-dispatch.md`**.
|
|
79
107
|
|
|
80
108
|
| Harness | ZCode |
|
|
81
109
|
|---------|-------|
|
|
82
110
|
| `Execute as: <role-id>` | Role id in Assignment + **Act as** + skill load in **Agent** prompt (C5b) |
|
|
83
|
-
| `subagent_type` for invoke |
|
|
111
|
+
| `subagent_type` for invoke | bare role id (e.g. `fullstack-dev`, `qc-specialist`); `general-purpose` fallback; `Explore` for read-only |
|
|
84
112
|
| Parallel batch **N** | **N `Agent`** calls in **one assistant message** |
|
|
85
113
|
|
|
86
114
|
### QC default
|
|
87
115
|
|
|
88
|
-
- **`Execution mode: sdd`**: **N=3** `Agent` calls (`qc-specialist`, `qc-specialist-2`, `qc-specialist-3`) — each prompt **Act as** the respective QC role, all `subagent_type: "general-purpose
|
|
116
|
+
- **`Execution mode: sdd`**: **N=3** `Agent` calls (`qc-specialist`, `qc-specialist-2`, `qc-specialist-3`) — each prompt **Act as** the respective QC role, all via bare `subagent_type: "qc-specialist"` / `"qc-specialist-2"` / `"qc-specialist-3"` (`general-purpose` fallback; N rules → `parallel-dispatch.md`).
|
|
89
117
|
- **`inline`**: **N=1** per `parallel-dispatch.md`.
|
|
90
118
|
|
|
91
119
|
Cannot emit required **N** → **`Blocked`**.
|
|
92
120
|
|
|
93
121
|
### SDD implement (serial)
|
|
94
122
|
|
|
95
|
-
- **`Execution mode: sdd`**: one implementer **`Agent`** per task id; task reviewer = new **`Agent`** with **Act as `code-reviewer`** (ZCode L2 review; not qc-specialist*), always
|
|
123
|
+
- **`Execution mode: sdd`**: one implementer **`Agent`** per task id (bare role id per C5, `general-purpose` fallback); task reviewer = new **`Agent`** with **Act as `code-reviewer`** (`subagent_type: "code-reviewer"`, `general-purpose` fallback; ZCode L2 review; not qc-specialist*), always with C5b prompt binding — no sticky resume unless host adds it later. Serial rule → **`parallel-dispatch.md`** § SDD implement.
|
|
96
124
|
- **Never** multiple implementer Agents in one message for the same plan.
|
|
97
125
|
|
|
98
126
|
## Clarify
|
|
@@ -125,5 +153,5 @@ Cannot emit required **N** → **`Blocked`**.
|
|
|
125
153
|
|
|
126
154
|
- Plugin install materializes source under `~/.zcode/cli/plugins/` — edit the harness checkout + reinstall to pick up harness changes.
|
|
127
155
|
- Session todos (`TodoWrite`) are not durable SSOT unless mirrored to `{HARNESS_DIR}`.
|
|
128
|
-
-
|
|
156
|
+
- Morning Star roles **are** registered as ZCode subagent types from `agents/*.md` — but the shells are thin, so role binding is **still always** prompt + skill load (C5b); prefer bare role ids, the qualified form can fall back to the default prompt.
|
|
129
157
|
- ZCode has no `sessionStart.skill`; new sessions do **not** auto-load PM — invoke `/morning-star-harness:pm` or `/skill:pm` manually.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mstar-harness/omp",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.1",
|
|
4
4
|
"description": "Morning Star harness omp (Oh My Pi) plugin — engine-backed runtime gates (status/dispatch/lease) + mstar-* skills, commands, and agents for omp.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
package/plugin.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "morning-star-harness",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.1",
|
|
4
4
|
"description": "Morning Star — Agent Plugin for harness engineering workflows: a TS Harness Workflow Engine (@mstar-harness/engine) that enforces deterministic workflow gates, plus mstar-* judgment skills for multi-agent code delivery across OpenCode, Cursor, Codex, Kimi Code, ZCode, and omp.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Bohao Tang",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: mstar-host
|
|
3
|
-
description: Morning Star host adapter
|
|
3
|
+
description: Morning Star host adapter for OpenCode, Cursor, Codex, Kimi, ZCode, omp, and dsh. Use after mstar-harness-core whenever host entry, clarify, dispatch, plan mode, or tool UX differs by platform - per-host subagent invoke, plan-mode bridge, parallel dispatch, and skill/command loading. Auto-detect the host from session tools, then Read references/<host>.md. Always load after mstar-harness-core.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Morning Star Host Adapter
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
# Host role-binding core (C5/C5b)
|
|
2
2
|
|
|
3
|
-
Shared role-binding contract for **Kimi
|
|
3
|
+
Shared role-binding contract for **Kimi** — the host where Morning Star role ids are **never** valid invoke types, so picking `subagent_type` alone cannot carry Assignment IDENTITY + skill load.
|
|
4
4
|
|
|
5
|
-
Other hosts follow their own `references/<host>.md` and do **not** use this file for agent selection. Read this file only when the active host reference is Kimi
|
|
5
|
+
Other hosts follow their own `references/<host>.md` and do **not** use this file for agent selection. Read this file only when the active host reference is Kimi.
|
|
6
6
|
|
|
7
|
-
## C5 — invoke type selection (Kimi
|
|
7
|
+
## C5 — invoke type selection (Kimi)
|
|
8
8
|
|
|
9
9
|
| Host | Invoke-type selection (C5) | Prompt role binding (C5b) |
|
|
10
10
|
|------|----------------------------|---------------------------|
|
|
11
|
-
| **Kimi
|
|
11
|
+
| **Kimi** | Built-in types only (`coder` / `explore` / `plan`, …). Morning Star role ids are **never** valid invoke types. | **Required** |
|
|
12
12
|
|
|
13
13
|
- **Never invent** agent / subagent names. The **live tool schema** (plus the active host reference C5 table) is SSOT every session.
|
|
14
14
|
- Morning Star role ids (`product-manager`, `fullstack-dev`, `qc-specialist`, …) are **not** valid invoke types — map via the host reference table (`coder` / `explore` / `plan`, …), then rely on C5b.
|
|
15
15
|
|
|
16
16
|
## C5b — role binding in prompt (required)
|
|
17
17
|
|
|
18
|
-
Every dispatch on Kimi
|
|
18
|
+
Every dispatch on Kimi **must** carry the played Morning Star role in the **Assignment** and in the **invoke prompt**:
|
|
19
19
|
|
|
20
20
|
1. **`Execute as: <role-id>`** in Assignment (harness routing SSOT).
|
|
21
21
|
2. **`Act as <role-id>`** (or equivalent) at the top of the invoke prompt.
|
|
@@ -48,4 +48,4 @@ Load: `mstar-harness-core` → `mstar-host` → `<host>.md` → `mstar-roles`
|
|
|
48
48
|
<task body>
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
-
The active host reference shows the matching invoke shape (same turn) — e.g. Kimi
|
|
51
|
+
The active host reference shows the matching invoke shape (same turn) — e.g. Kimi `Agent` with `subagent_type: "coder"` plus this C5b body.
|
|
@@ -106,7 +106,7 @@ Single-task shorthand may exist depending on host version — always match the l
|
|
|
106
106
|
|
|
107
107
|
### Role binding in prompt (C5b — required)
|
|
108
108
|
|
|
109
|
-
omp C5/C5b SSOT is **this file
|
|
109
|
+
omp C5/C5b SSOT is **this file**. Even when `agent` already matches the role id, still bind Morning Star process in the Assignment / `task` body (agent shell ≠ full role prompt; skill load is not automatic).
|
|
110
110
|
|
|
111
111
|
Required in every role dispatch:
|
|
112
112
|
|
|
@@ -11,9 +11,9 @@ Parallel PM dispatch: read **`parallel-dispatch.md`** when dispatching **N ≥ 2
|
|
|
11
11
|
- Plugin manifest: **`.zcode-plugin/plugin.json`** (plugin root is the **repo root**; paths stay `./skills/`, `./commands/`, `./agents/`).
|
|
12
12
|
- Runtime skills: repo `skills/` mounted by the plugin (`"skills": "./skills/"`).
|
|
13
13
|
- Plugin commands: repo `commands/` → `/morning-star-harness:<name>` (e.g. `/morning-star-harness:iteration-start`).
|
|
14
|
-
- Plugin agents: repo `agents/*.md` (role frontmatter `name` + `description
|
|
14
|
+
- Plugin agents: repo `agents/*.md` (role frontmatter `name` + **single-line quoted English `description`** — ZCode's flat frontmatter parser cannot read `|-` block scalars and silently drops nested `tools`/`permission` maps). ZCode registers them as callable `subagent_type`s in both bare (`fullstack-dev`) and plugin-qualified (`morning-star-harness:fullstack-dev`) forms (see C5).
|
|
15
15
|
- **No `sessionStart.skill`** (ZCode has no Kimi-style session auto-load) — enter PM manually via **`/morning-star-harness:pm`** or the **`pm`** skill, then **Read next** → `mstar-harness-core` → `project-manager.md`.
|
|
16
|
-
- Install (user-scoped, recommended): `npx @mstar-harness/cli init --target zcode --scope global`, then in ZCode **Settings → Plugin Management → Discover** install **morning-star-harness** from the **mstar-local** marketplace
|
|
16
|
+
- Install (user-scoped, recommended): `npx @mstar-harness/cli init --target zcode --scope global`, then in ZCode **Settings → Plugin Management → Discover** install **morning-star-harness** from the **mstar-local** marketplace. Direct-add also works without the CLI: the repo ships `.claude-plugin/marketplace.json` (root `marketplace.json` fallback), which ZCode discovers when refreshing a `github`-source marketplace.
|
|
17
17
|
- Plugins are **user-scoped** (all projects); managed copy lives under `~/.zcode/cli/plugins/` after install.
|
|
18
18
|
- Project `.agents/skills/` symlinks are **not** required when using the plugin — commands and skills come from the plugin mount.
|
|
19
19
|
|
|
@@ -31,7 +31,7 @@ Use skill names in prompts and references. Avoid absolute local paths unless mai
|
|
|
31
31
|
|
|
32
32
|
| ZCode tool | Harness use |
|
|
33
33
|
|------------|-------------|
|
|
34
|
-
| **Agent** | Primary dispatch — delegate one subagent task (`subagent_type`:
|
|
34
|
+
| **Agent** | Primary dispatch — delegate one subagent task (`subagent_type`: bare Morning Star role id, e.g. `fullstack-dev`; `general-purpose` fallback; `Explore` read-only) |
|
|
35
35
|
| **AskUserQuestion** | Structured clarify (1–4 questions, 2–4 options each); prefer over free-form when choices are known |
|
|
36
36
|
| **EnterPlanMode** / **ExitPlanMode** | Plan mode entry/approval → **`zcode-plan-mode-bridge.md`** |
|
|
37
37
|
| **TodoWrite** | Session UX only; mirror to SSOT plan / workflow snapshot (`{WORKFLOW_DIR}/<id>/snapshot.json`) when durable |
|
|
@@ -40,34 +40,62 @@ Use skill names in prompts and references. Avoid absolute local paths unless mai
|
|
|
40
40
|
| **Edit** / **Write** | Edits |
|
|
41
41
|
| **Glob** / **Grep** | Search (prefer over shell find/grep) |
|
|
42
42
|
| **WebSearch** / **WebFetch** | External docs / facts |
|
|
43
|
+
| **Skill** | Invoke bundled skills (`/morning-star-harness:pm`, `mstar-harness-core`, …) |
|
|
43
44
|
| **TaskOutput** / **TaskStop** | Long-running task management when present |
|
|
44
45
|
|
|
45
46
|
OpenCode-style `question`/`task`, Cursor **Task**, and Kimi **AgentSwarm** are **not** ZCode tools — do not assume them.
|
|
46
47
|
|
|
47
|
-
## Role agents (C5
|
|
48
|
+
## Role agents (C5)
|
|
48
49
|
|
|
49
|
-
ZCode
|
|
50
|
+
ZCode registers the plugin's Morning Star agents (`agents/*.md`) as callable **`subagent_type`** values alongside the built-in profiles, in both **bare role id** (`fullstack-dev`) and **plugin-qualified** (`morning-star-harness:fullstack-dev`) forms. Prefer the **bare role id** (verified on ZCode 0.16.5: the bare form loads the role shell body; the qualified form can silently fall back to the default prompt):
|
|
50
51
|
|
|
51
52
|
| `subagent_type` | ZCode profile | Harness mapping |
|
|
52
53
|
|-----------------|---------------|-----------------|
|
|
53
|
-
| `
|
|
54
|
-
| `
|
|
54
|
+
| `<role-id>` (bare, e.g. `fullstack-dev`, `qc-specialist`) | Registered plugin agent | **Preferred** for the matching Morning Star role |
|
|
55
|
+
| `Explore` | Built-in read-only exploration | Orientation, codebase survey, Prepare explore passes |
|
|
56
|
+
| `general-purpose` | Built-in general profile | **Universal fallback** when a role id is not exposed |
|
|
55
57
|
|
|
56
|
-
|
|
58
|
+
Role shells are thin — each body only states the role identity and points at the `mstar-roles` skill — so C5b prompt binding stays **required** on every dispatch regardless of `subagent_type`.
|
|
57
59
|
|
|
58
60
|
### Role binding in prompt (C5b — required)
|
|
59
61
|
|
|
60
|
-
|
|
62
|
+
ZCode C5/C5b SSOT is **this file** — do **not** load `_shared/host-role-binding-core.md` (that file is Kimi only). Role shells are thin (identity + skill pointer, not the full role prompt), so every role dispatch must carry:
|
|
63
|
+
|
|
64
|
+
1. **`Execute as: <role-id>`** in Assignment (harness routing SSOT).
|
|
65
|
+
2. **`Act as <role-id>`** (or equivalent) at the top of the invoke prompt.
|
|
66
|
+
3. **Skill load list** — instruct the subagent to read `mstar-roles` → `references/<role-id>.md` (or shared reference + parameters) and topic skills per that reference.
|
|
67
|
+
4. **`subagent_type`** — bare Morning Star role id per C5; `general-purpose` fallback.
|
|
68
|
+
|
|
69
|
+
Paste-only Assignment **without** an invoke call is **not** dispatch. Anti-recursion NEVER: leaf executors are already `Execute as` — no recursive invoke of the same role; Assignment wins (`Delegation: forbidden` unless stated). **Never** multiple implementer invokes in one message for the same plan (SDD serial → **`parallel-dispatch.md`** § SDD implement).
|
|
70
|
+
|
|
71
|
+
ZCode invoke shape (same turn):
|
|
61
72
|
|
|
62
73
|
```text
|
|
63
74
|
Agent(
|
|
64
|
-
subagent_type: "
|
|
75
|
+
subagent_type: "fullstack-dev",
|
|
65
76
|
description: "<short task label>",
|
|
66
|
-
prompt: "<full Assignment body including Act as + skill load>"
|
|
77
|
+
prompt: "<full Assignment body including Execute as + Act as + skill load>"
|
|
67
78
|
)
|
|
68
79
|
```
|
|
69
80
|
|
|
70
|
-
|
|
81
|
+
Assignment / prompt template:
|
|
82
|
+
|
|
83
|
+
```markdown
|
|
84
|
+
## Assignment
|
|
85
|
+
|
|
86
|
+
**Execute as**: fullstack-dev
|
|
87
|
+
**Delegation**: forbidden
|
|
88
|
+
**Working branch**: feat/example
|
|
89
|
+
**Plan Path**: .mstar/plans/20260717-example.md
|
|
90
|
+
|
|
91
|
+
**IDENTITY:** You ARE `fullstack-dev`. Act as `fullstack-dev` for this task.
|
|
92
|
+
|
|
93
|
+
Load: `mstar-harness-core` → `mstar-host` → `zcode.md` → `mstar-roles` → `references/fullstack-dev-shared.md` → topic skills per that reference.
|
|
94
|
+
|
|
95
|
+
<task body>
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
Role id not exposed (older ZCode) → `subagent_type: "general-purpose"` with the same body. For **`Explore`** orientation:
|
|
71
99
|
|
|
72
100
|
```text
|
|
73
101
|
Agent(subagent_type: "Explore", description: "...", prompt: "... Act as explore-only orientation; Execute as: n/a ...")
|
|
@@ -75,24 +103,24 @@ Agent(subagent_type: "Explore", description: "...", prompt: "... Act as explore-
|
|
|
75
103
|
|
|
76
104
|
## PM dispatch (`Agent`)
|
|
77
105
|
|
|
78
|
-
Harness **dispatch** on ZCode = **one or more `Agent` tool calls** with correct **`subagent_type`** and role-bound prompts (C5b
|
|
106
|
+
Harness **dispatch** on ZCode = **one or more `Agent` tool calls** with correct **`subagent_type`** and role-bound prompts (C5b — this file). N-parallel / 1-Assignment-1-invoke / paste-only mechanics → **`parallel-dispatch.md`**.
|
|
79
107
|
|
|
80
108
|
| Harness | ZCode |
|
|
81
109
|
|---------|-------|
|
|
82
110
|
| `Execute as: <role-id>` | Role id in Assignment + **Act as** + skill load in **Agent** prompt (C5b) |
|
|
83
|
-
| `subagent_type` for invoke |
|
|
111
|
+
| `subagent_type` for invoke | bare role id (e.g. `fullstack-dev`, `qc-specialist`); `general-purpose` fallback; `Explore` for read-only |
|
|
84
112
|
| Parallel batch **N** | **N `Agent`** calls in **one assistant message** |
|
|
85
113
|
|
|
86
114
|
### QC default
|
|
87
115
|
|
|
88
|
-
- **`Execution mode: sdd`**: **N=3** `Agent` calls (`qc-specialist`, `qc-specialist-2`, `qc-specialist-3`) — each prompt **Act as** the respective QC role, all `subagent_type: "general-purpose
|
|
116
|
+
- **`Execution mode: sdd`**: **N=3** `Agent` calls (`qc-specialist`, `qc-specialist-2`, `qc-specialist-3`) — each prompt **Act as** the respective QC role, all via bare `subagent_type: "qc-specialist"` / `"qc-specialist-2"` / `"qc-specialist-3"` (`general-purpose` fallback; N rules → `parallel-dispatch.md`).
|
|
89
117
|
- **`inline`**: **N=1** per `parallel-dispatch.md`.
|
|
90
118
|
|
|
91
119
|
Cannot emit required **N** → **`Blocked`**.
|
|
92
120
|
|
|
93
121
|
### SDD implement (serial)
|
|
94
122
|
|
|
95
|
-
- **`Execution mode: sdd`**: one implementer **`Agent`** per task id; task reviewer = new **`Agent`** with **Act as `code-reviewer`** (ZCode L2 review; not qc-specialist*), always
|
|
123
|
+
- **`Execution mode: sdd`**: one implementer **`Agent`** per task id (bare role id per C5, `general-purpose` fallback); task reviewer = new **`Agent`** with **Act as `code-reviewer`** (`subagent_type: "code-reviewer"`, `general-purpose` fallback; ZCode L2 review; not qc-specialist*), always with C5b prompt binding — no sticky resume unless host adds it later. Serial rule → **`parallel-dispatch.md`** § SDD implement.
|
|
96
124
|
- **Never** multiple implementer Agents in one message for the same plan.
|
|
97
125
|
|
|
98
126
|
## Clarify
|
|
@@ -125,5 +153,5 @@ Cannot emit required **N** → **`Blocked`**.
|
|
|
125
153
|
|
|
126
154
|
- Plugin install materializes source under `~/.zcode/cli/plugins/` — edit the harness checkout + reinstall to pick up harness changes.
|
|
127
155
|
- Session todos (`TodoWrite`) are not durable SSOT unless mirrored to `{HARNESS_DIR}`.
|
|
128
|
-
-
|
|
156
|
+
- Morning Star roles **are** registered as ZCode subagent types from `agents/*.md` — but the shells are thin, so role binding is **still always** prompt + skill load (C5b); prefer bare role ids, the qualified form can fall back to the default prompt.
|
|
129
157
|
- ZCode has no `sessionStart.skill`; new sessions do **not** auto-load PM — invoke `/morning-star-harness:pm` or `/skill:pm` manually.
|