mindsystem-cc 3.12.0 → 3.13.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.
@@ -1,293 +0,0 @@
1
- # Summary Template
2
-
3
- Template for `.planning/phases/XX-name/{phase}-{plan}-SUMMARY.md` - phase completion documentation.
4
-
5
- ---
6
-
7
- ## File Template
8
-
9
- ```markdown
10
- ---
11
- phase: XX-name
12
- plan: YY
13
- subsystem: [from .planning/config.json subsystems list]
14
- tags: [searchable tech: jwt, stripe, react, postgres, prisma]
15
-
16
- # Dependency graph
17
- requires:
18
- - phase: [prior phase this depends on]
19
- provides: [what that phase built that this uses]
20
- provides:
21
- - [bullet list of what this phase built/delivered]
22
- affects: [list of phase names or keywords that will need this context]
23
-
24
- # Tech tracking
25
- tech-stack:
26
- added: [libraries/tools added in this phase]
27
- patterns: [architectural/code patterns established]
28
-
29
- key-files:
30
- created: [important files created]
31
- modified: [important files modified]
32
-
33
- key-decisions:
34
- - "Decision 1"
35
- - "Decision 2"
36
-
37
- patterns-established:
38
- - "Pattern 1: description"
39
- - "Pattern 2: description"
40
-
41
- # Verification hints (required — aids verify-work mock classification, use `none` if not applicable)
42
- mock_hints:
43
- transient_states:
44
- - state: "[description of transient UI state]"
45
- component: "[file path]"
46
- trigger: "[async call | animation | timer]"
47
- external_data:
48
- - source: "[API endpoint or data source]"
49
- data_type: "[what kind of data]"
50
- components: ["[file1]", "[file2]"]
51
-
52
- # Metrics
53
- duration: Xmin
54
- completed: YYYY-MM-DD
55
- ---
56
-
57
- # Phase [X]: [Name] Summary
58
-
59
- **[Substantive one-liner describing outcome - NOT "phase complete" or "implementation finished"]**
60
-
61
- ## Performance
62
-
63
- - **Duration:** [time] (e.g., 23 min, 1h 15m)
64
- - **Started:** [ISO timestamp]
65
- - **Completed:** [ISO timestamp]
66
- - **Tasks:** [count completed]
67
- - **Files modified:** [count]
68
-
69
- ## Accomplishments
70
- - [Most important outcome]
71
- - [Second key accomplishment]
72
- - [Third if applicable]
73
-
74
- ## Task Commits
75
-
76
- Each task was committed atomically:
77
-
78
- 1. **Task 1: [task name]** - `abc123f` (feat/fix/test/refactor)
79
- 2. **Task 2: [task name]** - `def456g` (feat/fix/test/refactor)
80
- 3. **Task 3: [task name]** - `hij789k` (feat/fix/test/refactor)
81
-
82
- **Plan metadata:** `lmn012o` (docs: complete plan)
83
-
84
- _Note: TDD tasks may have multiple commits (test → feat → refactor)_
85
-
86
- ## Files Created/Modified
87
- - `path/to/file.ts` - What it does
88
- - `path/to/another.ts` - What it does
89
-
90
- ## Verification Hints
91
-
92
- [If phase built UI with transient states or external data dependencies, list them.
93
- If not applicable: "None — no transient states or external data dependencies."]
94
-
95
- **Transient states:** [States that appear briefly during async operations]
96
- - [state description] in `[component]` — triggered by [what]
97
-
98
- **External data:** [Features that fetch specific data from APIs]
99
- - [data type] from [source] — used by `[component1]`, `[component2]`
100
-
101
- ## Decisions Made
102
- [Key decisions with brief rationale, or "None - followed plan as specified"]
103
-
104
- ## Deviations from Plan
105
-
106
- [If no deviations: "None - plan executed exactly as written"]
107
-
108
- [If deviations occurred:]
109
-
110
- ### Auto-fixed Issues
111
-
112
- **1. [Rule X - Category] Brief description**
113
- - **Found during:** Task [N] ([task name])
114
- - **Issue:** [What was wrong]
115
- - **Fix:** [What was done]
116
- - **Files modified:** [file paths]
117
- - **Verification:** [How it was verified]
118
- - **Committed in:** [hash] (part of task commit)
119
-
120
- [... repeat for each auto-fix ...]
121
-
122
- ---
123
-
124
- **Total deviations:** [N] auto-fixed ([breakdown by rule])
125
- **Impact on plan:** [Brief assessment - e.g., "All auto-fixes necessary for correctness/security. No scope creep."]
126
-
127
- ## Issues Encountered
128
- [Problems and how they were resolved, or "None"]
129
-
130
- [Note: "Deviations from Plan" documents unplanned work that was handled automatically via deviation rules. "Issues Encountered" documents problems during planned work that required problem-solving.]
131
-
132
- ## User Setup Required
133
-
134
- [If USER-SETUP.md was generated:]
135
- **External services require manual configuration.** See [{phase}-USER-SETUP.md](./{phase}-USER-SETUP.md) for:
136
- - Environment variables to add
137
- - Dashboard configuration steps
138
- - Verification commands
139
-
140
- [If no USER-SETUP.md:]
141
- None - no external service configuration required.
142
-
143
- ## Next Phase Readiness
144
- [What's ready for next phase]
145
- [Any blockers or concerns]
146
-
147
- ---
148
- *Phase: XX-name*
149
- *Completed: [date]*
150
- ```
151
-
152
- <frontmatter_guidance>
153
- **Purpose:** Enable automatic context assembly via dependency graph. Frontmatter makes summary metadata machine-readable so plan-phase can scan all summaries quickly and select relevant ones based on dependencies.
154
-
155
- **Fast scanning:** Frontmatter is first ~25 lines, cheap to scan across all summaries without reading full content.
156
-
157
- **Dependency graph:** `requires`/`provides`/`affects` create explicit links between phases, enabling transitive closure for context selection.
158
-
159
- **Subsystem:** Primary categorization from `.planning/config.json` subsystems list. If work doesn't fit any existing subsystem, add a new value to config.json and use it.
160
-
161
- **Tags:** Searchable technical keywords (libraries, frameworks, tools) for tech stack awareness.
162
-
163
- **Key-files:** Important files for @context references in PLAN.md.
164
-
165
- **Patterns:** Established conventions future phases should maintain.
166
-
167
- **Population:** Frontmatter is populated during summary creation in execute-plan.md. See `<step name="create_summary">` for field-by-field guidance.
168
-
169
- **Mock hints (required):** Captures verification-relevant knowledge about transient UI states and external data dependencies. Transient states are UI states that appear briefly (loading skeletons, animations, transitions) — verify-work needs these to generate mocks that force/extend the state. External data entries identify features depending on API data — verify-work uses these to ask the user whether test data exists locally. Populate when the phase builds UI with these characteristics. When a phase has no transient states or external data dependencies, write `mock_hints: none` (with optional comment, e.g., `mock_hints: none # purely backend, no async UI`). Always populate — `none` is a valid value that tells verify-work to skip mock analysis.
170
- </frontmatter_guidance>
171
-
172
- <one_liner_rules>
173
- The one-liner MUST be substantive:
174
-
175
- **Good:**
176
- - "JWT auth with refresh rotation using jose library"
177
- - "Prisma schema with User, Session, and Product models"
178
- - "Dashboard with real-time metrics via Server-Sent Events"
179
-
180
- **Bad:**
181
- - "Phase complete"
182
- - "Authentication implemented"
183
- - "Foundation finished"
184
- - "All tasks done"
185
-
186
- The one-liner should tell someone what actually shipped.
187
- </one_liner_rules>
188
-
189
- <example>
190
- ```markdown
191
- # Phase 1: Foundation Summary
192
-
193
- **JWT auth with refresh rotation using jose library, Prisma User model, and protected API middleware**
194
-
195
- ## Performance
196
-
197
- - **Duration:** 28 min
198
- - **Started:** 2025-01-15T14:22:10Z
199
- - **Completed:** 2025-01-15T14:50:33Z
200
- - **Tasks:** 5
201
- - **Files modified:** 8
202
-
203
- ## Accomplishments
204
- - User model with email/password auth
205
- - Login/logout endpoints with httpOnly JWT cookies
206
- - Protected route middleware checking token validity
207
- - Refresh token rotation on each request
208
-
209
- ## Files Created/Modified
210
- - `prisma/schema.prisma` - User and Session models
211
- - `src/app/api/auth/login/route.ts` - Login endpoint
212
- - `src/app/api/auth/logout/route.ts` - Logout endpoint
213
- - `src/middleware.ts` - Protected route checks
214
- - `src/lib/auth.ts` - JWT helpers using jose
215
-
216
- ## Decisions Made
217
- - Used jose instead of jsonwebtoken (ESM-native, Edge-compatible)
218
- - 15-min access tokens with 7-day refresh tokens
219
- - Storing refresh tokens in database for revocation capability
220
-
221
- ## Deviations from Plan
222
-
223
- ### Auto-fixed Issues
224
-
225
- **1. [Rule 2 - Missing Critical] Added password hashing with bcrypt**
226
- - **Found during:** Task 2 (Login endpoint implementation)
227
- - **Issue:** Plan didn't specify password hashing - storing plaintext would be critical security flaw
228
- - **Fix:** Added bcrypt hashing on registration, comparison on login with salt rounds 10
229
- - **Files modified:** src/app/api/auth/login/route.ts, src/lib/auth.ts
230
- - **Verification:** Password hash test passes, plaintext never stored
231
- - **Committed in:** abc123f (Task 2 commit)
232
-
233
- **2. [Rule 3 - Blocking] Installed missing jose dependency**
234
- - **Found during:** Task 4 (JWT token generation)
235
- - **Issue:** jose package not in package.json, import failing
236
- - **Fix:** Ran `npm install jose`
237
- - **Files modified:** package.json, package-lock.json
238
- - **Verification:** Import succeeds, build passes
239
- - **Committed in:** def456g (Task 4 commit)
240
-
241
- ---
242
-
243
- **Total deviations:** 2 auto-fixed (1 missing critical, 1 blocking)
244
- **Impact on plan:** Both auto-fixes essential for security and functionality. No scope creep.
245
-
246
- ## Issues Encountered
247
- - jsonwebtoken CommonJS import failed in Edge runtime - switched to jose (planned library change, worked as expected)
248
-
249
- ## Next Phase Readiness
250
- - Auth foundation complete, ready for feature development
251
- - User registration endpoint needed before public launch
252
-
253
- ---
254
- *Phase: 01-foundation*
255
- *Completed: 2025-01-15*
256
- ```
257
- </example>
258
-
259
- <guidelines>
260
- **When to create:**
261
- - After completing each phase plan
262
- - Required output from execute-plan workflow
263
- - Documents what actually happened vs what was planned
264
-
265
- **Frontmatter completion:**
266
- - MANDATORY: Complete all frontmatter fields during summary creation
267
- - See <frontmatter_guidance> for field purposes
268
- - Frontmatter enables automatic context assembly for future planning
269
-
270
- **One-liner requirements:**
271
- - Must be substantive (describe what shipped, not "phase complete")
272
- - Should tell someone what was accomplished
273
- - Examples: "JWT auth with refresh rotation using jose library" not "Authentication implemented"
274
-
275
- **Performance tracking:**
276
- - Include duration, start/end timestamps
277
- - Used for velocity metrics in STATE.md
278
-
279
- **Deviations section:**
280
- - Documents unplanned work handled via deviation rules
281
- - Separate from "Issues Encountered" (which is planned work problems)
282
- - Auto-fixed issues: What was wrong, how fixed, verification
283
-
284
- **Decisions section:**
285
- - Key decisions made during execution
286
- - Include rationale (why this choice)
287
- - Extracted to STATE.md accumulated context
288
- - Use "None - followed plan as specified" if no deviations
289
-
290
- **After creation:**
291
- - STATE.md updated with position, decisions, issues
292
- - Next plan can reference decisions made
293
- </guidelines>