oneie 3.6.18 → 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.
Files changed (58) hide show
  1. package/.claude/agents/agent-ops.md +63 -2
  2. package/.claude/commands/commit.md +95 -0
  3. package/.claude/commands/npx.md +2 -2
  4. package/.claude/commands/one.md +7 -1
  5. package/.claude/commands/push.md +113 -21
  6. package/.claude/commands/release.md +2 -2
  7. package/.claude/hooks/release-cli.sh +195 -0
  8. package/CLAUDE.md +131 -12
  9. package/README.md +778 -497
  10. package/one/groups/one.md +1 -1
  11. package/one/knowledge/architecture-frontend.md +5 -0
  12. package/one/knowledge/archived/ontology.old.md +1 -1
  13. package/one/knowledge/develop/design.md +364 -0
  14. package/one/knowledge/develop/index.md +145 -0
  15. package/one/knowledge/metadata-system.md +1 -1
  16. package/one/knowledge/ontology-engineering.md +1 -1
  17. package/one/knowledge/ontology.md +1 -1
  18. package/one/knowledge/patterns/design/index.md +160 -0
  19. package/one/knowledge/quick-start-ontology-mapping.md +773 -0
  20. package/one/knowledge/todo-template.md +100 -100
  21. package/one/knowledge/todo.md +100 -100
  22. package/one/people/anthony-o-connell.md +3 -3
  23. package/one/things/master-workflow-plan.md +2 -2
  24. package/one/things/plans/execution-strategy.md +243 -243
  25. package/one/things/plans/wave1-specialist-assignments.md +1 -1
  26. package/one/things/todo-ai.md +100 -100
  27. package/one/things/todo-assignment.md +21 -21
  28. package/one/things/todo-effects.md +100 -100
  29. package/one/things/todo-frontend-effects.md +100 -100
  30. package/one/things/todo-master-plan.md +1 -1
  31. package/one/things/todo-sequence.md +1 -1
  32. package/package.json +1 -1
  33. package/.claude/agents/NEWS-QUICKSTART.md +0 -321
  34. package/.claude/agents/NEWS-README.md +0 -353
  35. package/.claude/hooks/README-knowledge-hooks.md +0 -451
  36. package/.claude/hooks/README-root-cleanup.md +0 -200
  37. package/.claude/hooks/README.md +0 -284
  38. package/.claude/hooks/__pycache__/done.cpython-313.pyc +0 -0
  39. package/.claude/hooks/__pycache__/todo.cpython-313.pyc +0 -0
  40. package/.claude/hooks/check-filenames.py +0 -177
  41. package/.claude/hooks/clean-post.py +0 -468
  42. package/.claude/hooks/clean-pre.py +0 -393
  43. package/.claude/hooks/clean-root-markdown.sh +0 -73
  44. package/.claude/hooks/done.py +0 -236
  45. package/.claude/hooks/format-hook.sh +0 -163
  46. package/.claude/hooks/hook-logger.sh +0 -173
  47. package/.claude/hooks/knowledge-post.py +0 -355
  48. package/.claude/hooks/knowledge-pre.py +0 -245
  49. package/.claude/hooks/notification-hook.sh +0 -279
  50. package/.claude/hooks/root-cleanup.py +0 -217
  51. package/.claude/hooks/security-hook.sh +0 -397
  52. package/.claude/hooks/tag-all-docs.py +0 -464
  53. package/.claude/hooks/test-validate-ontology.sh +0 -170
  54. package/.claude/hooks/todo.py +0 -368
  55. package/.claude/hooks/track-changes.sh +0 -101
  56. package/.claude/hooks/validate-ontology-structure-summary.md +0 -243
  57. package/.claude/hooks/validate-ontology-structure.py +0 -518
  58. package/TESTING-ONBOARDING.md +0 -185
@@ -44,7 +44,7 @@ This roadmap sequences the complete implementation of AI capabilities using **Ve
44
44
 
45
45
  ## Cycle 1-10: Foundation & Setup
46
46
 
47
- **1. [INFER-001]** Validate AI feature against 6-dimension ontology
47
+ **1. [CYCLE-001]** Validate AI feature against 6-dimension ontology
48
48
 
49
49
  - Things: agents (type="agent")
50
50
  - Connections: agent_owns, user_interacted_with_agent
@@ -53,20 +53,20 @@ This roadmap sequences the complete implementation of AI capabilities using **Ve
53
53
  - Groups: multi-tenant AI quotas
54
54
  - People: role-based access to AI features
55
55
 
56
- **2. [INFER-002]** Map entity types
56
+ **2. [CYCLE-002]** Map entity types
57
57
 
58
58
  - Agent entity (type="agent" in things)
59
59
  - Thread entity (aiThreads table - conversation container)
