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
@@ -26,151 +26,151 @@ Each number represents the sequence position when data is sent for AI cycle. Thi
26
26
 
27
27
  ## Cycle 1-10: Foundation & Setup
28
28
 
29
- **1. [INFER-001]** Validate idea against 6-dimension ontology (groups, people, things, connections, events, knowledge)
30
- **2. [INFER-002]** Map idea to specific entity types (which of 66+ thing types are involved?)
31
- **3. [INFER-003]** Identify connection types needed (which of 25+ relationship types?)
32
- **4. [INFER-004]** List event types that will be triggered (which of 67+ event types?)
33
- **5. [INFER-005]** Determine knowledge requirements (embeddings, vectors, RAG needs)
34
- **6. [INFER-006]** Identify organization scope (single-tenant vs multi-tenant)
35
- **7. [INFER-007]** Define people roles involved (platform_owner, org_owner, org_user, customer)
36
- **8. [INFER-008]** Create high-level vision document (what problem does this solve?)
37
- **9. [INFER-009]** Generate initial plan with feature breakdown
38
- **10. [INFER-010]** Assign features to specialists (backend, frontend, integration)
29
+ **1. [CYCLE-001]** Validate idea against 6-dimension ontology (groups, people, things, connections, events, knowledge)
30
+ **2. [CYCLE-002]** Map idea to specific entity types (which of 66+ thing types are involved?)
31
+ **3. [CYCLE-003]** Identify connection types needed (which of 25+ relationship types?)
32
+ **4. [CYCLE-004]** List event types that will be triggered (which of 67+ event types?)
33
+ **5. [CYCLE-005]** Determine knowledge requirements (embeddings, vectors, RAG needs)
34
+ **6. [CYCLE-006]** Identify organization scope (single-tenant vs multi-tenant)
35
+ **7. [CYCLE-007]** Define people roles involved (platform_owner, org_owner, org_user, customer)
36
+ **8. [CYCLE-008]** Create high-level vision document (what problem does this solve?)
37
+ **9. [CYCLE-009]** Generate initial plan with feature breakdown
38
+ **10. [CYCLE-010]** Assign features to specialists (backend, frontend, integration)
39
39
 
40
40
  ---
41
41
 
42
42
  ## Cycle 11-20: Backend Schema & Services
43
43
 
44
- **11. [INFER-011]** Design database schema changes (if any new entity types)
45
- **12. [INFER-012]** Update backend/convex/schema.ts with new types
46
- **13. [INFER-013]** Create Effect.ts service for business logic (pure functions)
47
- **14. [INFER-014]** Define service errors with tagged unions (_tag field)
48
- **15. [INFER-015]** Write Convex queries for read operations
49
- **16. [INFER-016]** Write Convex mutations for write operations
50
- **17. [INFER-017]** Add event logging to all mutations (audit trail)
51
- **18. [INFER-018]** Implement organization scoping (ensure multi-tenant isolation)
52
- **19. [INFER-019]** Add rate limiting to mutations (prevent abuse)
53
- **20. [INFER-020]** Write unit tests for Effect.ts services
44
+ **11. [CYCLE-011]** Design database schema changes (if any new entity types)
45
+ **12. [CYCLE-012]** Update backend/convex/schema.ts with new types
46
+ **13. [CYCLE-013]** Create Effect.ts service for business logic (pure functions)
47
+ **14. [CYCLE-014]** Define service errors with tagged unions (_tag field)
48
+ **15. [CYCLE-015]** Write Convex queries for read operations
49
+ **16. [CYCLE-016]** Write Convex mutations for write operations
50
+ **17. [CYCLE-017]** Add event logging to all mutations (audit trail)
51
+ **18. [CYCLE-018]** Implement organization scoping (ensure multi-tenant isolation)
52
+ **19. [CYCLE-019]** Add rate limiting to mutations (prevent abuse)
53
+ **20. [CYCLE-020]** Write unit tests for Effect.ts services
54
54
 
55
55
  ---
56
56
 
57
57
  ## Cycle 21-30: Frontend Pages & Components
58
58
 
