oneie 3.6.20 → 3.6.21

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.
@@ -52,20 +52,20 @@ Phase 10 (Cycle 91-100): Documentation & Deployment
52
52
  **Duration:** 3-4 days
53
53
  **Deliverable:** Architecture blueprint, task breakdown, timeline
54
54
 
55
- ### **[INFER-001]** Validate frontend architecture against 6-dimension ontology
55
+ ### **[CYCLE-001]** Validate frontend architecture against 6-dimension ontology
56
56
 
57
57
  - Services map to ontology dimensions (groups, people, things, connections, events, knowledge)
58
58
  - DataProvider enforces ontology structure at interface level
59
59
  - Type system prevents ontology violations
60
60
 
61
- ### **[INFER-002]** Map existing Convex integration to DataProvider pattern
61
+ ### **[CYCLE-002]** Map existing Convex integration to DataProvider pattern
62
62
 
63
63
  - Identify all Convex hooks in current codebase
64
64
  - List all mutation/query calls
65
65
  - Create mapping: Convex calls → DataProvider interface
66
66
  - Assess migration risk and complexity
67
67
 
68
- ### **[INFER-003]** Design service dependency graph
68
+ ### **[CYCLE-003]** Design service dependency graph
69
69
 
70
70
  - ThingService dependencies: DataProvider
71
71
  - ConnectionService dependencies: DataProvider
@@ -74,14 +74,14 @@ Phase 10 (Cycle 91-100): Documentation & Deployment
74
74
  - CourseService dependencies: ThingService, ConnectionService
75
75
  - Visualize and validate acyclic dependency graph
76
76
 
77
- ### **[INFER-004]** Define error hierarchy for frontend
77
+ ### **[CYCLE-004]** Define error hierarchy for frontend
78
78
 
79
79
  - Domain errors (ThingNotFound, ValidationError)
80
80
  - Provider errors (ProviderError, NetworkError)
81
81
  - Component errors (FormError, RenderError)
82
82
  - Tagging strategy for Effect error channels
83
83
 
84
- ### **[INFER-005]** Plan React hook library
84
+ ### **[CYCLE-005]** Plan React hook library
85
85
 
86
86
  - useEffectRunner (core)
87
87
  - useThingService (generic CRUD)
@@ -90,27 +90,27 @@ Phase 10 (Cycle 91-100): Documentation & Deployment
90
90
  - useOptimisticUpdate
91
91
  - List hooks and interdependencies
92
92
 
93
- ### **[INFER-006]** Design test strategy
93
+ ### **[CYCLE-006]** Design test strategy
94
94
 
95
95
  - Unit tests: Services with mock providers
96
96
  - Component tests: React Testing Library
97
97
  - E2E tests: Full flow with real provider
98
98
  - Test coverage targets: 85% unit, 70% integration
99
99
 
100
- ### **[INFER-007]** Create rollback plan
100
+ ### **[CYCLE-007]** Create rollback plan
101
101
 
102
102
  - Keep both Convex hooks and Effect services during migration
103
103
  - Component migration is opt-in (can rollback per-component)
104
104
  - Provider swapping is configuration (reversible)
105
105
 
106
- ### **[INFER-008]** Identify critical auth components
106
+ ### **[CYCLE-008]** Identify critical auth components
107
107
 
108
108
  - Auth pages (login, signup, password reset)
109
109
  - Auth tests in `frontend/tests/auth/*`
110
110
  - Must pass throughout entire migration
111
111
  - Establish as "canary" for quality
112
112
 
113
- ### **[INFER-009]** Plan parallel work streams
113
+ ### **[CYCLE-009]** Plan parallel work streams
114
114
 
115
115
  - **Stream A:** DataProvider + ConvexProvider (Frontend + Backend specialist)
116
116
  - **Stream B:** Effect services (Backend specialist)
@@ -118,7 +118,7 @@ Phase 10 (Cycle 91-100): Documentation & Deployment
118
118
  - **Stream D:** Component migration (Frontend specialist)
119
119
  - **Stream E:** Testing (Quality specialist)
120
120
 
121
- ### **[INFER-010]** Assign specialists and schedule
121
+ ### **[CYCLE-010]** Assign specialists and schedule
122
122
 
123
123
  - **Frontend Lead:** Oversee streams, manage blockers, coordinate release
124
124
  - **Backend Specialist:** Services, providers, DI composition
@@ -135,13 +135,13 @@ Phase 10 (Cycle 91-100): Documentation & Deployment
135
135
  **Deliverable:** Complete DataProvider interface, error types, documentation