60
60
  - Message entity (aiMessages table - individual messages)
61
61
  - AI Call entity (aiCalls table - audit trail of API calls)
62
62
 
63
- **3. [INFER-003]** Identify connection types
63
+ **3. [CYCLE-003]** Identify connection types
64
64
 
65
65
  - user_interacted_with_agent (bidirectional, temporal)
66
66
  - agent_owns (tools/resources)
67
67
  - agent_trained_on (knowledge sources)
68
68
 
69
- **4. [INFER-004]** List event types
69
+ **4. [CYCLE-004]** List event types
70
70
 
71
71
  - ai_generation_completed (success)
72
72
  - ai_error_occurred (failures)
@@ -74,35 +74,35 @@ This roadmap sequences the complete implementation of AI capabilities using **Ve
74
74
  - ai_thread_created (conversation started)
75
75
  - ai_message_added (message logged)
76
76
 
77
- **5. [INFER-005]** Determine knowledge requirements
77
+ **5. [CYCLE-005]** Determine knowledge requirements
78
78
 
79
79
  - Vector embeddings for generated responses (RAG)
80
80
  - Semantic search of conversation history
81
81
  - Knowledge graph linking agents to training data
82
82
  - Citation and source tracking
83
83
 
84
- **6. [INFER-006]** Identify organization scope
84
+ **6. [CYCLE-006]** Identify organization scope
85
85
 
86
86
  - Multi-tenant: each group has separate AI quotas
87
87
  - Each group can configure preferred models/providers
88
88
  - Organization-level rate limiting
89
89
  - Sub-group inheritance of parent settings
90
90
 
91
- **7. [INFER-007]** Define people roles
91
+ **7. [CYCLE-007]** Define people roles
92
92
 
93
93
  - platform_owner: access to global AI settings
94
94
  - org_owner: manage AI quotas for organization
95
95
  - org_user: use AI features within org quota
96
96
  - customer: limited access (if applicable)
97
97
 
98
- **8. [INFER-008]** Create high-level vision document
98
+ **8. [CYCLE-008]** Create high-level vision document
99
99
 
100
100
  - Enable organizations to add AI chat to any feature
101
101
  - Track AI usage and costs transparently
102
102
  - Provide flexibility to use any LLM provider
103
103
  - Support advanced features (tools, streaming, reasoning)
104
104
 
105
- **9. [INFER-009]** Generate initial plan with feature breakdown
105
+ **9. [CYCLE-009]** Generate initial plan with feature breakdown
106
106
 
107
107
  - Phase 1 (Cycle 1-10): Setup and dependencies
108
108
  - Phase 2 (Cycle 11-20): Backend schema and services
@@ -113,7 +113,7 @@ This roadmap sequences the complete implementation of AI capabilities using **Ve
113
113
  - Phase 7 (Cycle 81-90): Performance optimization
114
114
  - Phase 8 (Cycle 91-100): Deployment and documentation
115
115
 
116
- **10. [INFER-010]** Assign features to specialists
116
+ **10. [CYCLE-010]** Assign features to specialists
117
117
 
118
118
  - Backend specialist: schema, mutations, queries, services
119
119
  - Frontend specialist: components, pages, hooks, styling
@@ -125,7 +125,7 @@ This roadmap sequences the complete implementation of AI capabilities using **Ve
125
125
 
126
126
  ## Cycle 11-20: Backend Schema & Services
127
127
 
128
- **11. [INFER-011]** Design database schema changes
128
+ **11. [CYCLE-011]** Design database schema changes
129
129
 
130
130
  - aiCalls table: track all LLM API calls with tokens and costs
131
131
  - aiThreads table: conversation containers
@@ -133,7 +133,7 @@ This roadmap sequences the complete implementation of AI capabilities using **Ve
133
133
  - Index by groupId for multi-tenant isolation
134
134
  - Index by timestamp for analytics
135
135
 
136
- **12. [INFER-012]** Update backend/convex/schema.ts with new types
136
+ **12. [CYCLE-012]** Update backend/convex/schema.ts with new types
137
137
 
138
138
  ```typescript
139
139
  aiCalls: {
@@ -157,21 +157,21 @@ aiMessages: {
157
157
  }
158
158
  ```
159
159
 
160
- **13. [INFER-013]** Create Effect.ts service for business logic
160
+ **13. [CYCLE-013]** Create Effect.ts service for business logic
161
161
 
162
162
  - LLMService with generateText, streamText, generateObject
163
163
  - ThreadService with createThread, addMessage, getHistory
164
164
  - AnalyticsService with tokenUsage, costCalculation
165
165
  - Provider agnostic (support OpenAI, Anthropic, Google)
166
166
 
