agileflow 2.94.1 → 2.95.1

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.
Files changed (74) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +3 -3
  3. package/lib/colors.generated.js +117 -0
  4. package/lib/colors.js +59 -109
  5. package/lib/generator-factory.js +333 -0
  6. package/lib/path-utils.js +49 -0
  7. package/lib/session-registry.js +25 -15
  8. package/lib/smart-json-file.js +40 -32
  9. package/lib/state-machine.js +286 -0
  10. package/package.json +1 -1
  11. package/scripts/agileflow-configure.js +7 -6
  12. package/scripts/archive-completed-stories.sh +86 -11
  13. package/scripts/babysit-context-restore.js +89 -0
  14. package/scripts/claude-tmux.sh +111 -5
  15. package/scripts/damage-control/bash-tool-damage-control.js +11 -247
  16. package/scripts/damage-control/edit-tool-damage-control.js +9 -249
  17. package/scripts/damage-control/write-tool-damage-control.js +9 -244
  18. package/scripts/generate-colors.js +314 -0
  19. package/scripts/lib/colors.generated.sh +82 -0
  20. package/scripts/lib/colors.sh +10 -70
  21. package/scripts/lib/configure-features.js +401 -0
  22. package/scripts/lib/context-loader.js +181 -52
  23. package/scripts/precompact-context.sh +54 -17
  24. package/scripts/session-coordinator.sh +2 -2
  25. package/scripts/session-manager.js +653 -10
  26. package/src/core/commands/audit.md +93 -0
  27. package/src/core/commands/auto.md +73 -0
  28. package/src/core/commands/babysit.md +169 -13
  29. package/src/core/commands/baseline.md +73 -0
  30. package/src/core/commands/batch.md +64 -0
  31. package/src/core/commands/blockers.md +60 -0
  32. package/src/core/commands/board.md +66 -0
  33. package/src/core/commands/choose.md +77 -0
  34. package/src/core/commands/ci.md +77 -0
  35. package/src/core/commands/compress.md +27 -1
  36. package/src/core/commands/configure.md +126 -10
  37. package/src/core/commands/council.md +74 -0
  38. package/src/core/commands/debt.md +72 -0
  39. package/src/core/commands/deploy.md +73 -0
  40. package/src/core/commands/deps.md +68 -0
  41. package/src/core/commands/docs.md +60 -0
  42. package/src/core/commands/feedback.md +68 -0
  43. package/src/core/commands/ideate.md +74 -0
  44. package/src/core/commands/impact.md +74 -0
  45. package/src/core/commands/install.md +529 -0
  46. package/src/core/commands/maintain.md +558 -0
  47. package/src/core/commands/metrics.md +75 -0
  48. package/src/core/commands/multi-expert.md +74 -0
  49. package/src/core/commands/packages.md +69 -0
  50. package/src/core/commands/readme-sync.md +64 -0
  51. package/src/core/commands/research/analyze.md +285 -121
  52. package/src/core/commands/research/import.md +281 -109
  53. package/src/core/commands/retro.md +76 -0
  54. package/src/core/commands/review.md +72 -0
  55. package/src/core/commands/rlm.md +83 -0
  56. package/src/core/commands/rpi.md +90 -0
  57. package/src/core/commands/session/cleanup.md +214 -12
  58. package/src/core/commands/session/end.md +155 -17
  59. package/src/core/commands/sprint.md +72 -0
  60. package/src/core/commands/story-validate.md +68 -0
  61. package/src/core/commands/template.md +69 -0
  62. package/src/core/commands/tests.md +83 -0
  63. package/src/core/commands/update.md +59 -0
  64. package/src/core/commands/validate-expertise.md +76 -0
  65. package/src/core/commands/velocity.md +74 -0
  66. package/src/core/commands/verify.md +91 -0
  67. package/src/core/commands/whats-new.md +69 -0
  68. package/src/core/commands/workflow.md +88 -0
  69. package/src/core/templates/command-documentation.md +187 -0
  70. package/tools/cli/commands/session.js +1171 -0
  71. package/tools/cli/commands/setup.js +2 -81
  72. package/tools/cli/installers/core/installer.js +0 -5
  73. package/tools/cli/installers/ide/claude-code.js +6 -0
  74. package/tools/cli/lib/config-manager.js +42 -5