59
- **21. [INFER-021]** Create Astro page with SSR data fetching
60
- **22. [INFER-022]** Build React components for interactive UI
61
- **23. [INFER-023]** Use shadcn/ui components (50+ pre-installed)
62
- **24. [INFER-024]** Implement loading states with Suspense
63
- **25. [INFER-025]** Add error boundaries for graceful failures
64
- **26. [INFER-026]** Create forms with validation (React Hook Form + Zod)
65
- **27. [INFER-027]** Implement client-side state with Convex hooks
66
- **28. [INFER-028]** Style with Tailwind v4 (CSS @theme blocks)
67
- **29. [INFER-029]** Ensure responsive design (mobile-first)
68
- **30. [INFER-030]** Add dark mode support (@variant dark)
59
+ **21. [CYCLE-021]** Create Astro page with SSR data fetching
60
+ **22. [CYCLE-022]** Build React components for interactive UI
61
+ **23. [CYCLE-023]** Use shadcn/ui components (50+ pre-installed)
62
+ **24. [CYCLE-024]** Implement loading states with Suspense
63
+ **25. [CYCLE-025]** Add error boundaries for graceful failures
64
+ **26. [CYCLE-026]** Create forms with validation (React Hook Form + Zod)
65
+ **27. [CYCLE-027]** Implement client-side state with Convex hooks
66
+ **28. [CYCLE-028]** Style with Tailwind v4 (CSS @theme blocks)
67
+ **29. [CYCLE-029]** Ensure responsive design (mobile-first)
68
+ **30. [CYCLE-030]** Add dark mode support (@variant dark)
69
69
 
70
70
  ---
71
71
 
72
72
  ## Cycle 31-40: Integration & Connections
73
73
 
74
- **31. [INFER-031]** Map external system to ontology dimensions
75
- **32. [INFER-032]** Create connection records for system relationships
76
- **33. [INFER-033]** Implement data synchronization logic
77
- **34. [INFER-034]** Add event tracking for cross-system actions
78
- **35. [INFER-035]** Create webhook handlers (if external system pushes data)
79
- **36. [INFER-036]** Implement polling logic (if external system requires pulling)
80
- **37. [INFER-037]** Add error handling for integration failures
81
- **38. [INFER-038]** Create retry logic with exponential backoff
82
- **39. [INFER-039]** Log all integration events to events table
83
- **40. [INFER-040]** Write integration tests for data flows
74
+ **31. [CYCLE-031]** Map external system to ontology dimensions
75
+ **32. [CYCLE-032]** Create connection records for system relationships
76
+ **33. [CYCLE-033]** Implement data synchronization logic
77
+ **34. [CYCLE-034]** Add event tracking for cross-system actions
78
+ **35. [CYCLE-035]** Create webhook handlers (if external system pushes data)
79
+ **36. [CYCLE-036]** Implement polling logic (if external system requires pulling)
80
+ **37. [CYCLE-037]** Add error handling for integration failures
81
+ **38. [CYCLE-038]** Create retry logic with exponential backoff
82
+ **39. [CYCLE-039]** Log all integration events to events table
83
+ **40. [CYCLE-040]** Write integration tests for data flows
84
84
 
85
85
  ---
86
86
 
87
87
  ## Cycle 41-50: Authentication & Authorization
88
88
 
89
- **41. [INFER-041]** Configure Better Auth with 6 methods (email/password, OAuth, magic links, etc.)
90
- **42. [INFER-042]** Implement role-based access control (4 roles)
91
- **43. [INFER-043]** Add organization-scoped permissions
92
- **44. [INFER-044]** Create session management with JWT tokens
93
- **45. [INFER-045]** Implement password reset flow
94
- **46. [INFER-046]** Add email verification flow
95
- **47. [INFER-047]** Enable 2FA (two-factor authentication)
96
- **48. [INFER-048]** Add brute force protection (rate limiting)
97
- **49. [INFER-049]** Log all auth events (user_login, user_logout, etc.)
98
- **50. [INFER-050]** Write auth integration tests
89
+ **41. [CYCLE-041]** Configure Better Auth with 6 methods (email/password, OAuth, magic links, etc.)
90
+ **42. [CYCLE-042]** Implement role-based access control (4 roles)
91
+ **43. [CYCLE-043]** Add organization-scoped permissions
92
+ **44. [CYCLE-044]** Create session management with JWT tokens
93
+ **45. [CYCLE-045]** Implement password reset flow
94
+ **46. [CYCLE-046]** Add email verification flow
95
+ **47. [CYCLE-047]** Enable 2FA (two-factor authentication)
96
+ **48. [CYCLE-048]** Add brute force protection (rate limiting)
97
+ **49. [CYCLE-049]** Log all auth events (user_login, user_logout, etc.)
98
+ **50. [CYCLE-050]** Write auth integration tests
99
99
 
100
100
  ---
101
101
 
102
102
  ## Cycle 51-60: Knowledge & RAG
103
103
 
