qualia-framework 4.3.0 → 4.4.0

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.
@@ -788,7 +788,7 @@ echo "close-milestone:"
788
788
 
789
789
  # 44. close-milestone increments counters and bumps milestone number
790
790
  TMP=$(make_project)
791
- OUT=$(cd "$TMP" && $NODE "$STATE_JS" close-milestone 2>&1)
791
+ OUT=$(cd "$TMP" && $NODE "$STATE_JS" close-milestone --force 2>&1)
792
792
  EXIT=$?
793
793
  if [ "$EXIT" -eq 0 ] \
794
794
  && echo "$OUT" | grep -q '"action": "close-milestone"' \
@@ -803,7 +803,7 @@ fi
803
803
 
804
804
  # 45. close-milestone adds total_phases to lifetime.total_phases
805
805
  TMP=$(make_project)
806
- (cd "$TMP" && $NODE "$STATE_JS" close-milestone >/dev/null 2>&1)
806
+ (cd "$TMP" && $NODE "$STATE_JS" close-milestone --force >/dev/null 2>&1)
807
807
  # Project had 2 phases. lifetime.total_phases should now be 2.
808
808
  if grep -q '"total_phases": 2' "$TMP/.planning/tracking.json" | head -1; then
809
809
  # More precise check with node
@@ -829,11 +829,12 @@ touch "$TMP/.planning/phase-1-verification.md"
829
829
  (cd "$TMP" && $NODE "$STATE_JS" transition --to built --tasks-done 4 --tasks-total 4 >/dev/null 2>&1)
830
830
  (cd "$TMP" && $NODE "$STATE_JS" transition --to verified --verification pass >/dev/null 2>&1)
831
831
  # Now close milestone
832
- (cd "$TMP" && $NODE "$STATE_JS" close-milestone >/dev/null 2>&1)
832
+ (cd "$TMP" && $NODE "$STATE_JS" close-milestone --force >/dev/null 2>&1)
833
833
  # Re-init with new phases
834
834
  (cd "$TMP" && $NODE "$STATE_JS" init \
835
835
  --project "TestProject" \
836
836
  --phases '[{"name":"M2P1","goal":"G1"}]' \
837
+ --force \
837
838
  >/dev/null 2>&1)
838
839
  # Verify: milestone=2, lifetime preserved, current phase reset
839
840
  RESULT=$($NODE -e "