@@ -393,6 +393,99 @@ Then run audit again.
393
393
 
394
394
  ---
395
395
 
396
+ ## Expected Output
397
+
398
+ ### Success - Story Passes Audit
399
+
400
+ ```
401
+ ========================================
402
+ STORY AUDIT: US-0129
403
+ ========================================
404
+
405
+ TESTS
406
+ Command: npm test
407
+ Result: PASSED (2,201 passed, 0 failed)
408
+ Duration: 45.2s
409
+
410
+ ACCEPTANCE CRITERIA
411
+ [x] Create packages/cli/src/core/commands/audit.md
412
+ [x] Accept story ID as argument
413
+ [x] Run tests and report pass/fail
414
+ [x] Check acceptance criteria met
415
+ [x] Prompt for learnings to capture
416
+ [x] Output: PASS/FAIL with recommended next action
417
+ [x] On PASS, suggest marking story complete
418
+
419
+ AC Verification: 7/7 (100%)
420
+
421
+ ========================================
422
+ AUDIT RESULT: PASS
423
+ ========================================
424
+ Tests: PASSING
425
+ AC: ALL VERIFIED (7/7)
426
+
427
+ Learnings captured:
428
+ - GSD audit pattern successfully integrated
429
+
430
+ NEXT STEPS:
431
+ 1. Mark story complete: /agileflow:status US-0129 STATUS=done
432
+ 2. Review epic progress: /agileflow:epic EP-0022
433
+ ```
434
+
435
+ ### Error - Story Fails Audit
436
+
437
+ ```
438
+ ========================================
439
+ STORY AUDIT: US-0129
440
+ ========================================
441
+
442
+ TESTS
443
+ Command: npm test
444
+ Result: FAILED (40 passed, 3 failed)
445
+ Duration: 12.8s
446
+
447
+ ACCEPTANCE CRITERIA
448
+ [x] Create packages/cli/src/core/commands/audit.md
449
+ [x] Accept story ID as argument
450
+ [x] Run tests and report pass/fail
451
+ [ ] Check acceptance criteria met
452
+ [ ] Prompt for learnings to capture
453
+ [x] Output: PASS/FAIL with recommended next action
454
+ [x] On PASS, suggest marking story complete
455
+
456
+ AC Verification: 5/7 (71%)
457
+
458
+ ========================================
459
+ AUDIT RESULT: FAIL
460
+ ========================================
461
+ Tests: FAILING (3 failed)
462
+ AC: PARTIAL (5/7)
463
+
464
+ BLOCKING ISSUES:
465
+ - Test: audit.test.ts:42 - Expected PASS verdict
466
+ - AC: "Check acceptance criteria met" - Not implemented
467
+ - AC: "Prompt for learnings" - Missing
468
+
469
+ NEXT STEPS:
470
+ 1. Fix failing tests
471
+ 2. Complete missing AC items
472
+ 3. Re-run: /agileflow:audit US-0129
473
+ ```
474
+
475
+ ### Error - Story Not Found
476
+
477
+ ```
478
+ ❌ Story US-9999 not found in status.json
479
+
480
+ Available in_progress stories:
481
+ - US-0129: Create /agileflow:audit command
482
+ - US-0130: Add phase handoff summaries
483
+
484
+ Run: /agileflow:audit US-0129
485
+ ```
486
+
487
+ ---
488
+
396
489
  ## Related Commands
397
490
 
398
491
  - `/agileflow:verify` - Run tests only (no AC check)
@@ -474,6 +474,79 @@ OUTPUT
474
474
 
475
475
  ---
476
476
 