104
- **51. [INFER-051]** Create knowledge records with labels
105
- **52. [INFER-052]** Generate embeddings for content (OpenAI, Anthropic, or local)
106
- **53. [INFER-053]** Store vectors in knowledge table
107
- **54. [INFER-054]** Implement vector search (similarity queries)
108
- **55. [INFER-055]** Create RAG pipeline (retrieve, augment, generate)
109
- **56. [INFER-056]** Link knowledge to things via junction table
110
- **57. [INFER-057]** Add semantic search to UI
111
- **58. [INFER-058]** Implement knowledge graph traversal
112
- **59. [INFER-059]** Create AI-powered recommendations
113
- **60. [INFER-060]** Test RAG accuracy with sample queries
104
+ **51. [CYCLE-051]** Create knowledge records with labels
105
+ **52. [CYCLE-052]** Generate embeddings for content (OpenAI, Anthropic, or local)
106
+ **53. [CYCLE-053]** Store vectors in knowledge table
107
+ **54. [CYCLE-054]** Implement vector search (similarity queries)
108
+ **55. [CYCLE-055]** Create RAG pipeline (retrieve, augment, generate)
109
+ **56. [CYCLE-056]** Link knowledge to things via junction table
110
+ **57. [CYCLE-057]** Add semantic search to UI
111
+ **58. [CYCLE-058]** Implement knowledge graph traversal
112
+ **59. [CYCLE-059]** Create AI-powered recommendations
113
+ **60. [CYCLE-060]** Test RAG accuracy with sample queries
114
114
 
115
115
  ---
116
116
 
117
117
  ## Cycle 61-70: Quality & Testing
118
118
 
119
- **61. [INFER-061]** Define user flows (what users must accomplish)
120
- **62. [INFER-062]** Create acceptance criteria (how we know it works)
121
- **63. [INFER-063]** Write unit tests for services (Effect.ts)
122
- **64. [INFER-064]** Write integration tests for flows (frontend → backend)
123
- **65. [INFER-065]** Write e2e tests for critical paths (Playwright)
124
- **66. [INFER-066]** Run tests and capture results
125
- **67. [INFER-067]** Validate against ontology (does it map to 6 dimensions?)
126
- **68. [INFER-068]** Check type safety (bunx astro check)
127
- **69. [INFER-069]** Run linter (bun run lint)
128
- **70. [INFER-070]** Fix all failing tests before continuing
119
+ **61. [CYCLE-061]** Define user flows (what users must accomplish)
120
+ **62. [CYCLE-062]** Create acceptance criteria (how we know it works)
121
+ **63. [CYCLE-063]** Write unit tests for services (Effect.ts)
122
+ **64. [CYCLE-064]** Write integration tests for flows (frontend → backend)
123
+ **65. [CYCLE-065]** Write e2e tests for critical paths (Playwright)
124
+ **66. [CYCLE-066]** Run tests and capture results
125
+ **67. [CYCLE-067]** Validate against ontology (does it map to 6 dimensions?)
126
+ **68. [CYCLE-068]** Check type safety (bunx astro check)
127
+ **69. [CYCLE-069]** Run linter (bun run lint)
128
+ **70. [CYCLE-070]** Fix all failing tests before continuing
129
129
 
130
130
  ---
131
131
 
132
132
  ## Cycle 71-80: Design & Wireframes
133
133
 
134
- **71. [INFER-071]** Create wireframes that satisfy acceptance criteria
135
- **72. [INFER-072]** Design component architecture (atoms, molecules, organisms)
136
- **73. [INFER-073]** Set design tokens (colors, spacing, timing)
137
- **74. [INFER-074]** Ensure WCAG AA accessibility compliance
138
- **75. [INFER-075]** Design loading states and skeletons
139
- **76. [INFER-076]** Create error state designs
140
- **77. [INFER-077]** Design empty states
141
- **78. [INFER-078]** Implement animations and transitions
142
- **79. [INFER-079]** Validate design enables tests to pass
143
- **80. [INFER-080]** Get design approval (if needed)
134
+ **71. [CYCLE-071]** Create wireframes that satisfy acceptance criteria
135
+ **72. [CYCLE-072]** Design component architecture (atoms, molecules, organisms)
136
+ **73. [CYCLE-073]** Set design tokens (colors, spacing, timing)
137
+ **74. [CYCLE-074]** Ensure WCAG AA accessibility compliance
138
+ **75. [CYCLE-075]** Design loading states and skeletons
139
+ **76. [CYCLE-076]** Create error state designs
140
+ **77. [CYCLE-077]** Design empty states
141
+ **78. [CYCLE-078]** Implement animations and transitions
142
+ **79. [CYCLE-079]** Validate design enables tests to pass
143
+ **80. [CYCLE-080]** Get design approval (if needed)
144
144
 
145
145
  ---
146
146
 
147
147
  ## Cycle 81-90: Performance & Optimization
148
148
 
