diff --git a/src/modules/bmm/workflows/4-implementation/batch-super-dev/instructions.md b/src/modules/bmm/workflows/4-implementation/batch-super-dev/instructions.md index 30e9a47c..c4ea8f4d 100644 --- a/src/modules/bmm/workflows/4-implementation/batch-super-dev/instructions.md +++ b/src/modules/bmm/workflows/4-implementation/batch-super-dev/instructions.md @@ -1109,13 +1109,24 @@ Stories in this wave: Load reconciliation instructions: {installed_path}/step-4.5-reconcile-story-status.md Execute reconciliation with story_key={{story_key}} - 🚨 MANDATORY RECONCILIATION AUTO-FIX - MAKE IT RIGHT - Verify reconciliation by checking story file: - 1. Re-read story file: {{story_file_path}} - 2. Count checked tasks vs total tasks - 3. Check Dev Agent Record filled + 🚨 MANDATORY STORY FILE VERIFICATION - MAIN ORCHESTRATOR MUST RUN BASH - + +STORY_FILE="docs/sprint-artifacts/{{story_key}}.md" +echo "🔍 Verifying story file: {{story_key}}" + +CHECKED_COUNT=$(grep -c "^- \[x\]" "$STORY_FILE" 2>/dev/null || echo "0") +TOTAL_COUNT=$(grep -c "^- \[.\]" "$STORY_FILE" 2>/dev/null || echo "0") +echo " Checked tasks: $CHECKED_COUNT/$TOTAL_COUNT" + +RECORD_FILLED=$(grep -A 20 "^### Dev Agent Record" "$STORY_FILE" 2>/dev/null | grep -c "Claude Sonnet" || echo "0") +echo " Dev Agent Record: $RECORD_FILLED" + +echo "$CHECKED_COUNT" > /tmp/checked_{{story_key}}.txt +echo "$RECORD_FILLED" > /tmp/record_{{story_key}}.txt + + + ❌ Story {{story_key}}: Agent FAILED to update story file @@ -1639,13 +1650,24 @@ Press [C] to continue or [P] to pause: Load reconciliation instructions: {installed_path}/step-4.5-reconcile-story-status.md Execute reconciliation with story_key={{story_key}} - 🚨 MANDATORY RECONCILIATION AUTO-FIX - MAKE IT RIGHT - Verify reconciliation by checking story file: - 1. Re-read story file: {{story_file_path}} - 2. Count checked tasks vs total tasks - 3. Check Dev Agent Record filled + 🚨 MANDATORY STORY FILE VERIFICATION - MAIN ORCHESTRATOR MUST RUN BASH - + +STORY_FILE="docs/sprint-artifacts/{{story_key}}.md" +echo "🔍 Verifying story file: {{story_key}}" + +CHECKED_COUNT=$(grep -c "^- \[x\]" "$STORY_FILE" 2>/dev/null || echo "0") +TOTAL_COUNT=$(grep -c "^- \[.\]" "$STORY_FILE" 2>/dev/null || echo "0") +echo " Checked tasks: $CHECKED_COUNT/$TOTAL_COUNT" + +RECORD_FILLED=$(grep -A 20 "^### Dev Agent Record" "$STORY_FILE" 2>/dev/null | grep -c "Claude Sonnet" || echo "0") +echo " Dev Agent Record: $RECORD_FILLED" + +echo "$CHECKED_COUNT" > /tmp/checked_{{story_key}}.txt +echo "$RECORD_FILLED" > /tmp/record_{{story_key}}.txt + + + ❌ Story {{story_key}}: Agent FAILED to update story file