477
+ ## Expected Output
478
+
479
+ ### Success - Stories Generated
480
+
481
+ ```
482
+ 🔍 Analyzing source: docs/requirements/auth-prd.md
483
+ ✓ Source type: Product Requirements Document (PRD)
484
+ ✓ Found 7 feature areas
485
+
486
+ 📋 Story Generation Preview
487
+ ══════════════════════════════════════════════════════════════
488
+ Source: docs/requirements/auth-prd.md
489
+ Epic: EP-0010 (User Authentication)
490
+ Stories to Create: 7
491
+
492
+ 1. US-0050: User registration form with validation (1.5d, AG-API)
493
+ 2. US-0051: User login with credentials (1d, AG-API)
494
+ 3. US-0052: Password reset flow (1d, AG-API)
495
+ 4. US-0053: OAuth Google integration (1.5d, AG-API)
496
+ 5. US-0054: OAuth GitHub integration (1.5d, AG-API)
497
+ 6. US-0055: Rate limiting middleware (0.5d, AG-CI)
498
+ 7. US-0056: Session management service (1d, AG-API)
499
+
500
+ Total Estimate: 8.5 days
501
+ Owners: AG-API (6), AG-CI (1)
502
+ ══════════════════════════════════════════════════════════════
503
+
504
+ Create these stories? (YES/NO)
505
+ ```
506
+
507
+ After confirmation:
508
+ ```
509
+ ✓ Created docs/06-stories/EP-0010/US-0050-user-registration.md
510
+ ✓ Created docs/06-stories/EP-0010/US-0051-user-login.md
511
+ ✓ Created docs/06-stories/EP-0010/US-0052-password-reset.md
512
+ ✓ Created docs/06-stories/EP-0010/US-0053-oauth-google.md
513
+ ✓ Created docs/06-stories/EP-0010/US-0054-oauth-github.md
514
+ ✓ Created docs/06-stories/EP-0010/US-0055-rate-limiting.md
515
+ ✓ Created docs/06-stories/EP-0010/US-0056-session-management.md
516
+ ✓ Created 7 test stubs in docs/07-testing/test-cases/
517
+ ✓ Updated status.json with 7 stories
518
+ ✓ Logged 7 assignments to bus
519
+
520
+ 🎉 Successfully generated 7 stories for EP-0010
521
+ ```
522
+
523
+ ### Error - Invalid Source
524
+
525
+ ```
526
+ ❌ Error: Source file not found
527
+ Path: docs/requirements/nonexistent.md
528
+
529
+ Please provide a valid source path:
530
+ - PRD document (.md, .pdf)
531
+ - API spec (openapi.yaml, swagger.json)
532
+ - Mockup (Figma URL, .png, .jpg)
533
+ ```
534
+
535
+ ### Error - Source Not Parseable
536
+
537
+ ```
538
+ ❌ Error: Could not extract requirements from source
539
+ File: docs/assets/logo.png
540
+
541
+ Supported source types:
542
+ - Product Requirements Documents (PRD)
543
+ - API specifications (OpenAPI/Swagger)
544
+ - Design mockups with annotations
545
+ - Mermaid flow diagrams
546
+ ```
547
+
548
+ ---
549
+
477
550
  ## Related Commands
478
551
 
479
552
  - `/agileflow:story` - Create user stories manually
@@ -11,6 +11,7 @@ compact_context:
11
11
  - "{{RULES:delegation}}"
12
12
  - "STUCK DETECTION: If same error 2+ times, suggest /agileflow:research:ask with 200+ line detailed prompt"
13
13
  - "Research prompts MUST include: 50+ lines actual code, exact error, what was tried, 3+ specific questions"
14
+ - "PLAN FILE CONTEXT: BEFORE ExitPlanMode, EDIT plan file to add babysit rules header at TOP - rules survive context clear"
14
15
  - "STORY CLAIMING: Run 'node .agileflow/scripts/lib/story-claiming.js claim <id>' IMMEDIATELY after user selects story"
15
16
  - "STORY CLAIMING: Run 'node .agileflow/scripts/lib/story-claiming.js others' BEFORE suggesting stories, exclude 🔒 claimed"
16
17
  - "STORY CLAIMING: Run 'node .agileflow/scripts/lib/story-claiming.js release <id>' when story marked done"
@@ -328,6 +329,52 @@ Use TodoWrite for any task with 3+ steps. Update status as you complete each ste
328
329
 
329
330
  ---
