moveros 4.0.8 → 4.1.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.
Files changed (47) hide show
  1. package/install.js +4 -2
  2. package/package.json +1 -1
  3. package/src/hooks/context-staleness.sh +46 -46
  4. package/src/hooks/dirty-tree-guard.sh +33 -33
  5. package/src/hooks/engine-protection.sh +43 -43
  6. package/src/hooks/git-safety.sh +47 -47
  7. package/src/hooks/pre-compact-backup.sh +177 -177
  8. package/src/hooks/session-log-reminder.sh +135 -73
  9. package/src/skills/systematic-debugging/CREATION-LOG.md +119 -119
  10. package/src/skills/systematic-debugging/SKILL.md +296 -296
  11. package/src/skills/systematic-debugging/condition-based-waiting-example.ts +158 -158
  12. package/src/skills/systematic-debugging/condition-based-waiting.md +115 -115
  13. package/src/skills/systematic-debugging/defense-in-depth.md +122 -122
  14. package/src/skills/systematic-debugging/find-polluter.sh +63 -63
  15. package/src/skills/systematic-debugging/root-cause-tracing.md +169 -169
  16. package/src/skills/systematic-debugging/test-academic.md +14 -14
  17. package/src/skills/systematic-debugging/test-pressure-1.md +58 -58
  18. package/src/skills/systematic-debugging/test-pressure-2.md +68 -68
  19. package/src/skills/systematic-debugging/test-pressure-3.md +69 -69
  20. package/src/structure/01_Projects/_Template Project/plan.md +55 -55
  21. package/src/structure/01_Projects/_Template Project/project_brief.md +45 -45
  22. package/src/structure/02_Areas/Engine/Active_Context.md +146 -146
  23. package/src/structure/02_Areas/Engine/Auto_Learnings.md +36 -36
  24. package/src/structure/02_Areas/Engine/Daily_Template.md +133 -133
  25. package/src/structure/02_Areas/Engine/Identity_Prime_template.md +86 -86
  26. package/src/structure/02_Areas/Engine/Mover_Dossier.md +120 -120
  27. package/src/structure/02_Areas/Engine/Strategy_template.md +65 -65
  28. package/src/structure/03_Library/SOPs/Tech_Stack.md +55 -55
  29. package/src/structure/03_Library/SOPs/Zone_Operating.md +57 -57
  30. package/src/system/V4_CONTEXT.md +262 -262
  31. package/src/theme/minimal-theme.css +271 -271
  32. package/src/workflows/analyse-day.md +401 -401
  33. package/src/workflows/debug-resistance.md +180 -180
  34. package/src/workflows/harvest.md +239 -239
  35. package/src/workflows/ignite.md +720 -720
  36. package/src/workflows/init-plan.md +16 -16
  37. package/src/workflows/morning.md +222 -222
  38. package/src/workflows/overview.md +203 -203
  39. package/src/workflows/pivot-strategy.md +218 -218
  40. package/src/workflows/plan-tomorrow.md +308 -308
  41. package/src/workflows/primer.md +207 -207
  42. package/src/workflows/reboot.md +201 -201
  43. package/src/workflows/refactor-plan.md +135 -135
  44. package/src/workflows/review-week.md +558 -558
  45. package/src/workflows/setup.md +388 -388
  46. package/src/workflows/update.md +10 -13
  47. package/src/workflows/walkthrough.md +523 -523
@@ -49,26 +49,23 @@ Note: File-level backups (Engine files, Areas folder, agent configs) are handled
49
49
 
50
50
  ---
51
51
 
52
- ## 1. VERSION DETECTION
52
+ ## 1. VERSION DETECTION & MIGRATION SCAN
53
53
 
54
- Check current installed version:
54
+ **Always run the migration scan. Never skip based on version labels alone.**
55
55
 
56
- 1. Read `{VAULT_ROOT}/.mover-version` if it exists stored version number
57
- 2. If no `.mover-version`, scan Global Rules for `**Version:** V{X.Y}` → infer version
58
- 3. If neither found: assume V3.0 (pre-versioning)
56
+ The installer updates Global Rules before this workflow runs, so inferring version from the rules file will always show the latest version. The only reliable source of truth is what the Engine files actually contain.
59
57
 
60
- Read the CURRENT system version from the loaded Global Rules (the version you're running as).
58
+ 1. Read `{VAULT_ROOT}/.mover-version` if it exists this is the last version the `/update` workflow completed. If it doesn't exist, this is the first time `/update` has run.
59
+ 2. Run the Engine Migration Scan (Step 3) immediately — check every Engine file for missing sections.
60
+ 3. Count the migrations needed.
61
61
 
62
- Output:
62
+ **If 0 migrations needed AND `.mover-version` exists and matches current version:** "You're already on the latest version. No update needed." → Exit.
63
+
64
+ **If migrations are needed (any count):** Continue to Step 1.5. Output:
63
65
  ```
64
- Installed: V{old}
65
- Available: V{new}
66
+ Migration scan: [X] updates needed across [Y] Engine files.
66
67
  ```
67
68
 
68
- If versions match: run the Engine Migration Scan (Step 3) first. If 0 migrations needed: "You're already on the latest version. No update needed." → Exit. If migrations are pending: treat as update needed, continue to Step 1.5.
69
-
70
- If versions differ: continue to Step 1.5 directly.
71
-
72
69
  **STOP. Confirm with user before proceeding.**
73
70
 
74
71
  ---