@mstar-harness/cli 3.10.0 → 3.10.2
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/mstar-harness.js +9 -0
- package/package.json +1 -1
package/dist/mstar-harness.js
CHANGED
|
@@ -3984,6 +3984,15 @@ async function recordWorkflowDelivery(workflowId, dir, opts) {
|
|
|
3984
3984
|
if (stableJson(snapshot.delivery ?? null) === stableJson(merged)) {
|
|
3985
3985
|
return { snapshot, written: false };
|
|
3986
3986
|
}
|
|
3987
|
+
const tailMembers = members.filter((member) => member === "compound" || member === "pr" || member === "merge");
|
|
3988
|
+
if (tailMembers.length > 0) {
|
|
3989
|
+
const notDone = snapshot.plans.filter((row) => row.status !== "Done");
|
|
3990
|
+
if (notDone.length > 0) {
|
|
3991
|
+
const rowDetail = notDone.map((row) => `${row.id} (${JSON.stringify(row.status)})`).join(", ");
|
|
3992
|
+
const detail = violation3("high", "PHASE6_PLAN_ROW_NOT_DONE", `owned plan row(s) ${rowDetail} are not Done - every plan row must be Done before the delivery tail (${tailMembers.join(", ")}) is recorded (mstar-artifacts/references/plan-workflow-lifecycle-contract.md section 3: row Done -> compound disposition -> PR identity -> verified-merge record)`, `Bring every owned plan row to Done, then record delivery evidence with 'mstar workflow evidence --workflow ${workflowId} --file <payload.json>'`);
|
|
3993
|
+
throw new Error(`refusing to record delivery evidence: ${detail.code}: ${detail.message}${detail.fix !== undefined ? ` (fix: ${detail.fix})` : ""}`);
|
|
3994
|
+
}
|
|
3995
|
+
}
|
|
3987
3996
|
const next = { ...snapshot, delivery: merged, updated_at: at };
|
|
3988
3997
|
await validateAndPutWorkflowSnapshot(store, next, snapshotPath);
|
|
3989
3998
|
return { snapshot: next, written: true };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mstar-harness/cli",
|
|
3
|
-
"version": "3.10.
|
|
3
|
+
"version": "3.10.2",
|
|
4
4
|
"description": "Morning Star harness CLI — installer bootstrap + mstar workflow verbs (path/status/lease/sdd/iteration/dispatch/worktree/lint/design-md/audit/compound/host/skill).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|