330
331
 
332
+ ### 🚨 RULE #6: PLAN FILE CONTEXT PRESERVATION
333
+
334
+ **BEFORE calling ExitPlanMode**, you MUST add a babysit rules header to your plan file.
335
+
336
+ **WHY**: When user selects "Clear context and bypass permissions", the plan file is the ONLY context that survives. Embedding rules in the plan file ensures babysit workflow continues after context clear.
337
+
338
+ **STEPS**:
339
+ 1. Before calling ExitPlanMode, use the Edit tool to add this header to the TOP of your plan file:
340
+
341
+ ```markdown
342
+ ## ⚠️ MANDATORY IMPLEMENTATION RULES (from /babysit)
343
+
344
+ These rules MUST be followed during implementation:
345
+ 1. **ALWAYS end your final response with AskUserQuestion tool** offering next steps
346
+ 2. **Use EnterPlanMode** if any NEW non-trivial tasks arise during implementation
347
+ 3. **Delegate complex work** to domain experts via Task tool
348
+ 4. **Track progress** with TodoWrite for multi-step work
349
+
350
+ After implementation completes, you MUST call AskUserQuestion with options like:
351
+ - "Run tests to verify"
352
+ - "Continue to next task"
353
+ - "Review changes"
354
+ - "Pause here"
355
+
356
+ ---
357
+ ```
358
+
359
+ 2. Then call ExitPlanMode
360
+
361
+ **EXAMPLE PLAN FILE STRUCTURE**:
362
+ ```markdown
363
+ # Plan: Add User Profile Feature
364
+
365
+ ## ⚠️ MANDATORY IMPLEMENTATION RULES (from /babysit)
366
+ [rules as above]
367
+
368
+ ---
369
+
370
+ ## Implementation Plan
371
+ 1. Create database schema...
372
+ 2. Add API endpoint...
373
+ 3. Build UI component...
374
+ ```
375
+
376
+ ---
377
+
331
378
  ### ANTI-PATTERNS (DON'T DO THESE)
332
379
 
333
380
  ❌ End response with text question instead of AskUserQuestion tool
@@ -361,23 +408,28 @@ Use TodoWrite for any task with 3+ steps. Update status as you complete each ste
361
408
  ```
362
409
 
363
410
  **Phase 2: Plan Mode (for non-trivial tasks)**
364
- 6. Call `EnterPlanMode` tool
365
- 7. Explore codebase with Glob, Grep, Read
366
- 8. Design approach, write to plan file
367
- 9. Call `ExitPlanMode` for user approval
411
+ 6. **Set restoration flag** (backup for context clear):
412
+ ```bash
413
+ node -e "const fs=require('fs');const p='docs/09-agents/session-state.json';if(fs.existsSync(p)){const s=JSON.parse(fs.readFileSync(p,'utf8'));s.babysit_pending_restore=true;fs.writeFileSync(p,JSON.stringify(s,null,2)+'\n');}"
414
+ ```
415
+ 7. Call `EnterPlanMode` tool
416
+ 8. Explore codebase with Glob, Grep, Read
417
+ 9. Design approach, write to plan file
418
+ 10. **CRITICAL: Add babysit rules header** to TOP of plan file (Rule #6)
419
+ 11. Call `ExitPlanMode` for user approval
368
420
 
369
421
  **Phase 3: Execution**
370
- 10. Delegate to experts based on scope
371
- 11. Collect results if async (TaskOutput)
372
- 12. Verify tests pass
422
+ 12. Delegate to experts based on scope
423
+ 13. Collect results if async (TaskOutput)
424
+ 14. Verify tests pass
373
425
 
374
426
  **Phase 4: Completion**
375
- 13. Update status.json (mark story done)
376
- 14. **RELEASE THE STORY claim:**
427
+ 15. Update status.json (mark story done)
428
+ 16. **RELEASE THE STORY claim:**
377
429
  ```bash
378
430
  node .agileflow/scripts/lib/story-claiming.js release <story-id>