136
136
  **Status:** ✅ Ready to Start (independent of other phases)
137
137
 
138
- ### **[INFER-011]** Create `/web/src/providers/DataProvider.ts` base file
138
+ ### **[CYCLE-011]** Create `/web/src/providers/DataProvider.ts` base file
139
139
 
140
140
  - Stub interface with all 6 dimensions
141
141
  - Placeholder for error types
142
142
  - JSDoc comments for each method
143
143
 
144
- ### **[INFER-012]** Define Groups interface (Dimension 1)
144
+ ### **[CYCLE-012]** Define Groups interface (Dimension 1)
145
145
 
146
146
  ```typescript
147
147
  groups: {
@@ -151,7 +151,7 @@ groups: {
151
151
  }
152
152
  ```
153
153
 
154
- ### **[INFER-013]** Define People interface (Dimension 2)
154
+ ### **[CYCLE-013]** Define People interface (Dimension 2)
155
155
 
156
156
  ```typescript
157
157
  people: {
@@ -163,7 +163,7 @@ people: {
163
163
  }
164
164
  ```
165
165
 
166
- ### **[INFER-014]** Define Things interface (Dimension 3)
166
+ ### **[CYCLE-014]** Define Things interface (Dimension 3)
167
167
 
168
168
  ```typescript
169
169
  things: {
@@ -176,7 +176,7 @@ things: {
176
176
  }
177
177
  ```
178
178
 
179
- ### **[INFER-015]** Define Connections interface (Dimension 4)
179
+ ### **[CYCLE-015]** Define Connections interface (Dimension 4)
180
180
 
181
181
  ```typescript
182
182
  connections: {
@@ -187,7 +187,7 @@ connections: {
187
187
  }
188
188
  ```
189
189
 
190
- ### **[INFER-016]** Define Events interface (Dimension 5)
190
+ ### **[CYCLE-016]** Define Events interface (Dimension 5)
191
191
 
192
192
  ```typescript
193
193
  events: {
@@ -196,7 +196,7 @@ events: {
196
196
  }
197
197
  ```
198
198
 
199
- ### **[INFER-017]** Define Knowledge interface (Dimension 6)
199
+ ### **[CYCLE-017]** Define Knowledge interface (Dimension 6)
200
200
 
201
201
  ```typescript
202
202
  knowledge: {
@@ -205,20 +205,20 @@ knowledge: {
205
205
  }
206
206
  ```
207
207
 
208
- ### **[INFER-018]** Create error type definitions
208
+ ### **[CYCLE-018]** Create error type definitions
209
209
 
210
210
  - ThingNotFoundError, ValidationError, ProviderError, etc.
211
211
  - Use Data.TaggedError for Effect compatibility
212
212
  - Export as union type: `type DataProviderError = ...`
213
213
 
214
- ### **[INFER-019]** Document interface with examples
214
+ ### **[CYCLE-019]** Document interface with examples
215
215
 
216
216
  - Docstrings for each method
217
217
  - Usage examples
218
218
  - Error channel documentation
219
219
  - Ontology mapping comments
220
220
 
221
- ### **[INFER-020]** Create Context.Tag for DataProvider
221
+ ### **[CYCLE-020]** Create Context.Tag for DataProvider
222
222
 
