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
@@ -1,135 +1,135 @@
1
- ---
2
- description: Safely updates the roadmap without deleting history. System-triggered or manual.
3
- ---
4
-
5
- # Refactor Plan (V4)
6
-
7
- **Trigger:** User runs `/refactor-plan` OR system suggests it after strategy pivot.
8
- **Role:** Surgical Plan Editor.
9
- **Task:** Update plan.md based on strategy change WITHOUT deleting history.
10
- **Risk Tier:** MEDIUM
11
-
12
- In V4, this is typically triggered by the system (after `/pivot-strategy` or when plan.md drifts from Strategy.md), but can also be run manually.
13
-
14
- ---
15
-
16
- ## 0. PRE-FLIGHT
17
-
18
- Global Rules are pre-loaded as CLAUDE.md / GEMINI.md. Output `[Rules Loaded - DATE]`.
19
-
20
- LOAD (Light + Strategy — Active_Context is the cache):
21
- 1. Active_Context.md (has Active Patterns S5.5 for plan drift patterns, Strategic Verdict S1)
22
- 2. Strategy.md (FULL — needed for direct comparison: plan.md Architecture vs Strategy.md targets)
23
- 3. Current plan.md (READ ONLY first)
24
- 4. project_state.md (for changelog)
25
- NOTE: Strategy.md is the exception — refactor-plan compares plan.md against Strategy.md changes directly. Active Patterns S5.5 provides drift pattern history. If Active_Context is stale (>2 days), flag it and suggest /analyse-day first.
26
-
27
- CONSTRAINTS:
28
- - SURGICAL EDITING. Never rewrite the entire file.
29
- - Never delete completed tasks [x] or Execution Log entries.
30
- - Mark obsolete tasks as [-] (Skipped), not deleted.
31
- - Append-only for new tasks and changelog.
32
- - Windows: no && in commands.
33
-
34
- ---
35
-
36
- ## 0.5. PRE-READ & PROJECT IDENTIFICATION
37
-
38
- **Read plan.md NOW.** Output: "Current state: [X] completed tasks, [Y] open tasks, [Z] phases. Plan targets: [goal from plan.md]."
39
-
40
- If multiple projects have plan.md files in `01_Projects/`: "Which project are we refactoring? [list them]." Do not proceed until user confirms.
41
-
42
- ---
43
-
44
- ## 1. ANALYZE & UPDATE ARCHITECTURE
45
-
46
- Target: `plan.md` > `## ARCHITECTURE`
47
- If stack/rules changed (compare plan.md Architecture vs project_brief.md Stack): update this section ONLY. If they match, skip Step 1.
48
-
49
- ---
50
-
51
- ## 2. UPDATE ROADMAP (The Pivot)
52
-
53
- Target: `plan.md` > `## ROADMAP`
54
-
55
- 1. Find steps made obsolete. Mark as `[-]` (e.g., `[-] Step 2: Setup Supabase`).
56
- 2. Insert NEW steps with `[ ]` into appropriate phase.
57
- 3. If new Phase needed: insert between existing phases or at end.
58
- 4. Never delete `[x]` completed tasks.
59
- 5. Never delete Execution Log entries.
60
-
61
- ---
62
-
63
- ## 3. LOG THE CHANGE
64
-
65
- Target: `project_state.md` > `## CHANGELOG`
66
- Append: `* [YYYY-MM-DD] STRATEGY PIVOT - {Summary of changes}`
67
-
68
- ---
69
-
70
- ## 4. SELF-VERIFICATION (CISC)
71
-
72
- Before outputting, self-check:
73
- 1. No completed tasks deleted? (90%+ accuracy required)
74
- 2. No execution log entries removed?
75
- 3. Obsolete tasks marked [-] not deleted?
76
- 4. New tasks properly inserted?
77
- 5. All edits grounded in Strategy.md changes — not invented?
78
-
79
- If any check < 90% confident: flag it explicitly before writing.
80
-
81
- ---
82
-
83
- ## 5. CONFIRMATION
84
-
85
- Output a diff-style summary:
86
- - "Skipped [X] obsolete tasks."
87
- - "Added [Y] new tasks."
88
- - "Updated architecture section."
89
- - "Logged change to project_state.md."
90
-
91
- ---
92
-
93
- ## 6. ANSWER GATING
94
-
95
- Do not suggest handoff until:
96
- - User has reviewed the diff-style summary (Section 5).
97
- - User has confirmed no completed tasks were lost.
98
-
99
- If pending: "Please confirm the diff above is accurate before I finalize. Any tasks missing or incorrectly marked?"
100
-
101
- ---
102
-
103
- ## 7. PROACTIVE SUGGESTIONS
104
-
105
- Based on observations during this workflow:
106
- 1. [If Auto_Learnings shows plan.md has drifted before] - Confidence: [X] - "This is a recurring drift. Consider aligning plan.md with Strategy.md after every `/pivot-strategy`."
107
- 2. [If multiple phases are now obsolete] - Confidence: [X] - "A large portion of the roadmap changed. Run `/overview` to verify project direction is still coherent."
108
- 3. [If project_state.md CHANGELOG is getting long] - Confidence: [X] - "Many pivots logged. Consider an architecture review."
109
-
110
- "Want me to address any of these?"
111
-
112
- ---
113
-
114
- ## 8. SELF-IMPROVEMENT
115
-
116
- If user corrected AI during this workflow:
117
- 1. Acknowledge: "I made a mistake."
118
- 2. Identify the rule violated.
119
- 3. Append to Auto_Learnings.md:
120
- `* [YYYY-MM-DD] CORRECTION: [Description]. Source: User correction. Confidence: 3.`
121
- 4. If same correction seen 3x+, escalate confidence to 5.
122
-
123
- ---
124
-
125
- ## HANDOFF
126
-
127
- Sources used: Auto_Learnings.md, Active_Context.md, Strategy.md, plan.md, project_state.md
128
- Confidence range: [X-Y across outputs]
129
-
130
- **Next:** "Plan updated. Continue executing, or run `/overview` to see the new state."
131
-
132
- Key rules still active:
133
- - All claims must be grounded in Strategy.md and plan.md content
134
- - Confidence < 3 = ask, don't assert
135
- - Append-only: never delete from plan.md or project_state.md
1
+ ---
2
+ description: Safely updates the roadmap without deleting history. System-triggered or manual.
3
+ ---
4
+
5
+ # Refactor Plan (V4)
6
+
7
+ **Trigger:** User runs `/refactor-plan` OR system suggests it after strategy pivot.
8
+ **Role:** Surgical Plan Editor.
9
+ **Task:** Update plan.md based on strategy change WITHOUT deleting history.
10
+ **Risk Tier:** MEDIUM
11
+
12
+ In V4, this is typically triggered by the system (after `/pivot-strategy` or when plan.md drifts from Strategy.md), but can also be run manually.
13
+
14
+ ---
15
+
16
+ ## 0. PRE-FLIGHT
17
+
18
+ Global Rules are pre-loaded as CLAUDE.md / GEMINI.md. Output `[Rules Loaded - DATE]`.
19
+
20
+ LOAD (Light + Strategy — Active_Context is the cache):
21
+ 1. Active_Context.md (has Active Patterns S5.5 for plan drift patterns, Strategic Verdict S1)
22
+ 2. Strategy.md (FULL — needed for direct comparison: plan.md Architecture vs Strategy.md targets)
23
+ 3. Current plan.md (READ ONLY first)
24
+ 4. project_state.md (for changelog)
25
+ NOTE: Strategy.md is the exception — refactor-plan compares plan.md against Strategy.md changes directly. Active Patterns S5.5 provides drift pattern history. If Active_Context is stale (>2 days), flag it and suggest /analyse-day first.
26
+
27
+ CONSTRAINTS:
28
+ - SURGICAL EDITING. Never rewrite the entire file.
29
+ - Never delete completed tasks [x] or Execution Log entries.
30
+ - Mark obsolete tasks as [-] (Skipped), not deleted.
31
+ - Append-only for new tasks and changelog.
32
+ - Windows: no && in commands.
33
+
34
+ ---
35
+
36
+ ## 0.5. PRE-READ & PROJECT IDENTIFICATION
37
+
38
+ **Read plan.md NOW.** Output: "Current state: [X] completed tasks, [Y] open tasks, [Z] phases. Plan targets: [goal from plan.md]."
39
+
40
+ If multiple projects have plan.md files in `01_Projects/`: "Which project are we refactoring? [list them]." Do not proceed until user confirms.
41
+
42
+ ---
43
+
44
+ ## 1. ANALYZE & UPDATE ARCHITECTURE
45
+
46
+ Target: `plan.md` > `## ARCHITECTURE`
47
+ If stack/rules changed (compare plan.md Architecture vs project_brief.md Stack): update this section ONLY. If they match, skip Step 1.
48
+
49
+ ---
50
+
51
+ ## 2. UPDATE ROADMAP (The Pivot)
52
+
53
+ Target: `plan.md` > `## ROADMAP`
54
+
55
+ 1. Find steps made obsolete. Mark as `[-]` (e.g., `[-] Step 2: Setup Supabase`).
56
+ 2. Insert NEW steps with `[ ]` into appropriate phase.
57
+ 3. If new Phase needed: insert between existing phases or at end.
58
+ 4. Never delete `[x]` completed tasks.
59
+ 5. Never delete Execution Log entries.
60
+
61
+ ---
62
+
63
+ ## 3. LOG THE CHANGE
64
+
65
+ Target: `project_state.md` > `## CHANGELOG`
66
+ Append: `* [YYYY-MM-DD] STRATEGY PIVOT - {Summary of changes}`
67
+
68
+ ---
69
+
70
+ ## 4. SELF-VERIFICATION (CISC)
71
+
72
+ Before outputting, self-check:
73
+ 1. No completed tasks deleted? (90%+ accuracy required)
74
+ 2. No execution log entries removed?
75
+ 3. Obsolete tasks marked [-] not deleted?
76
+ 4. New tasks properly inserted?
77
+ 5. All edits grounded in Strategy.md changes — not invented?
78
+
79
+ If any check < 90% confident: flag it explicitly before writing.
80
+
81
+ ---
82
+
83
+ ## 5. CONFIRMATION
84
+
85
+ Output a diff-style summary:
86
+ - "Skipped [X] obsolete tasks."
87
+ - "Added [Y] new tasks."
88
+ - "Updated architecture section."
89
+ - "Logged change to project_state.md."
90
+
91
+ ---
92
+
93
+ ## 6. ANSWER GATING
94
+
95
+ Do not suggest handoff until:
96
+ - User has reviewed the diff-style summary (Section 5).
97
+ - User has confirmed no completed tasks were lost.
98
+
99
+ If pending: "Please confirm the diff above is accurate before I finalize. Any tasks missing or incorrectly marked?"
100
+
101
+ ---
102
+
103
+ ## 7. PROACTIVE SUGGESTIONS
104
+
105
+ Based on observations during this workflow:
106
+ 1. [If Auto_Learnings shows plan.md has drifted before] - Confidence: [X] - "This is a recurring drift. Consider aligning plan.md with Strategy.md after every `/pivot-strategy`."
107
+ 2. [If multiple phases are now obsolete] - Confidence: [X] - "A large portion of the roadmap changed. Run `/overview` to verify project direction is still coherent."
108
+ 3. [If project_state.md CHANGELOG is getting long] - Confidence: [X] - "Many pivots logged. Consider an architecture review."
109
+
110
+ "Want me to address any of these?"
111
+
112
+ ---
113
+
114
+ ## 8. SELF-IMPROVEMENT
115
+
116
+ If user corrected AI during this workflow:
117
+ 1. Acknowledge: "I made a mistake."
118
+ 2. Identify the rule violated.
119
+ 3. Append to Auto_Learnings.md:
120
+ `* [YYYY-MM-DD] CORRECTION: [Description]. Source: User correction. Confidence: 3.`
121
+ 4. If same correction seen 3x+, escalate confidence to 5.
122
+
123
+ ---
124
+
125
+ ## HANDOFF
126
+
127
+ Sources used: Auto_Learnings.md, Active_Context.md, Strategy.md, plan.md, project_state.md
128
+ Confidence range: [X-Y across outputs]
129
+
130
+ **Next:** "Plan updated. Continue executing, or run `/overview` to see the new state."
131
+
132
+ Key rules still active:
133
+ - All claims must be grounded in Strategy.md and plan.md content
134
+ - Confidence < 3 = ask, don't assert
135
+ - Append-only: never delete from plan.md or project_state.md