379
431
  ```
380
- 15. Present next steps via AskUserQuestion
432
+ 17. Present next steps via AskUserQuestion
381
433
 
382
434
  ---
383
435
 
@@ -445,6 +497,9 @@ Present top 3-5 via AskUserQuestion, always include "Other" option.
445
497
  - Delegate complex work to experts
446
498
  - If stuck 2+ times → research prompt
447
499
  - Use state narration markers (📍🔀🔄⚠️✅) for visibility
500
+ - **PLAN FILE CONTEXT - CRITICAL:**
501
+ BEFORE ExitPlanMode, EDIT the plan file to add babysit rules header at TOP
502
+ This ensures rules survive "Clear context and bypass permissions"
448
503
  - **STORY CLAIMING - CRITICAL:**
449
504
  1. BEFORE suggesting: `node .agileflow/scripts/lib/story-claiming.js others` → exclude 🔒
450
505
  2. AFTER user selects: `node .agileflow/scripts/lib/story-claiming.js claim <id>`
@@ -773,7 +828,7 @@ When stuck detection triggers:
773
828
  | Redo work when wrong | Get alignment before coding |
774
829
  | User surprises | User approves approach |
775
830
 
776
- ### Plan Mode Flow
831
+ ### Plan Mode Flow (with Context Preservation)
777
832
 
778
833
  1. **Enter** - Call `EnterPlanMode` tool
779
834
  2. **Explore** - Use Glob, Grep, Read to understand:
@@ -786,8 +841,22 @@ When stuck detection triggers:
786
841
  - Files to modify/create
787
842
  - Key decisions and trade-offs
788
843
  - Testing approach
789
- 4. **Approve** - Call `ExitPlanMode` for user review
790
- 5. **Execute** - Implement the approved plan
844
+ 4. **CRITICAL: Add Babysit Header** - Edit the plan file to include this at the TOP:
845
+ ```markdown
846
+ ## ⚠️ MANDATORY IMPLEMENTATION RULES (from /babysit)
847
+
848
+ These rules MUST be followed during implementation:
849
+ 1. ALWAYS end your final response with AskUserQuestion tool
850
+ 2. Use EnterPlanMode if new non-trivial tasks arise
851
+ 3. Delegate complex work to domain experts
852
+ 4. Track progress with TodoWrite
853
+
854
+ After implementation, call AskUserQuestion with next step options.
855
+
856
+ ---
857
+ ```
858
+ 5. **Approve** - Call `ExitPlanMode` for user review
859
+ 6. **Execute** - Implement (rules survive context clear because they're in plan file)
791
860
 
792
861
  ### Plan Mode Examples
793
862
 
@@ -1061,6 +1130,93 @@ Based on your project state:
1061
1130
 
1062
1131
  ---
1063
1132
 
1133
+ ## Expected Output
1134
+
1135
+ ### Success - Mentor Ready
1136
+
1137
+ ```
1138
+ **AgileFlow Mentor** ready. I'll coordinate domain experts for your implementation.
1139
+
1140
+ Based on your project state:
1141
+
1142
+ 📍 Current: EP-0026 (Q1 2026 Codebase Improvements)
1143
+ - 18/24 stories completed (75%)
1144
+ - 1 in-progress: US-0203
1145
+
1146
+ Suggested next steps:
1147
+ 1. ⭐ US-0205: Add integration tests for color system (Ready)
1148
+ 2. ⭐ US-0206: Create error handling patterns (Ready)
1149
+ 3. ✓ US-0203: Interactive Command Documentation (Continue)
1150
+
1151
+ **My approach:**
1152
+ 1. You select a task
1153
+ 2. I enter plan mode to explore and design the approach
1154
+ 3. You approve the plan
1155
+ 4. I execute (directly or via domain experts)
1156
+ ```
1157
+
1158
+ ### Success - Loop Mode Started
1159
+
1160
+ ```
1161
+ 🔄 Loop Mode Initialized
1162
+ ══════════════════════════════════════════════════════════════
1163
+
1164
+ Epic: EP-0042 (User Authentication)
1165
+ Stories: 8 total, 3 completed, 5 remaining
1166
+ Mode: loop (autonomous)
1167
+ Max iterations: 20
1168
+
1169
+ Starting with: US-0050 (User Registration)
1170
+ Status: ready → in_progress
1171
+
1172
+ 📍 Working on: US-0050
1173
+ Estimate: 1.5d
1174
+ Owner: AG-API
1175
+
1176
+ Proceeding with implementation...
1177
+ ```
1178
+
1179
+ ### Success - Expert Delegation
1180
+
1181
+ ```
1182
+ 🔀 Spawning domain expert...
1183
+
1184
+ Task: Add sessions table for user login tracking
1185
+ Expert: agileflow-database
1186
+ Status: Running in background
1187
+
1188
+ [Agent output will appear when complete]
1189
+
1190
+ 📍 Waiting for database expert...
1191
+ Task ID: task-abc123
1192
+ ```
1193
+
1194
+ ### Error - Stuck Detection
1195
+
1196
+ ```
1197
+ ⚠️ Stuck Detection Triggered
1198
+
1199
+ I've tried 2 approaches but we're still hitting the same error:
1200
+
1201
+ Error: [auth] unauthorized_client
1202
+ at AuthHandler (node_modules/next-auth/src/lib/...)
1203
+
1204
+ This seems like a case where external research would help -
1205
+ the issue involves next-auth OAuth that needs more context.
1206
+
1207
+ Generating research prompt with /agileflow:research:ask...
1208
+
1209
+ The prompt includes:
1210
+ - 50+ lines of your auth implementation
1211
+ - Exact error message and stack trace
1212
+ - What I've already tried
1213
+ - 3 specific questions
1214
+
1215
+ Copy and paste into ChatGPT/Claude web, then share results here.
1216
+ ```
1217
+
1218
+ ---
1219
+
1064
1220
  ## Related Commands
1065
1221
 
1066
1222
  - `/agileflow:sprint` - Sprint planning with velocity forecasting
@@ -660,6 +660,79 @@ Claude: 🧪 Verifying all requirements...
660
660
 
661
661
  ---
662
662
 
663
+ ## Expected Output
664
+
665
+ ### Success - Baseline Created
666
+
667
+ ```
668
+ 🧪 Verifying all requirements...
669
+
670
+ ✅ Tests: 42/42 passing (12.3s)
671
+ ✅ Git: Clean working tree
672
+ ✅ Stories: 3 in-progress (all verified)
673
+
674
+ Creating baseline...
675
+ ✅ Git tag: agileflow-baseline-20251206-143000
676
+ ✅ environment.json updated
677
+ ✅ session-state.json updated
678
+
679
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
680
+ ✅ Baseline Established
681
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
682
+
683
+ Tag: agileflow-baseline-20251206-143000
684
+ Commit: abc123def456
685
+ Message: Major milestone - v1.0 ready
686
+ Tests: 42/42 passing
687
+ Stories: US-0043, US-0044, US-0045
688
+
689
+ To push to team:
690
+ git push origin agileflow-baseline-20251206-143000
691
+ ```
692
+
693
+ ### Error - Tests Failing
694
+
695
+ ```
696
+ 🧪 Verifying all requirements...
697
+
698
+ ❌ Tests FAILED: 40/42 passing (2 failed)
699
+
700
+ Cannot create baseline with failing tests.
701
+
702
+ Run /agileflow:verify to see details.
703
+ Fix failing tests before creating baseline.
704
+ ```
705
+
706
+ ### Error - Uncommitted Changes
707
+
708
+ ```
709
+ 🧪 Verifying all requirements...
710
+
711
+ ❌ Git: Uncommitted changes detected
712
+
713
+ M src/api/auth.js
714
+ ?? src/api/new-feature.js
715
+
716
+ Commit or stash changes before creating baseline:
717
+ git add . && git commit -m "message"
718
+ # or
719
+ git stash
720
+ ```
721
+
722
+ ### Error - No Stories in Progress
723
+
724
+ ```
725
+ 🧪 Verifying all requirements...
726
+
727
+ ⚠️ No in-progress stories with passing tests
728
+
729
+ Baselines should mark meaningful progress.
730
+ Assign stories to work on first:
731
+ /agileflow:assign STORY=US-XXXX
732
+ ```
733
+
734
+ ---
735
+
663
736
  ## Related Commands
664
737
 
665
738
  - `/agileflow:verify` - Run tests and update status
@@ -478,6 +478,70 @@ Future versions may add: coverage, lint, types gates.
478
478
 
479
479
  ---
480
480
 
481
+ ## Expected Output
482
+
483
+ ### Success - Batch Map Operation
484
+
485
+ ```
486
+ 🔄 Batch Processing: map
487
+ Items: 5 files
488
+ Processor: test-gate
489
+
490
+ Processing...
491
+ [1/5] ✅ src/api/auth.js - tests passed (2.1s)
492
+ [2/5] ✅ src/api/users.js - tests passed (1.8s)
493
+ [3/5] ❌ src/api/orders.js - 2 tests failed
494
+ [4/5] ✅ src/api/products.js - tests passed (1.5s)
495
+ [5/5] ✅ src/api/payments.js - tests passed (2.3s)
496
+
497
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
498
+ Batch Complete: 4/5 passed (80%)
499
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
500
+
501
+ Failed items:
502
+ - src/api/orders.js: AssertionError: expected 200
503
+
504
+ Run with FAIL_FAST=true to stop on first failure.
505
+ ```
506
+
507
+ ### Success - Parallel Batch
508
+
509
+ ```
510
+ 🔄 Batch Processing: pmap (parallel)
511
+ Items: 8 stories
512
+ Concurrency: 4
513
+
514
+ [============================] 100% (8/8)
515
+
516
+ Results:
517
+ ✅ US-0050: completed
518
+ ✅ US-0051: completed
519
+ ✅ US-0052: completed
520
+ ⏳ US-0053: in_progress (blocked by external API)
521
+ ✅ US-0054: completed
522
+ ✅ US-0055: completed
523
+ ✅ US-0056: completed
524
+ ✅ US-0057: completed
525
+
526
+ Total time: 45.2s (parallel) vs ~180s (sequential)
527
+ ```
528
+
529
+ ### Error - Invalid Operation
530
+
531
+ ```
532
+ ❌ Error: Unknown batch operation: aggregate
533
+
534
+ Supported operations:
535
+ - map: Transform each item
536
+ - pmap: Parallel map
537
+ - filter: Select matching items
538
+ - reduce: Aggregate results
539
+
540
+ Usage: /agileflow:batch OP=map ITEMS=<list> FN=<processor>
541
+ ```
542
+
543
+ ---
544
+
481
545
  ## Related Commands
482
546
 
483
547
  - `/agileflow:babysit` - Mentor workflow
@@ -532,6 +532,66 @@ If yes, suggest:
532
532
 
533
533
  ---
534
534
 
535
+ ## Expected Output
536
+
537
+ ### Success - Blockers Found
538
+
539
+ ```
540
+ 🚧 Blocker Analysis
541
+ ══════════════════════════════════════════════════════════════
542
+
543
+ 📍 DEPENDENCY BLOCKERS (2)
544
+ ┌──────────────────────────────────────────────────────────────┐
545
+ │ US-0053: OAuth Google integration │
546
+ │ ⏳ Blocked by: US-0051 (User login) - in_progress │
547
+ │ ETA: ~2 days (based on story estimate) │
548
+ ├──────────────────────────────────────────────────────────────┤
549
+ │ US-0056: Session management │
550
+ │ ⏳ Blocked by: US-0050 (User registration) - in_review │
551
+ │ ETA: <1 day (awaiting review) │
552
+ └──────────────────────────────────────────────────────────────┘
553
+
554
+ 🔧 TECHNICAL BLOCKERS (1)
555
+ ┌──────────────────────────────────────────────────────────────┐
556
+ │ US-0055: Rate limiting middleware │
557
+ │ 🔧 Blocker: Missing Redis configuration │
558
+ │ Suggested: See ADR-0015 for caching decisions │
559
+ └──────────────────────────────────────────────────────────────┘
560
+
561
+ 📊 Summary: 3 blockers across 3 stories
562
+ Suggested Actions:
563
+ - /agileflow:status US-0050 STATUS=done (if review passed)
564
+ - /agileflow:adr for Redis decision
565
+ ```
566
+
567
+ ### Success - No Blockers
568
+
569
+ ```
570
+ 🚧 Blocker Analysis
571
+ ══════════════════════════════════════════════════════════════
572
+
573
+ ✅ No blockers found!
574
+
575
+ All in-progress stories are unblocked.
576
+ Ready: 5 stories awaiting assignment.
577
+
578
+ Run /agileflow:board to see full status.
579
+ ```
580
+
581
+ ### Error - No Stories in Epic
582
+
583
+ ```
584
+ ❌ Error: No stories found in EP-0099
585
+
586
+ Create stories first:
587
+ /agileflow:story EPIC=EP-0099 TITLE="..."
588
+
589
+ Or check epic exists:
590
+ /agileflow:epic:view EP-0099
591
+ ```
592
+
593
+ ---
594
+
535
595
  ## Related Commands
536
596
 
537
597
  - `/agileflow:status` - Update story status
@@ -433,6 +433,72 @@ OUTPUT
433
433
 
434
434
  ---
435
435
 
436
+ ## Expected Output
437
+
438
+ ### Success - Kanban Board
439
+
440
+ ```
441
+ 📋 AgileFlow Kanban Board
442
+ Updated: 2026-01-29 09:45:00
443
+ Epic: EP-0026 (Q1 2026 Improvements)
444
+ ══════════════════════════════════════════════════════════════════════════════
445
+
446
+ │ READY (3) │ IN PROGRESS (2) │ IN REVIEW (1) │ DONE (15) │
447
+ ├──────────────────┼──────────────────┼──────────────────┼─────────────────┤
448
+ │ US-0200 [P2] │ US-0198 [P2] │ US-0195 [P1] │ US-0186 ✓ │
449
+ │ DI for Gen.. │ Color consol.. │ Path valid.. │ US-0187 ✓ │
450
+ │ AG-API │ AG-DEVOPS ● │ AG-API │ US-0188 ✓ │
451
+ │ │ │ │ US-0189 ✓ │
452
+ │ US-0203 [P2] │ US-0199 [P2] │ │ US-0190 ✓ │
453
+ │ Command docs │ Path resolve.. │ │ ... │
454
+ │ AG-DEVOPS │ AG-API ● │ │ +10 more │
455
+ │ │ │ │ │
456
+ │ US-0205 [P3] │ │ │ │
457
+ │ Agent matrix │ │ │ │
458
+ │ AG-DOCS │ │ │ │
459
+ ══════════════════════════════════════════════════════════════════════════════
460
+
461
+ WIP Limit: 3/3 ⚠️ (at capacity)
462
+ ● = Currently active
463
+
464
+ 📊 Statistics:
465
+ - Total: 21 stories
466
+ - Velocity: 4.2 stories/week
467
+ - Blocked: 0
468
+
469
+ Suggested: Complete in-progress work before pulling new stories.
470
+ ```
471
+
472
+ ### Success - Filtered View
473
+
474
+ ```
475
+ 📋 AgileFlow Kanban Board (Filtered: AG-API)
476
+ ══════════════════════════════════════════════════════════════
477
+
478
+ Stories owned by AG-API: 8 total
479
+ - Ready: 2
480
+ - In Progress: 1
481
+ - In Review: 1
482
+ - Done: 4
483
+
484
+ [Board shows only AG-API stories...]
485
+ ```
486
+
487
+ ### Error - Epic Not Found
488
+
489
+ ```
490
+ ❌ Error: Epic not found: EP-9999
491
+
492
+ Available epics:
493
+ - EP-0026: Q1 2026 Improvements (21 stories)
494
+ - EP-0025: Session System (8 stories)
495
+ - EP-0024: Visual E2E Testing (6 stories)
496
+
497
+ Usage: /agileflow:board [EPIC=EP-XXXX]
498
+ ```
499
+
500
+ ---
501
+
436
502
  ## Related Commands
437
503
 
438
504
  - `/agileflow:sprint` - Sprint planning