223
223
  ```typescript
224
224
  export const DataProvider = Context.GenericTag<DataProvider>("DataProvider");
@@ -234,63 +234,63 @@ export const DataProvider = Context.GenericTag<DataProvider>("DataProvider");
234
234
  **Status:** ✅ Ready to Start (depends on Phase 2, independent of UI)
235
235
  **Can Start:** Day 5 (when DataProvider is defined)
236
236
 
237
- ### **[INFER-021]** Create `/web/src/services/ThingService.ts` class definition
237
+ ### **[CYCLE-021]** Create `/web/src/services/ThingService.ts` class definition
238
238
 
239
239
  - Extend Effect.Service
240
240
  - Define interface: get, list, create, update, delete
241
241
  - Implement with provider delegation
242
242
 
243
- ### **[INFER-022]** Create `/web/src/services/ConnectionService.ts`
243
+ ### **[CYCLE-022]** Create `/web/src/services/ConnectionService.ts`
244
244
 
245
245
  - Extend Effect.Service
246
246
  - Define interface: create, getRelated, getCount, delete
247
247
  - Implement with provider delegation
248
248
 
249
- ### **[INFER-023]** Create `/web/src/services/EventService.ts`
249
+ ### **[CYCLE-023]** Create `/web/src/services/EventService.ts`
250
250
 
251
251
  - Extend Effect.Service
252
252
  - Define interface: log, query
253
253
  - Implement with provider delegation
254
254
 
255
- ### **[INFER-024]** Create `/web/src/services/KnowledgeService.ts`
255
+ ### **[CYCLE-024]** Create `/web/src/services/KnowledgeService.ts`
256
256
 
257
257
  - Extend Effect.Service
258
258
  - Define interface: embed, search
259
259
  - Implement with provider delegation
260
260
 
261
- ### **[INFER-025]** Create `/web/src/services/GroupService.ts`
261
+ ### **[CYCLE-025]** Create `/web/src/services/GroupService.ts`
262
262
 
263
263
  - Extend Effect.Service
264
264
  - Define interface: get, list, update, getCurrent
265
265
  - Implement with provider delegation
266
266
 
267
- ### **[INFER-026]** Create `/web/src/services/PeopleService.ts`
267
+ ### **[CYCLE-026]** Create `/web/src/services/PeopleService.ts`
268
268
 
269
269
  - Extend Effect.Service
270
270
  - Define interface: get, list, create, getCurrentUser
271
271
  - Implement with provider delegation
272
272
 
273
- ### **[INFER-027]** Create domain-specific service: CourseService
273
+ ### **[CYCLE-027]** Create domain-specific service: CourseService
274
274
 
275
275
  - Extends Effect.Service
276
276
  - Depends on: ThingService, ConnectionService
277
277
  - Methods: createWithInstructor, getWithEnrollments, etc.
278
278
 
279
- ### **[INFER-028]** Create `/web/src/services/ClientLayer.ts`
279
+ ### **[CYCLE-028]** Create `/web/src/services/ClientLayer.ts`
280
280
 
281
281
  - Merge all service layers
282
282
  - Merge provider layer
283
283
  - Export as single Layer for React injection
284
284
  - Document layer composition
285
285
 
286
- ### **[INFER-029]** Write unit tests for services with mock provider
286
+ ### **[CYCLE-029]** Write unit tests for services with mock provider
287
287
 
288
288
  - Mock provider implementation
289
289
  - Test happy paths
290
290
  - Test error scenarios
291
291
  - 90%+ coverage per service
292
292
 
293
- ### **[INFER-030]** Validate service type signatures
293
+ ### **[CYCLE-030]** Validate service type signatures
294
294
 
295
295
  - Full TypeScript strict mode
296
296
  - No `any` types
@@ -307,66 +307,66 @@ export const DataProvider = Context.GenericTag<DataProvider>("DataProvider");
307
307
  **Status:** ✅ Ready to Start (depends on Phase 3, independent of components)
308
308
  **Can Start:** Day 8 (when services are defined)
309
309
 
310
- ### **[INFER-031]** Create `/web/src/hooks/useEffectRunner.ts`
310
+ ### **[CYCLE-031]** Create `/web/src/hooks/useEffectRunner.ts`
311
311
 
312
312
  - Core hook: run Effect programs in React
313
313
  - Return: { run, loading, error }
314
314
  - Integrate ClientLayer automatically
315
315
  - Handle cleanup on unmount
316
316
 
317
- ### **[INFER-032]** Create `/web/src/hooks/useThingService.ts`
317
+ ### **[CYCLE-032]** Create `/web/src/hooks/useThingService.ts`
318
318
 
319
319
  - Generic CRUD hook
320
320
  - Load things on mount
321
321
  - Create, update operations
322
322
  - Automatic list refresh
323
323
 
324
- ### **[INFER-033]** Create `/web/src/hooks/useService.ts`
324
+ ### **[CYCLE-033]** Create `/web/src/hooks/useService.ts`
325
325
 
326
326
  - Generic service accessor
327
327
  - Run any service operation
328
328
  - Type-safe service access
329
329
 
330
- ### **[INFER-034]** Create `/web/src/hooks/useForm.ts`
330
+ ### **[CYCLE-034]** Create `/web/src/hooks/useForm.ts`
331
331
 
332
332
  - Form state management with validation
333
333
  - Integration with Effect schemas
334
334
  - Error handling per-field
335
335
  - Submit handler with optimism
336
336
 
337
- ### **[INFER-035]** Create `/web/src/hooks/useOptimisticUpdate.ts`
337
+ ### **[CYCLE-035]** Create `/web/src/hooks/useOptimisticUpdate.ts`
338
338
 
339
339
  - Optimistic updates pattern
340
340
  - Rollback on error
341
341
  - Loading state
342
342
  - Success callback
343
343
 
344
- ### **[INFER-036]** Create `/web/src/hooks/useMemoEffect.ts`
344
+ ### **[CYCLE-036]** Create `/web/src/hooks/useMemoEffect.ts`
345
345
 
346
346
  - Memoization of Effect operations
347
347
  - Dependency tracking
348
348
  - Cache cleanup
349
349
 
350
- ### **[INFER-037]** Create `/web/src/context/EffectContext.tsx`
350
+ ### **[CYCLE-037]** Create `/web/src/context/EffectContext.tsx`
351
351
 
352
352
  - EffectProvider component
353
353
  - useEffectLayer hook
354
354
  - Default to ClientLayer
355
355
  - Support layer injection for testing
356
356
 
357
- ### **[INFER-038]** Create `/web/src/context/UserContext.tsx`
357
+ ### **[CYCLE-038]** Create `/web/src/context/UserContext.tsx`
358
358
 
359
359
  - Current user state
360
360
  - Session management
361
361
  - Role-based access
362
362
 
363
- ### **[INFER-039]** Create `/web/src/context/GroupContext.tsx`
363
+ ### **[CYCLE-039]** Create `/web/src/context/GroupContext.tsx`
364
364
 
365
365
  - Current group/organization
366
366
  - Multi-tenant isolation
367
367
  - Context switching
368
368
 
369
- ### **[INFER-040]** Write hook integration tests
369
+ ### **[CYCLE-040]** Write hook integration tests
370
370
 
371
371
  - Test all hooks with mock provider
372
372
  - Test error handling
@@ -383,69 +383,69 @@ export const DataProvider = Context.GenericTag<DataProvider>("DataProvider");
383
383
  **Status:** ✅ Ready to Start (depends on Phase 3, independent of component migration)
384
384
  **Can Start:** Day 8
385
385
 
386
- ### **[INFER-041]** Update `astro.config.ts` to import ConvexProvider
386
+ ### **[CYCLE-041]** Update `astro.config.ts` to import ConvexProvider
387
387
 
388
388
  - Configure provider (stub for now)
389
389
  - Establish provider configuration pattern
390
390
  - Document environment variables needed
391
391
 
392
- ### **[INFER-042]** Create `/web/src/pages/example.astro` with server-side fetching
392
+ ### **[CYCLE-042]** Create `/web/src/pages/example.astro` with server-side fetching
393
393
 
394
394
  - Demonstrate SSR data fetching with Effect
395
395
  - Fetch course list server-side
396
396
  - Pass to client component
397
397
  - Show loading state handling
398
398
 
399
- ### **[INFER-043]** Create `/web/src/layouts/BlogPost.astro` content layout
399
+ ### **[CYCLE-043]** Create `/web/src/layouts/BlogPost.astro` content layout
400
400
 
401
401
  - Load markdown content
402
402
  - Enrich with dynamic data (related articles)
403
403
  - Demonstrate Knowledge service integration
404
404
  - Show server + client component mixing
405
405
 
406
- ### **[INFER-044]** Create `/web/src/layouts/Layout.astro` base layout
406
+ ### **[CYCLE-044]** Create `/web/src/layouts/Layout.astro` base layout
407
407
 
408
408
  - EffectProvider for client components
409
409
  - Context setup (user, group)
410
410
  - Navigation with group switching
411
411
  - Auth state display
412
412
 
413
- ### **[INFER-045]** Implement `/web/src/lib/astro-helpers.ts`
413
+ ### **[CYCLE-045]** Implement `/web/src/lib/astro-helpers.ts`
414
414
 
415
415
  - Helper functions for SSR data fetching
416
416
  - Error handling patterns
417
417
  - Cache helpers
418
418
  - Type-safe query utilities
419
419
 
420
- ### **[INFER-046]** Create 3 example pages showing patterns
420
+ ### **[CYCLE-046]** Create 3 example pages showing patterns
421
421
 
422
422
  - Simple page (list things)
423
423
  - Form page (create thing)
424
424
  - Dynamic page (detail with related)
425
425
  - All with full error handling
426
426
 
427
- ### **[INFER-047]** Document Astro-Effect integration
427
+ ### **[CYCLE-047]** Document Astro-Effect integration
428
428
 
429
429
  - SSR best practices
430
430
  - Client vs server boundaries
431
431
  - Content collection integration
432
432
  - Performance patterns
433
433
 
434
- ### **[INFER-048]** Write E2E tests for Astro pages
434
+ ### **[CYCLE-048]** Write E2E tests for Astro pages
435
435
 
436
436
  - Test SSR rendering
437
437
  - Test client hydration
438
438
  - Test navigation
439
439
  - Test error states
440
440
 
441
- ### **[INFER-049]** Performance audit: Astro bundle
441
+ ### **[CYCLE-049]** Performance audit: Astro bundle
442
442
 
443
443
  - Measure JavaScript footprint
444
444
  - Analyze island strategy
445
445
  - Verify streaming works
446
446
  - Core Web Vitals check
447
447
 
448
- ### **[INFER-050]** Document SSR caching strategy
448
+ ### **[CYCLE-050]** Document SSR caching strategy
449
449
 
450
450
  - What to cache (rarely changing data)
451
451
  - What not to cache (user-specific data)
@@ -463,140 +463,140 @@ export const DataProvider = Context.GenericTag<DataProvider>("DataProvider");
463
463
  **Can Start:** Day 10
464
464
  **Parallel:** Can overlap with Phases 7-9
465
465
 
466
- ### **[INFER-051]** Migrate `/web/src/pages/auth/signup.astro`
466
+ ### **[CYCLE-051]** Migrate `/web/src/pages/auth/signup.astro`
467
467
 
468
468
  - Replace Convex hooks with useAuthService
469
469
  - Maintain form validation
470
470
  - Keep existing test passing
471
471
  - Document migration pattern
472
472
 
473
- ### **[INFER-052]** Migrate `/web/src/pages/auth/signin.astro`
473
+ ### **[CYCLE-052]** Migrate `/web/src/pages/auth/signin.astro`
474
474
 
475
475
  - Replace Convex authentication
476
476
  - Maintain session handling
477
477
  - Run auth tests: MUST PASS
478
478
  - No regression allowed
479
479
 
480
- ### **[INFER-053]** Migrate `/web/src/components/CourseFeed.tsx`
480
+ ### **[CYCLE-053]** Migrate `/web/src/components/CourseFeed.tsx`
481
481
 
482
482
  - Replace useQuery(api.queries.courses.list)
483
483
  - Use useThingService("course", groupId)
484
484
  - Update loading/error states
485
485
  - Run tests
486
486
 
487
- ### **[INFER-054]** Migrate `/web/src/components/CourseDetail.tsx`
487
+ ### **[CYCLE-054]** Migrate `/web/src/components/CourseDetail.tsx`
488
488
 
489
489
  - Replace useQuery(api.queries.courses.get)
490
490
  - Use useThingService for details + connections
491
491
  - Maintain all existing features
492
492
  - Run tests
493
493
 
494
- ### **[INFER-055]** Migrate `/web/src/components/CreateCourseForm.tsx`
494
+ ### **[CYCLE-055]** Migrate `/web/src/components/CreateCourseForm.tsx`
495
495
 
496
496
  - Replace useMutation(api.mutations.courses.create)
497
497
  - Use useForm + ThingService
498
498
  - Add optimistic updates
499
499
  - Run tests
500
500
 
501
- ### **[INFER-056]** Migrate dashboard components (5 components)
501
+ ### **[CYCLE-056]** Migrate dashboard components (5 components)
502
502
 
503
503
  - RoleManager, GroupManager, UserManager, etc.
504
504
  - Follow established patterns
505
505
  - Run tests after each
506
506
  - Update error handling
507
507
 
508
- ### **[INFER-057]** Migrate content components (8 components)
508
+ ### **[CYCLE-057]** Migrate content components (8 components)
509
509
 
510
510
  - BlogPost display, CommentSection, RelatedArticles, etc.
511
511
  - Use KnowledgeService for search
512
512
  - Maintain performance
513
513
  - Run tests
514
514
 
515
- ### **[INFER-058]** Migrate form components (10 components)
515
+ ### **[CYCLE-058]** Migrate form components (10 components)
516
516
 
517
517
  - Generic form fields, validators, error displays
518
518
  - Use useForm hook
519
519
  - Type-safe form data
520
520
  - Full validation coverage
521
521
 
522
- ### **[INFER-059]** Migrate utility components (15 components)
522
+ ### **[CYCLE-059]** Migrate utility components (15 components)
523
523
 
524
524
  - Loading states, error boundaries, notifications
525
525
  - Use new error types
526
526
  - Standardize patterns
527
527
  - Run tests
528
528
 
529
- ### **[INFER-060]** Verify all auth tests STILL PASS
529
+ ### **[CYCLE-060]** Verify all auth tests STILL PASS
530
530
 
531
531
  - Run full auth test suite
532
532
  - Fix any regressions
533
533
  - Document fixes
534
534
  - Commit final passing state
535
535
 
536
- ### **[INFER-061]** Remove direct Convex imports from all components
536
+ ### **[CYCLE-061]** Remove direct Convex imports from all components
537
537
 
538
538
  - Grep for `from "convex/react"`
539
539
  - Replace all with DataProvider services
540
540
  - Verify no Convex hooks remain
541
541
  - Clean up imports
542
542
 
543
- ### **[INFER-062]** Update component tests to use mock provider
543
+ ### **[CYCLE-062]** Update component tests to use mock provider
544
544
 
545
545
  - 50+ component tests updated
546
546
  - All use EffectProvider with MockLayer
547
547
  - No real Convex calls in tests
548
548
  - 10x faster test suite
549
549
 
550
- ### **[INFER-063]** Run full component test suite
550
+ ### **[CYCLE-063]** Run full component test suite
551
551
 
552
552
  - 200+ tests should pass
553
553
  - Verify no flakiness
554
554
  - Check coverage: 70%+ integration
555
555
  - Fix any failures
556
556
 
557
- ### **[INFER-064]** Audit component PropTypes
557
+ ### **[CYCLE-064]** Audit component PropTypes
558
558
 
559
559
  - All props properly typed
560
560
  - No `any` types
561
561
  - Full TypeScript strict mode
562
562
  - Error types properly propagated
563
563
 
564
- ### **[INFER-065]** Create component migration guide
564
+ ### **[CYCLE-065]** Create component migration guide
565
565
 
566
566
  - Before/after examples
567
567
  - Common patterns
568
568
  - Error handling approach
569
569
  - Performance considerations
570
570
 
571
- ### **[INFER-066]** Refactor high-traffic components for performance
571
+ ### **[CYCLE-066]** Refactor high-traffic components for performance
572
572
 
573
573
  - Add React.memo where appropriate
574
574
  - Optimize re-render patterns
575
575
  - Use request deduplication
576
576
  - Benchmark changes
577
577
 
578
- ### **[INFER-067]** Add accessibility to migrated components
578
+ ### **[CYCLE-067]** Add accessibility to migrated components
579
579
 
580
580
  - ARIA labels
581
581
  - Keyboard navigation
582
582
  - Focus management
583
583
  - Color contrast validation
584
584
 
585
- ### **[INFER-068]** Document component library changes
585
+ ### **[CYCLE-068]** Document component library changes
586
586
 
587
587
  - Which components use which services
588
588
  - What error states are possible
589
589
  - Loading patterns
590
590
  - Testing approach
591
591
 
592
- ### **[INFER-069]** Create visual regression tests for 20 key components
592
+ ### **[CYCLE-069]** Create visual regression tests for 20 key components
593
593
 
594
594
  - Screenshot baselines
595
595
  - Test on multiple breakpoints
596
596
  - Catch unexpected changes
597
597
  - Maintain visual consistency
598
598
 
599
- ### **[INFER-070]** Final component audit
599
+ ### **[CYCLE-070]** Final component audit
600
600
 
601
601
  - All 50+ migrated
602
602
  - All tests passing
@@ -613,70 +613,70 @@ export const DataProvider = Context.GenericTag<DataProvider>("DataProvider");
613
613
  **Status:** ✅ Ready to Start (depends on Phase 3)
614
614
  **Can Start:** Day 10
615
615
 
616
- ### **[INFER-071]** Create test utilities library
616
+ ### **[CYCLE-071]** Create test utilities library
617
617
 
618
618
  - Mock provider factory
619
619
  - Test layer compositions
620
620
  - Assert error types
621
621
  - Setup/teardown helpers
622
622
 
623
- ### **[INFER-072]** Write comprehensive service unit tests
623
+ ### **[CYCLE-072]** Write comprehensive service unit tests
624
624
 
625
625
  - All 6 dimension services
626
626
  - Happy paths + error scenarios
627
627
  - Error recovery testing
628
628
  - Dependency injection verification
629
629
 
630
- ### **[INFER-073]** Write provider integration tests
630
+ ### **[CYCLE-073]** Write provider integration tests
631
631
 
632
632
  - Wrap actual Convex client
633
633
  - Test real API calls
634
634
  - Test error scenarios
635
635
  - Validate transformations
636
636
 
637
- ### **[INFER-074]** Write hook integration tests
637
+ ### **[CYCLE-074]** Write hook integration tests
638
638
 
639
639
  - useEffectRunner with all service combinations
640
640
  - Error handling in hooks
641
641
  - Cleanup on unmount
642
642
  - State management correctness
643
643
 
644
- ### **[INFER-075]** Validate ontology compliance
644
+ ### **[CYCLE-075]** Validate ontology compliance
645
645
 
646
646
  - All 6 dimensions properly scoped
647
647
  - GroupId enforcement across services
648
648
  - Event logging on mutations
649
649
  - Connection types validated
650
650
 
651
- ### **[INFER-076]** Run TypeScript strict mode check
651
+ ### **[CYCLE-076]** Run TypeScript strict mode check
652
652
 
653
653
  - `bunx astro check` passes
654
654
  - Zero type errors in services
655
655
  - Zero `any` types (except entity.properties)
656
656
  - Full type safety verified
657
657
 
658
- ### **[INFER-077]** Run ESLint + Prettier
658
+ ### **[CYCLE-077]** Run ESLint + Prettier
659
659
 
660
660
  - All code style consistent
661
661
  - No unused imports
662
662
  - No dead code
663
663
  - Auto-fix and verify
664
664
 
665
- ### **[INFER-078]** Measure test coverage
665
+ ### **[CYCLE-078]** Measure test coverage
666
666
 
667
667
  - Unit: 90%+ coverage
668
668
  - Integration: 80%+ coverage
669
669
  - Critical paths: 100% coverage
670
670
  - Generate coverage report
671
671
 
672
- ### **[INFER-079]** Write specific auth test additions
672
+ ### **[CYCLE-079]** Write specific auth test additions
673
673
 
674
674
  - Auth service tests with effect
675
675
  - Session management validation
676
676
  - Role-based access control testing
677
677
  - 2FA pattern testing (if applicable)
678
678
 
679
- ### **[INFER-080]** Performance validation
679
+ ### **[CYCLE-080]** Performance validation
680
680
 
681
681
  - Service call latency < 50ms
682
682
  - Hook initialization < 10ms
@@ -693,35 +693,35 @@ export const DataProvider = Context.GenericTag<DataProvider>("DataProvider");
693
693
  **Status:** ✅ Ready to Start (depends on Phase 3)
694
694
  **Can Start:** Day 8
695
695
 
696
- ### **[INFER-081]** Implement domain error types
696
+ ### **[CYCLE-081]** Implement domain error types
697
697
 
698
698
  - ThingNotFound, ValidationError, ConnectionAlreadyExists
699
699
  - Each extends Data.TaggedError
700
700
  - Full type signatures
701
701
  - Human-friendly messages
702
702
 
703
- ### **[INFER-082]** Implement provider error mapping
703
+ ### **[CYCLE-082]** Implement provider error mapping
704
704
 
705
705
  - Map provider-specific errors to domain errors
706
706
  - Standardize error messages
707
707
  - Preserve error context
708
708
  - Enable recovery
709
709
 
710
- ### **[INFER-083]** Implement error boundaries in React
710
+ ### **[CYCLE-083]** Implement error boundaries in React
711
711
 
712
712
  - Catch service errors in ErrorBoundary
713
713
  - Display user-friendly messages
714
714
  - Log errors for debugging
715
715
  - Allow recovery actions
716
716
 
717
- ### **[INFER-084]** Implement retry logic in services
717
+ ### **[CYCLE-084]** Implement retry logic in services
718
718
 
719
719
  - Exponential backoff schedules
720
720
  - Conditional retries (only for transient errors)
721
721
  - Max retry attempts
722
722
  - Metrics tracking
723
723
 
724
- ### **[INFER-085]** Implement graceful degradation
724
+ ### **[CYCLE-085]** Implement graceful degradation
725
725
 
726
726
  - Services degrade when provider fails
727
727
  - Optimistic updates rollback on error
@@ -738,70 +738,70 @@ export const DataProvider = Context.GenericTag<DataProvider>("DataProvider");
738
738
  **Status:** ✅ Ready to Start (continuous throughout)
739
739
  **Can Start:** Day 10 (parallel with component migration)
740
740
 
741
- ### **[INFER-086]** Write complete API documentation
741
+ ### **[CYCLE-086]** Write complete API documentation
742
742
 
743
743
  - DataProvider interface spec
744
744
  - All 6 dimension APIs documented
745
745
  - Error types reference
746
746
  - Examples for each method
747
747
 
748
- ### **[INFER-087]** Write service implementation guide
748
+ ### **[CYCLE-087]** Write service implementation guide
749
749
 
750
750
  - How to add new service
751
751
  - Dependency injection patterns
752
752
  - Error handling approach
753
753
  - Testing strategy
754
754
 
755
- ### **[INFER-088]** Write hook library documentation
755
+ ### **[CYCLE-088]** Write hook library documentation
756
756
 
757
757
  - useEffectRunner usage
758
758
  - useThingService patterns
759
759
  - useService generic usage
760
760
  - Context provider setup
761
761
 
762
- ### **[INFER-089]** Write component migration guide
762
+ ### **[CYCLE-089]** Write component migration guide
763
763
 
764
764
  - Before/after examples
765
765
  - Common patterns discovered
766
766
  - Pitfalls and solutions
767
767
  - Performance tips
768
768
 
769
- ### **[INFER-090]** Write Astro integration guide
769
+ ### **[CYCLE-090]** Write Astro integration guide
770
770
 
771
771
  - SSR data fetching patterns
772
772
  - Content layout integration
773
773
  - Client vs server components
774
774
  - Performance optimization
775
775
 
776
- ### **[INFER-091]** Write provider implementation guide
776
+ ### **[CYCLE-091]** Write provider implementation guide
777
777
 
778
778
  - How to add new backend provider
779
779
  - DataProvider interface requirements
780
780
  - Transformation patterns
781
781
  - Testing approach
782
782
 
783
- ### **[INFER-092]** Write testing guide
783
+ ### **[CYCLE-092]** Write testing guide
784
784
 
785
785
  - Unit testing services
786
786
  - Component testing patterns
787
787
  - Mock provider setup
788
788
  - E2E testing approach
789
789
 
790
- ### **[INFER-093]** Document error handling patterns
790
+ ### **[CYCLE-093]** Document error handling patterns
791
791
 
792
792
  - Error types and meanings
793
793
  - Recovery strategies
794
794
  - User-facing error messages
795
795
  - Developer error messages
796
796
 
797
- ### **[INFER-094]** Create architecture decision record (ADR)
797
+ ### **[CYCLE-094]** Create architecture decision record (ADR)
798
798
 
799
799
  - Why Effect.ts for services
800
800
  - Why DataProvider interface
801
801
  - Why this migration approach
802
802
  - Lessons learned
803
803
 
804
- ### **[INFER-095]** Update main CLAUDE.md
804
+ ### **[CYCLE-095]** Update main CLAUDE.md
805
805
 
806
806
  - Link to new frontend-effects docs
807
807
  - Update architecture diagrams
@@ -818,35 +818,35 @@ export const DataProvider = Context.GenericTag<DataProvider>("DataProvider");
818
818
  **Status:** ✅ Ready to Start (final phase, depends on Phase 6)
819
819
  **Can Start:** Week 5
820
820
 
821
- ### **[INFER-096]** Optimize bundle size
821
+ ### **[CYCLE-096]** Optimize bundle size
822
822
 
823
823
  - Code split by route
824
824
  - Lazy load heavy components
825
825
  - Tree-shake unused code
826
826
  - Measure final bundle: < 150kb gzip
827
827
 
828
- ### **[INFER-097]** Optimize runtime performance
828
+ ### **[CYCLE-097]** Optimize runtime performance
829
829
 
830
830
  - Implement request deduplication
831
831
  - Add response caching layer
832
832
  - Profile with React DevTools
833
833
  - Target: LCP < 2.5s, CLS < 0.1
834
834
 
835
- ### **[INFER-098]** Remove Convex dependencies
835
+ ### **[CYCLE-098]** Remove Convex dependencies
836
836
 
837
837
  - Delete `/web/convex/` directory
838
838
  - Remove `convex` from package.json
839
839
  - Update build process
840
840
  - Verify frontend still works
841
841
 
842
- ### **[INFER-099]** Final validation and smoke tests
842
+ ### **[CYCLE-099]** Final validation and smoke tests
843
843
 
844
844
  - Run all test suites: 100% pass
845
845
  - Run auth tests: MUST pass
846
846
  - Type check: Zero errors
847
847
  - Lint: Zero warnings
848
848
 
849
- ### **[INFER-100]** Mark complete and document rollout
849
+ ### **[CYCLE-100]** Mark complete and document rollout
850
850
 
851
851
  - Create migration summary doc
852
852
  - List all completed phases