@williambeto/ai-workflow 2.8.1 → 2.8.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.
@@ -32,7 +32,7 @@ import {
32
32
  QualityGuard,
33
33
  ValidationPlanner,
34
34
  parseDeliveryOutcomeClaim
35
- } from "../chunk-LD7EHAU2.js";
35
+ } from "../chunk-GLYX3HEY.js";
36
36
  import {
37
37
  DeliveryDecisionEngine
38
38
  } from "../chunk-H7GIKXFO.js";
@@ -3643,7 +3643,7 @@ var commandMap = {
3643
3643
  });
3644
3644
  },
3645
3645
  validate: async (_, flags) => {
3646
- const { runValidate } = await import("../validate-F3ZH63LI.js");
3646
+ const { runValidate } = await import("../validate-DDKN6ORS.js");
3647
3647
  await runValidate({
3648
3648
  cwd: process.cwd(),
3649
3649
  taskSlug: flags.taskSlug,
@@ -710,8 +710,13 @@ var EvidenceCollector = class {
710
710
  let overallStatus = "PASS";
711
711
  if (results.some((result) => ["FAIL", "BLOCKED", "FAIL_QUALITY_GATE"].includes(result.status))) overallStatus = "FAIL_QUALITY_GATE";
712
712
  else if (implementation && deliveryChangedFiles.length > 0 && !validationObserved) overallStatus = "BLOCKED";
713
- else if (behaviorTestRequired && !passingBehaviorTest) overallStatus = "BLOCKED";
714
- else if (["FAIL", "BLOCKED", "FAIL_QUALITY_GATE"].includes(policyValidation.overallStatus)) overallStatus = "FAIL_QUALITY_GATE";
713
+ else if (behaviorTestRequired && !passingBehaviorTest) {
714
+ if (this.riskLevel === "high") {
715
+ overallStatus = "BLOCKED";
716
+ } else {
717
+ overallStatus = "PASS_WITH_NOTES";
718
+ }
719
+ } else if (["FAIL", "BLOCKED", "FAIL_QUALITY_GATE"].includes(policyValidation.overallStatus)) overallStatus = "FAIL_QUALITY_GATE";
715
720
  else if (results.some((result) => result.status === "PASS_WITH_NOTES") || policyValidation.overallStatus === "PASS_WITH_NOTES") overallStatus = "PASS_WITH_NOTES";
716
721
  if (!artifactFidelityCheck || !artifactFidelityCheck.passed) {
717
722
  overallStatus = "BLOCKED";
@@ -757,12 +762,16 @@ var EvidenceCollector = class {
757
762
  "configure or run the smallest relevant validator"
758
763
  ));
759
764
  if (behaviorTestRequired && behaviorTests.length === 0) {
760
- limitations.push(blockingDiagnostic(
761
- "behavior-test",
762
- "UI or test-capable executable behavior changed without an automated behavior test",
763
- "a relevant automated behavior test must pass",
764
- "run or configure the focused behavior test; build, lint, and screenshots are not substitutes"
765
- ));
765
+ if (this.riskLevel === "high") {
766
+ limitations.push(blockingDiagnostic(
767
+ "behavior-test",
768
+ "UI or test-capable executable behavior changed without an automated behavior test",
769
+ "a relevant automated behavior test must pass",
770
+ "run or configure the focused behavior test; build, lint, and screenshots are not substitutes"
771
+ ));
772
+ } else {
773
+ limitations.push("behavior-test: UI or executable behavior changed without an automated behavior test (allowed for low/medium risk tasks)");
774
+ }
766
775
  }
767
776
  for (const result of results) {
768
777
  if (["FAIL", "BLOCKED", "FAIL_QUALITY_GATE"].includes(result.status)) {
@@ -1044,4 +1053,4 @@ export {
1044
1053
  EvidenceCollector,
1045
1054
  ValidationPlanner
1046
1055
  };
1047
- //# sourceMappingURL=chunk-LD7EHAU2.js.map
1056
+ //# sourceMappingURL=chunk-GLYX3HEY.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@williambeto/ai-workflow",
3
- "version": "2.8.1",
3
+ "version": "2.8.2",
4
4
  "description": "AI Workflow Kit — OpenCode-first software delivery workflow with agents, commands, skills, validation, and evidence",
5
5
  "license": "MIT",
6
6
  "author": "José Willams",
@@ -3,7 +3,7 @@ import {
3
3
  QualityGuard,
4
4
  ValidationPlanner,
5
5
  VisualVerifier
6
- } from "./chunk-LD7EHAU2.js";
6
+ } from "./chunk-GLYX3HEY.js";
7
7
  import "./chunk-H7GIKXFO.js";
8
8
  import "./chunk-5WRI5ZAA.js";
9
9
 
@@ -86,4 +86,4 @@ async function runValidate({
86
86
  export {
87
87
  runValidate
88
88
  };
89
- //# sourceMappingURL=validate-F3ZH63LI.js.map
89
+ //# sourceMappingURL=validate-DDKN6ORS.js.map