149
- **81. [INFER-081]** Optimize database queries (add indexes)
150
- **82. [INFER-082]** Implement pagination for large lists
151
- **83. [INFER-083]** Add caching where appropriate (React Query, Convex cache)
152
- **84. [INFER-084]** Optimize images (Astro Image component)
153
- **85. [INFER-085]** Minimize JavaScript bundle size
154
- **86. [INFER-086]** Use Astro Islands for selective hydration
155
- **87. [INFER-087]** Enable SSR for critical pages
156
- **88. [INFER-088]** Optimize Lighthouse scores (Performance, Accessibility, Best Practices, SEO)
157
- **89. [INFER-089]** Test on slow connections (throttling)
158
- **90. [INFER-090]** Monitor Core Web Vitals (LCP, FID, CLS)
149
+ **81. [CYCLE-081]** Optimize database queries (add indexes)
150
+ **82. [CYCLE-082]** Implement pagination for large lists
151
+ **83. [CYCLE-083]** Add caching where appropriate (React Query, Convex cache)
152
+ **84. [CYCLE-084]** Optimize images (Astro Image component)
153
+ **85. [CYCLE-085]** Minimize JavaScript bundle size
154
+ **86. [CYCLE-086]** Use Astro Islands for selective hydration
155
+ **87. [CYCLE-087]** Enable SSR for critical pages
156
+ **88. [CYCLE-088]** Optimize Lighthouse scores (Performance, Accessibility, Best Practices, SEO)
157
+ **89. [CYCLE-089]** Test on slow connections (throttling)
158
+ **90. [CYCLE-090]** Monitor Core Web Vitals (LCP, FID, CLS)
159
159
 
160
160
  ---
161
161
 
162
162
  ## Cycle 91-100: Deployment & Documentation
163
163
 
