oneie 3.7.0 → 3.8.1

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 (1156) hide show
  1. package/README.md +9 -9
  2. package/dist/commands/agent.d.ts +2 -0
  3. package/dist/commands/agent.d.ts.map +1 -1
  4. package/dist/commands/agent.js +44 -0
  5. package/dist/commands/agent.js.map +1 -1
  6. package/dist/commands/bounty.d.ts +4 -0
  7. package/dist/commands/bounty.d.ts.map +1 -0
  8. package/dist/commands/bounty.js +24 -0
  9. package/dist/commands/bounty.js.map +1 -0
  10. package/dist/commands/buy.d.ts +19 -0
  11. package/dist/commands/buy.d.ts.map +1 -0
  12. package/dist/commands/buy.js +63 -0
  13. package/dist/commands/buy.js.map +1 -0
  14. package/dist/commands/capabilities.d.ts +4 -0
  15. package/dist/commands/capabilities.d.ts.map +1 -0
  16. package/dist/commands/capabilities.js +18 -0
  17. package/dist/commands/capabilities.js.map +1 -0
  18. package/dist/commands/commend.d.ts +4 -0
  19. package/dist/commands/commend.d.ts.map +1 -0
  20. package/dist/commands/commend.js +13 -0
  21. package/dist/commands/commend.js.map +1 -0
  22. package/dist/commands/completion.d.ts +4 -0
  23. package/dist/commands/completion.d.ts.map +1 -0
  24. package/dist/commands/completion.js +49 -0
  25. package/dist/commands/completion.js.map +1 -0
  26. package/dist/commands/config.d.ts +4 -0
  27. package/dist/commands/config.d.ts.map +1 -0
  28. package/dist/commands/config.js +78 -0
  29. package/dist/commands/config.js.map +1 -0
  30. package/dist/commands/deploy.d.ts +1 -1
  31. package/dist/commands/deploy.d.ts.map +1 -1
  32. package/dist/commands/deploy.js +39 -4
  33. package/dist/commands/deploy.js.map +1 -1
  34. package/dist/commands/doctor.d.ts +4 -0
  35. package/dist/commands/doctor.d.ts.map +1 -0
  36. package/dist/commands/doctor.js +72 -0
  37. package/dist/commands/doctor.js.map +1 -0
  38. package/dist/commands/domain.d.ts +4 -0
  39. package/dist/commands/domain.d.ts.map +1 -0
  40. package/dist/commands/domain.js +19 -0
  41. package/dist/commands/domain.js.map +1 -0
  42. package/dist/commands/export.d.ts +4 -0
  43. package/dist/commands/export.d.ts.map +1 -0
  44. package/dist/commands/export.js +15 -0
  45. package/dist/commands/export.js.map +1 -0
  46. package/dist/commands/fade.d.ts.map +1 -1
  47. package/dist/commands/fade.js +8 -4
  48. package/dist/commands/fade.js.map +1 -1
  49. package/dist/commands/flag.d.ts +4 -0
  50. package/dist/commands/flag.d.ts.map +1 -0
  51. package/dist/commands/flag.js +13 -0
  52. package/dist/commands/flag.js.map +1 -0
  53. package/dist/commands/health.d.ts +4 -0
  54. package/dist/commands/health.d.ts.map +1 -0
  55. package/dist/commands/health.js +11 -0
  56. package/dist/commands/health.js.map +1 -0
  57. package/dist/commands/highways.d.ts.map +1 -1
  58. package/dist/commands/highways.js +7 -4
  59. package/dist/commands/highways.js.map +1 -1
  60. package/dist/commands/hire.d.ts +4 -0
  61. package/dist/commands/hire.d.ts.map +1 -0
  62. package/dist/commands/hire.js +16 -0
  63. package/dist/commands/hire.js.map +1 -0
  64. package/dist/commands/init.d.ts.map +1 -1
  65. package/dist/commands/init.js +85 -48
  66. package/dist/commands/init.js.map +1 -1
  67. package/dist/commands/invite.d.ts +4 -0
  68. package/dist/commands/invite.d.ts.map +1 -0
  69. package/dist/commands/invite.js +37 -0
  70. package/dist/commands/invite.js.map +1 -0
  71. package/dist/commands/mark.d.ts.map +1 -1
  72. package/dist/commands/mark.js +7 -7
  73. package/dist/commands/mark.js.map +1 -1
  74. package/dist/commands/pay.d.ts +4 -0
  75. package/dist/commands/pay.d.ts.map +1 -0
  76. package/dist/commands/pay.js +21 -0
  77. package/dist/commands/pay.js.map +1 -0
  78. package/dist/commands/pipe.d.ts +4 -0
  79. package/dist/commands/pipe.d.ts.map +1 -0
  80. package/dist/commands/pipe.js +35 -0
  81. package/dist/commands/pipe.js.map +1 -0
  82. package/dist/commands/publish.d.ts +4 -0
  83. package/dist/commands/publish.d.ts.map +1 -0
  84. package/dist/commands/publish.js +23 -0
  85. package/dist/commands/publish.js.map +1 -0
  86. package/dist/commands/repl.d.ts +4 -0
  87. package/dist/commands/repl.d.ts.map +1 -0
  88. package/dist/commands/repl.js +56 -0
  89. package/dist/commands/repl.js.map +1 -0
  90. package/dist/commands/revenue.d.ts +4 -0
  91. package/dist/commands/revenue.d.ts.map +1 -0
  92. package/dist/commands/revenue.js +11 -0
  93. package/dist/commands/revenue.js.map +1 -0
  94. package/dist/commands/sell.d.ts +15 -0
  95. package/dist/commands/sell.d.ts.map +1 -0
  96. package/dist/commands/sell.js +49 -0
  97. package/dist/commands/sell.js.map +1 -0
  98. package/dist/commands/stats.d.ts +4 -0
  99. package/dist/commands/stats.d.ts.map +1 -0
  100. package/dist/commands/stats.js +11 -0
  101. package/dist/commands/stats.js.map +1 -0
  102. package/dist/commands/status.d.ts +4 -0
  103. package/dist/commands/status.d.ts.map +1 -0
  104. package/dist/commands/status.js +18 -0
  105. package/dist/commands/status.js.map +1 -0
  106. package/dist/commands/subscribe.d.ts +14 -0
  107. package/dist/commands/subscribe.d.ts.map +1 -0
  108. package/dist/commands/subscribe.js +33 -0
  109. package/dist/commands/subscribe.js.map +1 -0
  110. package/dist/commands/tail.d.ts +4 -0
  111. package/dist/commands/tail.d.ts.map +1 -0
  112. package/dist/commands/tail.js +51 -0
  113. package/dist/commands/tail.js.map +1 -0
  114. package/dist/commands/warn.d.ts.map +1 -1
  115. package/dist/commands/warn.js +6 -6
  116. package/dist/commands/warn.js.map +1 -1
  117. package/dist/index.js +70 -1
  118. package/dist/index.js.map +1 -1
  119. package/dist/lib/args.d.ts +1 -0
  120. package/dist/lib/args.d.ts.map +1 -1
  121. package/dist/lib/args.js +3 -0
  122. package/dist/lib/args.js.map +1 -1
  123. package/dist/lib/output.d.ts +5 -0
  124. package/dist/lib/output.d.ts.map +1 -0
  125. package/dist/lib/output.js +32 -0
  126. package/dist/lib/output.js.map +1 -0
  127. package/dist/lib/sdk.d.ts +10 -0
  128. package/dist/lib/sdk.d.ts.map +1 -0
  129. package/dist/lib/sdk.js +22 -0
  130. package/dist/lib/sdk.js.map +1 -0
  131. package/dist/utils/installation-setup.d.ts +15 -0
  132. package/dist/utils/installation-setup.d.ts.map +1 -1
  133. package/dist/utils/installation-setup.js +63 -0
  134. package/dist/utils/installation-setup.js.map +1 -1
  135. package/package.json +3 -18
  136. package/.claude/agents/TROUBLESHOOTING.md +0 -530
  137. package/.claude/agents/agent-backend.md +0 -574
  138. package/.claude/agents/agent-builder.md +0 -911
  139. package/.claude/agents/agent-claude.md +0 -645
  140. package/.claude/agents/agent-clean.md +0 -477
  141. package/.claude/agents/agent-clone.md +0 -554
  142. package/.claude/agents/agent-designer.md +0 -1080
  143. package/.claude/agents/agent-director.md +0 -2254
  144. package/.claude/agents/agent-documenter.md +0 -688
  145. package/.claude/agents/agent-frontend.md +0 -1199
  146. package/.claude/agents/agent-integrator.md +0 -670
  147. package/.claude/agents/agent-lawyer.md +0 -1320
  148. package/.claude/agents/agent-news.md +0 -363
  149. package/.claude/agents/agent-onboard.md +0 -613
  150. package/.claude/agents/agent-ontology.md +0 -585
  151. package/.claude/agents/agent-ops.md +0 -1275
  152. package/.claude/agents/agent-problem-solver.md +0 -669
  153. package/.claude/agents/agent-quality.md +0 -1042
  154. package/.claude/agents/agent-sales.md +0 -507
  155. package/.claude/agents/agent-writer.md +0 -1068
  156. package/.claude/commands/cascade.md +0 -742
  157. package/.claude/commands/chat.md +0 -728
  158. package/.claude/commands/commit.md +0 -95
  159. package/.claude/commands/create.md +0 -544
  160. package/.claude/commands/deploy.md +0 -309
  161. package/.claude/commands/fast.md +0 -636
  162. package/.claude/commands/mcp-on.md +0 -191
  163. package/.claude/commands/media-upload.md +0 -186
  164. package/.claude/commands/news.md +0 -274
  165. package/.claude/commands/onboard.md +0 -440
  166. package/.claude/commands/one.md +0 -398
  167. package/.claude/commands/optimize.md +0 -74
  168. package/.claude/commands/plan.md +0 -719
  169. package/.claude/commands/push.md +0 -214
  170. package/.claude/commands/release.md +0 -105
  171. package/.claude/commands/review.md +0 -99
  172. package/.claude/commands/server.md +0 -487
  173. package/.claude/commands/start.md +0 -227
  174. package/.claude/commands/test.md +0 -197
  175. package/.claude/commands/validate.md +0 -140
  176. package/.claude/hooks/.last-news-context +0 -1
  177. package/.claude/hooks/PULL-BEFORE-PUSH-GUIDE.md +0 -473
  178. package/.claude/hooks/README-knowledge-hooks.md +0 -451
  179. package/.claude/hooks/README-news-generation.md +0 -364
  180. package/.claude/hooks/README-root-cleanup.md +0 -200
  181. package/.claude/hooks/README.md +0 -284
  182. package/.claude/hooks/__pycache__/todo.cpython-312.pyc +0 -0
  183. package/.claude/hooks/__pycache__/todo.cpython-313.pyc +0 -0
  184. package/.claude/hooks/auto-format.sh +0 -106
  185. package/.claude/hooks/check-filenames.py +0 -177
  186. package/.claude/hooks/clean-post.py +0 -468
  187. package/.claude/hooks/clean-pre.py +0 -393
  188. package/.claude/hooks/clean-root-markdown.sh +0 -73
  189. package/.claude/hooks/commit-push.sh +0 -95
  190. package/.claude/hooks/done.py +0 -236
  191. package/.claude/hooks/format-hook.sh +0 -163
  192. package/.claude/hooks/formatting.py +0 -187
  193. package/.claude/hooks/hook-logger.sh +0 -173
  194. package/.claude/hooks/knowledge-post.py +0 -355
  195. package/.claude/hooks/knowledge-pre.py +0 -245
  196. package/.claude/hooks/mcp-on.sh +0 -134
  197. package/.claude/hooks/notification-hook.sh +0 -279
  198. package/.claude/hooks/ontology-validation.py +0 -255
  199. package/.claude/hooks/push.sh +0 -153
  200. package/.claude/hooks/release-cli.sh +0 -205
  201. package/.claude/hooks/root-cleanup.py +0 -217
  202. package/.claude/hooks/security-hook.sh +0 -397
  203. package/.claude/hooks/tag-all-docs.py +0 -464
  204. package/.claude/hooks/test-validate-ontology.sh +0 -170
  205. package/.claude/hooks/todo.py +0 -368
  206. package/.claude/hooks/track-changes.sh +0 -101
  207. package/.claude/hooks/validate-imports.py +0 -182
  208. package/.claude/hooks/validate-ontology-structure-summary.md +0 -243
  209. package/.claude/hooks/validate-ontology-structure.py +0 -558
  210. package/.claude/hooks/validate-ontology-structure.py.backup +0 -518
  211. package/.claude/hooks/validate-ontology.py +0 -140
  212. package/.claude/hooks/write-news.sh +0 -194
  213. package/.claude/skills/INDEX.md +0 -523
  214. package/.claude/skills/REGISTRY.md +0 -529
  215. package/.claude/skills/agent-backend-create-mutation.md +0 -319
  216. package/.claude/skills/agent-designer-create-wireframe.md +0 -341
  217. package/.claude/skills/agent-frontend-create-page.md +0 -413
  218. package/.claude/skills/agents/README.md +0 -238
  219. package/.claude/skills/astro/add-content-collection.md +0 -30
  220. package/.claude/skills/astro/check-build.md +0 -29
  221. package/.claude/skills/astro/create-component.md +0 -29
  222. package/.claude/skills/astro/create-page.md +0 -30
  223. package/.claude/skills/astro/optimize-performance.md +0 -21
  224. package/.claude/skills/convex/check-deployment.md +0 -46
  225. package/.claude/skills/convex/create-mutation.md +0 -405
  226. package/.claude/skills/convex/create-query.md +0 -52
  227. package/.claude/skills/convex/read-schema.md +0 -373
  228. package/.claude/skills/convex/test-function.md +0 -50
  229. package/.claude/skills/deployment/check-deployment-health.md +0 -20
  230. package/.claude/skills/deployment/create-release.md +0 -21
  231. package/.claude/skills/deployment/deploy-cloudflare.md +0 -31
  232. package/.claude/skills/deployment/deploy-convex.md +0 -30
  233. package/.claude/skills/deployment/sync-repositories.md +0 -19
  234. package/.claude/skills/design/check-accessibility.md +0 -21
  235. package/.claude/skills/design/create-component-spec.md +0 -27
  236. package/.claude/skills/design/generate-design-tokens.md +0 -24
  237. package/.claude/skills/design/generate-wireframe.md +0 -30
  238. package/.claude/skills/documentation/create-migration-guide.md +0 -20
  239. package/.claude/skills/documentation/generate-api-docs.md +0 -27
  240. package/.claude/skills/documentation/generate-readme.md +0 -22
  241. package/.claude/skills/documentation/update-knowledge.md +0 -20
  242. package/.claude/skills/integration/connect-external-system.md +0 -21
  243. package/.claude/skills/integration/implement-a2a.md +0 -20
  244. package/.claude/skills/integration/implement-acp.md +0 -20
  245. package/.claude/skills/integration/verify-integration.md +0 -20
  246. package/.claude/skills/ontology/README.md +0 -255
  247. package/.claude/skills/ontology/check-dimension.md +0 -307
  248. package/.claude/skills/ontology/generate-entity-type.md +0 -339
  249. package/.claude/skills/ontology/validate-schema.md +0 -229
  250. package/.claude/skills/ontology/verify-relationships.md +0 -310
  251. package/.claude/skills/problem-solving/analyze-test-failure.md +0 -21
  252. package/.claude/skills/problem-solving/identify-root-cause.md +0 -20
  253. package/.claude/skills/problem-solving/propose-solution.md +0 -29
  254. package/.claude/skills/problem-solving/verify-fix.md +0 -21
  255. package/.claude/skills/sales/generate-demo-script.md +0 -21
  256. package/.claude/skills/sales/qualify-lead.md +0 -30
  257. package/.claude/skills/sales/track-trial.md +0 -20
  258. package/.claude/skills/sales/verify-kyc.md +0 -20
  259. package/.claude/skills/testing/analyze-coverage.md +0 -24
  260. package/.claude/skills/testing/generate-tests.md +0 -24
  261. package/.claude/skills/testing/run-tests.md +0 -27
  262. package/.claude/skills/testing/validate-e2e.md +0 -25
  263. package/AGENTS.md +0 -60
  264. package/CLAUDE.md +0 -130
  265. package/CREATE-WEBSITE.md +0 -458
  266. package/SECURITY.md +0 -31
  267. package/folders.yaml +0 -92
  268. package/one/README.md +0 -760
  269. package/one/actors/anthony-o-connell.md +0 -469
  270. package/one/actors/people.md +0 -590
  271. package/one/events/0-changes.md +0 -2764
  272. package/one/events/1-PROJECTS-START-HERE.md +0 -384
  273. package/one/events/1-projects-developer-quickstart.md +0 -620
  274. package/one/events/1-projects-feature.md +0 -2047
  275. package/one/events/1-projects-team-briefing.md +0 -583
  276. package/one/events/2024-10-14-deployment-plan.md +0 -330
  277. package/one/events/2024-10-14-deployment-success.md +0 -447
  278. package/one/events/2024-10-14-final-sync-complete.md +0 -250
  279. package/one/events/2024-10-14-release-v2.0.6.md +0 -414
  280. package/one/events/2024-10-15-agent-clean-v2-summary.md +0 -495
  281. package/one/events/2024-10-15-handoff-to-clean.md +0 -347
  282. package/one/events/2024-10-15-package-manager-tests.md +0 -442
  283. package/one/events/2024-10-15-release-command-complete.md +0 -416
  284. package/one/events/2025-10-15-private-files-secured.md +0 -359
  285. package/one/events/2025-10-15-unignore-public-group-docs.md +0 -298
  286. package/one/events/2025-11-08-backend-claude-refactor.md +0 -242
  287. package/one/events/2025-11-08-parallel-agent-implementation.md +0 -620
  288. package/one/events/2025-11-10-ai-integration-status-report.md +0 -241
  289. package/one/events/ACCESSIBILITY_CHECKLIST.md +0 -275
  290. package/one/events/ACCESSIBILITY_FIXES_SUMMARY.md +0 -293
  291. package/one/events/ALIGNMENT_REPORT_PROBLEM_SOLVER.md +0 -335
  292. package/one/events/ALIGNMENT_SUMMARY.md +0 -280
  293. package/one/events/API_ROUTES_FIXES_SUMMARY.md +0 -280
  294. package/one/events/ASTRO-INTEGRATION-EXAMPLES.md +0 -654
  295. package/one/events/AUDIT-ONTOLOGY-ALIGNMENT.md +0 -598
  296. package/one/events/AUDIT_PLAN_COMPLETION-20251108-125555.md +0 -262
  297. package/one/events/BEFORE_AFTER_COMPARISON.md +0 -978
  298. package/one/events/CART-DRAWER-INTEGRATION-GUIDE.md +0 -372
  299. package/one/events/CASCADE-2-BACKEND-AGNOSTIC.md +0 -430
  300. package/one/events/CHARTS-READY-TO-USE-20251106-080939.md +0 -184
  301. package/one/events/CHARTS-SUMMARY-20251106-080938.md +0 -196
  302. package/one/events/CLAUDE copy.md +0 -897
  303. package/one/events/CLEANUP-RELEASE-V2.0.8.md +0 -308
  304. package/one/events/CLOUDFLARE-FS-FIX-20251106-100516.md +0 -75
  305. package/one/events/COMPONENT_SHOWCASE-20251106-080938.md +0 -629
  306. package/one/events/CONNECTIONS_DEMO.md +0 -519
  307. package/one/events/CREATE-WEBSITE.md +0 -460
  308. package/one/events/CRITICAL-FIXES-COMPLETE.md +0 -571
  309. package/one/events/CUSTOM-DOMAIN.md +0 -375
  310. package/one/events/DELIVERABLES.md +0 -450
  311. package/one/events/DELIVERABLES.txt +0 -273
  312. package/one/events/DEMO-GROUPS-PAGE.md +0 -410
  313. package/one/events/DEMO-TESTING-SUMMARY.md +0 -536
  314. package/one/events/DEMO_COMPONENTS.md +0 -505
  315. package/one/events/DEMO_HOOKS_INDEX.md +0 -352
  316. package/one/events/DEMO_INFRASTRUCTURE.md +0 -923
  317. package/one/events/DEMO_INFRASTRUCTURE_SUMMARY.md +0 -588
  318. package/one/events/DEMO_INTEGRATION_CHECKLIST.md +0 -449
  319. package/one/events/DEMO_QUICK_REFERENCE.md +0 -459
  320. package/one/events/DEMO_SETUP.md +0 -494
  321. package/one/events/DEPLOYMENT copy.md +0 -444
  322. package/one/events/DEPLOYMENT.md +0 -196
  323. package/one/events/DESIGN-DELIVERABLES-20251106-080938.md +0 -557
  324. package/one/events/DESIGN-EXECUTIVE-SUMMARY-20251106-080938.md +0 -484
  325. package/one/events/DOCS-SYSTEM-GUIDE-20251105-142103.md +0 -458
  326. package/one/events/DOCUMENTER-DELIVERY-SUMMARY.md +0 -481
  327. package/one/events/DOCUMENTER-EXECUTION-GUIDE.md +0 -394
  328. package/one/events/DOCUMENTER-TASK-BREAKDOWN.md +0 -783
  329. package/one/events/ECOMMERCE-BEFORE-AFTER.md +0 -267
  330. package/one/events/ECOMMERCE-DEMO-PLAN.md +0 -243
  331. package/one/events/ECOMMERCE-ENHANCEMENTS.md +0 -594
  332. package/one/events/ECOMMERCE-HIGH-CONVERTING-ELEMENTS.md +0 -439
  333. package/one/events/ECOMMERCE-LIVE-DEMO.md +0 -381
  334. package/one/events/ECOMMERCE-QUICKSTART.md +0 -376
  335. package/one/events/ECOMMERCE-README.md +0 -354
  336. package/one/events/ECOMMERCE-REFACTOR-SUMMARY.md +0 -214
  337. package/one/events/ECOMMERCE-SETUP-SUMMARY.md +0 -414
  338. package/one/events/ECOMMERCE-TEMPLATE-COMPLETE.md +0 -753
  339. package/one/events/ECOMMERCE-TEMPLATES-SUMMARY.md +0 -941
  340. package/one/events/EFFECT_TS_API_PATTERN.md +0 -496
  341. package/one/events/EXECUTION-READY.md +0 -359
  342. package/one/events/EXECUTION-SUMMARY.md +0 -478
  343. package/one/events/FEATURE-2-4-COMPLETE.md +0 -320
  344. package/one/events/FEATURE_2_3_COMPLETE.md +0 -593
  345. package/one/events/FILE-REFERENCE-20251105-142103.md +0 -325
  346. package/one/events/GRADIENT-TEXT-PERMANENT-FIX.md +0 -241
  347. package/one/events/GROUPS-MIGRATION.md +0 -643
  348. package/one/events/GROUPS_DEMO_IMPLEMENTATION.md +0 -432
  349. package/one/events/HANDOFF.md +0 -331
  350. package/one/events/HOOKS-DEMO.md +0 -459
  351. package/one/events/IMPLEMENTATION-CHECKLIST-20251105-142103.md +0 -274
  352. package/one/events/IMPLEMENTATION-REPORT-DOCS-20251105-142102.md +0 -394
  353. package/one/events/IMPLEMENTATION-SUMMARY-FINAL.md +0 -568
  354. package/one/events/IMPLEMENTATION_SUMMARY-20251106-080938.md +0 -571
  355. package/one/events/IMPLEMENTATION_SUMMARY.md +0 -547
  356. package/one/events/INDEX-ALL-AGENTS.md +0 -190
  357. package/one/events/INDEX-FRONTEND-TESTING.md +0 -524
  358. package/one/events/INDEX-PROBLEM-SOLVER.md +0 -488
  359. package/one/events/INDEX-QUALITY-AGENT-INFER65.md +0 -455
  360. package/one/events/INDEX.md +0 -295
  361. package/one/events/INDEX_QUICK_START_REDESIGN-20251106-080939.md +0 -342
  362. package/one/events/INSTALL-TESTS.md +0 -311
  363. package/one/events/INSTALLATION_FOLDERS.md +0 -534
  364. package/one/events/INSTALLATION_FOLDERS_FILES.md +0 -223
  365. package/one/events/INSTALLATION_FOLDERS_SUMMARY.md +0 -437
  366. package/one/events/INTEGRATION-ARCHITECTURE.md +0 -579
  367. package/one/events/INTEGRATION-CHECKLIST.md +0 -1252
  368. package/one/events/INTEGRATION-ORCHESTRATION.md +0 -2641
  369. package/one/events/INTEGRATION-SUMMARY.md +0 -671
  370. package/one/events/LANDING-PAGE-EXAMPLE-OUTPUT.md +0 -684
  371. package/one/events/LANDING-PAGE-IMPLEMENTATION.md +0 -660
  372. package/one/events/LANDING-PAGE-QUICKSTART.md +0 -425
  373. package/one/events/LICENSE.md +0 -107
  374. package/one/events/MASTER-COORDINATION-PLAN.md +0 -613
  375. package/one/events/MASTER-ORCHESTRATION-INFER65.md +0 -441
  376. package/one/events/MASTER-PLAN-SUMMARY.md +0 -309
  377. package/one/events/MCP-CONFIGURATION.md +0 -354
  378. package/one/events/MCP-SETUP-COMPLETE.md +0 -223
  379. package/one/events/MIGRATION-REPORT.md +0 -453
  380. package/one/events/MIGRATION.md +0 -87
  381. package/one/events/MULTI-ONTOLOGY-COMPLETE-GUIDE.md +0 -1663
  382. package/one/events/MULTI-ONTOLOGY-IMPLEMENTATION-COMPLETE.md +0 -643
  383. package/one/events/NEWS-COMMANDS.md +0 -506
  384. package/one/events/NEWS-SYSTEM-SUMMARY.md +0 -480
  385. package/one/events/NODE-UPGRADE.md +0 -129
  386. package/one/events/ONBOARDING-IMPLEMENTATION-COMPLETE copy.md +0 -416
  387. package/one/events/ONTOLOGY-HOOKS-README.md +0 -718
  388. package/one/events/ONTOLOGY-INTEGRATION-MANIFEST.md +0 -383
  389. package/one/events/ONTOLOGY-TUTORIALS-SUMMARY.md +0 -569
  390. package/one/events/ONTOLOGY-TYPE-GENERATOR-SUMMARY.md +0 -491
  391. package/one/events/ONTOLOGY_DISCOVERY_IMPLEMENTATION.md +0 -504
  392. package/one/events/ONTOLOGY_DISCOVERY_QUICKSTART.md +0 -221
  393. package/one/events/PACKAGE-STRUCTURE.md +0 -328
  394. package/one/events/PLAN-COMPLETE.md +0 -429
  395. package/one/events/PLAYBOOK-SETUP-SUMMARY.md +0 -349
  396. package/one/events/PROBLEM-SOLVER-EXECUTIVE-SUMMARY.md +0 -484
  397. package/one/events/PROBLEM-SOLVER-QUICKSTART.md +0 -420
  398. package/one/events/PROJECTS-PLAN-SUMMARY.md +0 -480
  399. package/one/events/PROMPT_FIX_FRONTEND_ONLY.md +0 -585
  400. package/one/events/QA-CHECKLIST.md +0 -692
  401. package/one/events/QUALITY-AGENT-SUMMARY.md +0 -334
  402. package/one/events/QUALITY-EXECUTION-CHECKLIST.md +0 -593
  403. package/one/events/QUICK-REFERENCE-FRONTEND-TESTING.md +0 -475
  404. package/one/events/QUICK-START-ONTOLOGY.md +0 -426
  405. package/one/events/QUICK_START_REDESIGN-20251106-080938.md +0 -400
  406. package/one/events/README-PROBLEM-SOLVER.md +0 -394
  407. package/one/events/README-archived.md +0 -537
  408. package/one/events/README_QUICK_START_REDESIGN-20251106-080938.md +0 -484
  409. package/one/events/SEARCH_DEMO_CODE_REFERENCE.md +0 -657
  410. package/one/events/SEARCH_DEMO_DELIVERY.md +0 -433
  411. package/one/events/SEARCH_DEMO_SUMMARY.md +0 -321
  412. package/one/events/SEARCH_DEMO_VISUAL_GUIDE.md +0 -399
  413. package/one/events/SECURITY-AUDIT-FIXES.md +0 -394
  414. package/one/events/SECURITY-SCAN-COMPLETE.md +0 -299
  415. package/one/events/SHOP-BUILD-STATUS.md +0 -132
  416. package/one/events/SHOP-PREMIUM-UPDATE.md +0 -165
  417. package/one/events/SIMPLE_FIX_FRONTEND_ONLY.md +0 -280
  418. package/one/events/SITE-WIDE-GRADIENT-FIX.md +0 -317
  419. package/one/events/SPECIALIST-QUICK-REFERENCE.md +0 -678
  420. package/one/events/STORE-PRODUCTION-READY-STATUS.md +0 -377
  421. package/one/events/STRIPE-INTEGRATION.md +0 -432
  422. package/one/events/STRIPE-PAYMENT-METHODS-GUIDE.md +0 -447
  423. package/one/events/STRIPE-SETUP-GUIDE.md +0 -480
  424. package/one/events/TEST-PLAN-INDEX.md +0 -364
  425. package/one/events/TEST-PLAN.md +0 -1435
  426. package/one/events/TEST-SUMMARY.md +0 -411
  427. package/one/events/TESTING-DELIVERY.txt +0 -372
  428. package/one/events/TESTS-QUICK-REF.md +0 -280
  429. package/one/events/TRANSITIONS-QUICK-START.md +0 -159
  430. package/one/events/TRANSPARENCY-FIXES.md +0 -293
  431. package/one/events/TYPESCRIPT_FIXES.md +0 -170
  432. package/one/events/TYPESCRIPT_FIXES_COMPLETE.txt +0 -412
  433. package/one/events/TYPESCRIPT_FIXES_INDEX.md +0 -359
  434. package/one/events/VERIFICATION_CHECKLIST-20251106-080938.md +0 -326
  435. package/one/events/VIEW-TRANSITIONS.md +0 -446
  436. package/one/events/agent-command-implementation.md +0 -305
  437. package/one/events/agent-director-enhancement-summary.md +0 -404
  438. package/one/events/agent-director-routing-update.md +0 -214
  439. package/one/events/agent-onboard-implementation-summary.md +0 -475
  440. package/one/events/agent-ontology-alignment-completion.md +0 -263
  441. package/one/events/ai-integration-complete.md +0 -294
  442. package/one/events/ai-integration-lessons-learned.md +0 -511
  443. package/one/events/backend-integration-tests.md +0 -624
  444. package/one/events/backend-structure-diagram.txt +0 -393
  445. package/one/events/backend-structure-summary.txt +0 -269
  446. package/one/events/bullfm-video-podcast-analysis.md +0 -319
  447. package/one/events/clean-agent-ontology-cleanup-report.md +0 -371
  448. package/one/events/clean-agent-todo-analysis-summary.md +0 -336
  449. package/one/events/cloudflare-automation-complete.md +0 -350
  450. package/one/events/cloudflare-pages-infrastructure-setup.md +0 -282
  451. package/one/events/contact-page-complete.md +0 -316
  452. package/one/events/convex-analysis-index.md +0 -322
  453. package/one/events/convex-structure-analysis.md +0 -718
  454. package/one/events/creation-instructions-9-todos.md +0 -906
  455. package/one/events/cycle-3-video-player-port-20251108.md +0 -368
  456. package/one/events/cycle-3-video-player-port-complete-20251108.md +0 -334
  457. package/one/events/deployment-installation-folders.md +0 -178
  458. package/one/events/deployment-ops-summary.md +0 -386
  459. package/one/events/deployment-verification.md +0 -366
  460. package/one/events/design-spec-complete.md +0 -226
  461. package/one/events/documentation-audit-index.md +0 -473
  462. package/one/events/documentation-audit-summary.md +0 -417
  463. package/one/events/documentation-improvement-roadmap.md +0 -906
  464. package/one/events/documentation-standards-compliance-report.md +0 -538
  465. package/one/events/documentation-updates.md +0 -370
  466. package/one/events/events.md +0 -563
  467. package/one/events/fix-product-hydration-20251106.md +0 -211
  468. package/one/events/frontend-effects-complete.md +0 -584
  469. package/one/events/frontend-effects-orchestration.md +0 -1356
  470. package/one/events/frontend-effects-risk-register.md +0 -1055
  471. package/one/events/frontend-effects-week1-assignments.md +0 -1594
  472. package/one/events/hook-ontology-alignment-summary.md +0 -528
  473. package/one/events/installation-folders-workflow-integration.md +0 -458
  474. package/one/events/landing-page-generator.md +0 -476
  475. package/one/events/legal-assessment-2025-10-16.md +0 -1917
  476. package/one/events/master-coordination-plan.json +0 -1078
  477. package/one/events/master-plan-9-todos.md +0 -900
  478. package/one/events/mobile-performance-optimization.md +0 -179
  479. package/one/events/onboarding-implementation-complete.md +0 -523
  480. package/one/events/ontology-audit-agent-clone.md +0 -323
  481. package/one/events/ontology-test-examples.md +0 -580
  482. package/one/events/phase1-backend-implementation-complete.md +0 -536
  483. package/one/events/plan-completion-audit.md +0 -707
  484. package/one/events/plan-files-updated.md +0 -273
  485. package/one/events/production-readiness-plan.md +0 -389
  486. package/one/events/readme.md +0 -100
  487. package/one/events/release.md +0 -272
  488. package/one/events/root-cleanup-alignment-report.md +0 -265
  489. package/one/events/security-fixes-2025-01-15.md +0 -226
  490. package/one/events/separate-implementation-status.md +0 -555
  491. package/one/events/server-command-optimization-20251108.md +0 -150
  492. package/one/events/session-summary-2025-10-18.md +0 -366
  493. package/one/events/skills-complete.md +0 -351
  494. package/one/events/skills-infer-6-10-summary.md +0 -70
  495. package/one/events/skills-phase1-complete.md +0 -281
  496. package/one/events/specialist-assignments.md +0 -766
  497. package/one/events/structural-analysis-architecture-vs-plans.md +0 -600
  498. package/one/events/test-dashboard.md +0 -363
  499. package/one/events/test-index.md +0 -421
  500. package/one/events/test-report-ontology.md +0 -611
  501. package/one/events/testing-summary.md +0 -388
  502. package/one/events/todo-agent-builder.md +0 -1180
  503. package/one/events/todo-agent-director.md +0 -164
  504. package/one/events/todo-agent-documenter.md +0 -1815
  505. package/one/events/todo-agent-frontend.md +0 -1542
  506. package/one/events/todo-agent-problem-solver.md +0 -1682
  507. package/one/events/todo-agent-quality.md +0 -1647
  508. package/one/events/todo-refactoring-complete.md +0 -408
  509. package/one/events/wave1-backend-implementation-complete.md +0 -698
  510. package/one/events/web-AI_INTEGRATION_PHASE2_SUMMARY-20251111-152540.md +0 -529
  511. package/one/events/web-BUY-IN-CHATGPT-README-20251116-235241.md +0 -491
  512. package/one/events/web-CHARTS-IMPLEMENTATION-20251106-080939.md +0 -576
  513. package/one/events/web-CHARTS-QUICKSTART-20251106-080939.md +0 -416
  514. package/one/events/web-CODE-HIGHLIGHTING-SUMMARY-20251111-152540.md +0 -442
  515. package/one/events/web-DEPLOYMENT_SUMMARY-20251116-005428.md +0 -290
  516. package/one/events/web-DESIGN-SUMMARY-20251106-080939.md +0 -514
  517. package/one/events/web-README-AI-INTEGRATION-20251111-152540.md +0 -196
  518. package/one/events/web-RECHARTS-INTEGRATION-20251111-152540.md +0 -265
  519. package/one/events/web-RELEASE_OPTIMIZATION_PLAN-20251116-005428.md +0 -447
  520. package/one/events/web-TEST-CLEANUP-20251105-143205.md +0 -3
  521. package/one/events/web-USING-ANY-COMPONENT-IN-CHAT-20251111-152540.md +0 -561
  522. package/one/events/web-test-code-highlighting-20251111-152540.md +0 -231
  523. package/one/groups/features.md +0 -2904
  524. package/one/groups/groups.md +0 -587
  525. package/one/groups/one.md +0 -619
  526. package/one/groups/strategy-copy.md +0 -887
  527. package/one/learning/.obsidian/app.json +0 -1
  528. package/one/learning/.obsidian/appearance.json +0 -1
  529. package/one/learning/.obsidian/core-plugins.json +0 -33
  530. package/one/learning/.obsidian/ecommerce-ontology.md +0 -210
  531. package/one/learning/.obsidian/workspace.json +0 -211
  532. package/one/learning/100-inference-quick-reference.md +0 -449
  533. package/one/learning/ag-ui-protocol.md +0 -613
  534. package/one/learning/agent-onboard-usage.md +0 -630
  535. package/one/learning/agentic-commerce.md +0 -146
  536. package/one/learning/ai-agents-vs-memecoins-thesis.md +0 -683
  537. package/one/learning/ai-api-reference.md +0 -715
  538. package/one/learning/ai-platform.md +0 -323
  539. package/one/learning/ai-quickstart.md +0 -355
  540. package/one/learning/ai-sdk-implementation.md +0 -436
  541. package/one/learning/ai-token-crypto-analysis-framework.md +0 -1191
  542. package/one/learning/ai-token-paradigm-shift-2025.md +0 -732
  543. package/one/learning/altcoin-cycle-prediction-ontology.md +0 -884
  544. package/one/learning/altcoin-cycle-trading-strategy.md +0 -642
  545. package/one/learning/architecture-any-backend.md +0 -1589
  546. package/one/learning/architecture-diagram.md +0 -404
  547. package/one/learning/architecture-frontend.md +0 -1014
  548. package/one/learning/architecture.md +0 -1742
  549. package/one/learning/archived/ontology.old.md +0 -2840
  550. package/one/learning/astro-effect-complete-vision.md +0 -2148
  551. package/one/learning/astro-effect-simple-architecture.md +0 -750
  552. package/one/learning/audit-agent-onboard-alignment.md +0 -481
  553. package/one/learning/audit-agent-sales-alignment.md +0 -444
  554. package/one/learning/backend-api-reference.md +0 -728
  555. package/one/learning/cascading-context-specification.md +0 -1617
  556. package/one/learning/claude-code-integration.md +0 -1293
  557. package/one/learning/cli-claude-handoff.md +0 -736
  558. package/one/learning/context-engineering.md +0 -610
  559. package/one/learning/crypto-analysis-strategy.md +0 -1276
  560. package/one/learning/crypto-cycle-2024-2025-analysis.md +0 -44
  561. package/one/learning/crypto.md +0 -978
  562. package/one/learning/develop/design.md +0 -364
  563. package/one/learning/develop/index.md +0 -145
  564. package/one/learning/development-commands.md +0 -251
  565. package/one/learning/docs.md +0 -627
  566. package/one/learning/dsl.md +0 -1678
  567. package/one/learning/event-driven-documentation.md +0 -270
  568. package/one/learning/files.md +0 -2489
  569. package/one/learning/frontend.md +0 -1056
  570. package/one/learning/games-english.md +0 -691
  571. package/one/learning/games.md +0 -1082
  572. package/one/learning/generative-ui-patterns.md +0 -559
  573. package/one/learning/guidelines.md +0 -314
  574. package/one/learning/hono.md +0 -2127
  575. package/one/learning/implementation-examples.md +0 -2554
  576. package/one/learning/installation-folders.md +0 -366
  577. package/one/learning/institutional-cycle-paradigm-2025.md +0 -555
  578. package/one/learning/knowledge.md +0 -660
  579. package/one/learning/language.md +0 -998
  580. package/one/learning/lessons-learned.md +0 -378
  581. package/one/learning/lessons-website-building-focus.md +0 -382
  582. package/one/learning/merge-report.md +0 -254
  583. package/one/learning/metadata-system.md +0 -504
  584. package/one/learning/nine-padel-playbook.md +0 -229
  585. package/one/learning/one-protocol-ai-agents.md +0 -892
  586. package/one/learning/one-protocol-executive-report.md +0 -617
  587. package/one/learning/one-protocol-standard.md +0 -869
  588. package/one/learning/one-protocol-whitepaper.md +0 -756
  589. package/one/learning/ontology-blog.yaml +0 -47
  590. package/one/learning/ontology-cheatsheet.md +0 -617
  591. package/one/learning/ontology-community.yaml +0 -65
  592. package/one/learning/ontology-core-universal.md +0 -740
  593. package/one/learning/ontology-core.yaml +0 -63
  594. package/one/learning/ontology-courses.yaml +0 -76
  595. package/one/learning/ontology-creator.md +0 -402
  596. package/one/learning/ontology-crypto.md +0 -1603
  597. package/one/learning/ontology-developer-guide.md +0 -814
  598. package/one/learning/ontology-documentation.md +0 -377
  599. package/one/learning/ontology-ecommerce.md +0 -269
  600. package/one/learning/ontology-education-game.md +0 -1654
  601. package/one/learning/ontology-education.md +0 -938
  602. package/one/learning/ontology-engineering-specification.md +0 -1310
  603. package/one/learning/ontology-engineering.md +0 -1676
  604. package/one/learning/ontology-files.yaml +0 -525
  605. package/one/learning/ontology-frontend-master.md +0 -2898
  606. package/one/learning/ontology-frontend-specifications.md +0 -2196
  607. package/one/learning/ontology-frontend.md +0 -2475
  608. package/one/learning/ontology-index.md +0 -397
  609. package/one/learning/ontology-minimal.yaml +0 -301
  610. package/one/learning/ontology-portfolio.yaml +0 -45
  611. package/one/learning/ontology-quickstart.md +0 -602
  612. package/one/learning/ontology-release.md +0 -317
  613. package/one/learning/ontology-shop.yaml +0 -148
  614. package/one/learning/ontology-tokens.yaml +0 -51
  615. package/one/learning/ontology-tutorial.md +0 -455
  616. package/one/learning/ontology-v2.md +0 -4449
  617. package/one/learning/ontology-video-script.md +0 -939
  618. package/one/learning/ontology-visual-guide.md +0 -378
  619. package/one/learning/ontology.md +0 -3847
  620. package/one/learning/ontology.yaml +0 -1653
  621. package/one/learning/parallel-agents.md +0 -932
  622. package/one/learning/patterns/backend/convex-mutation-pattern.md +0 -130
  623. package/one/learning/patterns/backend/convex-query-pattern.md +0 -143
  624. package/one/learning/patterns/backend/mutation-template.md +0 -249
  625. package/one/learning/patterns/backend/query-template.md +0 -286
  626. package/one/learning/patterns/backend/service-template.md +0 -258
  627. package/one/learning/patterns/design/component-architecture.md +0 -435
  628. package/one/learning/patterns/design/index.md +0 -160
  629. package/one/learning/patterns/design/test-driven-design-pattern.md +0 -196
  630. package/one/learning/patterns/design/wireframe-template.md +0 -250
  631. package/one/learning/patterns/frontend/component-template.md +0 -246
  632. package/one/learning/patterns/frontend/form-template.md +0 -348
  633. package/one/learning/patterns/frontend/page-template.md +0 -209
  634. package/one/learning/patterns/frontend/react-component-pattern.md +0 -188
  635. package/one/learning/patterns/test/acceptance-criteria-template.md +0 -396
  636. package/one/learning/patterns/test/technical-test-template.md +0 -566
  637. package/one/learning/patterns/test/test-driven-pattern.md +0 -160
  638. package/one/learning/patterns/test/user-flow-template.md +0 -272
  639. package/one/learning/performance.md +0 -459
  640. package/one/learning/provider-agnostic-content.md +0 -995
  641. package/one/learning/provider-creation-guide.md +0 -1082
  642. package/one/learning/quality-loop.md +0 -419
  643. package/one/learning/quick-start-ontology-mapping.md +0 -773
  644. package/one/learning/readme-architecture.md +0 -158
  645. package/one/learning/readme.md +0 -149
  646. package/one/learning/rules.md +0 -644
  647. package/one/learning/score.md +0 -85
  648. package/one/learning/specifications.md +0 -873
  649. package/one/learning/tags.md +0 -148
  650. package/one/learning/todo-template.md +0 -269
  651. package/one/learning/todo.md +0 -269
  652. package/one/learning/troubleshooting.md +0 -434
  653. package/one/learning/typescript-patterns.md +0 -321
  654. package/one/learning/universal-generation-language.md +0 -827
  655. package/one/learning/x402-research.md +0 -104
  656. package/one/license.md +0 -107
  657. package/one/paths/a2a.md +0 -600
  658. package/one/paths/acp.md +0 -808
  659. package/one/paths/acps.md +0 -749
  660. package/one/paths/agentkit.md +0 -367
  661. package/one/paths/agui.md +0 -785
  662. package/one/paths/any-backend.md +0 -1720
  663. package/one/paths/ap2.md +0 -1072
  664. package/one/paths/api/queries-reference.md +0 -860
  665. package/one/paths/api-docs.md +0 -1909
  666. package/one/paths/api-reference.md +0 -1029
  667. package/one/paths/api.md +0 -2208
  668. package/one/paths/architecture-diagram.md +0 -112
  669. package/one/paths/communications.md +0 -467
  670. package/one/paths/connections.md +0 -357
  671. package/one/paths/copilotkit.md +0 -1577
  672. package/one/paths/cryptonetworks.md +0 -799
  673. package/one/paths/documentation.md +0 -1138
  674. package/one/paths/effect.md +0 -297
  675. package/one/paths/elizaos.md +0 -1308
  676. package/one/paths/groups.md +0 -814
  677. package/one/paths/inference.md +0 -76
  678. package/one/paths/integration-examples.md +0 -893
  679. package/one/paths/integration-guide.md +0 -887
  680. package/one/paths/integration-phase2.md +0 -754
  681. package/one/paths/kyc.md +0 -650
  682. package/one/paths/mcp.md +0 -860
  683. package/one/paths/membership.md +0 -1170
  684. package/one/paths/middleware.md +0 -1085
  685. package/one/paths/multitenant.md +0 -1359
  686. package/one/paths/n8n.md +0 -1033
  687. package/one/paths/patterns.md +0 -107
  688. package/one/paths/protocols.md +0 -297
  689. package/one/paths/relationships.md +0 -125
  690. package/one/paths/schema.md +0 -605
  691. package/one/paths/service-layer.md +0 -568
  692. package/one/paths/vectors.md +0 -225
  693. package/one/paths/wordpress.md +0 -1320
  694. package/one/paths/workflow-copy.md +0 -923
  695. package/one/paths/workflow-examples.md +0 -759
  696. package/one/paths/workflow-onboarding.md +0 -701
  697. package/one/paths/workflow.md +0 -923
  698. package/one/paths/workflows/delegation.md +0 -903
  699. package/one/paths/workflows/frontend.md +0 -1055
  700. package/one/paths/workflows/strategy.md +0 -921
  701. package/one/paths/workflows/tasks.md +0 -716
  702. package/one/paths/x402-baazar.md +0 -131
  703. package/one/paths/x402.md +0 -1353
  704. package/one/things/ALIGNMENT_AUDIT_QUALITY_AGENT.md +0 -401
  705. package/one/things/AUDIT_AGENT_INTEGRATOR_ALIGNMENT.md +0 -588
  706. package/one/things/AUDIT_REPORT_AGENT_CLEAN.md +0 -461
  707. package/one/things/CHECKLIST.md +0 -407
  708. package/one/things/IMPLEMENTATION_STATUS.md +0 -379
  709. package/one/things/ONE.md +0 -529
  710. package/one/things/agents/agent-backend.md +0 -1501
  711. package/one/things/agents/agent-builder.md +0 -1064
  712. package/one/things/agents/agent-clean.md +0 -1112
  713. package/one/things/agents/agent-clone.md +0 -1324
  714. package/one/things/agents/agent-deploy.md +0 -986
  715. package/one/things/agents/agent-designer.md +0 -2305
  716. package/one/things/agents/agent-director.md +0 -1526
  717. package/one/things/agents/agent-documenter.md +0 -1129
  718. package/one/things/agents/agent-frontend.md +0 -1201
  719. package/one/things/agents/agent-integrator.md +0 -1269
  720. package/one/things/agents/agent-lawyer.md +0 -1371
  721. package/one/things/agents/agent-problem-solver.md +0 -1457
  722. package/one/things/agents/agent-quality.md +0 -1483
  723. package/one/things/agents/agent-sales.md +0 -1074
  724. package/one/things/cascade/cascade.yaml +0 -481
  725. package/one/things/cascade/docs/examples/1-1-agent-prompts/design.md +0 -523
  726. package/one/things/cascade/docs/examples/1-1-agent-prompts/tests.md +0 -314
  727. package/one/things/cascade/docs/examples/1-1-agent-prompts.md +0 -562
  728. package/one/things/cascade/docs/examples/1-2-yaml-orchestrator/design.md +0 -543
  729. package/one/things/cascade/docs/examples/1-2-yaml-orchestrator/tests.md +0 -272
  730. package/one/things/cascade/docs/examples/1-2-yaml-orchestrator.md +0 -548
  731. package/one/things/cascade/docs/examples/1-3-event-coordination/design.md +0 -586
  732. package/one/things/cascade/docs/examples/1-3-event-coordination/tests.md +0 -267
  733. package/one/things/cascade/docs/examples/1-3-event-coordination.md +0 -547
  734. package/one/things/cascade/docs/examples/1-4-knowledge-management/design.md +0 -665
  735. package/one/things/cascade/docs/examples/1-4-knowledge-management/tests.md +0 -236
  736. package/one/things/cascade/docs/examples/1-4-knowledge-management.md +0 -652
  737. package/one/things/cascade/docs/examples/1-5-quality-loops/design.md +0 -860
  738. package/one/things/cascade/docs/examples/1-5-quality-loops/tests.md +0 -255
  739. package/one/things/cascade/docs/examples/1-5-quality-loops.md +0 -725
  740. package/one/things/cascade/docs/examples/1-6-numbering-structure/design.md +0 -659
  741. package/one/things/cascade/docs/examples/1-6-numbering-structure/tests.md +0 -256
  742. package/one/things/cascade/docs/examples/1-6-numbering-structure.md +0 -639
  743. package/one/things/cascade/docs/examples/readme.md +0 -259
  744. package/one/things/cascade/docs/getting-started.md +0 -533
  745. package/one/things/cascade/docs/workflow.md +0 -1378
  746. package/one/things/cascade/readme.md +0 -379
  747. package/one/things/cascade/templates/feature-template.md +0 -289
  748. package/one/things/claude/agents/advocacy-activation-manager.md +0 -710
  749. package/one/things/claude/agents/advocacy-campaign-designer.md +0 -688
  750. package/one/things/claude/agents/analyst.md +0 -508
  751. package/one/things/claude/agents/architect.md +0 -505
  752. package/one/things/claude/agents/brand-identity-specialist.md +0 -538
  753. package/one/things/claude/agents/bstp-token-strategist.md +0 -690
  754. package/one/things/claude/agents/builder-repo.md +0 -532
  755. package/one/things/claude/agents/bullstamp-community-builder.md +0 -597
  756. package/one/things/claude/agents/bullstamp-marketing-orchestrator.md +0 -529
  757. package/one/things/claude/agents/bulltilt-platform-growth.md +0 -590
  758. package/one/things/claude/agents/company-bullstamp-character.md +0 -602
  759. package/one/things/claude/agents/company-bullstamp-community.md +0 -307
  760. package/one/things/claude/agents/company-bullstamp-marketing.md +0 -307
  761. package/one/things/claude/agents/company-bullstamp-token.md +0 -307
  762. package/one/things/claude/agents/company-bulltilt-growth.md +0 -307
  763. package/one/things/claude/agents/content-bibliography-formatter.md +0 -404
  764. package/one/things/claude/agents/content-calendar-planner.md +0 -473
  765. package/one/things/claude/agents/content-chapter-formatter.md +0 -513
  766. package/one/things/claude/agents/content-formatter.md +0 -571
  767. package/one/things/claude/agents/content-hook-specialist.md +0 -485
  768. package/one/things/claude/agents/content-image-formatter.md +0 -560
  769. package/one/things/claude/agents/content-introduction-formatter.md +0 -510
  770. package/one/things/claude/agents/content-multiplication-engine.md +0 -579
  771. package/one/things/claude/agents/content-playbook-writer.md +0 -473
  772. package/one/things/claude/agents/content-team-manager.md +0 -647
  773. package/one/things/claude/agents/content-toc-formatter.md +0 -547
  774. package/one/things/claude/agents/convex-backend-specialist.md +0 -2725
  775. package/one/things/claude/agents/core-manager.md +0 -607
  776. package/one/things/claude/agents/core-master.md +0 -426
  777. package/one/things/claude/agents/cross-functional-manager.md +0 -476
  778. package/one/things/claude/agents/crypto-airdrop-strategist.md +0 -622
  779. package/one/things/claude/agents/crypto-analytics-educator.md +0 -596
  780. package/one/things/claude/agents/crypto-architecture-specialist.md +0 -497
  781. package/one/things/claude/agents/crypto-community-analyst.md +0 -314
  782. package/one/things/claude/agents/crypto-community-psychologist.md +0 -546
  783. package/one/things/claude/agents/crypto-dex-optimization-expert.md +0 -579
  784. package/one/things/claude/agents/crypto-dex-optimizer.md +0 -307
  785. package/one/things/claude/agents/crypto-diamond-formation-specialist.md +0 -552
  786. package/one/things/claude/agents/crypto-diamond-hands.md +0 -307
  787. package/one/things/claude/agents/crypto-ecosystem-expansion-manager.md +0 -597
  788. package/one/things/claude/agents/crypto-engagement-specialist.md +0 -581
  789. package/one/things/claude/agents/crypto-market-researcher.md +0 -307
  790. package/one/things/claude/agents/crypto-marketing-orchestrator.md +0 -563
  791. package/one/things/claude/agents/crypto-network-effect-amplifier.md +0 -614
  792. package/one/things/claude/agents/crypto-optimization-analyst.md +0 -597
  793. package/one/things/claude/agents/crypto-strategic-synthesizer.md +0 -556
  794. package/one/things/claude/agents/crypto-team-manager.md +0 -392
  795. package/one/things/claude/agents/crypto-token-analyst.md +0 -319
  796. package/one/things/claude/agents/crypto-viral-content-creator.md +0 -549
  797. package/one/things/claude/agents/crypto-wallet-identification-expert.md +0 -527
  798. package/one/things/claude/agents/crypto-wallet-identifier.md +0 -307
  799. package/one/things/claude/agents/customer-journey-designer.md +0 -474
  800. package/one/things/claude/agents/customer-success-manager.md +0 -574
  801. package/one/things/claude/agents/dev.md +0 -406
  802. package/one/things/claude/agents/documenter.md +0 -548
  803. package/one/things/claude/agents/elevate-marketing-orchestrator.md +0 -403
  804. package/one/things/claude/agents/engagement-specialist.md +0 -502
  805. package/one/things/claude/agents/engineering-architect.md +0 -387
  806. package/one/things/claude/agents/engineering-business-analyst.md +0 -527
  807. package/one/things/claude/agents/engineering-developer.md +0 -386
  808. package/one/things/claude/agents/engineering-director.md +0 -322
  809. package/one/things/claude/agents/engineering-ingestor.md +0 -659
  810. package/one/things/claude/agents/engineering-product-manager.md +0 -525
  811. package/one/things/claude/agents/engineering-product-owner.md +0 -527
  812. package/one/things/claude/agents/engineering-project-coordinator.md +0 -525
  813. package/one/things/claude/agents/engineering-quality-assurance.md +0 -392
  814. package/one/things/claude/agents/engineering-team-manager.md +0 -515
  815. package/one/things/claude/agents/engineering-user-experience.md +0 -386
  816. package/one/things/claude/agents/framework-elevate-manager.md +0 -309
  817. package/one/things/claude/agents/improver.md +0 -805
  818. package/one/things/claude/agents/intelligence-team-manager.md +0 -390
  819. package/one/things/claude/agents/lead-capture-expert.md +0 -459
  820. package/one/things/claude/agents/lead-magnet-creator.md +0 -446
  821. package/one/things/claude/agents/market-research-analyst.md +0 -435
  822. package/one/things/claude/agents/marketing-brand-identity.md +0 -344
  823. package/one/things/claude/agents/marketing-content-hooks.md +0 -455
  824. package/one/things/claude/agents/marketing-content-multiplier.md +0 -331
  825. package/one/things/claude/agents/marketing-content-poster.md +0 -372
  826. package/one/things/claude/agents/marketing-customer-journey.md +0 -331
  827. package/one/things/claude/agents/marketing-director.md +0 -402
  828. package/one/things/claude/agents/marketing-engagement.md +0 -331
  829. package/one/things/claude/agents/marketing-lead-capture.md +0 -331
  830. package/one/things/claude/agents/marketing-lead-magnet.md +0 -331
  831. package/one/things/claude/agents/marketing-network-effects.md +0 -331
  832. package/one/things/claude/agents/marketing-nurture-campaigns.md +0 -331
  833. package/one/things/claude/agents/marketing-share-optimizer.md +0 -331
  834. package/one/things/claude/agents/marketing-team-manager.md +0 -451
  835. package/one/things/claude/agents/marketing-viral-growth.md +0 -232
  836. package/one/things/claude/agents/mission-commander.md +0 -378
  837. package/one/things/claude/agents/network-effect-analyst.md +0 -604
  838. package/one/things/claude/agents/nextjs-15-specialist.md +0 -1634
  839. package/one/things/claude/agents/npx.md +0 -946
  840. package/one/things/claude/agents/nurture-campaign-manager.md +0 -554
  841. package/one/things/claude/agents/one-master.md +0 -378
  842. package/one/things/claude/agents/one-orchestrator.md +0 -345
  843. package/one/things/claude/agents/one.md +0 -658
  844. package/one/things/claude/agents/playbook-generator.md +0 -526
  845. package/one/things/claude/agents/pm.md +0 -349
  846. package/one/things/claude/agents/po.md +0 -370
  847. package/one/things/claude/agents/qa.md +0 -361
  848. package/one/things/claude/agents/research-foundation-analyst.md +0 -324
  849. package/one/things/claude/agents/research-intelligence-gatherer.md +0 -435
  850. package/one/things/claude/agents/research-market-analyst.md +0 -324
  851. package/one/things/claude/agents/research-team-manager.md +0 -489
  852. package/one/things/claude/agents/sales-environment-optimizer.md +0 -519
  853. package/one/things/claude/agents/sales-team-manager.md +0 -407
  854. package/one/things/claude/agents/sales-upsell-strategist.md +0 -324
  855. package/one/things/claude/agents/service-advocacy-campaigns.md +0 -324
  856. package/one/things/claude/agents/service-advocacy-manager.md +0 -324
  857. package/one/things/claude/agents/service-success-manager.md +0 -324
  858. package/one/things/claude/agents/service-team-manager.md +0 -405
  859. package/one/things/claude/agents/shadcn-ui-design-system-specialist.md +0 -2357
  860. package/one/things/claude/agents/share-optimization-specialist.md +0 -576
  861. package/one/things/claude/agents/sm.md +0 -352
  862. package/one/things/claude/agents/story-teller.md +0 -498
  863. package/one/things/claude/agents/task-master.md +0 -621
  864. package/one/things/claude/agents/tauri-cross-platform-specialist.md +0 -1912
  865. package/one/things/claude/agents/tester.md +0 -595
  866. package/one/things/claude/agents/the-bull-character-manager.md +0 -603
  867. package/one/things/claude/agents/tools-playbook-generator.md +0 -492
  868. package/one/things/claude/agents/turbo-repo-builder.md +0 -346
  869. package/one/things/claude/agents/upsell-strategist.md +0 -503
  870. package/one/things/claude/agents/ux-expert.md +0 -360
  871. package/one/things/claude/agents/viral-growth-orchestrator.md +0 -520
  872. package/one/things/claude/claude-code-hooks-development.json +0 -21
  873. package/one/things/claude/claude-code-hooks-production.json +0 -21
  874. package/one/things/claude/claude-code-hooks.json +0 -25
  875. package/one/things/claude/commands/agent.md +0 -124
  876. package/one/things/claude/commands/cascade-status.md +0 -153
  877. package/one/things/claude/commands/ingest.md +0 -343
  878. package/one/things/claude/commands/ingestor.md +0 -158
  879. package/one/things/claude/commands/mission.md +0 -103
  880. package/one/things/claude/commands/npx.md +0 -156
  881. package/one/things/claude/commands/one.md +0 -486
  882. package/one/things/claude/commands/quality-check.md +0 -252
  883. package/one/things/claude/commands/smart-route.md +0 -261
  884. package/one/things/claude/commands/start.md +0 -139
  885. package/one/things/claude/commands/story.md +0 -103
  886. package/one/things/claude/commands/task.md +0 -193
  887. package/one/things/claude/hook-bypass.json +0 -32
  888. package/one/things/claude/hooks/agent-hook-config.json +0 -427
  889. package/one/things/claude/hooks/build-hook.sh +0 -156
  890. package/one/things/claude/hooks/cleanup-hook.sh +0 -201
  891. package/one/things/claude/hooks/file-organization-hook.sh +0 -80
  892. package/one/things/claude/hooks/format-hook.sh +0 -43
  893. package/one/things/claude/hooks/hook-bypass.sh +0 -293
  894. package/one/things/claude/hooks/hook-debouncer.sh +0 -62
  895. package/one/things/claude/hooks/hook-logger.sh +0 -89
  896. package/one/things/claude/hooks/lint-hook.sh +0 -140
  897. package/one/things/claude/hooks/notification-hook.sh +0 -204
  898. package/one/things/claude/hooks/ontology-validation-hook.sh +0 -86
  899. package/one/things/claude/hooks/performance-metrics.json +0 -25
  900. package/one/things/claude/hooks/security-hook.sh +0 -256
  901. package/one/things/claude/hooks/story-validation-hook-enhanced.sh +0 -210
  902. package/one/things/claude/hooks/story-validation-hook.sh +0 -145
  903. package/one/things/claude/hooks/test-hook.sh +0 -145
  904. package/one/things/claude/hooks/test-story-validation.sh +0 -170
  905. package/one/things/claude/settings-local.json +0 -86
  906. package/one/things/cli/cli-code.md +0 -677
  907. package/one/things/cli/cli-compiler-code.md +0 -677
  908. package/one/things/cli/cli.md +0 -871
  909. package/one/things/components/card-shadcn.md +0 -953
  910. package/one/things/components/card.md +0 -1041
  911. package/one/things/components.md +0 -1743
  912. package/one/things/componets.md +0 -19
  913. package/one/things/contracts/Move.toml +0 -12
  914. package/one/things/contracts/README.md +0 -288
  915. package/one/things/contracts/one.move +0 -762
  916. package/one/things/contracts/sdk.ts +0 -579
  917. package/one/things/creator-diagram.md +0 -184
  918. package/one/things/crypto/FEATURES.md +0 -78
  919. package/one/things/crypto/ONECORE.md +0 -62
  920. package/one/things/crypto/ONECOREFAQ.md +0 -22
  921. package/one/things/crypto/ONECOREHOW.md +0 -46
  922. package/one/things/crypto/ONEENTERPRISE.md +0 -64
  923. package/one/things/crypto/ONEENTERPRISEFAQ.md +0 -64
  924. package/one/things/crypto/ONEENTERPRISEHOW.md +0 -53
  925. package/one/things/crypto/ONEPRO.md +0 -60
  926. package/one/things/crypto/ONEPROFAQ.md +0 -22
  927. package/one/things/crypto/ONEPROHOW.md +0 -53
  928. package/one/things/crypto/READMEAGENCY.md +0 -64
  929. package/one/things/crypto/VSL.md +0 -45
  930. package/one/things/crypto/WebsiteCopy.md +0 -176
  931. package/one/things/demo-accessibility-animations.md +0 -1025
  932. package/one/things/demo-components.md +0 -1310
  933. package/one/things/demo-design-summary.md +0 -692
  934. package/one/things/demo-design-system.md +0 -973
  935. package/one/things/demo-page-layouts.md +0 -1016
  936. package/one/things/design-system.md +0 -832
  937. package/one/things/designs/accessibility-audit.md +0 -877
  938. package/one/things/designs/component-specifications.md +0 -855
  939. package/one/things/designs/design-overview.md +0 -377
  940. package/one/things/designs/design-tokens.md +0 -448
  941. package/one/things/designs/wireframes-dashboard.md +0 -710
  942. package/one/things/docs/api-requests.md +0 -987
  943. package/one/things/docs/ecommerce/ARCHITECTURE-DIAGRAM.md +0 -485
  944. package/one/things/docs/ecommerce/CONVERSION-ELEMENTS-IMPLEMENTATION.md +0 -465
  945. package/one/things/docs/ecommerce/CONVERSION-ELEMENTS-SUMMARY.md +0 -425
  946. package/one/things/docs/ecommerce/CONVERSION-UX-IMPLEMENTATION-SUMMARY.md +0 -451
  947. package/one/things/docs/ecommerce/FEATURE-SUMMARY.md +0 -536
  948. package/one/things/docs/ecommerce/IMPLEMENTATION-NOTES.md +0 -650
  949. package/one/things/docs/ecommerce/INTEGRATION-EXAMPLE.md +0 -473
  950. package/one/things/docs/ecommerce/QUICK-START.md +0 -405
  951. package/one/things/docs/ecommerce/URGENCY-IMPLEMENTATION-SUMMARY.md +0 -567
  952. package/one/things/docs/ecommerce/URGENCY-QUICK-REFERENCE.md +0 -271
  953. package/one/things/docs/ecommerce/USAGE-EXAMPLE.astro +0 -171
  954. package/one/things/docs/ecommerce/demo.astro +0 -309
  955. package/one/things/examples/children/lemonade-stand.md +0 -404
  956. package/one/things/examples/enterprise/crm-saas.md +0 -1444
  957. package/one/things/features/1-1-agent-prompts.md +0 -562
  958. package/one/things/features/1-2-yaml-orchestrator.md +0 -548
  959. package/one/things/features/1-3-event-coordination.md +0 -547
  960. package/one/things/features/1-4-knowledge-management.md +0 -652
  961. package/one/things/features/1-5-quality-loops.md +0 -725
  962. package/one/things/features/1-6-numbering-structure.md +0 -639
  963. package/one/things/features/2-1-dataprovider-interface.md +0 -2583
  964. package/one/things/features/2-2-config-system.md +0 -3242
  965. package/one/things/features/2-3-effectts-services.md +0 -1645
  966. package/one/things/features/2-4-react-hooks.md +0 -2136
  967. package/one/things/features/2-5-auth-migration.md +0 -2144
  968. package/one/things/features/2-6-dashboard-migration.md +0 -2084
  969. package/one/things/features/2-7-alternative-providers.md +0 -2578
  970. package/one/things/features/2-7-implementation-report.md +0 -724
  971. package/one/things/features/2-cli.md +0 -1720
  972. package/one/things/features/2-design.md +0 -1770
  973. package/one/things/features/2-tests.md +0 -576
  974. package/one/things/features/AUTH_HOOKS_IMPLEMENTATION.md +0 -576
  975. package/one/things/features/DECOUPLING.md +0 -290
  976. package/one/things/features/DEPLOYMENT.md +0 -470
  977. package/one/things/features/IMPLEMENTATION_SUMMARY.md +0 -362
  978. package/one/things/features/improve.md +0 -861
  979. package/one/things/features/remove-convex-deps.md +0 -63
  980. package/one/things/features/top-features.md +0 -87
  981. package/one/things/features/use-one-backend.md +0 -1217
  982. package/one/things/features-in-english.md +0 -200
  983. package/one/things/files.yaml +0 -721
  984. package/one/things/ideas/1-create-workflow.md +0 -207
  985. package/one/things/ideas/2-backend-agnostic-frontend.md +0 -439
  986. package/one/things/implementation/backend-guide.md +0 -457
  987. package/one/things/interface.md +0 -257
  988. package/one/things/landing-page-implementation.md +0 -455
  989. package/one/things/legal/README.md +0 -234
  990. package/one/things/legal/privacy-policy.md +0 -1227
  991. package/one/things/legal/terms-of-service.md +0 -1432
  992. package/one/things/master-workflow-plan.md +0 -806
  993. package/one/things/pay.one.ie.md +0 -53
  994. package/one/things/plans/0-in-sync.md +0 -136
  995. package/one/things/plans/0-timeline.md +0 -36
  996. package/one/things/plans/1-create-workflow.md +0 -732
  997. package/one/things/plans/QUICK-START-SIMPLIFICATION.md +0 -333
  998. package/one/things/plans/README-SIMPLIFICATION.md +0 -349
  999. package/one/things/plans/SIMPLIFICATION-EXAMPLES.md +0 -16
  1000. package/one/things/plans/SIMPLIFICATION-SUMMARY.md +0 -455
  1001. package/one/things/plans/ai-elements-integration.md +0 -483
  1002. package/one/things/plans/ai-elements.md +0 -1278
  1003. package/one/things/plans/ai-integration-plan.md +0 -263
  1004. package/one/things/plans/ai-integration.md +0 -996
  1005. package/one/things/plans/ai-sdk.md +0 -798
  1006. package/one/things/plans/ai-tools.md +0 -621
  1007. package/one/things/plans/app.md +0 -832
  1008. package/one/things/plans/architecture-summary.md +0 -312
  1009. package/one/things/plans/async-ai-agents.md +0 -233
  1010. package/one/things/plans/backend-agnostic-frontend.md +0 -390
  1011. package/one/things/plans/backend-cleanup-quickstart.md +0 -380
  1012. package/one/things/plans/backend-ontology-conformance.md +0 -475
  1013. package/one/things/plans/backend-status.md +0 -599
  1014. package/one/things/plans/backend-structure.md +0 -847
  1015. package/one/things/plans/backend-target-structure.md +0 -482
  1016. package/one/things/plans/backend.md +0 -1175
  1017. package/one/things/plans/better-auth-any-backend-revised.md +0 -1103
  1018. package/one/things/plans/better-auth-any-backend.md +0 -1896
  1019. package/one/things/plans/better-auth-available-features.md +0 -273
  1020. package/one/things/plans/big-plan.md +0 -52
  1021. package/one/things/plans/cli-updates-required.md +0 -320
  1022. package/one/things/plans/complete-step-by-step.md +0 -1409
  1023. package/one/things/plans/components.md +0 -709
  1024. package/one/things/plans/convex-agents.md +0 -1034
  1025. package/one/things/plans/convex-better-auth.md +0 -1141
  1026. package/one/things/plans/convex-on-off.md +0 -407
  1027. package/one/things/plans/crypto-token-researcher.md +0 -629
  1028. package/one/things/plans/data-quality-metrics.md +0 -745
  1029. package/one/things/plans/deep-researcher-agent.md +0 -466
  1030. package/one/things/plans/deploy-to-cloudflare.md +0 -623
  1031. package/one/things/plans/deployment-architecture.md +0 -469
  1032. package/one/things/plans/desktop.md +0 -1139
  1033. package/one/things/plans/development-plan.md +0 -1283
  1034. package/one/things/plans/development-workflow-tldr.md +0 -207
  1035. package/one/things/plans/development-workflow.md +0 -959
  1036. package/one/things/plans/dsl-claude-code.md +0 -1011
  1037. package/one/things/plans/effect-components.md +0 -1743
  1038. package/one/things/plans/effect-patterns-reference.md +0 -2235
  1039. package/one/things/plans/effect.md +0 -1806
  1040. package/one/things/plans/email.md +0 -966
  1041. package/one/things/plans/enhance-auth.md +0 -1692
  1042. package/one/things/plans/execution-strategy.md +0 -1291
  1043. package/one/things/plans/existing-infrastructure.md +0 -712
  1044. package/one/things/plans/feature-based-sites.md +0 -894
  1045. package/one/things/plans/frontend-effects.md +0 -1276
  1046. package/one/things/plans/group-folder-multi-tenancy.md +0 -893
  1047. package/one/things/plans/improve-codebase.md +0 -1811
  1048. package/one/things/plans/install-components.md +0 -215
  1049. package/one/things/plans/integrate-frontend-and-backend.md +0 -603
  1050. package/one/things/plans/landing.md +0 -820
  1051. package/one/things/plans/layout.md +0 -249
  1052. package/one/things/plans/mail-backend.md +0 -1361
  1053. package/one/things/plans/mail.md +0 -2677
  1054. package/one/things/plans/mcp-clear-context-prompt.md +0 -81
  1055. package/one/things/plans/mcp-simple.md +0 -248
  1056. package/one/things/plans/multi-ontology-architecture.md +0 -885
  1057. package/one/things/plans/next-features.md +0 -114
  1058. package/one/things/plans/npx-agent-safety.md +0 -785
  1059. package/one/things/plans/npx-agent.md +0 -1089
  1060. package/one/things/plans/onboarding.md +0 -51
  1061. package/one/things/plans/one-protocol-and-payone-usage.md +0 -82
  1062. package/one/things/plans/one.md +0 -677
  1063. package/one/things/plans/ontology-6-dimensions.md +0 -2201
  1064. package/one/things/plans/ontology-compliance-audit.md +0 -342
  1065. package/one/things/plans/ontology-driven-strategy.md +0 -882
  1066. package/one/things/plans/ontology-refine.md +0 -586
  1067. package/one/things/plans/ontology-ui-approach.md +0 -375
  1068. package/one/things/plans/open-agent.md +0 -840
  1069. package/one/things/plans/performace.md +0 -122
  1070. package/one/things/plans/phase-1-foundation.md +0 -620
  1071. package/one/things/plans/phase-3-implementation.md +0 -1037
  1072. package/one/things/plans/plan-connect-to-api.md +0 -146
  1073. package/one/things/plans/quick-wins.md +0 -1428
  1074. package/one/things/plans/r2.md +0 -777
  1075. package/one/things/plans/readme-backend-cleanup.md +0 -402
  1076. package/one/things/plans/release.md +0 -507
  1077. package/one/things/plans/remove-backend-development-from-agents.md +0 -1331
  1078. package/one/things/plans/repos.md +0 -98
  1079. package/one/things/plans/separate-copy-2.md +0 -1349
  1080. package/one/things/plans/separate-copy-3.md +0 -2479
  1081. package/one/things/plans/separate-copy.md +0 -1349
  1082. package/one/things/plans/separate-demo.md +0 -864
  1083. package/one/things/plans/separate.md +0 -1999
  1084. package/one/things/plans/sequence.md +0 -2040
  1085. package/one/things/plans/shadcn-integration-summary.md +0 -510
  1086. package/one/things/plans/sidebar.md +0 -206
  1087. package/one/things/plans/skills.md +0 -709
  1088. package/one/things/plans/small-fixes.md +0 -23
  1089. package/one/things/plans/start-new.md +0 -764
  1090. package/one/things/plans/switch-off-auth.md +0 -42
  1091. package/one/things/plans/sync-checklist.md +0 -351
  1092. package/one/things/plans/test-backend-connection.md +0 -514
  1093. package/one/things/plans/unified-implementation-plan.md +0 -934
  1094. package/one/things/plans/update-demos.md +0 -581
  1095. package/one/things/plans/use-our-backend.md +0 -572
  1096. package/one/things/plans/video-backend.md +0 -638
  1097. package/one/things/plans/video-frontend.md +0 -490
  1098. package/one/things/plans/video-old-archived.md +0 -656
  1099. package/one/things/plans/wave1-onboarding-100-inferences.md +0 -1686
  1100. package/one/things/plans/wave1-onboarding-vision.md +0 -744
  1101. package/one/things/plans/wave1-orchestration-summary.md +0 -604
  1102. package/one/things/plans/wave1-specialist-assignments.md +0 -1413
  1103. package/one/things/plans/workflow-files.md +0 -1210
  1104. package/one/things/plans/workflow.md +0 -1378
  1105. package/one/things/plans-u.md +0 -905
  1106. package/one/things/products/Blockchain Products.md +0 -6278
  1107. package/one/things/products/cascade-landing-page.md +0 -841
  1108. package/one/things/products/cascade.md +0 -1568
  1109. package/one/things/products/context-engineering.md +0 -1488
  1110. package/one/things/products/onthology.md +0 -15
  1111. package/one/things/products/ontology-ui-shadcn.md +0 -1302
  1112. package/one/things/products/ontology-ui.md +0 -1429
  1113. package/one/things/products/ontology.md +0 -789
  1114. package/one/things/products/sdk.md +0 -573
  1115. package/one/things/promptkit.md +0 -930
  1116. package/one/things/repos/all-repos.md +0 -0
  1117. package/one/things/scripts-clean-mac.sh +0 -409
  1118. package/one/things/service-providers-new.md +0 -1052
  1119. package/one/things/service-providers.md +0 -1121
  1120. package/one/things/structure.md +0 -532
  1121. package/one/things/system.md +0 -618
  1122. package/one/things/templates.md +0 -294
  1123. package/one/things/tests/2-1-dataprovider-interface.md +0 -1216
  1124. package/one/things/tests/2-1-test-analysis.md +0 -544
  1125. package/one/things/things.md +0 -384
  1126. package/one/things/todo-acp-integration.md +0 -744
  1127. package/one/things/todo-ai.md +0 -933
  1128. package/one/things/todo-api.md +0 -1078
  1129. package/one/things/todo-assignment.md +0 -580
  1130. package/one/things/todo-buy-chatgpt.md +0 -1450
  1131. package/one/things/todo-components.md +0 -1683
  1132. package/one/things/todo-connections.md +0 -278
  1133. package/one/things/todo-ecommerce-frontend.md +0 -1313
  1134. package/one/things/todo-ecommerce.md +0 -569
  1135. package/one/things/todo-effects.md +0 -1075
  1136. package/one/things/todo-frontend-effects.md +0 -977
  1137. package/one/things/todo-landing-page.md +0 -1091
  1138. package/one/things/todo-mail.md +0 -1160
  1139. package/one/things/todo-master-plan.md +0 -490
  1140. package/one/things/todo-onboard.md +0 -666
  1141. package/one/things/todo-one-ie.md +0 -538
  1142. package/one/things/todo-page.md +0 -606
  1143. package/one/things/todo-plans.md +0 -282
  1144. package/one/things/todo-projects.md +0 -241
  1145. package/one/things/todo-refactoring-plan.md +0 -366
  1146. package/one/things/todo-release.md +0 -654
  1147. package/one/things/todo-sequence.md +0 -1621
  1148. package/one/things/todo-use-our-backend.md +0 -1908
  1149. package/one/things/todo-workflow.md +0 -626
  1150. package/one/things/todo-x402.md +0 -2047
  1151. package/one/things/todo.md +0 -21
  1152. package/one/things/video/scripts-crypto.md +0 -835
  1153. package/one/things/video-script-backup.md +0 -318
  1154. package/one/things/video-script-demo.md +0 -382
  1155. package/one/things/video-script-ontology.md +0 -333
  1156. package/one/things/video-script.md +0 -361