167
- **14. [INFER-014]** Define service errors with tagged unions
167
+ **14. [CYCLE-014]** Define service errors with tagged unions
168
168
 
169
169
  - LLMError (provider error, rate limit)
170
170
  - RateLimitError (group quota exceeded)
171
171
  - ValidationError (invalid prompt/schema)
172
172
  - AuthorizationError (user doesn't have access)
173
173
 
174
- **15. [INFER-015]** Write Convex queries for read operations
174
+ **15. [CYCLE-015]** Write Convex queries for read operations
175
175
 
176
176
  - getCallsByGroup (pagination, sorting)
177
177
  - getTokenUsageStats (by provider, by period)
@@ -179,7 +179,7 @@ aiMessages: {
179
179
  - getThreadMessages (conversation history)
180
180
  - getAgents (available agents for group)
181
181
 
182
- **16. [INFER-016]** Write Convex mutations for write operations
182
+ **16. [CYCLE-016]** Write Convex mutations for write operations
183
183
 
184
184
  - generateResponse (one-shot completion)
185
185
  - createThread (new conversation)
@@ -188,28 +188,28 @@ aiMessages: {
188
188
  - analyzeMessage (structured output)
189
189
  - generateWithTools (function calling)
190
190
 
191
- **17. [INFER-017]** Add event logging to all mutations
191
+ **17. [CYCLE-017]** Add event logging to all mutations
192
192
 
193
193
  - Log every AI call to events table
194
194
  - Include actor (user), target (agent), metadata (tokens, provider)
195
195
  - Log errors with context
196
196
  - Create audit trail for compliance
197
197
 
198
- **18. [INFER-018]** Implement organization scoping
198
+ **18. [CYCLE-018]** Implement organization scoping
199
199
 
200
200
  - All queries filtered by groupId
201
201
  - Enforce quotas per group
202
202
  - Inherit parent group settings
203
203
  - Validate user belongs to group
204
204
 
205
- **19. [INFER-019]** Add rate limiting to mutations
205
+ **19. [CYCLE-019]** Add rate limiting to mutations
206
206
 
207
207
  - Convex Rate Limiter integration
208
208
  - Per-group rate limits (calls/minute)
209
209
  - Per-group token limits (tokens/month)
210
210
  - Graceful error messages when limits exceeded
211
211
 
212
- **20. [INFER-020]** Write unit tests for Effect.ts services
212
+ **20. [CYCLE-020]** Write unit tests for Effect.ts services
213
213
 
214
214
  - Test generateText with mocked provider
215
215
  - Test error handling for invalid inputs
@@ -220,49 +220,49 @@ aiMessages: {
220
220
 
221
221
  ## Cycle 21-30: Frontend Pages & Components
222
222
 
223
- **21. [INFER-021]** Create Astro chat page with SSR data fetching
223
+ **21. [CYCLE-021]** Create Astro chat page with SSR data fetching
224
224
 
225
225
  - `/chat` route with layout
226
226
  - Load initial threads on server
227
227
  - Pass groupId and userId as props
228
228
  - Add authentication guard
229
229
 
230
- **22. [INFER-022]** Build React AIChat component
230
+ **22. [CYCLE-022]** Build React AIChat component
231
231
 
232
232
  - useAIChat hook with messages state
233
233
  - Form handling for user input
234
234
  - Loading state during generation
235
235
  - Error boundary for failures
236
236
 
237
- **23. [INFER-023]** Use Prompt Kit components for UI
237
+ **23. [CYCLE-023]** Use Prompt Kit components for UI
238
238
 
239
239
  - PromptInput for message input
240
240
  - Message component for chat bubbles
241
241
  - ChatContainerRoot for scrollable list
242
242
  - Loader component for loading state
243
243
 
244
- **24. [INFER-024]** Implement loading states with Suspense
244
+ **24. [CYCLE-024]** Implement loading states with Suspense
245
245
 
246
246
  - Skeleton loaders for initial threads
247
247
  - Loading indicator during generation
248
248
  - Disable input while loading
249
249
  - Smooth transitions
250
250
 
251
- **25. [INFER-025]** Add error boundaries for graceful failures
251
+ **25. [CYCLE-025]** Add error boundaries for graceful failures
252
252
 
253
253
  - Try-catch in mutations
254
254
  - User-friendly error messages
255
255
  - Retry buttons for failed requests
256
256
  - Log errors to Sentry/monitoring
257
257
 
258
- **26. [INFER-026]** Create forms with validation
258
+ **26. [CYCLE-026]** Create forms with validation
259
259
 
260
260
  - Validate prompt before sending (not empty)
261
261
  - Validate model selection
262
262
  - Validate thread creation inputs
263
263
  - Use Zod for schema validation
264
264
 
265
- **27. [INFER-027]** Implement client-side state with Convex hooks
265
+ **27. [CYCLE-027]** Implement client-side state with Convex hooks
266
266
 
267
267
  - useQuery for threads list
268
268
  - useQuery for messages
@@ -270,21 +270,21 @@ aiMessages: {
270
270
  - useMutation for createThread
271
271
  - Optimistic updates
272
272
 
273
- **28. [INFER-028]** Style with Tailwind v4
273
+ **28. [CYCLE-028]** Style with Tailwind v4
274
274
 
275
275
  - CSS @theme blocks for colors
276
276
  - Chat bubble styling (user vs assistant)
277
277
  - Input styling with auto-resize
278
278
  - Dark mode support
279
279
 
280
- **29. [INFER-029]** Ensure responsive design
280
+ **29. [CYCLE-029]** Ensure responsive design
281
281
 
282
282
  - Mobile-first approach
283
283
  - Stack layout on small screens
284
284
  - Responsive font sizes
285
285
  - Touch-friendly button sizing
286
286
 
287
- **30. [INFER-030]** Add dark mode support
287
+ **30. [CYCLE-030]** Add dark mode support
288
288
 
289
289
  - @variant dark for color overrides
290
290
  - Test in dark mode
@@ -294,66 +294,66 @@ aiMessages: {
294
294
 
295
295
  ## Cycle 31-40: Integration & Connections
296
296
 
297
- **31. [INFER-031]** Map Prompt Kit to ontology
297
+ **31. [CYCLE-031]** Map Prompt Kit to ontology
298
298
 
299
299
  - UI components = presentation layer
300
300
  - Convex mutations = business logic layer
301
301
  - AI SDK = external system layer
302
302
  - Events/Knowledge = logging layer
303
303
 
304
- **32. [INFER-032]** Create connection records for system relationships
304
+ **32. [CYCLE-032]** Create connection records for system relationships
305
305
 
306
306
  - user → agent (user_interacted_with_agent)
307
307
  - agent → tools (agent_owns)
308
308
  - agent → knowledge (agent_trained_on)
309
309
 
310
- **33. [INFER-033]** Implement data synchronization logic
310
+ **33. [CYCLE-033]** Implement data synchronization logic
311
311
 
312
312
  - Sync thread creation with events table
313
313
  - Sync messages with aiMessages table
314
314
  - Sync API calls with aiCalls table
315
315
  - Keep audit trail current
316
316
 
317
- **34. [INFER-034]** Add event tracking for cross-system actions
317
+ **34. [CYCLE-034]** Add event tracking for cross-system actions
318
318
 
319
319
  - Track when user starts chat (ai_thread_created)
320
320
  - Track when AI generates (ai_generation_completed)
321
321
  - Track when tools are called (ai_tool_called)
322
322
  - Track errors (ai_error_occurred)
323
323
 
324
- **35. [INFER-035]** Create webhook handlers
324
+ **35. [CYCLE-035]** Create webhook handlers
325
325
 
326
326
  - Handle provider API callbacks (if needed)
327
327
  - Validate webhook signatures
328
328
  - Update thread status
329
329
 
330
- **36. [INFER-036]** Implement polling logic
330
+ **36. [CYCLE-036]** Implement polling logic
331
331
 
332
332
  - Not needed for AI SDK (synchronous)
333
333
  - Ready for future async operations
334
334
 
335
- **37. [INFER-037]** Add error handling for integration failures
335
+ **37. [CYCLE-037]** Add error handling for integration failures
336
336
 
337
337
  - Provider API timeout
338
338
  - Rate limit exceeded
339
339
  - Invalid API key
340
340
  - Network failures
341
341
 
342
- **38. [INFER-038]** Create retry logic with exponential backoff
342
+ **38. [CYCLE-038]** Create retry logic with exponential backoff
343
343
 
344
344
  - Retry failed API calls
345
345
  - Exponential backoff (100ms, 200ms, 400ms...)
346
346
  - Max 3 retries
347
347
  - Log retry attempts
348
348
 
349
- **39. [INFER-039]** Log all integration events to events table
349
+ **39. [CYCLE-039]** Log all integration events to events table
350
350
 
351
351
  - Log every AI call
352
352
  - Log errors with full context
353
353
  - Log token usage
354
354
  - Timestamp all events
355
355
 
356
- **40. [INFER-040]** Write integration tests for data flows
356
+ **40. [CYCLE-040]** Write integration tests for data flows
357
357
 
358
358
  - User sends message → event created
359
359
  - Message is logged to aiMessages
@@ -364,70 +364,70 @@ aiMessages: {
364
364
 
365
365
  ## Cycle 41-50: Advanced Features
366
366
 
367
- **41. [INFER-041]** Implement structured output (objects)
367
+ **41. [CYCLE-041]** Implement structured output (objects)
368
368
 
369
369
  - Use generateObject from AI SDK
370
370
  - Define Zod schemas for output
371
371
  - Parse and validate responses
372
372
  - Store structured data in metadata
373
373
 
374
- **42. [INFER-042]** Implement tool calling (function calling)
374
+ **42. [CYCLE-042]** Implement tool calling (function calling)
375
375
 
376
376
  - Define tools with parameters
377
377
  - AI decides which tools to call
378
378
  - Execute tools (database queries, API calls)
379
379
  - Return results to AI
380
380
 
381
- **43. [INFER-043]** Implement streaming responses
381
+ **43. [CYCLE-043]** Implement streaming responses
382
382
 
383
383
  - Use streamText from AI SDK
384
384
  - Stream chunks to frontend
385
385
  - Update messages in real-time
386
386
  - Handle stream completion
387
387
 
388
- **44. [INFER-044]** Add vision support (images)
388
+ **44. [CYCLE-044]** Add vision support (images)
389
389
 
390
390
  - Accept image uploads
391
391
  - Send images to vision models
392
392
  - Display images in messages
393
393
  - Cache processed images
394
394
 
395
- **45. [INFER-045]** Implement reasoning/thinking display
395
+ **45. [CYCLE-045]** Implement reasoning/thinking display
396
396
 
397
397
  - Extract thinking process from response
398
398
  - Display in collapsible reasoning component
399
399
  - Show thinking step-by-step
400
400
  - Measure reasoning time
401
401
 
402
- **46. [INFER-046]** Add multi-turn conversation context
402
+ **46. [CYCLE-046]** Add multi-turn conversation context
403
403
 
404
404
  - Maintain full message history
405
405
  - Include context in system prompt
406
406
  - Summarize long conversations
407
407
  - Clean up old threads
408
408
 
409
- **47. [INFER-047]** Implement RAG (retrieval-augmented generation)
409
+ **47. [CYCLE-047]** Implement RAG (retrieval-augmented generation)
410
410
 
411
411
  - Embed user prompts
412
412
  - Search knowledge base
413
413
  - Augment prompt with relevant documents
414
414
  - Cite sources in responses
415
415
 
416
- **48. [INFER-048]** Add template/prompt management
416
+ **48. [CYCLE-048]** Add template/prompt management
417
417
 
418
418
  - Create saved prompts
419
419
  - Create system prompt templates
420
420
  - Apply templates to new threads
421
421
  - Version control prompts
422
422
 
423
- **49. [INFER-049]** Implement model selection UI
423
+ **49. [CYCLE-049]** Implement model selection UI
424
424
 
425
425
  - Allow switching models per conversation
426
426
  - Show model costs
427
427
  - Save model preference
428
428
  - Compare models side-by-side
429
429
 
430
- **50. [INFER-050]** Write integration tests for advanced features
430
+ **50. [CYCLE-050]** Write integration tests for advanced features
431
431
 
432
432
  - Test structured output parsing
433
433
  - Test tool calling execution
@@ -438,35 +438,35 @@ aiMessages: {
438
438
 
439
439
  ## Cycle 51-60: Knowledge & RAG
440
440
 
441
- **51. [INFER-051]** Create knowledge records with labels
441
+ **51. [CYCLE-051]** Create knowledge records with labels
442
442
 
443
443
  - Extract topics from AI responses
444
444
  - Create knowledge entities
445
445
  - Tag with relevance score
446
446
  - Link to conversations
447
447
 
448
- **52. [INFER-052]** Generate embeddings for content
448
+ **52. [CYCLE-052]** Generate embeddings for content
449
449
 
450
450
  - Use OpenAI embeddings API
451
451
  - Cache embeddings
452
452
  - Batch embedding generation
453
453
  - Store in knowledge table
454
454
 
455
- **53. [INFER-053]** Store vectors in knowledge table
455
+ **53. [CYCLE-053]** Store vectors in knowledge table
456
456
 
457
457
  - Add embedding field to knowledge
458
458
  - Index embeddings for search
459
459
  - Version embeddings
460
460
  - Track embedding model used
461
461
 
462
- **54. [INFER-054]** Implement vector search
462
+ **54. [CYCLE-054]** Implement vector search
463
463
 
464
464
  - Similarity search queries
465
465
  - Configurable similarity threshold
466
466
  - Ranked results
467
467
  - Caching for hot queries
468
468
 
469
- **55. [INFER-055]** Create RAG pipeline
469
+ **55. [CYCLE-055]** Create RAG pipeline
470
470
 
471
471
  - 1. User asks question
472
472
  - 2. Embed question
@@ -475,35 +475,35 @@ aiMessages: {
475
475
  - 5. Generate response
476
476
  - 6. Track source documents
477
477
 
478
- **56. [INFER-056]** Link knowledge to things via junction table
478
+ **56. [CYCLE-056]** Link knowledge to things via junction table
479
479
 
480
480
  - knowledge_thing junction table
481
481
  - Many-to-many relationships
482
482
  - Track relevance scores
483
483
  - Enable graph traversal
484
484
 
485
- **57. [INFER-057]** Add semantic search to UI
485
+ **57. [CYCLE-057]** Add semantic search to UI
486
486
 
487
487
  - Search endpoint
488
488
  - Search results component
489
489
  - Relevance highlighting
490
490
  - Click to use in chat
491
491
 
492
- **58. [INFER-058]** Implement knowledge graph traversal
492
+ **58. [CYCLE-058]** Implement knowledge graph traversal
493
493
 
494
494
  - Graph queries (neighbor things)
495
495
  - Multi-hop traversal
496
496
  - Circular reference detection
497
497
  - Performance optimization
498
498
 
499
- **59. [INFER-059]** Create AI-powered recommendations
499
+ **59. [CYCLE-059]** Create AI-powered recommendations
500
500
 
501
501
  - Suggest related documents
502
502
  - Suggest follow-up questions
503
503
  - Suggest similar conversations
504
504
  - Personalize recommendations
505
505
 
506
- **60. [INFER-060]** Test RAG accuracy with sample queries
506
+ **60. [CYCLE-060]** Test RAG accuracy with sample queries
507
507
 
508
508
  - Benchmark retrieval quality
509
509
  - Measure relevance
@@ -514,7 +514,7 @@ aiMessages: {
514
514
 
515
515
  ## Cycle 61-70: Quality & Testing
516
516
 
517
- **61. [INFER-061]** Define user flows
517
+ **61. [CYCLE-061]** Define user flows
518
518
 
519
519
  - Start conversation
520
520
  - Send message
@@ -523,7 +523,7 @@ aiMessages: {
523
523
  - Search knowledge
524
524
  - Switch models
525
525
 
526
- **62. [INFER-062]** Create acceptance criteria
526
+ **62. [CYCLE-062]** Create acceptance criteria
527
527
 
528
528
  - Response generated within 30 seconds
529
529
  - Tokens tracked accurately
@@ -531,35 +531,35 @@ aiMessages: {
531
531
  - Dark mode renders correctly
532
532
  - Mobile layout responsive
533
533
 
534
- **63. [INFER-063]** Write unit tests for services
534
+ **63. [CYCLE-063]** Write unit tests for services
535
535
 
536
536
  - Test selectModel function
537
537
  - Test error classes
538
538
  - Test token calculation
539
539
  - Test rate limiter
540
540
 
541
- **64. [INFER-064]** Write integration tests for flows
541
+ **64. [CYCLE-064]** Write integration tests for flows
542
542
 
543
543
  - Test full chat flow
544
544
  - Test thread creation
545
545
  - Test message persistence
546
546
  - Test event logging
547
547
 
548
- **65. [INFER-065]** Write e2e tests for critical paths
548
+ **65. [CYCLE-065]** Write e2e tests for critical paths
549
549
 
550
550
  - User sends message
551
551
  - AI responds
552
552
  - Response appears in UI
553
553
  - Tokens tracked
554
554
 
555
- **66. [INFER-066]** Run tests and capture results
555
+ **66. [CYCLE-066]** Run tests and capture results
556
556
 
557
557
  - Unit test pass rate
558
558
  - Integration test pass rate
559
559
  - E2E test pass rate
560
560
  - Coverage metrics
561
561
 
562
- **67. [INFER-067]** Validate against ontology
562
+ **67. [CYCLE-067]** Validate against ontology
563
563
 
564
564
  - Events table has entries
565
565
  - Connections created
@@ -567,21 +567,21 @@ aiMessages: {
567
567
  - Knowledge enhanced
568
568
  - Groups isolated
569
569
 
570
- **68. [INFER-068]** Check type safety
570
+ **68. [CYCLE-068]** Check type safety
571
571
 
572
572
  - Run bunx astro check
573
573
  - No TypeScript errors
574
574
  - All API responses typed
575
575
  - All props typed
576
576
 
577
- **69. [INFER-069]** Run linter
577
+ **69. [CYCLE-069]** Run linter
578
578
 
579
579
  - bun run lint
580
580
  - Fix eslint errors
581
581
  - Format code
582
582
  - Check for dead code
583
583
 
584
- **70. [INFER-070]** Fix all failing tests before continuing
584
+ **70. [CYCLE-070]** Fix all failing tests before continuing
585
585
 
586
586
  - Debug test failures
587
587
  - Fix implementation bugs
@@ -592,7 +592,7 @@ aiMessages: {
592
592
 
593
593
  ## Cycle 71-80: Design & Wireframes
594
594
 
595
- **71. [INFER-071]** Create wireframes for chat interface
595
+ **71. [CYCLE-071]** Create wireframes for chat interface
596
596
 
597
597
  - Message list layout
598
598
  - Input area positioning
@@ -600,7 +600,7 @@ aiMessages: {
600
600
  - Error messages
601
601
  - Token usage display
602
602
 
603
- **72. [INFER-072]** Design component architecture
603
+ **72. [CYCLE-072]** Design component architecture
604
604
 
605
605
  - AIChat (main container)
606
606
  - MessageList (scrollable)
@@ -608,14 +608,14 @@ aiMessages: {
608
608
  - PromptInput (user input)
609
609
  - LoadingIndicator (state)
610
610
 
611
- **73. [INFER-073]** Set design tokens
611
+ **73. [CYCLE-073]** Set design tokens
612
612
 
613
613
  - Colors: background, text, primary, secondary
614
614
  - Spacing: 4px base unit
615
615
  - Typography: sizes, weights, line-heights
616
616
  - Timing: transitions, animations
617
617
 
618
- **74. [INFER-074]** Ensure WCAG AA accessibility
618
+ **74. [CYCLE-074]** Ensure WCAG AA accessibility
619
619
 
620
620
  - Keyboard navigation
621
621
  - Screen reader support
@@ -623,42 +623,42 @@ aiMessages: {
623
623
  - Form labels
624
624
  - Focus indicators
625
625
 
626
- **75. [INFER-075]** Design loading states and skeletons
626
+ **75. [CYCLE-075]** Design loading states and skeletons
627
627
 
628
628
  - Skeleton messages while loading
629
629
  - Loading indicator animation
630
630
  - Placeholder text
631
631
  - Disable input while loading
632
632
 
633
- **76. [INFER-076]** Create error state designs
633
+ **76. [CYCLE-076]** Create error state designs
634
634
 
635
635
  - Error message banner
636
636
  - Retry button
637
637
  - Error icon
638
638
  - Clear error message
639
639
 
640
- **77. [INFER-077]** Design empty states
640
+ **77. [CYCLE-077]** Design empty states
641
641
 
642
642
  - "Start a conversation" message
643
643
  - Suggested prompts
644
644
  - Example questions
645
645
  - Call-to-action
646
646
 
647
- **78. [INFER-078]** Implement animations and transitions
647
+ **78. [CYCLE-078]** Implement animations and transitions
648
648
 
649
649
  - Message fade-in
650
650
  - Smooth scroll to new messages
651
651
  - Typing indicator
652
652
  - Button hover states
653
653
 
654
- **79. [INFER-079]** Validate design enables tests to pass
654
+ **79. [CYCLE-079]** Validate design enables tests to pass
655
655
 
656
656
  - All interactive elements focusable
657
657
  - Loading states clear
658
658
  - Error states distinct
659
659
  - Mobile layout works
660
660
 
661
- **80. [INFER-080]** Get design approval
661
+ **80. [CYCLE-080]** Get design approval
662
662
 
663
663
  - Review with team
664
664
  - Accessibility audit
@@ -669,70 +669,70 @@ aiMessages: {
669
669
 
670
670
  ## Cycle 81-90: Performance & Optimization
671
671
 
672
- **81. [INFER-081]** Optimize database queries
672
+ **81. [CYCLE-081]** Optimize database queries
673
673
 
674
674
  - Add indexes on frequently queried fields
675
675
  - Use query pagination
676
676
  - Batch message fetches
677
677
  - Cache thread metadata
678
678
 
679
- **82. [INFER-082]** Implement pagination for large lists
679
+ **82. [CYCLE-082]** Implement pagination for large lists
680
680
 
681
681
  - Paginate threads list
682
682
  - Paginate messages per thread
683
683
  - Load more on scroll
684
684
  - Virtual scrolling for performance
685
685
 
686
- **83. [INFER-083]** Add caching where appropriate
686
+ **83. [CYCLE-083]** Add caching where appropriate
687
687
 
688
688
  - Cache thread list
689
689
  - Cache recent messages
690
690
  - Cache user preferences
691
691
  - Set cache TTL
692
692
 
693
- **84. [INFER-084]** Optimize images
693
+ **84. [CYCLE-084]** Optimize images
694
694
 
695
695
  - Use Astro Image component
696
696
  - Lazy load images
697
697
  - Responsive images
698
698
  - WebP format
699
699
 
700
- **85. [INFER-085]** Minimize JavaScript bundle size
700
+ **85. [CYCLE-085]** Minimize JavaScript bundle size
701
701
 
702
702
  - Code split AI components
703
703
  - Lazy load Prompt Kit
704
704
  - Tree-shake unused code
705
705
  - Minify CSS
706
706
 
707
- **86. [INFER-086]** Use Astro Islands for selective hydration
707
+ **86. [CYCLE-086]** Use Astro Islands for selective hydration
708
708
 
709
709
  - AIChat as island (client:load)
710
710
  - Static content non-hydrated
711
711
  - Only hydrate interactive parts
712
712
  - Reduce JS payload
713
713
 
714
- **87. [INFER-087]** Enable SSR for critical pages
714
+ **87. [CYCLE-087]** Enable SSR for critical pages
715
715
 
716
716
  - Fetch initial threads on server
717
717
  - Render initial state
718
718
  - Progressive enhancement
719
719
  - Faster first paint
720
720
 
721
- **88. [INFER-088]** Optimize Lighthouse scores
721
+ **88. [CYCLE-088]** Optimize Lighthouse scores
722
722
 
723
723
  - Performance: > 90
724
724
  - Accessibility: > 95
725
725
  - Best Practices: > 95
726
726
  - SEO: > 95
727
727
 
728
- **89. [INFER-089]** Test on slow connections
728
+ **89. [CYCLE-089]** Test on slow connections
729
729
 
730
730
  - Use DevTools throttling
731
731
  - Test on 3G connection
732
732
  - Measure time to interactive
733
733
  - Optimize critical path
734
734
 
735
- **90. [INFER-090]** Monitor Core Web Vitals
735
+ **90. [CYCLE-090]** Monitor Core Web Vitals
736
736
 
737
737
  - LCP (Largest Contentful Paint) < 2.5s
738
738
  - FID (First Input Delay) < 100ms
@@ -743,70 +743,70 @@ aiMessages: {
743
743
 
744
744
  ## Cycle 91-100: Deployment & Documentation
745
745
 
746
- **91. [INFER-091]** Build production bundle
746
+ **91. [CYCLE-091]** Build production bundle
747
747
 
748
748
  - bun run build
749
749
  - Check bundle size
750
750
  - Verify no build errors
751
751
  - Generate type declarations
752
752
 
753
- **92. [INFER-092]** Deploy backend to Convex Cloud
753
+ **92. [CYCLE-092]** Deploy backend to Convex Cloud
754
754
 
755
755
  - npx convex deploy
756
756
  - Verify schema changes
757
757
  - Test mutations in production
758
758
  - Monitor error rates
759
759
 
760
- **93. [INFER-093]** Deploy frontend to Cloudflare Pages
760
+ **93. [CYCLE-093]** Deploy frontend to Cloudflare Pages
761
761
 
762
762
  - wrangler pages deploy dist
763
763
  - Set environment variables
764
764
  - Configure redirects
765
765
  - Test all routes
766
766
 
767
- **94. [INFER-094]** Run smoke tests in production
767
+ **94. [CYCLE-094]** Run smoke tests in production
768
768
 
769
769
  - Test chat flow end-to-end
770
770
  - Verify API responses
771
771
  - Check database records
772
772
  - Monitor performance
773
773
 
774
- **95. [INFER-095]** Write feature documentation
774
+ **95. [CYCLE-095]** Write feature documentation
775
775
 
776
776
  - Add to `/one/knowledge/ai-sdk.md`
777
777
  - Document architecture
778
778
  - Provide code examples
779
779
  - Explain design decisions
780
780
 
781
- **96. [INFER-096]** Update API documentation
781
+ **96. [CYCLE-096]** Update API documentation
782
782
 
783
783
  - Document all mutations
784
784
  - Document all queries
785
785
  - Provide curl examples
786
786
  - Explain rate limiting
787
787
 
788
- **97. [INFER-097]** Create user guide
788
+ **97. [CYCLE-097]** Create user guide
789
789
 
790
790
  - How to start a chat
791
791
  - How to select models
792
792
  - How to view token usage
793
793
  - How to search knowledge
794
794
 
795
- **98. [INFER-098]** Capture lessons learned
795
+ **98. [CYCLE-098]** Capture lessons learned
796
796
 
797
797
  - What worked well
798
798
  - What was difficult
799
799
  - What would be different
800
800
  - Patterns discovered
801
801
 
802
- **99. [INFER-099]** Update knowledge base with patterns
802
+ **99. [CYCLE-099]** Update knowledge base with patterns
803
803
 
804
804
  - Document AI SDK patterns
805
805
  - Document Prompt Kit usage
806
806
  - Document ontology mapping
807
807
  - Document rate limiting strategy
808
808
 
809
- **100. [INFER-100]** Mark feature complete and notify stakeholders
809
+ **100. [CYCLE-100]** Mark feature complete and notify stakeholders
810
810
 
811
811
  - Update feature status to "production"
812
812
  - Notify team of launch