164
- **91. [INFER-091]** Build production bundle (bun run build)
165
- **92. [INFER-092]** Deploy backend to Convex Cloud (npx convex deploy)
166
- **93. [INFER-093]** Deploy frontend to Cloudflare Pages
167
- **94. [INFER-094]** Run smoke tests in production
168
- **95. [INFER-095]** Write feature documentation (one/knowledge/)
169
- **96. [INFER-096]** Update API documentation (if public APIs)
170
- **97. [INFER-097]** Create user guide (if user-facing feature)
171
- **98. [INFER-098]** Capture lessons learned (what worked, what didn't)
172
- **99. [INFER-099]** Update knowledge base with patterns
173
- **100. [INFER-100]** Mark feature complete and notify stakeholders
164
+ **91. [CYCLE-091]** Build production bundle (bun run build)
165
+ **92. [CYCLE-092]** Deploy backend to Convex Cloud (npx convex deploy)
166
+ **93. [CYCLE-093]** Deploy frontend to Cloudflare Pages
167
+ **94. [CYCLE-094]** Run smoke tests in production
168
+ **95. [CYCLE-095]** Write feature documentation (one/knowledge/)
169
+ **96. [CYCLE-096]** Update API documentation (if public APIs)
170
+ **97. [CYCLE-097]** Create user guide (if user-facing feature)
171
+ **98. [CYCLE-098]** Capture lessons learned (what worked, what didn't)
172
+ **99. [CYCLE-099]** Update knowledge base with patterns
173
+ **100. [CYCLE-100]** Mark feature complete and notify stakeholders
174
174
 
175
175
  ---
176
176
 
@@ -26,151 +26,151 @@ Each number represents the sequence position when data is sent for AI cycle. Thi
26
26
 
27
27
  ## Cycle 1-10: Foundation & Setup
28
28
 
29
- **1. [INFER-001]** Validate idea against 6-dimension ontology (groups, people, things, connections, events, knowledge)
30
- **2. [INFER-002]** Map idea to specific entity types (which of 66+ thing types are involved?)
31
- **3. [INFER-003]** Identify connection types needed (which of 25+ relationship types?)
32
- **4. [INFER-004]** List event types that will be triggered (which of 67+ event types?)
33
- **5. [INFER-005]** Determine knowledge requirements (embeddings, vectors, RAG needs)
34
- **6. [INFER-006]** Identify organization scope (single-tenant vs multi-tenant)
35
- **7. [INFER-007]** Define people roles involved (platform_owner, org_owner, org_user, customer)
36
- **8. [INFER-008]** Create high-level vision document (what problem does this solve?)
37
- **9. [INFER-009]** Generate initial plan with feature breakdown
38
- **10. [INFER-010]** Assign features to specialists (backend, frontend, integration)
29
+ **1. [CYCLE-001]** Validate idea against 6-dimension ontology (groups, people, things, connections, events, knowledge)
30
+ **2. [CYCLE-002]** Map idea to specific entity types (which of 66+ thing types are involved?)
31
+ **3. [CYCLE-003]** Identify connection types needed (which of 25+ relationship types?)
32
+ **4. [CYCLE-004]** List event types that will be triggered (which of 67+ event types?)
33
+ **5. [CYCLE-005]** Determine knowledge requirements (embeddings, vectors, RAG needs)
34
+ **6. [CYCLE-006]** Identify organization scope (single-tenant vs multi-tenant)
35
+ **7. [CYCLE-007]** Define people roles involved (platform_owner, org_owner, org_user, customer)
36
+ **8. [CYCLE-008]** Create high-level vision document (what problem does this solve?)
37
+ **9. [CYCLE-009]** Generate initial plan with feature breakdown
38
+ **10. [CYCLE-010]** Assign features to specialists (backend, frontend, integration)
39
39
 
40
40
  ---
41
41
 
42
42
  ## Cycle 11-20: Backend Schema & Services
43
43
 
44
- **11. [INFER-011]** Design database schema changes (if any new entity types)
45
- **12. [INFER-012]** Update backend/convex/schema.ts with new types
46
- **13. [INFER-013]** Create Effect.ts service for business logic (pure functions)
47
- **14. [INFER-014]** Define service errors with tagged unions (_tag field)
48
- **15. [INFER-015]** Write Convex queries for read operations
49
- **16. [INFER-016]** Write Convex mutations for write operations
50
- **17. [INFER-017]** Add event logging to all mutations (audit trail)
51
- **18. [INFER-018]** Implement organization scoping (ensure multi-tenant isolation)
52
- **19. [INFER-019]** Add rate limiting to mutations (prevent abuse)
53
- **20. [INFER-020]** Write unit tests for Effect.ts services
44
+ **11. [CYCLE-011]** Design database schema changes (if any new entity types)
45
+ **12. [CYCLE-012]** Update backend/convex/schema.ts with new types
46
+ **13. [CYCLE-013]** Create Effect.ts service for business logic (pure functions)
47
+ **14. [CYCLE-014]** Define service errors with tagged unions (_tag field)
48
+ **15. [CYCLE-015]** Write Convex queries for read operations
49
+ **16. [CYCLE-016]** Write Convex mutations for write operations
50
+ **17. [CYCLE-017]** Add event logging to all mutations (audit trail)
51
+ **18. [CYCLE-018]** Implement organization scoping (ensure multi-tenant isolation)
52
+ **19. [CYCLE-019]** Add rate limiting to mutations (prevent abuse)
53
+ **20. [CYCLE-020]** Write unit tests for Effect.ts services
54
54
 
55
55
  ---
56
56
 
57
57
  ## Cycle 21-30: Frontend Pages & Components
58
58
 
59
- **21. [INFER-021]** Create Astro page with SSR data fetching
60
- **22. [INFER-022]** Build React components for interactive UI
61
- **23. [INFER-023]** Use shadcn/ui components (50+ pre-installed)
62
- **24. [INFER-024]** Implement loading states with Suspense
63
- **25. [INFER-025]** Add error boundaries for graceful failures
64
- **26. [INFER-026]** Create forms with validation (React Hook Form + Zod)
65
- **27. [INFER-027]** Implement client-side state with Convex hooks
66
- **28. [INFER-028]** Style with Tailwind v4 (CSS @theme blocks)
67
- **29. [INFER-029]** Ensure responsive design (mobile-first)
68
- **30. [INFER-030]** Add dark mode support (@variant dark)
59
+ **21. [CYCLE-021]** Create Astro page with SSR data fetching
60
+ **22. [CYCLE-022]** Build React components for interactive UI
61
+ **23. [CYCLE-023]** Use shadcn/ui components (50+ pre-installed)
62
+ **24. [CYCLE-024]** Implement loading states with Suspense
63
+ **25. [CYCLE-025]** Add error boundaries for graceful failures
64
+ **26. [CYCLE-026]** Create forms with validation (React Hook Form + Zod)
65
+ **27. [CYCLE-027]** Implement client-side state with Convex hooks
66
+ **28. [CYCLE-028]** Style with Tailwind v4 (CSS @theme blocks)
67
+ **29. [CYCLE-029]** Ensure responsive design (mobile-first)
68
+ **30. [CYCLE-030]** Add dark mode support (@variant dark)
69
69
 
70
70
  ---
71
71
 
72
72
  ## Cycle 31-40: Integration & Connections
73
73
 
74
- **31. [INFER-031]** Map external system to ontology dimensions
75
- **32. [INFER-032]** Create connection records for system relationships
76
- **33. [INFER-033]** Implement data synchronization logic
77
- **34. [INFER-034]** Add event tracking for cross-system actions
78
- **35. [INFER-035]** Create webhook handlers (if external system pushes data)
79
- **36. [INFER-036]** Implement polling logic (if external system requires pulling)
80
- **37. [INFER-037]** Add error handling for integration failures
81
- **38. [INFER-038]** Create retry logic with exponential backoff
82
- **39. [INFER-039]** Log all integration events to events table
83
- **40. [INFER-040]** Write integration tests for data flows
74
+ **31. [CYCLE-031]** Map external system to ontology dimensions
75
+ **32. [CYCLE-032]** Create connection records for system relationships
76
+ **33. [CYCLE-033]** Implement data synchronization logic
77
+ **34. [CYCLE-034]** Add event tracking for cross-system actions
78
+ **35. [CYCLE-035]** Create webhook handlers (if external system pushes data)
79
+ **36. [CYCLE-036]** Implement polling logic (if external system requires pulling)
80
+ **37. [CYCLE-037]** Add error handling for integration failures
81
+ **38. [CYCLE-038]** Create retry logic with exponential backoff
82
+ **39. [CYCLE-039]** Log all integration events to events table
83
+ **40. [CYCLE-040]** Write integration tests for data flows
84
84
 
85
85
  ---
86
86
 
87
87
  ## Cycle 41-50: Authentication & Authorization
88
88
 
89
- **41. [INFER-041]** Configure Better Auth with 6 methods (email/password, OAuth, magic links, etc.)
90
- **42. [INFER-042]** Implement role-based access control (4 roles)
91
- **43. [INFER-043]** Add organization-scoped permissions
92
- **44. [INFER-044]** Create session management with JWT tokens
93
- **45. [INFER-045]** Implement password reset flow
94
- **46. [INFER-046]** Add email verification flow
95
- **47. [INFER-047]** Enable 2FA (two-factor authentication)
96
- **48. [INFER-048]** Add brute force protection (rate limiting)
97
- **49. [INFER-049]** Log all auth events (user_login, user_logout, etc.)
98
- **50. [INFER-050]** Write auth integration tests
89
+ **41. [CYCLE-041]** Configure Better Auth with 6 methods (email/password, OAuth, magic links, etc.)
90
+ **42. [CYCLE-042]** Implement role-based access control (4 roles)
91
+ **43. [CYCLE-043]** Add organization-scoped permissions
92
+ **44. [CYCLE-044]** Create session management with JWT tokens
93
+ **45. [CYCLE-045]** Implement password reset flow
94
+ **46. [CYCLE-046]** Add email verification flow
95
+ **47. [CYCLE-047]** Enable 2FA (two-factor authentication)
96
+ **48. [CYCLE-048]** Add brute force protection (rate limiting)
97
+ **49. [CYCLE-049]** Log all auth events (user_login, user_logout, etc.)
98
+ **50. [CYCLE-050]** Write auth integration tests
99
99
 
100
100
  ---
101
101
 
102
102
  ## Cycle 51-60: Knowledge & RAG
103
103
 
104
- **51. [INFER-051]** Create knowledge records with labels
105
- **52. [INFER-052]** Generate embeddings for content (OpenAI, Anthropic, or local)
106
- **53. [INFER-053]** Store vectors in knowledge table
107
- **54. [INFER-054]** Implement vector search (similarity queries)
108
- **55. [INFER-055]** Create RAG pipeline (retrieve, augment, generate)
109
- **56. [INFER-056]** Link knowledge to things via junction table
110
- **57. [INFER-057]** Add semantic search to UI
111
- **58. [INFER-058]** Implement knowledge graph traversal
112
- **59. [INFER-059]** Create AI-powered recommendations
113
- **60. [INFER-060]** Test RAG accuracy with sample queries
104
+ **51. [CYCLE-051]** Create knowledge records with labels
105
+ **52. [CYCLE-052]** Generate embeddings for content (OpenAI, Anthropic, or local)
106
+ **53. [CYCLE-053]** Store vectors in knowledge table
107
+ **54. [CYCLE-054]** Implement vector search (similarity queries)
108
+ **55. [CYCLE-055]** Create RAG pipeline (retrieve, augment, generate)
109
+ **56. [CYCLE-056]** Link knowledge to things via junction table
110
+ **57. [CYCLE-057]** Add semantic search to UI
111
+ **58. [CYCLE-058]** Implement knowledge graph traversal
112
+ **59. [CYCLE-059]** Create AI-powered recommendations
113
+ **60. [CYCLE-060]** Test RAG accuracy with sample queries
114
114
 
115
115
  ---
116
116
 
117
117
  ## Cycle 61-70: Quality & Testing
118
118
 
119
- **61. [INFER-061]** Define user flows (what users must accomplish)
120
- **62. [INFER-062]** Create acceptance criteria (how we know it works)
121
- **63. [INFER-063]** Write unit tests for services (Effect.ts)
122
- **64. [INFER-064]** Write integration tests for flows (frontend → backend)
123
- **65. [INFER-065]** Write e2e tests for critical paths (Playwright)
124
- **66. [INFER-066]** Run tests and capture results
125
- **67. [INFER-067]** Validate against ontology (does it map to 6 dimensions?)
126
- **68. [INFER-068]** Check type safety (bunx astro check)
127
- **69. [INFER-069]** Run linter (bun run lint)
128
- **70. [INFER-070]** Fix all failing tests before continuing
119
+ **61. [CYCLE-061]** Define user flows (what users must accomplish)
120
+ **62. [CYCLE-062]** Create acceptance criteria (how we know it works)
121
+ **63. [CYCLE-063]** Write unit tests for services (Effect.ts)
122
+ **64. [CYCLE-064]** Write integration tests for flows (frontend → backend)
123
+ **65. [CYCLE-065]** Write e2e tests for critical paths (Playwright)
124
+ **66. [CYCLE-066]** Run tests and capture results
125
+ **67. [CYCLE-067]** Validate against ontology (does it map to 6 dimensions?)
126
+ **68. [CYCLE-068]** Check type safety (bunx astro check)
127
+ **69. [CYCLE-069]** Run linter (bun run lint)
128
+ **70. [CYCLE-070]** Fix all failing tests before continuing
129
129
 
130
130
  ---
131
131
 
132
132
  ## Cycle 71-80: Design & Wireframes
133
133
 
134
- **71. [INFER-071]** Create wireframes that satisfy acceptance criteria
135
- **72. [INFER-072]** Design component architecture (atoms, molecules, organisms)
136
- **73. [INFER-073]** Set design tokens (colors, spacing, timing)
137
- **74. [INFER-074]** Ensure WCAG AA accessibility compliance
138
- **75. [INFER-075]** Design loading states and skeletons
139
- **76. [INFER-076]** Create error state designs
140
- **77. [INFER-077]** Design empty states
141
- **78. [INFER-078]** Implement animations and transitions
142
- **79. [INFER-079]** Validate design enables tests to pass
143
- **80. [INFER-080]** Get design approval (if needed)
134
+ **71. [CYCLE-071]** Create wireframes that satisfy acceptance criteria
135
+ **72. [CYCLE-072]** Design component architecture (atoms, molecules, organisms)
136
+ **73. [CYCLE-073]** Set design tokens (colors, spacing, timing)
137
+ **74. [CYCLE-074]** Ensure WCAG AA accessibility compliance
138
+ **75. [CYCLE-075]** Design loading states and skeletons
139
+ **76. [CYCLE-076]** Create error state designs
140
+ **77. [CYCLE-077]** Design empty states
141
+ **78. [CYCLE-078]** Implement animations and transitions
142
+ **79. [CYCLE-079]** Validate design enables tests to pass
143
+ **80. [CYCLE-080]** Get design approval (if needed)
144
144
 
145
145
  ---
146
146
 
147
147
  ## Cycle 81-90: Performance & Optimization
148
148
 
149
- **81. [INFER-081]** Optimize database queries (add indexes)
150
- **82. [INFER-082]** Implement pagination for large lists
151
- **83. [INFER-083]** Add caching where appropriate (React Query, Convex cache)
152
- **84. [INFER-084]** Optimize images (Astro Image component)
153
- **85. [INFER-085]** Minimize JavaScript bundle size
154
- **86. [INFER-086]** Use Astro Islands for selective hydration
155
- **87. [INFER-087]** Enable SSR for critical pages
156
- **88. [INFER-088]** Optimize Lighthouse scores (Performance, Accessibility, Best Practices, SEO)
157
- **89. [INFER-089]** Test on slow connections (throttling)
158
- **90. [INFER-090]** Monitor Core Web Vitals (LCP, FID, CLS)
149
+ **81. [CYCLE-081]** Optimize database queries (add indexes)
150
+ **82. [CYCLE-082]** Implement pagination for large lists
151
+ **83. [CYCLE-083]** Add caching where appropriate (React Query, Convex cache)
152
+ **84. [CYCLE-084]** Optimize images (Astro Image component)
153
+ **85. [CYCLE-085]** Minimize JavaScript bundle size
154
+ **86. [CYCLE-086]** Use Astro Islands for selective hydration
155
+ **87. [CYCLE-087]** Enable SSR for critical pages
156
+ **88. [CYCLE-088]** Optimize Lighthouse scores (Performance, Accessibility, Best Practices, SEO)
157
+ **89. [CYCLE-089]** Test on slow connections (throttling)
158
+ **90. [CYCLE-090]** Monitor Core Web Vitals (LCP, FID, CLS)
159
159
 
160
160
  ---
161
161
 
162
162
  ## Cycle 91-100: Deployment & Documentation
163
163
 
164
- **91. [INFER-091]** Build production bundle (bun run build)
165
- **92. [INFER-092]** Deploy backend to Convex Cloud (npx convex deploy)
166
- **93. [INFER-093]** Deploy frontend to Cloudflare Pages
167
- **94. [INFER-094]** Run smoke tests in production
168
- **95. [INFER-095]** Write feature documentation (one/knowledge/)
169
- **96. [INFER-096]** Update API documentation (if public APIs)
170
- **97. [INFER-097]** Create user guide (if user-facing feature)
171
- **98. [INFER-098]** Capture lessons learned (what worked, what didn't)
172
- **99. [INFER-099]** Update knowledge base with patterns
173
- **100. [INFER-100]** Mark feature complete and notify stakeholders
164
+ **91. [CYCLE-091]** Build production bundle (bun run build)
165
+ **92. [CYCLE-092]** Deploy backend to Convex Cloud (npx convex deploy)
166
+ **93. [CYCLE-093]** Deploy frontend to Cloudflare Pages
167
+ **94. [CYCLE-094]** Run smoke tests in production
168
+ **95. [CYCLE-095]** Write feature documentation (one/knowledge/)
169
+ **96. [CYCLE-096]** Update API documentation (if public APIs)
170
+ **97. [CYCLE-097]** Create user guide (if user-facing feature)
171
+ **98. [CYCLE-098]** Capture lessons learned (what worked, what didn't)
172
+ **99. [CYCLE-099]** Update knowledge base with patterns
173
+ **100. [CYCLE-100]** Mark feature complete and notify stakeholders
174
174
 
175
175
  ---
176
176
 
@@ -68,7 +68,7 @@ ai_context: |
68
68
  // Smart contract ownership (100% of all platform contracts)
69
69
  contractOwnership: {
70
70
  sui: {
71
- cyclePayment: process.env.SUI_INFERENCE_PACKAGE_ID,
71
+ cyclePayment: process.env.SUI_CYCLEENCE_PACKAGE_ID,
72
72
  tokenContract: process.env.SUI_TOKEN_PACKAGE_ID,
73
73
  nftContract: process.env.SUI_NFT_PACKAGE_ID,
74
74
  subscription: process.env.SUI_SUBSCRIPTION_PACKAGE_ID,
@@ -156,7 +156,7 @@ ai_context: |
156
156
  metadata: {
157
157
  network: "sui",
158
158
  contractType: "cycle_payment",
159
- packageId: process.env.SUI_INFERENCE_PACKAGE_ID,
159
+ packageId: process.env.SUI_CYCLEENCE_PACKAGE_ID,
160
160
  ownershipPercentage: 100,
161
161
  },
162
162
  createdAt: Date.now(),
@@ -309,7 +309,7 @@ When Anthony deploys new contracts:
309
309
  metadata: {
310
310
  network: "sui",
311
311
  contractType: "cycle_payment",
312
- packageId: process.env.SUI_INFERENCE_PACKAGE_ID,
312
+ packageId: process.env.SUI_CYCLEENCE_PACKAGE_ID,
313
313
  deployedBy: anthonyId,
314
314
  },
315
315
  }
@@ -46,7 +46,7 @@ ONE Platform is a complete creator economy + AI agent marketplace built on a 6-d
46
46
 
47
47
  ### The Todos (Roadmap)
48
48
 
49
- | # | Todo | Infers | Purpose | Wave | Status |
49
+ | # | Todo | Cycles | Purpose | Wave | Status |
50
50
  | --- | -------------------- | ------- | ----------------------------------------- | --------------- | --------------------- |
51
51
  | 1 | todo-onboard | 100 | User registration + team management | Wave 1 | Critical Path |
52
52
  | 2 | todo-x402 | 100 | HTTP 402 micropayment protocol | Wave 1 | Critical Path |
@@ -330,7 +330,7 @@ Final Path:
330
330
 
331
331
  ### Summary by Agent
332
332
 
333
- | Agent | Total Infers | % of Build | Focus Areas |
333
+ | Agent | Total Cycles | % of Build | Focus Areas |
334
334
  | ---------------- | ------------ | ---------- | ------------------------------------ |
335
335
  | agent-backend | ~1,200 | 29% | Schema, services, queries, mutations |
336
336
  | agent-frontend | ~850 | 20% | Pages, components, UI/UX |