@mstar-harness/dsh 3.9.2 → 3.9.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.
- package/dist/index.js +2 -0
- package/harness-skills/mstar-artifacts/references/plan-quality-bar.md +1 -1
- package/harness-skills/mstar-artifacts/templates/plan.main.md +1 -1
- package/harness-skills/mstar-e2e/SKILL.md +1 -1
- package/harness-skills/mstar-harness-core/SKILL.md +1 -1
- package/harness-skills/mstar-phase-gates/SKILL.md +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4202,6 +4202,8 @@ function findEphemeralCitations(skillText) {
|
|
|
4202
4202
|
}
|
|
4203
4203
|
return citations;
|
|
4204
4204
|
}
|
|
4205
|
+
var DATED_SLUG_TOKEN_SOURCE = "\\b20\\d{6}-[a-z0-9][a-z0-9-]*\\b(?!\\.\\d)";
|
|
4206
|
+
var DATED_SLUG_TOKEN_RE = new RegExp(DATED_SLUG_TOKEN_SOURCE, "g");
|
|
4205
4207
|
var WORKFLOW_VERB_START_RE = /^(?:explains?|describes?|covers?|provides?|walks?|guides?|shows?|lists?|details?|demonstrates?|outlines?|teaches?|summarizes?)\b/i;
|
|
4206
4208
|
var PRONOUN_RE = /\bI\b(?!\/)|\b(?:we|you|my|our|your|us)\b/gi;
|
|
4207
4209
|
var DESCRIPTION_MAX_WORDS = 120;
|
|
@@ -21,7 +21,7 @@ Before a plan is locked, verify every item:
|
|
|
21
21
|
|
|
22
22
|
### 2. Verification gates
|
|
23
23
|
|
|
24
|
-
Each verification step names the changed behavior, exact scoped command and expected result, or reusable evidence with its applicability. Use only checks needed for this change; discovering a repository command does not make it a gate. Scope authority → `mstar-harness-core` § 定向执行与验证边界.
|
|
24
|
+
Each verification step names the changed behavior, exact scoped command and expected result, or reusable evidence with its applicability. Use only checks needed for this change; discovering a repository command does not make it a gate. Scope authority → `mstar-harness-core` § 定向执行与验证边界. Verification gates stay inside the change's own layer: a development plan's task never gates on real-browser, device, or installed-deployment E2E — that verification lives only in a separately requested `mstar-e2e` workflow, whose own scenario rows are its legitimate tasks.
|
|
25
25
|
|
|
26
26
|
| Pattern | Weak (do not use) | Strong (scope first) |
|
|
27
27
|
|---------|-------------------|----------------------|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
## Global Constraints
|
|
16
16
|
|
|
17
|
-
[Project requirements — version floors, naming, exact values — copied verbatim from spec. Every task includes them. Verification scope follows `mstar-harness-core` § 定向执行与验证边界: only changed behavior and direct contracts; no local full suites without explicit user permission.]
|
|
17
|
+
[Project requirements — version floors, naming, exact values — copied verbatim from spec. Every task includes them. Verification scope follows `mstar-harness-core` § 定向执行与验证边界: only changed behavior and direct contracts; no local full suites without explicit user permission. Never assign real-browser/device/installed-deployment E2E evidence as a task or a gate of a development plan; each layer proves itself with its own unit/integration tests. Real-environment verification lives only in a separately requested `mstar-e2e` workflow, whose named scenarios are that workflow's own plan rows.]
|
|
18
18
|
|
|
19
19
|
---
|
|
20
20
|
|
|
@@ -16,7 +16,7 @@ This is an explicitly requested verification workflow, separate from development
|
|
|
16
16
|
## Workflow
|
|
17
17
|
|
|
18
18
|
1. **PM scopes the request.** Record the existing user authorization, build/ref, environment/device, named scenarios and expected results, permitted side effects, capability, and report path. Ask only for missing required inputs; never infer production, accounts, or devices. Reuse relevant knowledge without a new global scan.
|
|
19
|
-
2. **PM registers independent work.** Use existing workflow `type: plan`, its own workflow/plan IDs and working context. Snapshot states are `running | paused | completed | failed | stopped`; plan rows use `Todo → InProgress → InReview → Done/Blocked`. Do not insert an iteration phase, ordinary QA gate, or automatic QC tri-review into a verification-only run.
|
|
19
|
+
2. **PM registers independent work.** Use existing workflow `type: plan`, its own workflow/plan IDs and working context. Snapshot states are `running | paused | completed | failed | stopped`; plan rows use `Todo → InProgress → InReview → Done/Blocked`. Do not insert an iteration phase, ordinary QA gate, or automatic QC tri-review into a verification-only run. The scenario rows registered here are the legitimate exception to the "never a development plan's task" boundary in `mstar-harness-core` § 定向执行与验证边界 — that boundary governs development plans, not this verification-only workflow.
|
|
20
20
|
3. **PM dispatches ops.** Use `Execute as: ops-engineer`, `Task category: ops`, `Delegation: forbidden`, and the existing Scope / Inputs / Constraints / Evidence Required / Acceptance Criteria fields. Pass the concrete report path under `{WORKFLOW_DIR}/<workflow-id>/reports/e2e.md`. Ops executes only the named scenarios and records actual results using `references/report-template.md`.
|
|
21
21
|
4. **Run independent scenarios concurrently** when sessions, devices, data, and writable state are isolated. Serialize shared state. Stop when the assigned scenarios finish; new environments or broader suites need matching user authorization.
|
|
22
22
|
5. **PM reviews the scoped report and closes.** `InReview` means report acceptance against the scenario list, not another broad code review. Ops returns evidence and cannot mark Done. PM owns the final plan/workflow state and any bounded repair handoff; preserve the originating iteration's state and unit-test evidence.
|
|
@@ -140,7 +140,7 @@ Read **`mstar-host`** after this skill; detect host per its table, then Read the
|
|
|
140
140
|
- **只读审查席位有界。** review / QC / L2 task review 的范围是 Assignment 的 diff pack 加直接影响接口;只在 must-fix 线索上跟进出界。默认 **≤ 12 次文件打开或 ≤ 10 分钟**(PM 按 Assignment `Budget` 收紧,不得放宽);席位还必须写明 `Return shape`(返回什么、如何在预算内停下),干净轮次显式返回 `findings: []` 而非散文。`Task category: audit` 的轮次同受这两项约束,即使 `Execute as` 不在 QC 席位集内(`audit` 类请求可落在 `@code-reviewer` 之外的执行者上)。触达即停止扩展:返回当前 verdict 与已得 findings,并在报告 `## Scope` 声明 `Truncated coverage:`。**截断 ≠ `Unconfirmed`**——后者仍是证据通道失败态并阻断 `Approve`;未覆盖范围按既有「未提及 = 未审查」由 PM 汇总,且部分覆盖的运行不可作为批准——门禁语义 → `mstar-review-qc`。
|
|
141
141
|
- **验证按变更映射。** 可执行逻辑使用对应单测;非可执行文档与 prompt/skill 策略使用真实定向静态或 before/after 证据,不制造测试文件。SDD 的 `Verification mode: scoped-check` 格式与适用性 → `mstar-sdd/references/file-handoffs.md`。报告结构校验不证明命令执行或 diff 适用性,也不是任意 shell 拦截器。
|
|
142
142
|
- **只使受影响证据失效。** HEAD 或 Review range 改变不等于全部重跑;复用仍有效的 L1/CI/先前 QA 证据,记明原范围及仍适用的理由。fix 只验证相关回归;QC 复审只看归属 finding、fix delta 与直接接口。`full tri-review` 表示席位数量,不授权全仓 review;QC 不运行 test/build/install。
|
|
143
|
-
- **QA 仅定向单元测试与验收证据映射。** 模式仅 `acceptance-only` / `targeted` / `report-only`。用户许可的本地全量由实现 owner 或 ops 另接明确行动,QA 只消费证据。真实浏览器、真机、安装/部署 E2E 仅由用户显式启动独立 `mstar-e2e` workflow,PM 编排、ops
|
|
143
|
+
- **QA 仅定向单元测试与验收证据映射。** 模式仅 `acceptance-only` / `targeted` / `report-only`。用户许可的本地全量由实现 owner 或 ops 另接明确行动,QA 只消费证据。真实浏览器、真机、安装/部署 E2E 仅由用户显式启动独立 `mstar-e2e` workflow,PM 编排、ops 执行;**不作为迭代 QA gate,也不作为开发 plan 的 task 或任何 gate 的证据义务**——各层以自身单测/集成测试自证;真实环境验证只在该独立 workflow 内发生,其命名场景即该 workflow 的 plan rows。未验证的真实环境行为如实记录,不伪称通过。
|
|
144
144
|
- **依赖允许即并行。** PM 对无依赖、写所有权及 worktree 隔离的 ready tasks 并行派发;共享写目标、同一 session/ledger、前置接口与 integration merge 才按具体约束串行。leaf 不因并行策略获得派发权限。
|
|
145
145
|
- **完成即交付。** Assignment 给出任务、输入、所有权、允许检查与可观察结果;执行者只解答这些问题,不重复分析已解决内容、不顺手修复或增加“保险”检查。真实范围缺口返回 PM,已有证据充分即停止。
|
|
146
146
|
|
|
@@ -110,6 +110,7 @@ per-plan Done 是 per-plan 的闭环终点;compound 是迭代级收口活动
|
|
|
110
110
|
- Prepare 阶段证据:问题定义、歧义结论、plan 链接。
|
|
111
111
|
- Execute 阶段证据:tasks 清单、实现自检、审查/验证证据。
|
|
112
112
|
- 结论证据:不得仅写"done",必须可复核(命令、输出、截图或复现步骤)。
|
|
113
|
+
- **证据与变更同层。** 单测/集成测试是 plan task 的默认证据;**开发 plan** 中,真实浏览器、真机、安装/部署 E2E **不写成 task,也不构成任何 gate 的证据义务**——各层自行测试,缺环境如实记为未验证。这类验证的**唯一**落点是用户显式请求的独立 `mstar-e2e` workflow:该 workflow 自身以 plan 注册并承载命名场景,是此边界的合法例外(授权来源见 `mstar-harness-core` § 定向执行与验证边界)。issue/需求/验收文本中出现的端到端场景**不构成**在开发 plan 中加 task 的授权。
|
|
113
114
|
|
|
114
115
|
## References
|
|
115
116
|
|
package/package.json
CHANGED