muse-crew 0.14.6 → 0.14.7

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/workflows/docs.js CHANGED
@@ -543,7 +543,17 @@ function describeWorkAgentFailure(stepName, identity, attempts) {
543
543
  "Run in shell and return the stdout verbatim:\n" + crewCmd("record-phase", {
544
544
  task_id: taskId,
545
545
  session: { id: activeSessionId, task_id: taskId, identity: step.identity, step: step.name, status: "failed", notes: "Worker report had no single unambiguous VERDICT: PASS/FAIL line (bounded re-ask exhausted)" },
546
- event: { task_id: taskId, type: "failed", message: step.name + " verdict line missing or ambiguous, re-ask exhausted — phase failed, dispatcher will retry" }
546
+ event: { task_id: taskId, type: "failed", message: step.name + " verdict line missing or ambiguous, re-ask exhausted — phase failed, dispatcher will retry" },
547
+ // Room #26 blocker 33: INDETERMINATE verdict record — the report
548
+ // could not be read at all, but its full text is still preserved
549
+ // as grounds. (docs has Review as its only verdict step.)
550
+ verdict: {
551
+ step: "Review",
552
+ attempt: reworkCount,
553
+ reviewer: step.identity,
554
+ verdict: "INDETERMINATE",
555
+ grounds: workerText
556
+ }
547
557
  }) + "\n",
548
558
  { key: "record-block-" + step.name, label: "Recording verdict failure" }
549
559
  );
@@ -578,7 +588,19 @@ function describeWorkAgentFailure(stepName, identity, attempts) {
578
588
  "Run in shell and return the stdout verbatim:\n" + crewCmd("record-phase", {
579
589
  task_id: taskId,
580
590
  session: { id: activeSessionId, task_id: taskId, identity: step.identity, step: step.name, status: status, notes: summary },
581
- event: { task_id: taskId, type: status, identity: step.identity, message: step.name + " " + status + " by " + step.identity }
591
+ event: { task_id: taskId, type: status, identity: step.identity, message: step.name + " " + status + " by " + step.identity },
592
+ // Room #26 blocker 33: structured, non-lossy Review verdict record.
593
+ // The session note above is truncated; the verdict row carries the
594
+ // full worker report as grounds, written in the same transaction.
595
+ // attempt is the rework round (0 = first Review). (docs has Review
596
+ // as its only verdict step, so verdictPassed is always set here.)
597
+ verdict: (verdictPassed !== null ? {
598
+ step: "Review",
599
+ attempt: reworkCount,
600
+ reviewer: step.identity,
601
+ verdict: verdictPassed ? "PASS" : "FAIL",
602
+ grounds: workerText
603
+ } : null)
582
604
  }) + "\n",
583
605
  {
584
606
  key: "record-" + step.name + (reworkCount > 0 ? "-r" + reworkCount : ""),