@ikunin/sprintpilot 2.2.21 → 2.2.22

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.
@@ -566,10 +566,26 @@ function verifyRetrospective(state, _out, ctx) {
566
566
 
567
567
  function verifyNanoQuickDev(state, out, ctx) {
568
568
  const issues = [];
569
+ // tests_run: accept the runner's count if the LLM omitted it (same
570
+ // pattern as verifyDevGreen). Nano flow can also have ctx.runner.
571
+ let runnerTestsRun = null;
572
+ if (ctx.runner) {
573
+ const result = ctx.runner({ phase: 'quick', files: out.test_files || [] });
574
+ if (result && typeof result.tests_run === 'number') runnerTestsRun = result.tests_run;
575
+ }
569
576
  if (typeof out.tests_run !== 'number' || out.tests_run <= 0) {
570
- issues.push('tests_run must be a positive number');
577
+ if (!(typeof runnerTestsRun === 'number' && runnerTestsRun > 0)) {
578
+ issues.push('tests_run must be a positive number');
579
+ }
571
580
  }
572
581
  if (typeof out.tests_failed !== 'number') {
582
+ // tests_failed missing: if LLM signaled success AND runner exit_code
583
+ // was 0 OR all tests passed (out.tests_run > 0 with no failure
584
+ // indicator), default to 0. Otherwise reject.
585
+ // Conservative: only auto-fill 0 when we have positive evidence of
586
+ // no failures (LLM count present and matches success status).
587
+ // Keeping the strict check by default — tests_failed is a key
588
+ // signal the verifier uses for nano escalation.
573
589
  issues.push('tests_failed required (number; 0 for clean)');
574
590
  }
575
591
  if (!out.commit_sha) issues.push('commit_sha required');
@@ -1,6 +1,6 @@
1
1
  addon:
2
2
  name: sprintpilot
3
- version: 2.2.21
3
+ version: 2.2.22
4
4
  description: Sprintpilot — autopilot and multi-agent addon for BMad Method (git workflow, parallel agents, autonomous story execution)
5
5
  bmad_compatibility: ">=6.2.0"
6
6
  modules:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikunin/sprintpilot",
3
- "version": "2.2.21",
3
+ "version": "2.2.22",
4
4
  "description": "Sprintpilot — autopilot and multi-agent addon for BMad Method v6: git workflow, parallel agents, autonomous story execution",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {