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,218 +1,218 @@
1
- ---
2
- description: Formal strategy pivot with logging. Documents old to new strategy with data-driven reason.
3
- ---
4
-
5
- # Pivot Strategy (V4)
6
-
7
- **Trigger:** User runs `/pivot-strategy`
8
- **Target:** `02_Areas/Engine/Strategy.md`
9
- **Role:** Strategic Pivot Facilitator.
10
- **Task:** Formally document and execute a strategy change with data validation.
11
- **Risk Tier:** HIGH (modifies Engine file)
12
-
13
- ---
14
-
15
- ## 0. PRE-FLIGHT
16
-
17
- Global Rules are pre-loaded as CLAUDE.md / GEMINI.md. Output `[Rules Loaded - DATE]`.
18
-
19
- LOAD (Memory Hierarchy):
20
- 1. Auto_Learnings.md (P0)
21
- 2. Active_Context.md (P1)
22
- 3. Strategy.md (P2 - full file, current state)
23
- 4. Identity_Prime.md (P3)
24
- 5. Goals.md (if exists)
25
-
26
- PREREQUISITE: Strategy.md must exist. If not: BLOCK. "No Strategy.md found. Run `/setup` first."
27
-
28
- CONSTRAINTS:
29
- - Data-driven pivots only. Emotional pivots flagged as [HYPOTHESIS ONLY].
30
- - Sample size must be validated before recommending pivot.
31
- - Append-only: old strategy goes to CHANGELOG, never deleted.
32
- - Engine file changes require user confirmation (HIGH-RISK).
33
- - Update Version and Last Updated after changes.
34
- - Windows: no && in commands.
35
-
36
- ---
37
-
38
- ## 1. PIVOT VALIDATION
39
-
40
- Before pivoting, verify this is data-driven:
41
-
42
- "What data supports this pivot?"
43
- - Did you hit the sample size defined in Strategy.md?
44
- - What were actual results vs expected?
45
-
46
- **If no data:** Flag as `[HYPOTHESIS ONLY]` and warn.
47
- "You're pivoting without completing the test. This may be emotional, not strategic."
48
-
49
- **If under sample:**
50
- "You're in the Valley of Despair. Are you sure you want to pivot without completing the test? [X]/[Target] of sample completed."
51
-
52
- **Cross-reference Auto_Learnings:** Is this a recurring pivot pattern?
53
- If so: "You've pivoted [X] times in [Y] weeks. Pattern detected (Confidence: [Z])."
54
-
55
- ---
56
-
57
- ## 2. DOCUMENT CURRENT STATE
58
-
59
- Before ANY changes:
60
-
61
- 1. Capture current strategy: Hypothesis, Vehicle, Metrics, Test Duration.
62
- 2. Log to CHANGELOG:
63
- ```markdown
64
- ## CHANGELOG
65
- * [YYYY-MM-DD] [Old Strategy] -> [New Strategy]
66
- * Reason: [Data that validated this OR "HYPOTHESIS ONLY"]
67
- * Sample Size: [X/Target]
68
- * Result: [Metric achieved vs target]
69
- * Duration: [How long was this tested]
70
- ```
71
-
72
- ---
73
-
74
- ## 3. DEFINE NEW STRATEGY
75
-
76
- Ask:
77
- - "What is the new hypothesis?"
78
- - "What vehicle/approach will you test?"
79
- - "What is the new Primary Metric?"
80
- - "What is the sample size for this test?"
81
- - "What are the constants (things you won't change while testing)?"
82
-
83
- **Challenge the new strategy before accepting it:**
84
- - If the new hypothesis sounds like the old one reworded: "This looks like the same strategy with different words. What specifically changes in your daily behavior?"
85
- - If no new metric defined: "A strategy without a metric is a wish. What number tells you this is working?"
86
- - If sample size is vague ("a few weeks"): "That's not a sample size. How many units (DMs, users, sales, posts) before you evaluate?"
87
- - If the user can't articulate why this will work when the last one didn't: "What makes you believe THIS will succeed where the last strategy failed? What's structurally different?"
88
-
89
- **Do NOT write to Strategy.md yet.** Collect all answers, then proceed to CISC and verification gate.
90
-
91
- ---
92
-
93
- ## 4. SELF-VERIFICATION (CISC)
94
-
95
- Before presenting the verification gate to the user, self-check:
96
- 1. Is the CHANGELOG entry complete and accurate? (90%+ accuracy required)
97
- 2. Is the new strategy grounded in Goals.md and Identity_Prime.md?
98
- 3. Is the pivot flagged [HYPOTHESIS ONLY] if no data was provided?
99
- 4. Are old strategy fields fully captured before any write operation?
100
- 5. Are all constraints from Section 0 met?
101
-
102
- If any check < 90% confident: flag it before presenting to user.
103
-
104
- ---
105
-
106
- ## 5. VERIFICATION GATE (HIGH-RISK)
107
-
108
- "I am about to make the following changes to Strategy.md:
109
-
110
- OLD:
111
- - Hypothesis: [Old]
112
- - Vehicle: [Old]
113
- - Metric: [Old]
114
-
115
- NEW:
116
- - Hypothesis: [New]
117
- - Vehicle: [New]
118
- - Metric: [New]
119
-
120
- CHANGELOG entry: [Show entry]
121
-
122
- Confirm:
123
- - Is this accurate?
124
- - Proceed with writing?"
125
-
126
- WAIT FOR USER CONFIRMATION. [Mover_Global_Rules.md: S3, S7, S8]
127
-
128
- ---
129
-
130
- ## 6. UPDATE STRATEGY.MD
131
-
132
- 1. Append old strategy to CHANGELOG section (never delete).
133
- 2. Update main sections with new strategy.
134
- 3. Update `**Last Updated:**` field.
135
- 4. Update `**Version:**` (increment by 1).
136
-
137
- ---
138
-
139
- ## 7. GIT COMMIT
140
-
141
- - `git add 02_Areas/Engine/Strategy.md`
142
- - `git commit -m "pivot(strategy): [Old] -> [New] - [Reason]"`
143
- - Do NOT use && to chain commands.
144
-
145
- ---
146
-
147
- ## 8. UPDATE DEPENDENT ENGINE FILES (MANDATORY)
148
-
149
- Strategy changes cascade. These updates are required, not optional.
150
-
151
- ### 8A. Active_Context.md
152
- Update to reflect the new strategic direction:
153
- - Section 1 (Strategic Verdict): new model, goal, obstacle, status
154
- - Section 2 (Graveyard): add the OLD strategy as a killed idea with date and reason for killing
155
- - Workflow State: write `pivot_strategy_last_run: [YYYY-MM-DD]`
156
-
157
- Present proposed changes. WAIT FOR CONFIRMATION. [Mover_Global_Rules.md: S3 HIGH-RISK]
158
-
159
- ### 8B. Goals.md (if exists)
160
- Review goals against new strategy. Flag any goals that conflict with the new direction:
161
- - "Goal [X] was tied to old hypothesis [Y]. Update, keep, or remove?"
162
-
163
- Present proposed changes. WAIT FOR CONFIRMATION.
164
-
165
- ### 8C. Git Commit (Cascade)
166
- After all dependent updates confirmed:
167
- - `git add 02_Areas/Engine/Active_Context.md`
168
- - `git add 02_Areas/Engine/Goals.md` (if changed)
169
- - `git commit -m "pivot(cascade): update Active_Context + Goals for new strategy"`
170
- - Do NOT use && to chain commands.
171
-
172
- ---
173
-
174
- ## 9. PROACTIVE SUGGESTIONS
175
-
176
- Based on the pivot:
177
- 1. "Run `/refactor-plan` to update your project plan for the new strategy?"
178
- 2. "Run `/plan-tomorrow` to create a plan aligned with the new strategy?"
179
- 3. If recurring pivot pattern detected: "This is pivot #[X] in [Y] weeks. Consider running `/debug-resistance` to check if this is avoidance."
180
-
181
- ---
182
-
183
- ## 10. ANSWER GATING
184
-
185
- Do not suggest handoff until:
186
- - User has confirmed the CHANGELOG entry is accurate (Section 5 gate passed).
187
- - Strategy.md has been written successfully.
188
- - Active_Context.md updated (Section 8A — mandatory).
189
- - Goals.md reviewed against new strategy (Section 8B — mandatory if Goals.md exists).
190
- - All git commits completed (Sections 7 and 8C).
191
-
192
- If pending: "Strategy.md hasn't been updated yet. Confirm the changes above or tell me what to adjust."
193
-
194
- ---
195
-
196
- ## 11. SELF-IMPROVEMENT
197
-
198
- If user corrected AI during this workflow:
199
- 1. Acknowledge: "I made a mistake."
200
- 2. Identify the rule violated.
201
- 3. Append to Auto_Learnings.md:
202
- `* [YYYY-MM-DD] CORRECTION: [Description]. Source: User correction. Confidence: 3.`
203
- 4. If same correction seen 3x+, escalate confidence to 5.
204
-
205
- ---
206
-
207
- ## HANDOFF
208
-
209
- Sources used: Auto_Learnings.md, Active_Context.md, Strategy.md, Identity_Prime.md, Goals.md (if loaded)
210
- Confidence range: [X-Y across outputs]
211
-
212
- **Next:** "Strategy pivoted and logged. Run `/refactor-plan` to update your project plan, then `/plan-tomorrow` for a new Battle Plan."
213
- If no active project: "Run `/plan-tomorrow` for a new Battle Plan."
214
-
215
- Key rules still active:
216
- - All claims must be grounded in source files
217
- - Confidence < 3 = ask, don't assert
218
- - Append-only: never delete from Strategy.md CHANGELOG
1
+ ---
2
+ description: Formal strategy pivot with logging. Documents old to new strategy with data-driven reason.
3
+ ---
4
+
5
+ # Pivot Strategy (V4)
6
+
7
+ **Trigger:** User runs `/pivot-strategy`
8
+ **Target:** `02_Areas/Engine/Strategy.md`
9
+ **Role:** Strategic Pivot Facilitator.
10
+ **Task:** Formally document and execute a strategy change with data validation.
11
+ **Risk Tier:** HIGH (modifies Engine file)
12
+
13
+ ---
14
+
15
+ ## 0. PRE-FLIGHT
16
+
17
+ Global Rules are pre-loaded as CLAUDE.md / GEMINI.md. Output `[Rules Loaded - DATE]`.
18
+
19
+ LOAD (Memory Hierarchy):
20
+ 1. Auto_Learnings.md (P0)
21
+ 2. Active_Context.md (P1)
22
+ 3. Strategy.md (P2 - full file, current state)
23
+ 4. Identity_Prime.md (P3)
24
+ 5. Goals.md (if exists)
25
+
26
+ PREREQUISITE: Strategy.md must exist. If not: BLOCK. "No Strategy.md found. Run `/setup` first."
27
+
28
+ CONSTRAINTS:
29
+ - Data-driven pivots only. Emotional pivots flagged as [HYPOTHESIS ONLY].
30
+ - Sample size must be validated before recommending pivot.
31
+ - Append-only: old strategy goes to CHANGELOG, never deleted.
32
+ - Engine file changes require user confirmation (HIGH-RISK).
33
+ - Update Version and Last Updated after changes.
34
+ - Windows: no && in commands.
35
+
36
+ ---
37
+
38
+ ## 1. PIVOT VALIDATION
39
+
40
+ Before pivoting, verify this is data-driven:
41
+
42
+ "What data supports this pivot?"
43
+ - Did you hit the sample size defined in Strategy.md?
44
+ - What were actual results vs expected?
45
+
46
+ **If no data:** Flag as `[HYPOTHESIS ONLY]` and warn.
47
+ "You're pivoting without completing the test. This may be emotional, not strategic."
48
+
49
+ **If under sample:**
50
+ "You're in the Valley of Despair. Are you sure you want to pivot without completing the test? [X]/[Target] of sample completed."
51
+
52
+ **Cross-reference Auto_Learnings:** Is this a recurring pivot pattern?
53
+ If so: "You've pivoted [X] times in [Y] weeks. Pattern detected (Confidence: [Z])."
54
+
55
+ ---
56
+
57
+ ## 2. DOCUMENT CURRENT STATE
58
+
59
+ Before ANY changes:
60
+
61
+ 1. Capture current strategy: Hypothesis, Vehicle, Metrics, Test Duration.
62
+ 2. Log to CHANGELOG:
63
+ ```markdown
64
+ ## CHANGELOG
65
+ * [YYYY-MM-DD] [Old Strategy] -> [New Strategy]
66
+ * Reason: [Data that validated this OR "HYPOTHESIS ONLY"]
67
+ * Sample Size: [X/Target]
68
+ * Result: [Metric achieved vs target]
69
+ * Duration: [How long was this tested]
70
+ ```
71
+
72
+ ---
73
+
74
+ ## 3. DEFINE NEW STRATEGY
75
+
76
+ Ask:
77
+ - "What is the new hypothesis?"
78
+ - "What vehicle/approach will you test?"
79
+ - "What is the new Primary Metric?"
80
+ - "What is the sample size for this test?"
81
+ - "What are the constants (things you won't change while testing)?"
82
+
83
+ **Challenge the new strategy before accepting it:**
84
+ - If the new hypothesis sounds like the old one reworded: "This looks like the same strategy with different words. What specifically changes in your daily behavior?"
85
+ - If no new metric defined: "A strategy without a metric is a wish. What number tells you this is working?"
86
+ - If sample size is vague ("a few weeks"): "That's not a sample size. How many units (DMs, users, sales, posts) before you evaluate?"
87
+ - If the user can't articulate why this will work when the last one didn't: "What makes you believe THIS will succeed where the last strategy failed? What's structurally different?"
88
+
89
+ **Do NOT write to Strategy.md yet.** Collect all answers, then proceed to CISC and verification gate.
90
+
91
+ ---
92
+
93
+ ## 4. SELF-VERIFICATION (CISC)
94
+
95
+ Before presenting the verification gate to the user, self-check:
96
+ 1. Is the CHANGELOG entry complete and accurate? (90%+ accuracy required)
97
+ 2. Is the new strategy grounded in Goals.md and Identity_Prime.md?
98
+ 3. Is the pivot flagged [HYPOTHESIS ONLY] if no data was provided?
99
+ 4. Are old strategy fields fully captured before any write operation?
100
+ 5. Are all constraints from Section 0 met?
101
+
102
+ If any check < 90% confident: flag it before presenting to user.
103
+
104
+ ---
105
+
106
+ ## 5. VERIFICATION GATE (HIGH-RISK)
107
+
108
+ "I am about to make the following changes to Strategy.md:
109
+
110
+ OLD:
111
+ - Hypothesis: [Old]
112
+ - Vehicle: [Old]
113
+ - Metric: [Old]
114
+
115
+ NEW:
116
+ - Hypothesis: [New]
117
+ - Vehicle: [New]
118
+ - Metric: [New]
119
+
120
+ CHANGELOG entry: [Show entry]
121
+
122
+ Confirm:
123
+ - Is this accurate?
124
+ - Proceed with writing?"
125
+
126
+ WAIT FOR USER CONFIRMATION. [Mover_Global_Rules.md: S3, S7, S8]
127
+
128
+ ---
129
+
130
+ ## 6. UPDATE STRATEGY.MD
131
+
132
+ 1. Append old strategy to CHANGELOG section (never delete).
133
+ 2. Update main sections with new strategy.
134
+ 3. Update `**Last Updated:**` field.
135
+ 4. Update `**Version:**` (increment by 1).
136
+
137
+ ---
138
+
139
+ ## 7. GIT COMMIT
140
+
141
+ - `git add 02_Areas/Engine/Strategy.md`
142
+ - `git commit -m "pivot(strategy): [Old] -> [New] - [Reason]"`
143
+ - Do NOT use && to chain commands.
144
+
145
+ ---
146
+
147
+ ## 8. UPDATE DEPENDENT ENGINE FILES (MANDATORY)
148
+
149
+ Strategy changes cascade. These updates are required, not optional.
150
+
151
+ ### 8A. Active_Context.md
152
+ Update to reflect the new strategic direction:
153
+ - Section 1 (Strategic Verdict): new model, goal, obstacle, status
154
+ - Section 2 (Graveyard): add the OLD strategy as a killed idea with date and reason for killing
155
+ - Workflow State: write `pivot_strategy_last_run: [YYYY-MM-DD]`
156
+
157
+ Present proposed changes. WAIT FOR CONFIRMATION. [Mover_Global_Rules.md: S3 HIGH-RISK]
158
+
159
+ ### 8B. Goals.md (if exists)
160
+ Review goals against new strategy. Flag any goals that conflict with the new direction:
161
+ - "Goal [X] was tied to old hypothesis [Y]. Update, keep, or remove?"
162
+
163
+ Present proposed changes. WAIT FOR CONFIRMATION.
164
+
165
+ ### 8C. Git Commit (Cascade)
166
+ After all dependent updates confirmed:
167
+ - `git add 02_Areas/Engine/Active_Context.md`
168
+ - `git add 02_Areas/Engine/Goals.md` (if changed)
169
+ - `git commit -m "pivot(cascade): update Active_Context + Goals for new strategy"`
170
+ - Do NOT use && to chain commands.
171
+
172
+ ---
173
+
174
+ ## 9. PROACTIVE SUGGESTIONS
175
+
176
+ Based on the pivot:
177
+ 1. "Run `/refactor-plan` to update your project plan for the new strategy?"
178
+ 2. "Run `/plan-tomorrow` to create a plan aligned with the new strategy?"
179
+ 3. If recurring pivot pattern detected: "This is pivot #[X] in [Y] weeks. Consider running `/debug-resistance` to check if this is avoidance."
180
+
181
+ ---
182
+
183
+ ## 10. ANSWER GATING
184
+
185
+ Do not suggest handoff until:
186
+ - User has confirmed the CHANGELOG entry is accurate (Section 5 gate passed).
187
+ - Strategy.md has been written successfully.
188
+ - Active_Context.md updated (Section 8A — mandatory).
189
+ - Goals.md reviewed against new strategy (Section 8B — mandatory if Goals.md exists).
190
+ - All git commits completed (Sections 7 and 8C).
191
+
192
+ If pending: "Strategy.md hasn't been updated yet. Confirm the changes above or tell me what to adjust."
193
+
194
+ ---
195
+
196
+ ## 11. SELF-IMPROVEMENT
197
+
198
+ If user corrected AI during this workflow:
199
+ 1. Acknowledge: "I made a mistake."
200
+ 2. Identify the rule violated.
201
+ 3. Append to Auto_Learnings.md:
202
+ `* [YYYY-MM-DD] CORRECTION: [Description]. Source: User correction. Confidence: 3.`
203
+ 4. If same correction seen 3x+, escalate confidence to 5.
204
+
205
+ ---
206
+
207
+ ## HANDOFF
208
+
209
+ Sources used: Auto_Learnings.md, Active_Context.md, Strategy.md, Identity_Prime.md, Goals.md (if loaded)
210
+ Confidence range: [X-Y across outputs]
211
+
212
+ **Next:** "Strategy pivoted and logged. Run `/refactor-plan` to update your project plan, then `/plan-tomorrow` for a new Battle Plan."
213
+ If no active project: "Run `/plan-tomorrow` for a new Battle Plan."
214
+
215
+ Key rules still active:
216
+ - All claims must be grounded in source files
217
+ - Confidence < 3 = ask, don't assert
218
+ - Append-only: never delete from Strategy.md CHANGELOG