@@ -1,1683 +0,0 @@
1
- ---
2
- title: Todo Components
3
- dimension: things
4
- primary_dimension: things
5
- category: todo-components.md
6
- tags: agent, ai, architecture, cycle
7
- related_dimensions: things, events, knowledge, groups, people, connections
8
- scope: global
9
- created: 2025-11-03
10
- updated: 2025-11-03
11
- version: 1.0.0
12
- ai_context: |
13
- This document is part of the things dimension in the todo-components.md category.
14
- Location: one/things/todo-components.md
15
- Purpose: Documents convex components + effect.ts integration - 100 cycle todo list
16
- Related dimensions: events, knowledge
17
- For AI agents: Read this to understand todo components.
18
- ---
19
-
20
- # Convex Components + Effect.ts Integration - 100 Cycle Todo List
21
-
22
- **Feature:** Effect.ts Service Layer Architecture with Convex Components
23
- **Status:** Planning Complete → Ready for Execution
24
- **Created:** 2025-10-30
25
-
26
- ## Overview
27
-
28
- This document tracks all 100 cycles for implementing a production-ready service layer that combines Effect.ts functional programming patterns with Convex components (@convex-dev/agent, workflow, RAG, rate-limiter, etc.) to build sophisticated multi-agent AI systems.
29
-
30
- **Key Principle:** Effect wraps components, not replaces. Components handle infrastructure, Effect handles business logic composition.
31
-
32
- ---
33
-
34
- ## Foundation Phase (Cycle 1-10)
35
-
36
- **Agent:** agent-director
37
- **Goal:** Validate architecture, map components, create execution plan
38
-
39
- ### ✅ Cycle 1: Validate Effect + Convex Components Architecture
40
-
41
- **Status:** ✅ Complete
42
- **Task:** Ensure Effect.ts service layer pattern works with all Convex components
43
- **Validation:**
44
-
45
- - Effect.tryPromise wraps component Promise calls ✅
46
- - Context/Layer pattern for dependency injection ✅
47
- - Tagged errors for type-safe error handling ✅
48
- - No performance regression vs direct component usage ✅
49
- - All 8 components compatible with Effect wrapper pattern ✅
50
-
51
- ### ✅ Cycle 2: Map 8 Convex Components to Effect Services
52
-
53
- **Status:** ✅ Complete
54
- **Component Mapping:**
55
-
56
- 1. **@convex-dev/agent** → AgentService
57
- - Where Effect helps: Business logic orchestration, multi-agent composition, error handling
58
- - Where component shines: Thread management, streaming, RAG, tool calling
59
-
60
- 2. **@convex-dev/workflow** → WorkflowService
61
- - Where Effect helps: Step business logic, service composition, error handling
62
- - Where component shines: Durable execution, journaling, retry policies
63
-
64
- 3. **@convex-dev/rag** → RAGService
65
- - Where Effect helps: Composing RAG with other services, custom embeddings, error handling
66
- - Where component shines: Vector storage, semantic search, chunking
67
-
68
- 4. **@convex-dev/rate-limiter** → RateLimitService
69
- - Where Effect helps: Composing rate limits with business logic, multi-level limits, smart retries
70
- - Where component shines: Token bucket, fixed window, capacity reservation
71
-
72
- 5. **@convex-dev/persistent-text-streaming** → StreamingService
73
- - Where Effect helps: Error recovery during streaming, lifecycle management, backpressure
74
- - Where component shines: WebSocket delivery, delta storage, client subscription
75
-
76
- 6. **@convex-dev/workpool** → TaskQueueService
77
- - Where Effect helps: Batch enqueuing, error handling, coordinating multiple pools
78
- - Where component shines: Task queuing, parallelism control, completion callbacks
79
-
80
- 7. **@convex-dev/retrier** → ResilientExecutionService
81
- - Where Effect helps: Coordinating retries across operations, custom policies, composition
82
- - Where component shines: Action retries with persistent state, status tracking
83
-
84
- 8. **@convex-dev/crons** → CronService
85
- - Where Effect helps: Scheduled job logic composition, error handling, service orchestration
86
- - Where component shines: Dynamic cron registration, schedule management
87
-
88
- ### ✅ Cycle 3: Define Service Layer Structure
89
-
90
- **Status:** ✅ Complete
91
- **Directory Structure:**
92
-
93
- ```
94
- backend/convex/
95
- ├── services/ # Effect service layers (8 services)
96
- ├── domain/ # Business logic with Effect
97
- │ ├── agents/ # Multi-agent orchestration
98
- │ ├── workflows/ # Workflow definitions
99
- │ └── users/ # User domain logic
100
- ├── api/ # Public endpoints (use services)
101
- └── lib/ # Effect utilities
102
- ├── effect-utils.ts
103
- ├── convex-effect.ts
104
- └── monitoring.ts
105
- ```
106
-
107
- ### ✅ Cycle 4: Identify Error Types and Patterns
108
-
109
- **Status:** ✅ Complete
110
- **Error Categories:**
111
-
112
- **Domain Errors:**
113
-
114
- - `UserNotFoundError` - User doesn't exist
115
- - `ThreadNotFoundError` - Thread doesn't exist
116
- - `InsufficientPermissionsError` - User lacks permissions
117
-
118
- **Infrastructure Errors:**
119
-
120
- - `AgentError` - Agent component failure
121
- - `RAGError` - RAG component failure
122
- - `DatabaseError` - Convex database error
123
-
124
- **Rate Limiting Errors:**
125
-
126
- - `RateLimitError` - Rate limit exceeded
127
- - `QuotaExceededError` - Quota limit hit
128
-
129
- **Pattern:** Tagged error classes with `Data.TaggedError`
130
-
131
- ### ✅ Cycle 5: Plan Dependency Injection Strategy
132
-
133
- **Status:** ✅ Complete
134
- **Strategy:**
135
-
136
- - **Context.Tag:** Define service interfaces
137
- - **Layer.effect:** Implement service layers
138
- - **Layer.merge:** Compose multiple layers
139
- - **Effect.provide:** Inject layers at runtime
140
- - **Test Layers:** Swap real services for mocks
141
-
142
- **Example:**
143
-
144
- ```typescript
145
- class AgentService extends Context.Tag("AgentService")<...>() {}
146
- const AgentServiceLive = Layer.effect(AgentService, ...)
147
- const TestAgentServiceLive = Layer.succeed(AgentService, mockImpl)
148
- ```
149
-
150
- ### ✅ Cycle 6: Define Observability Requirements
151
-
152
- **Status:** ✅ Complete
153
- **Requirements:**
154
-
155
- 1. **Service Call Tracking:** Log start, complete, fail for every service call
156
- 2. **Token Usage:** Track AI model token consumption per request
157
- 3. **Error Tracking:** Log all errors with Effect error chain
158
- 4. **Performance Metrics:** Track latency per service operation
159
- 5. **Dependency Graph:** Visualize service dependencies
160
- 6. **Distributed Tracing:** Propagate trace IDs across service calls
161
-
162
- **Implementation:** MonitoringService with Effect.tap
163
-
164
- ### ✅ Cycle 7: Create Integration Patterns Document
165
-
166
- **Status:** ✅ Complete
167
- **Patterns:**
168
-
169
- 1. **Effect-Wrapped Component:** `Effect.tryPromise` for component calls
170
- 2. **Service Layer:** Context.Tag + Layer for DI
171
- 3. **Error Handling:** `Effect.catchTag` for specific errors, `Effect.catchAll` for fallback
172
- 4. **Parallel Execution:** `Effect.all` with concurrency control
173
- 5. **Resource Management:** `Effect.Scope` + `acquireRelease`
174
- 6. **Retry Logic:** `Effect.retry` + `Schedule.exponential`
175
- 7. **Service Composition:** `Effect.gen` for sequential, `Effect.all` for parallel
176
-
177
- ### ✅ Cycle 8: Break Down Into 100 Cycles
178
-
179
- **Status:** ✅ Complete
180
- **Breakdown:**
181
-
182
- - Foundation: 1-10 (planning)
183
- - Core Services: 11-30 (Agent, RAG, Rate Limit, Workflow)
184
- - Supporting Services: 31-50 (Streaming, Workpool, Retrier, Crons)
185
- - Domain Logic: 51-70 (Multi-agent, workflows, tools)
186
- - Observability & Testing: 71-90 (Monitoring, tests, error handling)
187
- - Advanced & Documentation: 91-100 (Confect, docs, optimization, launch)
188
-
189
- ### ✅ Cycle 9: Assign Agents to Phases
190
-
191
- **Status:** ✅ Complete
192
- **Agent Assignments:**
193
-
194
- - **agent-director:** Cycle 1-10, 99-100 (planning, coordination, launch)
195
- - **agent-backend:** Cycle 11-50, 91-93, 97-98 (service implementation, optimization)
196
- - **agent-builder:** Cycle 51-70 (domain logic, multi-agent orchestration)
197
- - **agent-ops:** Cycle 71-75, 81-85 (monitoring, resource management)
198
- - **agent-quality:** Cycle 76-80, 86-90 (testing, error handling)
199
- - **agent-documenter:** Cycle 94-96 (documentation, guides, examples)
200
-
201
- ### ✅ Cycle 10: Create Complete Implementation Plan
202
-
203
- **Status:** ✅ Complete
204
- **Deliverable:** `/one/things/plans/components.md`
205
- **Content:** Executive summary, 6-dimension mapping, architecture, phases, success metrics, risks, timeline
206
-
207
- ---
208
-
209
- ## Core Service Layers Phase (Cycle 11-30)
210
-
211
- **Agent:** agent-backend
212
- **Goal:** Implement Effect service layers for core components
213
-
214
- ### ⏳ Cycle 11: Wrap @convex-dev/agent with Effect (Part 1: Setup)
215
-
216
- **Status:** Pending
217
- **Dependencies:** Cycle 1-10 (Foundation complete)
218
- **Task:** Create AgentService interface and basic structure
219
- **File:** `backend/convex/services/agent.service.ts`
220
- **Acceptance Criteria:**
221
-
222
- - [ ] Import Effect, Context, Layer, Data
223
- - [ ] Import Agent from @convex-dev/agent
224
- - [ ] Define error types: `AgentError`, `ThreadNotFoundError`, `ToolExecutionError`
225
- - [ ] Create `AgentService` Context.Tag with interface:
226
- - `generateResponse(ctx, threadId, prompt)`
227
- - `createThread(ctx, userId)`
228
- - `continueThread(ctx, threadId, message)`
229
- - [ ] Stub implementation (returns Effect.succeed with placeholder)
230
-
231
- ### ⏳ Cycle 12: Implement AgentServiceLive Layer
232
-
233
- **Status:** Pending
234
- **Dependencies:** Cycle 11
235
- **Task:** Full implementation of AgentService
236
- **File:** `backend/convex/services/agent.service.ts`
237
- **Acceptance Criteria:**
238
-
239
- - [ ] Initialize Agent component in Layer.effect
240
- - [ ] Implement `generateResponse` with Effect.tryPromise wrapping agent.continueThread
241
- - [ ] Implement `createThread` with proper error handling
242
- - [ ] Inject RateLimitService dependency (yield\* RateLimitService)
243
- - [ ] Check rate limit before agent calls
244
- - [ ] Return typed errors (AgentError, RateLimitError)
245
- - [ ] Add Effect.retry for transient failures
246
-
247
- ### ⏳ Cycle 13: Create Agent Tool Definitions with Effect
248
-
249
- **Status:** Pending
250
- **Dependencies:** Cycle 12
251
- **Task:** Define agent tools that use Effect services internally
252
- **File:** `backend/convex/services/agent.service.ts`
253
- **Acceptance Criteria:**
254
-
255
- - [ ] Create `emailTool` using EmailService (Effect-based)
256
- - [ ] Create `searchTool` using RAGService (Effect-based)
257
- - [ ] Create `databaseQueryTool` using database operations (Effect-based)
258
- - [ ] Convert Effect programs to Promises in tool handlers (Effect.runPromise)
259
- - [ ] Handle errors gracefully (return error messages to agent)
260
- - [ ] Register tools with Agent component
261
-
262
- ### ⏳ Cycle 14: Add Agent Service Error Types
263
-
264
- **Status:** Pending
265
- **Dependencies:** Cycle 13
266
- **Task:** Define comprehensive error types for AgentService
267
- **File:** `backend/convex/domain/agents/errors.ts`
268
- **Acceptance Criteria:**
269
-
270
- - [ ] `AgentError` - General agent failure (includes agentName, cause)
271
- - [ ] `ThreadNotFoundError` - Thread doesn't exist (includes threadId)
272
- - [ ] `ToolExecutionError` - Tool failed (includes toolName, cause)
273
- - [ ] `InvalidPromptError` - Prompt validation failed (includes reason)
274
- - [ ] `ModelOverloadedError` - Model capacity exceeded (includes retryAfter)
275
- - [ ] All errors extend `Data.TaggedError`
276
- - [ ] All errors include helpful metadata
277
-
278
- ### ⏳ Cycle 15: Test AgentService with Effect
279
-
280
- **Status:** Pending
281
- **Dependencies:** Cycle 14
282
- **Task:** Create test layer for AgentService
283
- **File:** `backend/convex/services/agent.service.test.ts`
284
- **Acceptance Criteria:**
285
-
286
- - [ ] Create `TestAgentServiceLive` layer with mock implementation
287
- - [ ] Mock `generateResponse` returns fixed response
288
- - [ ] Mock `createThread` returns deterministic threadId
289
- - [ ] Test successful agent call (Effect.runPromise passes)
290
- - [ ] Test error handling (Effect.runPromise rejects with AgentError)
291
- - [ ] Test rate limit integration (mocked RateLimitService)
292
- - [ ] Test retry logic (transient errors recover)
293
-
294
- ### ⏳ Cycle 16: Wrap @convex-dev/rag with Effect (Part 1: Setup)
295
-
296
- **Status:** Pending
297
- **Dependencies:** Cycle 15
298
- **Task:** Create RAGService interface and basic structure
299
- **File:** `backend/convex/services/rag.service.ts`
300
- **Acceptance Criteria:**
301
-
302
- - [ ] Import Effect, Context, Layer, Data
303
- - [ ] Import RAG from @convex-dev/rag
304
- - [ ] Define error types: `RAGError`, `EmbeddingError`, `SearchError`
305
- - [ ] Create `RAGService` Context.Tag with interface:
306
- - `addDocument(ctx, namespace, content, metadata)`
307
- - `search(ctx, namespace, query, limit)`
308
- - `deleteDocument(ctx, namespace, entryId)`
309
- - [ ] Stub implementation
310
-
311
- ### ⏳ Cycle 17: Implement RAGServiceLive Layer
312
-
313
- **Status:** Pending
314
- **Dependencies:** Cycle 16
315
- **Task:** Full implementation of RAGService
316
- **File:** `backend/convex/services/rag.service.ts`
317
- **Acceptance Criteria:**
318
-
319
- - [ ] Initialize RAG component with openai.embedding("text-embedding-3-small")
320
- - [ ] Implement `addDocument` with Effect.tryPromise wrapping rag.add
321
- - [ ] Implement `search` with Effect.tryPromise wrapping rag.search
322
- - [ ] Implement `deleteDocument` with proper error handling
323
- - [ ] Pre-process content before adding (Effect pipeline)
324
- - [ ] Handle embedding generation failures gracefully
325
- - [ ] Add vector score threshold filtering
326
-
327
- ### ⏳ Cycle 18: Compose RAG with Agent Service
328
-
329
- **Status:** Pending
330
- **Dependencies:** Cycle 17
331
- **Task:** Use RAGService within AgentService for context retrieval
332
- **File:** `backend/convex/domain/agents/orchestration.ts`
333
- **Acceptance Criteria:**
334
-
335
- - [ ] Create `contextualAnswerAgent` action
336
- - [ ] Inject both AgentService and RAGService
337
- - [ ] Search RAG for context (yield\* ragService.search)
338
- - [ ] Generate agent response with context (yield\* agentService.generateResponse)
339
- - [ ] Return answer + sources (with relevance scores)
340
- - [ ] Handle errors (RAGError, AgentError) gracefully
341
- - [ ] Add Effect.retry for robustness
342
-
343
- ### ⏳ Cycle 19: Add RAG Error Types
344
-
345
- **Status:** Pending
346
- **Dependencies:** Cycle 18
347
- **Task:** Define comprehensive error types for RAGService
348
- **File:** `backend/convex/domain/agents/errors.ts`
349
- **Acceptance Criteria:**
350
-
351
- - [ ] `RAGError` - General RAG failure (includes cause)
352
- - [ ] `EmbeddingError` - Embedding generation failed (includes text, modelName)
353
- - [ ] `SearchError` - Search query failed (includes query, namespace)
354
- - [ ] `ChunkingError` - Document chunking failed (includes documentId)
355
- - [ ] `InvalidNamespaceError` - Namespace doesn't exist (includes namespace)
356
- - [ ] All errors extend `Data.TaggedError`
357
-
358
- ### ⏳ Cycle 20: Test RAGService with Effect
359
-
360
- **Status:** Pending
361
- **Dependencies:** Cycle 19
362
- **Task:** Create test layer for RAGService
363
- **File:** `backend/convex/services/rag.service.test.ts`
364
- **Acceptance Criteria:**
365
-
366
- - [ ] Create `TestRAGServiceLive` layer with mock implementation
367
- - [ ] Mock `search` returns fixed results with scores
368
- - [ ] Mock `addDocument` returns deterministic entryId
369
- - [ ] Test successful search (Effect.runPromise passes)
370
- - [ ] Test error handling (SearchError, EmbeddingError)
371
- - [ ] Test composition with AgentService (integration)
372
- - [ ] Test retry logic for transient failures
373
-
374
- ### ⏳ Cycle 21: Wrap @convex-dev/rate-limiter with Effect (Part 1: Setup)
375
-
376
- **Status:** Pending
377
- **Dependencies:** Cycle 20
378
- **Task:** Create RateLimitService interface and basic structure
379
- **File:** `backend/convex/services/rate-limit.service.ts`
380
- **Acceptance Criteria:**
381
-
382
- - [ ] Import Effect, Context, Layer, Data
383
- - [ ] Import RateLimiter from @convex-dev/rate-limiter
384
- - [ ] Define error types: `RateLimitError`, `QuotaExceededError`
385
- - [ ] Create `RateLimitService` Context.Tag with interface:
386
- - `checkLimit(ctx, name, key, count?)`
387
- - `checkUserLimit(ctx, userId)`
388
- - `checkGlobalLimit(ctx)`
389
- - [ ] Stub implementation
390
-
391
- ### ⏳ Cycle 22: Implement RateLimitServiceLive Layer
392
-
393
- **Status:** Pending
394
- **Dependencies:** Cycle 21
395
- **Task:** Full implementation of RateLimitService
396
- **File:** `backend/convex/services/rate-limit.service.ts`
397
- **Acceptance Criteria:**
398
-
399
- - [ ] Initialize RateLimiter with config (token bucket, fixed window)
400
- - [ ] Implement `checkLimit` with Effect.tryPromise wrapping rateLimiter.limit
401
- - [ ] Return RateLimitError if limit exceeded (include retryAfter)
402
- - [ ] Implement `checkUserLimit` (per-user rate limit)
403
- - [ ] Implement `checkGlobalLimit` (system-wide rate limit)
404
- - [ ] Add reserve parameter for capacity reservation
405
- - [ ] Handle multiple rate limit tiers (starter, pro, enterprise)
406
-
407
- ### ⏳ Cycle 23: Multi-Level Rate Limiting with Effect
408
-
409
- **Status:** Pending
410
- **Dependencies:** Cycle 22
411
- **Task:** Coordinate user and global rate limits in parallel
412
- **File:** `backend/convex/domain/agents/orchestration.ts`
413
- **Acceptance Criteria:**
414
-
415
- - [ ] Create `protectedAgentCall` action
416
- - [ ] Check user and global limits in parallel (Effect.all)
417
- - [ ] Fail fast if any limit exceeded
418
- - [ ] Return specific error (UserRateLimitExceeded vs GlobalRateLimitExceeded)
419
- - [ ] Include retryAfter in error response
420
- - [ ] Execute agent call only if both limits OK
421
- - [ ] Log rate limit events
422
-
423
- ### ⏳ Cycle 24: Add Rate Limit Error Types
424
-
425
- **Status:** Pending
426
- **Dependencies:** Cycle 23
427
- **Task:** Define comprehensive error types for rate limiting
428
- **File:** `backend/convex/domain/agents/errors.ts`
429
- **Acceptance Criteria:**
430
-
431
- - [ ] `RateLimitError` - General rate limit (includes limitName, retryAfter)
432
- - [ ] `UserRateLimitExceeded` - User-specific limit hit (includes userId, retryAfter)
433
- - [ ] `GlobalRateLimitExceeded` - System-wide limit hit (includes retryAfter)
434
- - [ ] `QuotaExceededError` - Monthly quota exceeded (includes quotaType, resetDate)
435
- - [ ] `ReservationFailedError` - Capacity reservation failed (includes requested, available)
436
- - [ ] All errors extend `Data.TaggedError`
437
-
438
- ### ⏳ Cycle 25: Test RateLimitService with Effect
439
-
440
- **Status:** Pending
441
- **Dependencies:** Cycle 24
442
- **Task:** Create test layer for RateLimitService
443
- **File:** `backend/convex/services/rate-limit.service.test.ts`
444
- **Acceptance Criteria:**
445
-
446
- - [ ] Create `TestRateLimitServiceLive` layer
447
- - [ ] Mock `checkLimit` returns OK for first N calls, then RateLimitError
448
- - [ ] Test successful limit check (Effect.runPromise passes)
449
- - [ ] Test rate limit exceeded (Effect.runPromise rejects with RateLimitError)
450
- - [ ] Test parallel limit checks (user + global)
451
- - [ ] Test retry logic (Effect.retry with exponential backoff)
452
- - [ ] Test capacity reservation
453
-
454
- ### ⏳ Cycle 26: Wrap @convex-dev/workflow with Effect (Part 1: Setup)
455
-
456
- **Status:** Pending
457
- **Dependencies:** Cycle 25
458
- **Task:** Create WorkflowService interface and basic structure
459
- **File:** `backend/convex/services/workflow.service.ts`
460
- **Acceptance Criteria:**
461
-
462
- - [ ] Import Effect, Context, Layer, Data
463
- - [ ] Import WorkflowManager from @convex-dev/workflow
464
- - [ ] Define error types: `WorkflowError`, `StepFailedError`
465
- - [ ] Create `WorkflowService` Context.Tag with interface:
466
- - `defineWorkflow(name, handler)`
467
- - `startWorkflow(ctx, workflowId, args)`
468
- - `getWorkflowStatus(ctx, workflowId)`
469
- - [ ] Stub implementation
470
-
471
- ### ⏳ Cycle 27: Implement WorkflowServiceLive Layer
472
-
473
- **Status:** Pending
474
- **Dependencies:** Cycle 26
475
- **Task:** Full implementation of WorkflowService
476
- **File:** `backend/convex/services/workflow.service.ts`
477
- **Acceptance Criteria:**
478
-
479
- - [ ] Initialize WorkflowManager with default retry behavior
480
- - [ ] Implement `defineWorkflow` wrapping workflow.define
481
- - [ ] Implement `startWorkflow` with Effect.tryPromise
482
- - [ ] Implement `getWorkflowStatus` for monitoring
483
- - [ ] Handle workflow step errors gracefully
484
- - [ ] Add retry policies per step
485
- - [ ] Support long-running workflows (hours/days)
486
-
487
- ### ⏳ Cycle 28: Create Effect Programs for Workflow Steps
488
-
489
- **Status:** Pending
490
- **Dependencies:** Cycle 27
491
- **Task:** Use Effect services within workflow steps
492
- **File:** `backend/convex/domain/workflows/research.ts`
493
- **Acceptance Criteria:**
494
-
495
- - [ ] Define `researchWorkflow` using workflow.define
496
- - [ ] Step 1: Classify query (Effect-based action)
497
- - [ ] Step 2: Parallel research (web, academic, news agents)
498
- - [ ] Step 3: Synthesize findings (Effect-based action using AgentService + RAGService)
499
- - [ ] Step 4: Generate report (Effect-based action)
500
- - [ ] Step 5: Save and notify (mutation)
501
- - [ ] All actions use Effect.runPromise internally
502
- - [ ] Error handling with Effect.catchAll
503
-
504
- ### ⏳ Cycle 29: Add Workflow Error Types
505
-
506
- **Status:** Pending
507
- **Dependencies:** Cycle 28
508
- **Task:** Define comprehensive error types for workflows
509
- **File:** `backend/convex/domain/workflows/errors.ts`
510
- **Acceptance Criteria:**
511
-
512
- - [ ] `WorkflowError` - General workflow failure (includes workflowId, cause)
513
- - [ ] `StepFailedError` - Specific step failed (includes stepName, cause)
514
- - [ ] `WorkflowTimeoutError` - Workflow exceeded time limit (includes workflowId, duration)
515
- - [ ] `WorkflowCanceledError` - Workflow manually canceled (includes reason)
516
- - [ ] `InvalidWorkflowStateError` - Workflow in invalid state (includes currentState)
517
- - [ ] All errors extend `Data.TaggedError`
518
-
519
- ### ⏳ Cycle 30: Test WorkflowService with Effect
520
-
521
- **Status:** Pending
522
- **Dependencies:** Cycle 29
523
- **Task:** Create test layer for WorkflowService
524
- **File:** `backend/convex/services/workflow.service.test.ts`
525
- **Acceptance Criteria:**
526
-
527
- - [ ] Create `TestWorkflowServiceLive` layer
528
- - [ ] Mock workflow steps return deterministic results
529
- - [ ] Test successful workflow execution (all steps pass)
530
- - [ ] Test step failure handling (StepFailedError propagates)
531
- - [ ] Test retry logic (step retries 3 times before failing)
532
- - [ ] Test long-running workflow (status polling)
533
- - [ ] Test workflow cancellation
534
-
535
- ---
536
-
537
- ## Supporting Services Phase (Cycle 31-50)
538
-
539
- **Agent:** agent-backend
540
- **Goal:** Implement remaining service layers
541
-
542
- ### ⏳ Cycle 31: Wrap @convex-dev/persistent-text-streaming with Effect
543
-
544
- **Status:** Pending
545
- **Dependencies:** Cycle 30
546
- **Task:** Create StreamingService interface and implementation
547
- **File:** `backend/convex/services/streaming.service.ts`
548
- **Acceptance Criteria:**
549
-
550
- - [ ] Import Effect, Stream from effect
551
- - [ ] Import PersistentTextStreaming from @convex-dev/persistent-text-streaming
552
- - [ ] Define error types: `StreamingError`, `ChunkAppendError`
553
- - [ ] Create `StreamingService` Context.Tag
554
- - [ ] Implement `generateStream(ctx, prompt, streamId)`
555
- - [ ] Use Effect.Stream for backpressure handling
556
- - [ ] Wrap persistentTextStreaming.appendChunk with Effect.tryPromise
557
- - [ ] Handle stream lifecycle (start, chunk, complete, error)
558
-
559
- ### ⏳ Cycle 32: Implement Streaming Error Recovery
560
-
561
- **Status:** Pending
562
- **Dependencies:** Cycle 31
563
- **Task:** Add retry logic for failed stream chunks
564
- **File:** `backend/convex/services/streaming.service.ts`
565
- **Acceptance Criteria:**
566
-
567
- - [ ] Retry chunk append on transient errors (Effect.retry)
568
- - [ ] Use exponential backoff (Schedule.exponential)
569
- - [ ] Max 3 retries per chunk
570
- - [ ] Mark stream as failed if chunk repeatedly fails
571
- - [ ] Store failed chunks for manual recovery
572
- - [ ] Log streaming errors as events
573
-
574
- ### ⏳ Cycle 33: Test StreamingService with Effect
575
-
576
- **Status:** Pending
577
- **Dependencies:** Cycle 32
578
- **Task:** Create test layer for StreamingService
579
- **File:** `backend/convex/services/streaming.service.test.ts`
580
- **Acceptance Criteria:**
581
-
582
- - [ ] Create `TestStreamingServiceLive` layer
583
- - [ ] Mock stream returns deterministic chunks
584
- - [ ] Test successful streaming (all chunks delivered)
585
- - [ ] Test chunk failure handling (retry + eventual success)
586
- - [ ] Test stream cancellation (cleanup resources)
587
- - [ ] Test backpressure (slow consumer)
588
- - [ ] Test concurrent streams
589
-
590
- ### ⏳ Cycle 34: Add Streaming Error Types
591
-
592
- **Status:** Pending
593
- **Dependencies:** Cycle 33
594
- **Task:** Define comprehensive error types for streaming
595
- **File:** `backend/convex/domain/agents/errors.ts`
596
- **Acceptance Criteria:**
597
-
598
- - [ ] `StreamingError` - General streaming failure (includes streamId, cause)
599
- - [ ] `ChunkAppendError` - Chunk append failed (includes chunk, attempt)
600
- - [ ] `StreamCompletionError` - Failed to mark stream complete (includes streamId)
601
- - [ ] `StreamProcessingError` - Stream processing logic failed (includes cause)
602
- - [ ] All errors extend `Data.TaggedError`
603
-
604
- ### ⏳ Cycle 35: Integrate Streaming with Agent Component
605
-
606
- **Status:** Pending
607
- **Dependencies:** Cycle 34
608
- **Task:** Use Agent component's built-in streaming instead of persistent-text-streaming
609
- **File:** `backend/convex/services/agent.service.ts`
610
- **Acceptance Criteria:**
611
-
612
- - [ ] Enable `saveStreamDeltas: true` in Agent config
613
- - [ ] Agent automatically handles streaming to Convex
614
- - [ ] Client subscribes to stream deltas via useQuery
615
- - [ ] StreamingService used only for custom HTTP streaming
616
- - [ ] Document when to use each approach
617
- - [ ] Update tests to use Agent streaming
618
-
619
- ### ⏳ Cycle 36: Wrap @convex-dev/workpool with Effect
620
-
621
- **Status:** Pending
622
- **Dependencies:** Cycle 35
623
- **Task:** Create TaskQueueService interface and implementation
624
- **File:** `backend/convex/services/workpool.service.ts`
625
- **Acceptance Criteria:**
626
-
627
- - [ ] Import Effect, Queue from effect
628
- - [ ] Import Workpool from @convex-dev/workpool
629
- - [ ] Define error types: `EnqueueError`, `TaskStatusError`
630
- - [ ] Create `TaskQueueService` Context.Tag
631
- - [ ] Implement `enqueueTask(ctx, priority, action, args)`
632
- - [ ] Implement `getTaskStatus(ctx, taskId)`
633
- - [ ] Support multiple workpools (high priority, low priority)
634
- - [ ] Handle task completion callbacks
635
-
636
- ### ⏳ Cycle 37: Batch Task Enqueuing with Effect
637
-
638
- **Status:** Pending
639
- **Dependencies:** Cycle 36
640
- **Task:** Enqueue multiple tasks in parallel
641
- **File:** `backend/convex/domain/workflows/batch-processing.ts`
642
- **Acceptance Criteria:**
643
-
644
- - [ ] Create `processBatch` mutation
645
- - [ ] Use Effect.all to enqueue tasks in parallel
646
- - [ ] Control concurrency (max 10 concurrent enqueues)
647
- - [ ] Return array of taskIds
648
- - [ ] Handle partial failures gracefully
649
- - [ ] Log batch processing metrics
650
- - [ ] Add retry for failed enqueues
651
-
652
- ### ⏳ Cycle 38: Test TaskQueueService with Effect
653
-
654
- **Status:** Pending
655
- **Dependencies:** Cycle 37
656
- **Task:** Create test layer for TaskQueueService
657
- **File:** `backend/convex/services/workpool.service.test.ts`
658
- **Acceptance Criteria:**
659
-
660
- - [ ] Create `TestTaskQueueServiceLive` layer
661
- - [ ] Mock `enqueueTask` returns deterministic taskId
662
- - [ ] Mock `getTaskStatus` returns task progress
663
- - [ ] Test successful task enqueuing
664
- - [ ] Test task status polling
665
- - [ ] Test batch enqueuing (parallel)
666
- - [ ] Test priority queuing (high vs low)
667
- - [ ] Test completion callbacks
668
-
669
- ### ⏳ Cycle 39: Add Workpool Error Types
670
-
671
- **Status:** Pending
672
- **Dependencies:** Cycle 38
673
- **Task:** Define comprehensive error types for task queues
674
- **File:** `backend/convex/domain/workflows/errors.ts`
675
- **Acceptance Criteria:**
676
-
677
- - [ ] `EnqueueError` - Task enqueue failed (includes action, cause)
678
- - [ ] `TaskStatusError` - Failed to check task status (includes taskId)
679
- - [ ] `TaskFailedError` - Task execution failed (includes taskId, error)
680
- - [ ] `WorkpoolFullError` - Workpool at capacity (includes maxParallelism, current)
681
- - [ ] All errors extend `Data.TaggedError`
682
-
683
- ### ⏳ Cycle 40: Integrate Workpool with Workflow
684
-
685
- **Status:** Pending
686
- **Dependencies:** Cycle 39
687
- **Task:** Use TaskQueueService within workflows for async operations
688
- **File:** `backend/convex/domain/workflows/research.ts`
689
- **Acceptance Criteria:**
690
-
691
- - [ ] Enqueue background tasks from workflow steps
692
- - [ ] Poll task status within workflow
693
- - [ ] Handle task failures within workflow
694
- - [ ] Use Effect.retry for task status polling
695
- - [ ] Log task enqueue/complete events
696
- - [ ] Update workflow state based on task results
697
-
698
- ### ⏳ Cycle 41: Wrap @convex-dev/retrier with Effect
699
-
700
- **Status:** Pending
701
- **Dependencies:** Cycle 40
702
- **Task:** Create ResilientExecutionService interface and implementation
703
- **File:** `backend/convex/services/retrier.service.ts`
704
- **Acceptance Criteria:**
705
-
706
- - [ ] Import Effect, Schedule from effect
707
- - [ ] Import ActionRetrier from @convex-dev/retrier
708
- - [ ] Define error types: `RetrierStartError`, `ExecutionTimeout`
709
- - [ ] Create `ResilientExecutionService` Context.Tag
710
- - [ ] Implement `executeWithRetry(ctx, action, args)`
711
- - [ ] Poll for completion with Effect.repeat
712
- - [ ] Return result or throw ExecutionFailed
713
- - [ ] Handle retrier-level and Effect-level retries
714
-
715
- ### ⏳ Cycle 42: Combine Retrier with Effect.retry
716
-
717
- **Status:** Pending
718
- **Dependencies:** Cycle 41
719
- **Task:** Hybrid retry strategy (component + Effect)
720
- **File:** `backend/convex/domain/workflows/reliable-execution.ts`
721
- **Acceptance Criteria:**
722
-
723
- - [ ] Use retrier for infrastructure-level retries (actions with persistent state)
724
- - [ ] Use Effect.retry for application-level retries (in-memory operations)
725
- - [ ] Example: Validate data (Effect.retry) → Process data (retrier.run)
726
- - [ ] Document when to use each approach
727
- - [ ] Add integration test for hybrid retries
728
- - [ ] Log retry attempts as events
729
-
730
- ### ⏳ Cycle 43: Test ResilientExecutionService with Effect
731
-
732
- **Status:** Pending
733
- **Dependencies:** Cycle 42
734
- **Task:** Create test layer for ResilientExecutionService
735
- **File:** `backend/convex/services/retrier.service.test.ts`
736
- **Acceptance Criteria:**
737
-
738
- - [ ] Create `TestResilientExecutionServiceLive` layer
739
- - [ ] Mock action execution with configurable success/failure
740
- - [ ] Test successful execution (returns result)
741
- - [ ] Test retries (fails 2 times, succeeds on 3rd)
742
- - [ ] Test max retries exceeded (throws ExecutionFailed)
743
- - [ ] Test timeout (throws ExecutionTimeout)
744
- - [ ] Test status polling (Effect.repeat)
745
-
746
- ### ⏳ Cycle 44: Add Retrier Error Types
747
-
748
- **Status:** Pending
749
- **Dependencies:** Cycle 43
750
- **Task:** Define comprehensive error types for retries
751
- **File:** `backend/convex/domain/workflows/errors.ts`
752
- **Acceptance Criteria:**
753
-
754
- - [ ] `RetrierStartError` - Failed to start retry execution (includes cause)
755
- - [ ] `StatusCheckError` - Failed to check execution status (includes runId)
756
- - [ ] `ExecutionTimeout` - Execution exceeded time limit (includes runId, duration)
757
- - [ ] `ExecutionFailed` - Execution failed after all retries (includes error, attempts)
758
- - [ ] `ExecutionCanceled` - Execution manually canceled (includes runId)
759
- - [ ] All errors extend `Data.TaggedError`
760
-
761
- ### ⏳ Cycle 45: Integrate Retrier with Workflow
762
-
763
- **Status:** Pending
764
- **Dependencies:** Cycle 44
765
- **Task:** Use ResilientExecutionService for critical workflow steps
766
- **File:** `backend/convex/domain/workflows/support.ts`
767
- **Acceptance Criteria:**
768
-
769
- - [ ] Define `supportTicketWorkflow` using workflow.define
770
- - [ ] Use retrier for external API calls (email, Slack)
771
- - [ ] Use Effect.retry for internal operations (validation, formatting)
772
- - [ ] Handle ExecutionFailed gracefully (fallback actions)
773
- - [ ] Log retry attempts and final outcomes
774
- - [ ] Test workflow with simulated failures
775
-
776
- ### ⏳ Cycle 46: Wrap @convex-dev/crons with Effect
777
-
778
- **Status:** Pending
779
- **Dependencies:** Cycle 45
780
- **Task:** Create CronService interface and implementation
781
- **File:** `backend/convex/services/crons.service.ts`
782
- **Acceptance Criteria:**
783
-
784
- - [ ] Import Effect from effect
785
- - [ ] Import Crons from @convex-dev/crons
786
- - [ ] Define error types: `CronRegisterError`, `CronExecutionError`
787
- - [ ] Create `CronService` Context.Tag
788
- - [ ] Implement `register(ctx, schedule, action, args, name)`
789
- - [ ] Implement `unregister(ctx, name)`
790
- - [ ] Implement `list(ctx)` for registered crons
791
- - [ ] Support cron specs (e.g., "0 0 \* \* \*")
792
-
793
- ### ⏳ Cycle 47: Effect-Based Cron Job Logic
794
-
795
- **Status:** Pending
796
- **Dependencies:** Cycle 46
797
- **Task:** Use Effect in cron job handlers
798
- **File:** `backend/convex/domain/crons/daily-maintenance.ts`
799
- **Acceptance Criteria:**
800
-
801
- - [ ] Create `dailyMaintenanceWithEffect` internalAction
802
- - [ ] Use Effect.gen for job logic
803
- - [ ] Inject services (RAGService, MonitoringService)
804
- - [ ] Clean up old content (Effect-wrapped mutation)
805
- - [ ] Generate daily report (Effect service call)
806
- - [ ] Send report via email (Effect-wrapped action)
807
- - [ ] Handle errors with Effect.catchAll (log + succeed)
808
- - [ ] Run with Effect.runPromise
809
-
810
- ### ⏳ Cycle 48: Test CronService with Effect
811
-
812
- **Status:** Pending
813
- **Dependencies:** Cycle 47
814
- **Task:** Create test layer for CronService
815
- **File:** `backend/convex/services/crons.service.test.ts`
816
- **Acceptance Criteria:**
817
-
818
- - [ ] Create `TestCronServiceLive` layer
819
- - [ ] Mock `register` stores cron definition
820
- - [ ] Mock `list` returns registered crons
821
- - [ ] Test cron registration (succeeds)
822
- - [ ] Test cron execution (job runs on schedule)
823
- - [ ] Test cron unregistration (removes from list)
824
- - [ ] Test job errors (logged, job continues)
825
- - [ ] Test Effect-based job logic (services injected)
826
-
827
- ### ⏳ Cycle 49: Add Cron Error Types
828
-
829
- **Status:** Pending
830
- **Dependencies:** Cycle 48
831
- **Task:** Define comprehensive error types for crons
832
- **File:** `backend/convex/domain/crons/errors.ts`
833
- **Acceptance Criteria:**
834
-
835
- - [ ] `CronRegisterError` - Failed to register cron (includes cronspec, cause)
836
- - [ ] `CronExecutionError` - Cron job execution failed (includes jobName, cause)
837
- - [ ] `InvalidCronspecError` - Cron schedule format invalid (includes cronspec)
838
- - [ ] `CronNotFoundError` - Cron doesn't exist (includes cronName)
839
- - [ ] All errors extend `Data.TaggedError`
840
-
841
- ### ⏳ Cycle 50: Integrate Crons with Monitoring
842
-
843
- **Status:** Pending
844
- **Dependencies:** Cycle 49
845
- **Task:** Track cron job executions via MonitoringService
846
- **File:** `backend/convex/domain/crons/daily-maintenance.ts`
847
- **Acceptance Criteria:**
848
-
849
- - [ ] Inject MonitoringService in cron job
850
- - [ ] Track job start (Effect.tap)
851
- - [ ] Track job completion (Effect.tap)
852
- - [ ] Track job errors (Effect.tapError)
853
- - [ ] Log execution duration
854
- - [ ] Alert if job fails repeatedly (3+ times)
855
- - [ ] Store job metrics in database
856
-
857
- ---
858
-
859
- ## Domain Logic Phase (Cycle 51-70)
860
-
861
- **Agents:** agent-backend, agent-builder
862
- **Goal:** Build complex business logic using Effect services
863
-
864
- ### ⏳ Cycle 51: Multi-Agent Orchestration with Effect
865
-
866
- **Status:** Pending
867
- **Dependencies:** Cycle 50
868
- **Task:** Compose multiple agents in parallel and sequential flows
869
- **File:** `backend/convex/domain/agents/orchestration.ts`
870
- **Acceptance Criteria:**
871
-
872
- - [ ] Create `multiAgentPipeline` action
873
- - [ ] Inject AgentService and RAGService
874
- - [ ] Sequential: Fetch context → Classify intent → Route to agent
875
- - [ ] Parallel: Quality checks (grammar + factuality)
876
- - [ ] Use Effect.gen for sequential, Effect.all for parallel
877
- - [ ] Handle errors from multiple agents gracefully
878
- - [ ] Return combined result
879
-
880
- ### ⏳ Cycle 52: Parallel Agent Execution (Effect.all)
881
-
882
- **Status:** Pending
883
- **Dependencies:** Cycle 51
884
- **Task:** Run multiple agents concurrently with concurrency control
885
- **File:** `backend/convex/domain/agents/orchestration.ts`
886
- **Acceptance Criteria:**
887
-
888
- - [ ] Use Effect.all with concurrency: 2 (limit parallel agents)
889
- - [ ] Execute: [webSearchAgent, academicAgent, newsAgent]
890
- - [ ] Collect results in array
891
- - [ ] Handle partial failures (mode: "default" vs "either")
892
- - [ ] Return all results or fail fast
893
- - [ ] Log agent execution metrics
894
-
895
- ### ⏳ Cycle 53: Sequential Agent Pipelines (Effect.gen)
896
-
897
- **Status:** Pending
898
- **Dependencies:** Cycle 52
899
- **Task:** Chain agents where output of one feeds into next
900
- **File:** `backend/convex/domain/agents/orchestration.ts`
901
- **Acceptance Criteria:**
902
-
903
- - [ ] Use Effect.gen for sequential composition
904
- - [ ] Example: ClassifyAgent → (if technical) TechnicalAgent → QualityCheckAgent
905
- - [ ] Pass results between steps (yield\* pattern)
906
- - [ ] Short-circuit on errors (automatic with Effect)
907
- - [ ] Add Effect.tap for logging intermediate results
908
- - [ ] Return final result
909
-
910
- ### ⏳ Cycle 54: Conditional Agent Routing
911
-
912
- **Status:** Pending
913
- **Dependencies:** Cycle 53
914
- **Task:** Route to different agents based on classification
915
- **File:** `backend/convex/domain/agents/orchestration.ts`
916
- **Acceptance Criteria:**
917
-
918
- - [ ] Classify query type (technical, sales, support)
919
- - [ ] Route to appropriate agent based on classification
920
- - [ ] Use Effect conditional logic (ternary or if/else in Effect.gen)
921
- - [ ] Fall back to general agent if classification fails
922
- - [ ] Log routing decisions as events
923
- - [ ] Test all routing paths
924
-
925
- ### ⏳ Cycle 55: Error Propagation Across Agents
926
-
927
- **Status:** Pending
928
- **Dependencies:** Cycle 54
929
- **Task:** Handle errors from any agent in pipeline
930
- **File:** `backend/convex/domain/agents/orchestration.ts`
931
- **Acceptance Criteria:**
932
-
933
- - [ ] Use Effect.catchTag for specific agent errors
934
- - [ ] Example: Catch ClassificationError, use default route
935
- - [ ] Example: Catch AgentError from any agent, return fallback response
936
- - [ ] Use Effect.catchAll for unexpected errors
937
- - [ ] Log all errors as events
938
- - [ ] Graceful degradation (partial results)
939
-
940
- ### ⏳ Cycle 56: Research Workflow Implementation (Part 1: Structure)
941
-
942
- **Status:** Pending
943
- **Dependencies:** Cycle 55
944
- **Task:** Define research workflow structure
945
- **File:** `backend/convex/domain/workflows/research.ts`
946
- **Acceptance Criteria:**
947
-
948
- - [ ] Import workflow from services/workflow.service
949
- - [ ] Define `researchWorkflow` with workflow.define
950
- - [ ] Args: { query: v.string(), userId: v.string() }
951
- - [ ] Return type: ResearchResult
952
- - [ ] Stub handler (async function with steps)
953
- - [ ] Plan 5 steps: Classify, Parallel Research, Synthesize, Generate Report, Save
954
-
955
- ### ⏳ Cycle 57: Research Workflow (Part 2: Parallel Research)
956
-
957
- **Status:** Pending
958
- **Dependencies:** Cycle 56
959
- **Task:** Implement parallel research step
960
- **File:** `backend/convex/domain/workflows/research.ts`
961
- **Acceptance Criteria:**
962
-
963
- - [ ] Step 2: Parallel research with Promise.all
964
- - [ ] Run: webSearchAgent, academicAgent, newsAgent (all actions)
965
- - [ ] Use step.runAction for each agent
966
- - [ ] Collect results in array
967
- - [ ] Handle failures (log but continue)
968
- - [ ] Pass results to next step
969
-
970
- ### ⏳ Cycle 58: Research Workflow (Part 3: Synthesis with Effect)
971
-
972
- **Status:** Pending
973
- **Dependencies:** Cycle 57
974
- **Task:** Synthesize findings using Effect services
975
- **File:** `backend/convex/domain/workflows/research.ts`
976
- **Acceptance Criteria:**
977
-
978
- - [ ] Create `synthesisAgentWithEffect` internalAction
979
- - [ ] Use Effect.gen for composition
980
- - [ ] Inject AgentService and RAGService
981
- - [ ] Fetch background context (RAGService.search)
982
- - [ ] Synthesize findings with agent
983
- - [ ] Add Effect.retry for robustness
984
- - [ ] Return synthesis result
985
- - [ ] Call from workflow step
986
-
987
- ### ⏳ Cycle 59: Research Workflow (Part 4: Report Generation)
988
-
989
- **Status:** Pending
990
- **Dependencies:** Cycle 58
991
- **Task:** Generate final report
992
- **File:** `backend/convex/domain/workflows/research.ts`
993
- **Acceptance Criteria:**
994
-
995
- - [ ] Step 4: Generate report (step.runAction)
996
- - [ ] Create `reportGeneratorWithEffect` internalAction
997
- - [ ] Use AgentService to format report
998
- - [ ] Include: Summary, key findings, sources, recommendations
999
- - [ ] Format as markdown
1000
- - [ ] Add Effect error handling
1001
- - [ ] Return formatted report
1002
-
1003
- ### ⏳ Cycle 60: Research Workflow (Part 5: Save and Notify)
1004
-
1005
- **Status:** Pending
1006
- **Dependencies:** Cycle 59
1007
- **Task:** Save report and notify user
1008
- **File:** `backend/convex/domain/workflows/research.ts`
1009
- **Acceptance Criteria:**
1010
-
1011
- - [ ] Step 5: Save report (step.runMutation)
1012
- - [ ] Create mutation to save to database
1013
- - [ ] Send notification email (optional action)
1014
- - [ ] Log workflow completion event
1015
- - [ ] Return final report
1016
- - [ ] Test complete workflow end-to-end
1017
-
1018
- ### ⏳ Cycle 61: Support Ticket Workflow (Part 1: Structure)
1019
-
1020
- **Status:** Pending
1021
- **Dependencies:** Cycle 60
1022
- **Task:** Define support ticket workflow
1023
- **File:** `backend/convex/domain/workflows/support.ts`
1024
- **Acceptance Criteria:**
1025
-
1026
- - [ ] Define `supportTicketWorkflow` with workflow.define
1027
- - [ ] Args: { userId: v.string(), issue: v.string() }
1028
- - [ ] Return type: SupportResult
1029
- - [ ] Plan 4 steps: Create thread, Generate response, Quality check, Save ticket
1030
- - [ ] Stub handler
1031
-
1032
- ### ⏳ Cycle 62: Support Workflow (Part 2: Create Thread)
1033
-
1034
- **Status:** Pending
1035
- **Dependencies:** Cycle 61
1036
- **Task:** Create agent thread for support
1037
- **File:** `backend/convex/domain/workflows/support.ts`
1038
- **Acceptance Criteria:**
1039
-
1040
- - [ ] Step 1: Fetch user context (step.runQuery)
1041
- - [ ] Step 2: Create agent thread (step.runAction)
1042
- - [ ] Use `createSupportThreadWithEffect` internalAction
1043
- - [ ] Inject AgentService and RAGService
1044
- - [ ] Fetch relevant KB articles (RAG)
1045
- - [ ] Create thread with context
1046
- - [ ] Return threadId and initial response
1047
-
1048
- ### ⏳ Cycle 63: Support Workflow (Part 3: Quality Check)
1049
-
1050
- **Status:** Pending
1051
- **Dependencies:** Cycle 62
1052
- **Task:** Check response quality in parallel
1053
- **File:** `backend/convex/domain/workflows/support.ts`
1054
- **Acceptance Criteria:**
1055
-
1056
- - [ ] Step 3: Parallel quality checks (Promise.all)
1057
- - [ ] Check grammar score (step.runAction)
1058
- - [ ] Check factuality score (step.runAction)
1059
- - [ ] Both use Effect services internally
1060
- - [ ] Return scores
1061
- - [ ] Refine response if scores < 0.8
1062
-
1063
- ### ⏳ Cycle 64: Support Workflow (Part 4: Refine Response)
1064
-
1065
- **Status:** Pending
1066
- **Dependencies:** Cycle 63
1067
- **Task:** Refine response if quality checks fail
1068
- **File:** `backend/convex/domain/workflows/support.ts`
1069
- **Acceptance Criteria:**
1070
-
1071
- - [ ] Conditional: If grammarScore < 0.8 OR factualityScore < 0.8
1072
- - [ ] Run: `refineResponseWithEffect` (step.runAction)
1073
- - [ ] Use Effect.retry (max 2 attempts)
1074
- - [ ] Re-run quality checks
1075
- - [ ] Return refined response or original if retries fail
1076
- - [ ] Log refinement attempts
1077
-
1078
- ### ⏳ Cycle 65: Support Workflow (Part 5: Save Ticket)
1079
-
1080
- **Status:** Pending
1081
- **Dependencies:** Cycle 64
1082
- **Task:** Save support ticket to database
1083
- **File:** `backend/convex/domain/workflows/support.ts`
1084
- **Acceptance Criteria:**
1085
-
1086
- - [ ] Step 4: Save ticket (step.runMutation)
1087
- - [ ] Store: userId, threadId, issue, response, qualityScores
1088
- - [ ] Create ticket entity in database
1089
- - [ ] Send notification to support team (optional)
1090
- - [ ] Log ticket creation event
1091
- - [ ] Return ticket result
1092
-
1093
- ### ⏳ Cycle 66: Tool Definition: Email Tool with Effect
1094
-
1095
- **Status:** Pending
1096
- **Dependencies:** Cycle 65
1097
- **Task:** Create email tool using Effect services
1098
- **File:** `backend/convex/domain/agents/tools.ts`
1099
- **Acceptance Criteria:**
1100
-
1101
- - [ ] Define `EmailService` Context.Tag
1102
- - [ ] Implement `EmailServiceLive` (uses SendGrid or Resend)
1103
- - [ ] Create `emailTool` with createTool
1104
- - [ ] Tool handler uses Effect.gen internally
1105
- - [ ] Inject EmailService (yield\* EmailService)
1106
- - [ ] Send email with service
1107
- - [ ] Convert Effect to Promise (Effect.runPromise)
1108
- - [ ] Return success/failure message
1109
-
1110
- ### ⏳ Cycle 67: Tool Definition: Database Query Tool with Effect
1111
-
1112
- **Status:** Pending
1113
- **Dependencies:** Cycle 66
1114
- **Task:** Create database query tool using Effect
1115
- **File:** `backend/convex/domain/agents/tools.ts`
1116
- **Acceptance Criteria:**
1117
-
1118
- - [ ] Define `DatabaseService` Context.Tag
1119
- - [ ] Implement `DatabaseServiceLive` (wraps ctx.db operations)
1120
- - [ ] Create `databaseQueryTool` with createTool
1121
- - [ ] Tool handler uses Effect.gen
1122
- - [ ] Inject DatabaseService
1123
- - [ ] Execute query (e.g., search users by email)
1124
- - [ ] Return results as string (formatted)
1125
- - [ ] Handle errors gracefully
1126
-
1127
- ### ⏳ Cycle 68: Tool Definition: External API Tool with Effect
1128
-
1129
- **Status:** Pending
1130
- **Dependencies:** Cycle 67
1131
- **Task:** Create external API tool using Effect
1132
- **File:** `backend/convex/domain/agents/tools.ts`
1133
- **Acceptance Criteria:**
1134
-
1135
- - [ ] Define `ExternalAPIService` Context.Tag
1136
- - [ ] Implement `ExternalAPIServiceLive` (uses fetch)
1137
- - [ ] Create `externalAPITool` with createTool
1138
- - [ ] Tool handler uses Effect.gen
1139
- - [ ] Inject ExternalAPIService
1140
- - [ ] Make API call with retry (Effect.retry)
1141
- - [ ] Parse response
1142
- - [ ] Return result to agent
1143
-
1144
- ### ⏳ Cycle 69: Error Handling in Agent Tools
1145
-
1146
- **Status:** Pending
1147
- **Dependencies:** Cycle 68
1148
- **Task:** Handle errors gracefully in all tools
1149
- **File:** `backend/convex/domain/agents/tools.ts`
1150
- **Acceptance Criteria:**
1151
-
1152
- - [ ] Wrap all tool operations in Effect.tryPromise
1153
- - [ ] Define tool-specific error types (EmailError, APIError, etc.)
1154
- - [ ] Use Effect.catchAll to return error messages
1155
- - [ ] Log tool errors as events
1156
- - [ ] Return helpful error messages to agent (not exceptions)
1157
- - [ ] Agent continues even if tool fails
1158
-
1159
- ### ⏳ Cycle 70: Register Tools with Agent
1160
-
1161
- **Status:** Pending
1162
- **Dependencies:** Cycle 69
1163
- **Task:** Add all tools to Agent component
1164
- **File:** `backend/convex/services/agent.service.ts`
1165
- **Acceptance Criteria:**
1166
-
1167
- - [ ] Import all tools (emailTool, databaseQueryTool, externalAPITool)
1168
- - [ ] Register in Agent config: `tools: { sendEmail: emailTool, queryDB: databaseQueryTool, callAPI: externalAPITool }`
1169
- - [ ] Agent can now call tools
1170
- - [ ] Test agent using tools (integration test)
1171
- - [ ] Verify Effect services injected correctly in tools
1172
- - [ ] Log tool usage metrics
1173
-
1174
- ---
1175
-
1176
- ## Observability & Testing Phase (Cycle 71-90)
1177
-
1178
- **Agents:** agent-quality, agent-ops
1179
- **Goal:** Monitoring, testing, error handling, resource management
1180
-
1181
- ### ⏳ Cycle 71: Create MonitoringService with Effect
1182
-
1183
- **Status:** Pending
1184
- **Dependencies:** Cycle 70
1185
- **Task:** Implement observability service
1186
- **File:** `backend/convex/services/monitoring.service.ts`
1187
- **Acceptance Criteria:**
1188
-
1189
- - [ ] Define `MonitoringService` Context.Tag
1190
- - [ ] Interface: `trackServiceCall(name, duration, result)`, `trackError(error)`, `trackTokenUsage(tokens)`
1191
- - [ ] Implement `MonitoringServiceLive` (logs to console + database)
1192
- - [ ] Use Effect.tap to track service calls
1193
- - [ ] Use Effect.tapError to track errors
1194
- - [ ] Store metrics in database (events table)
1195
- - [ ] Export metrics for external tools (Sentry, Datadog)
1196
-
1197
- ### ⏳ Cycle 72: Track Service Call Lifecycle
1198
-
1199
- **Status:** Pending
1200
- **Dependencies:** Cycle 71
1201
- **Task:** Log start, complete, fail for every service call
1202
- **File:** `backend/convex/lib/monitoring.ts`
1203
- **Acceptance Criteria:**
1204
-
1205
- - [ ] Wrap service calls with Effect.tap
1206
- - [ ] Log service_call_started event (service name, args)
1207
- - [ ] Log service_call_completed event (service name, duration, result)
1208
- - [ ] Log service_call_failed event (service name, error, duration)
1209
- - [ ] Include trace ID for distributed tracing
1210
- - [ ] Store in events table with metadata
1211
-
1212
- ### ⏳ Cycle 73: Track Token Usage for AI Services
1213
-
1214
- **Status:** Pending
1215
- **Dependencies:** Cycle 72
1216
- **Task:** Monitor AI model token consumption
1217
- **File:** `backend/convex/services/agent.service.ts`
1218
- **Acceptance Criteria:**
1219
-
1220
- - [ ] Extract token usage from agent response (response.usage)
1221
- - [ ] Call `MonitoringService.trackTokenUsage`
1222
- - [ ] Store: promptTokens, completionTokens, totalTokens, model, timestamp
1223
- - [ ] Aggregate usage per user, per organization
1224
- - [ ] Alert if usage exceeds quota
1225
- - [ ] Display in usage dashboard (frontend)
1226
-
1227
- ### ⏳ Cycle 74: Error Tracking with Sentry Integration
1228
-
1229
- **Status:** Pending
1230
- **Dependencies:** Cycle 73
1231
- **Task:** Send errors to Sentry for debugging
1232
- **File:** `backend/convex/lib/monitoring.ts`
1233
- **Acceptance Criteria:**
1234
-
1235
- - [ ] Install `@sentry/node`
1236
- - [ ] Initialize Sentry in MonitoringService
1237
- - [ ] Capture Effect errors with Sentry.captureException
1238
- - [ ] Include: Error type, stack trace, service context, user context
1239
- - [ ] Group errors by error type (\_tag)
1240
- - [ ] Link Sentry issues to Convex functions
1241
- - [ ] Test error capture
1242
-
1243
- ### ⏳ Cycle 75: Performance Metrics Tracking
1244
-
1245
- **Status:** Pending
1246
- **Dependencies:** Cycle 74
1247
- **Task:** Track latency per service operation
1248
- **File:** `backend/convex/lib/monitoring.ts`
1249
- **Acceptance Criteria:**
1250
-
1251
- - [ ] Measure duration for every service call (Date.now())
1252
- - [ ] Store: service name, operation, duration, timestamp
1253
- - [ ] Calculate: p50, p95, p99 latency (in database query)
1254
- - [ ] Alert if latency exceeds threshold (p95 > 500ms)
1255
- - [ ] Display in monitoring dashboard
1256
- - [ ] Export to external APM (Application Performance Monitoring)
1257
-
1258
- ### ⏳ Cycle 76: Create Test Layers (Mock Implementations)
1259
-
1260
- **Status:** Pending
1261
- **Dependencies:** Cycle 75
1262
- **Task:** Build test implementations for all services
1263
- **File:** `backend/convex/services/test-layers.ts`
1264
- **Acceptance Criteria:**
1265
-
1266
- - [ ] Create `TestAgentServiceLive` with mock generateResponse
1267
- - [ ] Create `TestRAGServiceLive` with mock search
1268
- - [ ] Create `TestRateLimitServiceLive` with mock checkLimit
1269
- - [ ] Create `TestWorkflowServiceLive` with mock workflow steps
1270
- - [ ] Create `TestMonitoringServiceLive` (no-op logging)
1271
- - [ ] Export all test layers for use in tests
1272
- - [ ] Document how to use test layers
1273
-
1274
- ### ⏳ Cycle 77: Test AgentService with Mock Layer
1275
-
1276
- **Status:** Pending
1277
- **Dependencies:** Cycle 76
1278
- **Task:** Write unit tests for AgentService using test layer
1279
- **File:** `backend/convex/services/agent.service.test.ts`
1280
- **Acceptance Criteria:**
1281
-
1282
- - [ ] Test: `generateResponse` returns mock response
1283
- - [ ] Test: `createThread` returns deterministic threadId
1284
- - [ ] Test: Rate limit check (mocked RateLimitService)
1285
- - [ ] Test: Error handling (AgentError thrown and caught)
1286
- - [ ] Test: Retry logic (transient errors recover)
1287
- - [ ] All tests use `TestAgentServiceLive` layer
1288
- - [ ] All tests pass
1289
-
1290
- ### ⏳ Cycle 78: Test RAGService with Mock Layer
1291
-
1292
- **Status:** Pending
1293
- **Dependencies:** Cycle 77
1294
- **Task:** Write unit tests for RAGService
1295
- **File:** `backend/convex/services/rag.service.test.ts`
1296
- **Acceptance Criteria:**
1297
-
1298
- - [ ] Test: `search` returns mock results with scores
1299
- - [ ] Test: `addDocument` returns deterministic entryId
1300
- - [ ] Test: Error handling (SearchError, EmbeddingError)
1301
- - [ ] Test: Composition with AgentService (integration)
1302
- - [ ] Use `TestRAGServiceLive` layer
1303
- - [ ] All tests pass
1304
-
1305
- ### ⏳ Cycle 79: Test Effect Error Handling (Effect.catchTag)
1306
-
1307
- **Status:** Pending
1308
- **Dependencies:** Cycle 78
1309
- **Task:** Validate error handling patterns
1310
- **File:** `backend/convex/domain/agents/orchestration.test.ts`
1311
- **Acceptance Criteria:**
1312
-
1313
- - [ ] Test: Catch specific error (Effect.catchTag("AgentError"))
1314
- - [ ] Test: Catch all errors (Effect.catchAll)
1315
- - [ ] Test: Error propagation (child service error bubbles up)
1316
- - [ ] Test: Graceful degradation (return fallback on error)
1317
- - [ ] Test: Retry on specific errors (Effect.retry with Schedule.whileInput)
1318
- - [ ] All tests use test layers
1319
- - [ ] All tests pass
1320
-
1321
- ### ⏳ Cycle 80: Integration Tests with Real Components
1322
-
1323
- **Status:** Pending
1324
- **Dependencies:** Cycle 79
1325
- **Task:** Test with actual Convex components (not mocks)
1326
- **File:** `backend/convex/integration/services.test.ts`
1327
- **Acceptance Criteria:**
1328
-
1329
- - [ ] Test: AgentService with real @convex-dev/agent
1330
- - [ ] Test: RAGService with real @convex-dev/rag
1331
- - [ ] Test: RateLimitService with real @convex-dev/rate-limiter
1332
- - [ ] Test: End-to-end flow (create thread → search RAG → generate response)
1333
- - [ ] Test: Error handling with real components
1334
- - [ ] Test: Performance (latency within acceptable range)
1335
- - [ ] All integration tests pass
1336
-
1337
- ### ⏳ Cycle 81: Layered Error Handling Pattern
1338
-
1339
- **Status:** Pending
1340
- **Dependencies:** Cycle 80
1341
- **Task:** Implement layered error handling strategy
1342
- **File:** `backend/convex/lib/error-handling.ts`
1343
- **Acceptance Criteria:**
1344
-
1345
- - [ ] Domain errors: Business logic failures (UserNotFoundError)
1346
- - [ ] Infrastructure errors: Component failures (AgentError, RAGError)
1347
- - [ ] Handle domain errors specifically (Effect.catchTag)
1348
- - [ ] Handle infrastructure errors with retry (Effect.retry)
1349
- - [ ] Catch-all for unexpected errors (Effect.catchAll)
1350
- - [ ] Example implementation in orchestration.ts
1351
- - [ ] Document pattern
1352
-
1353
- ### ⏳ Cycle 82: Retry Strategies (Schedule.exponential)
1354
-
1355
- **Status:** Pending
1356
- **Dependencies:** Cycle 81
1357
- **Task:** Implement smart retry policies
1358
- **File:** `backend/convex/lib/retry-strategies.ts`
1359
- **Acceptance Criteria:**
1360
-
1361
- - [ ] Exponential backoff: Schedule.exponential("1 second").pipe(Schedule.recurs(3))
1362
- - [ ] Retry only specific errors: Schedule.whileInput((error) => error.\_tag === "TransientError")
1363
- - [ ] Max retries: Schedule.recurs(5)
1364
- - [ ] Retry with jitter: Add randomness to backoff
1365
- - [ ] Document when to use each strategy
1366
- - [ ] Apply to agent, RAG, external API calls
1367
-
1368
- ### ⏳ Cycle 83: Circuit Breaker Pattern with Effect
1369
-
1370
- **Status:** Pending
1371
- **Dependencies:** Cycle 82
1372
- **Task:** Prevent cascading failures
1373
- **File:** `backend/convex/lib/circuit-breaker.ts`
1374
- **Acceptance Criteria:**
1375
-
1376
- - [ ] Define circuit breaker states: Closed, Open, HalfOpen
1377
- - [ ] Track failure rate (e.g., 5 failures in 10 seconds → Open)
1378
- - [ ] Open state: Reject requests immediately (no calls to service)
1379
- - [ ] HalfOpen state: Allow limited requests to test recovery
1380
- - [ ] Closed state: Normal operation
1381
- - [ ] Implement with Effect.Ref for state management
1382
- - [ ] Apply to external API calls
1383
-
1384
- ### ⏳ Cycle 84: Graceful Degradation Pattern
1385
-
1386
- **Status:** Pending
1387
- **Dependencies:** Cycle 83
1388
- **Task:** Return partial results on failure
1389
- **File:** `backend/convex/domain/agents/orchestration.ts`
1390
- **Acceptance Criteria:**
1391
-
1392
- - [ ] Example: Multi-agent pipeline fails for one agent
1393
- - [ ] Return results from successful agents
1394
- - [ ] Include error message for failed agent
1395
- - [ ] User gets partial response, not complete failure
1396
- - [ ] Log degradation event (service_degraded)
1397
- - [ ] Test with mock failures
1398
-
1399
- ### ⏳ Cycle 85: Resource Management with Effect.Scope
1400
-
1401
- **Status:** Pending
1402
- **Dependencies:** Cycle 84
1403
- **Task:** Implement resource acquisition/release
1404
- **File:** `backend/convex/lib/resource-management.ts`
1405
- **Acceptance Criteria:**
1406
-
1407
- - [ ] Use Effect.Scope for resource lifecycle
1408
- - [ ] Pattern: Effect.acquireRelease(acquire, release)
1409
- - [ ] Example: Acquire agent pool, release on completion/error
1410
- - [ ] Ensure resources released even on failure
1411
- - [ ] Test resource cleanup (no leaks)
1412
- - [ ] Document pattern
1413
-
1414
- ### ⏳ Cycle 86: Connection Pooling for External APIs
1415
-
1416
- **Status:** Pending
1417
- **Dependencies:** Cycle 85
1418
- **Task:** Reuse connections for efficiency
1419
- **File:** `backend/convex/lib/connection-pool.ts`
1420
- **Acceptance Criteria:**
1421
-
1422
- - [ ] Create connection pool for external APIs
1423
- - [ ] Acquire connection from pool (Effect.acquireRelease)
1424
- - [ ] Reuse connections across requests
1425
- - [ ] Release connection back to pool
1426
- - [ ] Close pool on shutdown (cleanup)
1427
- - [ ] Test pool behavior (acquire, reuse, release)
1428
-
1429
- ### ⏳ Cycle 87: Agent Pool Lifecycle Management
1430
-
1431
- **Status:** Pending
1432
- **Dependencies:** Cycle 86
1433
- **Task:** Manage pool of agent instances
1434
- **File:** `backend/convex/services/agent.service.ts`
1435
- **Acceptance Criteria:**
1436
-
1437
- - [ ] Create pool of agent instances (e.g., 10 agents)
1438
- - [ ] Acquire agent from pool for request
1439
- - [ ] Release agent back to pool
1440
- - [ ] Handle pool exhaustion (queue requests)
1441
- - [ ] Shutdown pool gracefully (finish in-flight requests)
1442
- - [ ] Test pool under load
1443
-
1444
- ### ⏳ Cycle 88: Cleanup on Failure
1445
-
1446
- **Status:** Pending
1447
- **Dependencies:** Cycle 87
1448
- **Task:** Ensure resources released on errors
1449
- **File:** `backend/convex/lib/resource-management.ts`
1450
- **Acceptance Criteria:**
1451
-
1452
- - [ ] Use Effect.acquireRelease (release always called)
1453
- - [ ] Test: Throw error during operation, verify release called
1454
- - [ ] Test: Multiple resources acquired, all released on error
1455
- - [ ] Example: Acquire DB connection, agent, external API connection
1456
- - [ ] All released if any operation fails
1457
- - [ ] No resource leaks
1458
-
1459
- ### ⏳ Cycle 89: Resource Acquisition/Release Patterns
1460
-
1461
- **Status:** Pending
1462
- **Dependencies:** Cycle 88
1463
- **Task:** Document common resource management patterns
1464
- **File:** `backend/convex/lib/resource-management.md`
1465
- **Acceptance Criteria:**
1466
-
1467
- - [ ] Pattern 1: Single resource (Effect.acquireRelease)
1468
- - [ ] Pattern 2: Multiple resources (nested acquireRelease)
1469
- - [ ] Pattern 3: Conditional resource acquisition
1470
- - [ ] Pattern 4: Resource pooling
1471
- - [ ] Pattern 5: Cleanup on shutdown
1472
- - [ ] Code examples for each pattern
1473
- - [ ] Best practices
1474
-
1475
- ### ⏳ Cycle 90: Resource Safety Tests
1476
-
1477
- **Status:** Pending
1478
- **Dependencies:** Cycle 89
1479
- **Task:** Validate zero resource leaks
1480
- **File:** `backend/convex/lib/resource-management.test.ts`
1481
- **Acceptance Criteria:**
1482
-
1483
- - [ ] Test: Acquire and release resource (success path)
1484
- - [ ] Test: Acquire and release resource (error path)
1485
- - [ ] Test: Multiple resources acquired and released
1486
- - [ ] Test: Resource pool behavior (acquire, reuse, release)
1487
- - [ ] Test: Memory usage (no leaks after 1000 operations)
1488
- - [ ] All tests pass
1489
-
1490
- ---
1491
-
1492
- ## Advanced Patterns & Documentation Phase (Cycle 91-100)
1493
-
1494
- **Agents:** agent-documenter, agent-ops, agent-backend
1495
- **Goal:** Confect evaluation, documentation, optimization, launch
1496
-
1497
- ### ⏳ Cycle 91: Evaluate Confect for Full Effect Integration
1498
-
1499
- **Status:** Pending
1500
- **Dependencies:** Cycle 90
1501
- **Task:** Assess Confect vs manual integration
1502
- **File:** `one/things/plans/confect-evaluation.md`
1503
- **Acceptance Criteria:**
1504
-
1505
- - [ ] Install @rjdellecese/confect
1506
- - [ ] Create sample schema with Effect Schema
1507
- - [ ] Define sample query/mutation with Confect
1508
- - [ ] Compare: Manual integration vs Confect
1509
- - [ ] Pros: Effect-native, Option<A> instead of A | null, Effect.Schema
1510
- - [ ] Cons: Learning curve, team adoption, migration effort
1511
- - [ ] Recommendation: Manual integration (gradual adoption) vs Confect (new projects)
1512
-
1513
- ### ⏳ Cycle 92: Confect + Convex Components Pattern
1514
-
1515
- **Status:** Pending
1516
- **Dependencies:** Cycle 91
1517
- **Task:** Test Confect compatibility with components
1518
- **File:** `backend/convex/confect-test.ts`
1519
- **Acceptance Criteria:**
1520
-
1521
- - [ ] Define schema with Confect (defineSchema, defineTable)
1522
- - [ ] Create Confect functions (query, mutation, action)
1523
- - [ ] Use Convex components in Confect actions
1524
- - [ ] Wrap component calls with Effect.tryPromise
1525
- - [ ] Verify: Confect context compatible with component context
1526
- - [ ] Document integration pattern
1527
- - [ ] Test end-to-end
1528
-
1529
- ### ⏳ Cycle 93: Migration Guide (Promise → Effect, Manual → Confect)
1530
-
1531
- **Status:** Pending
1532
- **Dependencies:** Cycle 92
1533
- **Task:** Document migration strategies
1534
- **File:** `one/things/plans/effect-migration-guide.md`
1535
- **Acceptance Criteria:**
1536
-
1537
- - [ ] Guide 1: Migrating Promise-based code to Effect
1538
- - [ ] Guide 2: Migrating manual Effect integration to Confect
1539
- - [ ] Step-by-step instructions
1540
- - [ ] Code examples (before/after)
1541
- - [ ] Common pitfalls and solutions
1542
- - [ ] Timeline estimates (days per 1000 LOC)
1543
- - [ ] Decision tree (when to migrate vs rewrite)
1544
-
1545
- ### ⏳ Cycle 94: Write Service Layer Guide
1546
-
1547
- **Status:** Pending
1548
- **Dependencies:** Cycle 93
1549
- **Task:** Comprehensive guide for Effect service layers
1550
- **File:** `one/knowledge/effect-service-layer-guide.md`
1551
- **Acceptance Criteria:**
1552
-
1553
- - [ ] Overview: Effect wraps components, not replaces
1554
- - [ ] Pattern 1: Effect-wrapped component
1555
- - [ ] Pattern 2: Service layer (Context.Tag + Layer)
1556
- - [ ] Pattern 3: Error handling (tagged errors)
1557
- - [ ] Pattern 4: Parallel execution (Effect.all)
1558
- - [ ] Pattern 5: Resource management (Scope, acquireRelease)
1559
- - [ ] Code examples for all patterns
1560
- - [ ] Best practices
1561
-
1562
- ### ⏳ Cycle 95: Document All Effect Patterns
1563
-
1564
- **Status:** Pending
1565
- **Dependencies:** Cycle 94
1566
- **Task:** Create pattern library
1567
- **File:** `one/knowledge/effect-patterns.md`
1568
- **Acceptance Criteria:**
1569
-
1570
- - [ ] Pattern: Effect.tryPromise (Promise → Effect)
1571
- - [ ] Pattern: Effect.gen (sequential composition)
1572
- - [ ] Pattern: Effect.all (parallel composition)
1573
- - [ ] Pattern: Effect.catchTag (specific error handling)
1574
- - [ ] Pattern: Effect.catchAll (fallback error handling)
1575
- - [ ] Pattern: Effect.retry + Schedule (retry policies)
1576
- - [ ] Pattern: Effect.Scope + acquireRelease (resource management)
1577
- - [ ] Pattern: Context.Tag + Layer (dependency injection)
1578
- - [ ] Code examples for each
1579
-
1580
- ### ⏳ Cycle 96: Create Example Programs
1581
-
1582
- **Status:** Pending
1583
- **Dependencies:** Cycle 95
1584
- **Task:** End-to-end examples using Effect services
1585
- **File:** `one/knowledge/effect-examples.md`
1586
- **Acceptance Criteria:**
1587
-
1588
- - [ ] Example 1: Multi-agent orchestration
1589
- - [ ] Example 2: Research workflow
1590
- - [ ] Example 3: Support ticket workflow
1591
- - [ ] Example 4: Batch processing with workpool
1592
- - [ ] Example 5: Scheduled cron job with Effect
1593
- - [ ] All examples fully working (copy-paste ready)
1594
- - [ ] Include test setup
1595
-
1596
- ### ⏳ Cycle 97: Troubleshooting Guide for Effect Errors
1597
-
1598
- **Status:** Pending
1599
- **Dependencies:** Cycle 96
1600
- **Task:** Common errors and solutions
1601
- **File:** `one/knowledge/effect-troubleshooting.md`
1602
- **Acceptance Criteria:**
1603
-
1604
- - [ ] Error: "No service found for tag X" → Forgot Effect.provide
1605
- - [ ] Error: "Effect stack too deep" → Use Effect.fork or Effect.cached
1606
- - [ ] Error: "Unhandled error in Effect" → Add Effect.catchAll
1607
- - [ ] Error: "Promise rejection" → Wrap with Effect.tryPromise
1608
- - [ ] Error: "Type mismatch" → Check error channel types
1609
- - [ ] Solutions for each error
1610
- - [ ] Debugging tips
1611
-
1612
- ### ⏳ Cycle 98: Performance Optimization
1613
-
1614
- **Status:** Pending
1615
- **Dependencies:** Cycle 97
1616
- **Task:** Optimize Effect-based code for production
1617
- **File:** `backend/convex/lib/optimization.ts`
1618
- **Acceptance Criteria:**
1619
-
1620
- - [ ] Parallel execution with concurrency control (Effect.all)
1621
- - [ ] Caching layer for service calls (Effect.cached)
1622
- - [ ] Connection reuse (connection pooling)
1623
- - [ ] Batch operations (combine multiple calls)
1624
- - [ ] Benchmark: Effect vs Promise-based (ensure no regression)
1625
- - [ ] Optimize hot paths (< 5% overhead)
1626
-
1627
- ### ⏳ Cycle 99: Deploy to Convex Production
1628
-
1629
- **Status:** Pending
1630
- **Dependencies:** Cycle 98
1631
- **Task:** Deploy Effect service layer to production
1632
- **File:** N/A
1633
- **Acceptance Criteria:**
1634
-
1635
- - [ ] Run full test suite (unit + integration) → All pass
1636
- - [ ] Deploy to Convex: `npx convex deploy`
1637
- - [ ] Monitor service performance (latency, errors)
1638
- - [ ] Verify all components working (agent, RAG, rate-limiter, etc.)
1639
- - [ ] Check error rates (< 1%)
1640
- - [ ] Monitor resource usage (memory, CPU)
1641
- - [ ] Rollback plan ready (if issues detected)
1642
-
1643
- ### ⏳ Cycle 100: Mark Feature Complete and Train Team
1644
-
1645
- **Status:** Pending
1646
- **Dependencies:** Cycle 99
1647
- **Task:** Launch and knowledge transfer
1648
- **File:** `one/events/components-feature-complete.md`
1649
- **Acceptance Criteria:**
1650
-
1651
- - [ ] All 100 cycles complete ✅
1652
- - [ ] All tests passing (unit, integration, resource safety) ✅
1653
- - [ ] Documentation complete (guides, patterns, examples, troubleshooting) ✅
1654
- - [ ] Performance optimized (no regression) ✅
1655
- - [ ] Deployed to production ✅
1656
- - [ ] Team trained: Pair programming sessions (3 sessions)
1657
- - [ ] Team trained: Effect workshop (1 day)
1658
- - [ ] Create runbook for Effect errors (operations)
1659
- - [ ] Celebrate! 🎉
1660
-
1661
- ---
1662
-
1663
- ## Summary Statistics
1664
-
1665
- **Total Cycles:** 100
1666
- **Estimated Duration:** 45-60 days (with parallelization)
1667
- **Agents Involved:** 6 (director, backend, builder, ops, quality, documenter)
1668
- **New Service Layers:** 8 (Agent, RAG, RateLimit, Workflow, Streaming, Workpool, Retrier, Crons)
1669
- **Domain Workflows:** 2 (Research, Support)
1670
- **Agent Tools:** 3 (Email, Database, External API)
1671
- **Test Coverage:** 90%+ (unit + integration + resource safety)
1672
- **Performance:** No regression vs Promise-based approach
1673
-
1674
- ---
1675
-
1676
- ## Next Steps
1677
-
1678
- 1. **Start Execution:** Run `/next` to begin Cycle 11 (AgentService implementation)
1679
- 2. **Review Plan:** Use `/plan` to see full breakdown
1680
- 3. **Track Progress:** Use `/now` to see current cycle, `/done` to mark complete
1681
- 4. **Quality Checks:** agent-quality will continuously validate patterns
1682
-
1683
- **Ready to begin? Type `/next` to start Cycle 11!**