oneie 3.6.14 → 3.6.15

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 (312) hide show
  1. package/.claude/agents/agent-director.md +6 -6
  2. package/.claude/agents/agent-onboard.md +8 -8
  3. package/.claude/commands/cascade.md +49 -20
  4. package/.claude/commands/create.md +397 -0
  5. package/.claude/commands/npx.md +64 -113
  6. package/.claude/commands/one.md +10 -28
  7. package/.claude/commands/plan.md +65 -65
  8. package/.claude/commands/push.md +63 -452
  9. package/.claude/commands/release.md +26 -395
  10. package/.claude/hooks/README-knowledge-hooks.md +4 -4
  11. package/.claude/hooks/README.md +13 -13
  12. package/.claude/hooks/clean-root-markdown.sh +73 -0
  13. package/.claude/hooks/track-changes.sh +101 -0
  14. package/.claude/skills/ontology/README.md +1 -1
  15. package/CLAUDE.md +38 -25
  16. package/one/README.md +3 -3
  17. package/one/connections/documentation.md +1 -1
  18. package/one/connections/inference.md +9 -9
  19. package/one/connections/workflow-copy.md +1 -1
  20. package/one/connections/workflow-onboarding.md +85 -85
  21. package/one/connections/workflow.md +1 -1
  22. package/one/groups/groups.md +31 -31
  23. package/one/groups/one.md +26 -26
  24. package/one/knowledge/100-inference-quick-reference.md +38 -38
  25. package/one/knowledge/ai-token-crypto-analysis-framework.md +15 -15
  26. package/one/knowledge/archived/ontology.old.md +11 -11
  27. package/one/knowledge/audit-agent-onboard-alignment.md +1 -1
  28. package/one/knowledge/cli-claude-handoff.md +36 -36
  29. package/one/knowledge/crypto-analysis-strategy.md +8 -8
  30. package/one/knowledge/event-driven-documentation.md +270 -0
  31. package/one/knowledge/knowledge.md +28 -28
  32. package/one/knowledge/lessons-website-building-focus.md +1 -1
  33. package/one/knowledge/metadata-system.md +11 -11
  34. package/one/knowledge/ontology-crypto.md +19 -19
  35. package/one/knowledge/ontology-documentation.md +7 -7
  36. package/one/knowledge/ontology-engineering.md +3 -3
  37. package/one/knowledge/ontology-files.yaml +3 -3
  38. package/one/knowledge/ontology-release.md +3 -3
  39. package/one/knowledge/ontology.md +10 -10
  40. package/one/knowledge/ontology.yaml +7 -7
  41. package/one/knowledge/score.md +4 -4
  42. package/one/knowledge/todo-template.md +55 -55
  43. package/one/knowledge/todo.md +55 -55
  44. package/one/knowledge/typescript-patterns.md +1 -1
  45. package/one/knowledge/x402-research.md +1 -1
  46. package/one/people/anthony-o-connell.md +19 -19
  47. package/one/people/people.md +1 -1
  48. package/one/things/IMPLEMENTATION_STATUS.md +12 -12
  49. package/one/things/agents/agent-backend.md +4 -4
  50. package/one/things/agents/agent-clean.md +16 -16
  51. package/one/things/agents/agent-deploy.md +6 -6
  52. package/one/things/agents/agent-sales.md +6 -6
  53. package/one/things/claude/agents/nextjs-15-specialist.md +1 -1
  54. package/one/things/demo-design-summary.md +6 -6
  55. package/one/things/examples/enterprise/crm-saas.md +24 -24
  56. package/one/things/features/2-1-dataprovider-interface.md +6 -6
  57. package/one/things/features/2-3-effectts-services.md +7 -7
  58. package/one/things/features/2-4-react-hooks.md +4 -4
  59. package/one/things/features/2-cli.md +3 -3
  60. package/one/things/features/2-design.md +2 -2
  61. package/one/things/features/use-one-backend.md +2 -2
  62. package/one/things/files.yaml +3 -3
  63. package/one/things/implementation/backend-guide.md +1 -1
  64. package/one/things/interface.md +8 -8
  65. package/one/things/landing-page-implementation.md +10 -10
  66. package/one/things/legal/privacy-policy.md +2 -2
  67. package/one/things/legal/terms-of-service.md +6 -6
  68. package/one/things/master-workflow-plan.md +16 -16
  69. package/one/things/plans/0-in-sync.md +136 -0
  70. package/one/things/plans/SIMPLIFICATION-SUMMARY.md +4 -4
  71. package/one/things/plans/ai-elements.md +7 -7
  72. package/one/things/plans/ai-integration.md +3 -3
  73. package/one/things/plans/ai-sdk.md +8 -8
  74. package/one/things/plans/backend-cleanup-quickstart.md +3 -3
  75. package/one/things/plans/backend-ontology-conformance.md +40 -40
  76. package/one/things/plans/backend-status.md +6 -6
  77. package/one/things/plans/backend-target-structure.md +2 -2
  78. package/one/things/plans/backend.md +1 -1
  79. package/one/things/plans/better-auth-any-backend.md +1 -1
  80. package/one/things/plans/components.md +32 -32
  81. package/one/things/plans/convex-agents.md +8 -8
  82. package/one/things/plans/deep-researcher-agent.md +1 -1
  83. package/one/things/plans/development-plan.md +49 -49
  84. package/one/things/plans/development-workflow.md +1 -1
  85. package/one/things/plans/effect.md +6 -6
  86. package/one/things/plans/execution-strategy.md +61 -61
  87. package/one/things/plans/existing-infrastructure.md +1 -1
  88. package/one/things/plans/frontend-effects.md +10 -10
  89. package/one/things/plans/group-folder-multi-tenancy.md +95 -95
  90. package/one/things/plans/integrate-frontend-and-backend.md +9 -9
  91. package/one/things/plans/onboarding.md +2 -2
  92. package/one/things/plans/ontology-6-dimensions.md +7 -7
  93. package/one/things/plans/ontology-compliance-audit.md +1 -1
  94. package/one/things/plans/phase-1-foundation.md +12 -12
  95. package/one/things/plans/readme-backend-cleanup.md +3 -3
  96. package/one/things/plans/sequence.md +129 -129
  97. package/one/things/plans/skills.md +30 -30
  98. package/one/things/plans/start-new.md +5 -5
  99. package/one/things/plans/sync-checklist.md +4 -4
  100. package/one/things/plans/unified-implementation-plan.md +1 -1
  101. package/one/things/plans/update-demos.md +53 -53
  102. package/one/things/plans/use-our-backend.md +30 -30
  103. package/one/things/plans/wave1-onboarding-100-inferences.md +152 -152
  104. package/one/things/plans/wave1-onboarding-vision.md +7 -7
  105. package/one/things/plans/wave1-orchestration-summary.md +67 -67
  106. package/one/things/plans/wave1-specialist-assignments.md +121 -121
  107. package/one/things/products/ontology.md +2 -2
  108. package/one/things/repos/all-repos.md +0 -0
  109. package/one/things/structure.md +2 -2
  110. package/one/things/tests/2-1-dataprovider-interface.md +2 -2
  111. package/one/things/tests/2-1-test-analysis.md +1 -1
  112. package/one/things/things.md +3 -3
  113. package/one/things/todo-acp-integration.md +33 -33
  114. package/one/things/todo-ai.md +37 -37
  115. package/one/things/todo-api.md +114 -114
  116. package/one/things/todo-assignment.md +39 -39
  117. package/one/things/todo-buy-chatgpt.md +113 -113
  118. package/one/things/todo-components.md +211 -211
  119. package/one/things/todo-ecommerce-frontend.md +82 -82
  120. package/one/things/todo-ecommerce.md +36 -36
  121. package/one/things/todo-effects.md +36 -36
  122. package/one/things/todo-frontend-effects.md +25 -25
  123. package/one/things/todo-landing-page.md +63 -63
  124. package/one/things/todo-mail.md +73 -73
  125. package/one/things/todo-master-plan.md +32 -32
  126. package/one/things/todo-onboard.md +48 -48
  127. package/one/things/todo-one-ie.md +48 -48
  128. package/one/things/todo-page.md +42 -42
  129. package/one/things/todo-plans.md +48 -48
  130. package/one/things/todo-refactoring-plan.md +5 -5
  131. package/one/things/todo-sequence.md +98 -98
  132. package/one/things/todo-use-our-backend.md +219 -219
  133. package/one/things/todo-x402.md +116 -116
  134. package/one/things/video-script-ontology.md +20 -20
  135. package/package.json +7 -2
  136. package/.claude/commands/build.md +0 -293
  137. package/one/.claude/settings.local.json +0 -11
  138. package/one/.obsidian/app.json +0 -8
  139. package/one/.obsidian/appearance.json +0 -1
  140. package/one/.obsidian/community-plugins.json +0 -5
  141. package/one/.obsidian/core-plugins.json +0 -33
  142. package/one/.obsidian/plugins/easy-bake/main.js +0 -361
  143. package/one/.obsidian/plugins/easy-bake/manifest.json +0 -11
  144. package/one/.obsidian/plugins/easy-bake/styles.css +0 -10
  145. package/one/.obsidian/plugins/editing-toolbar/data.json +0 -328
  146. package/one/.obsidian/plugins/editing-toolbar/main.js +0 -12
  147. package/one/.obsidian/plugins/editing-toolbar/manifest.json +0 -10
  148. package/one/.obsidian/plugins/editing-toolbar/styles.css +0 -1338
  149. package/one/.obsidian/plugins/terminal/data.json +0 -154
  150. package/one/.obsidian/plugins/terminal/main.js +0 -197
  151. package/one/.obsidian/plugins/terminal/manifest.json +0 -14
  152. package/one/.obsidian/plugins/terminal/styles.css +0 -32
  153. package/one/.obsidian/workspace.json +0 -266
  154. package/one/events/2024-10-14-deployment-plan.md +0 -330
  155. package/one/events/2024-10-14-deployment-success.md +0 -447
  156. package/one/events/2024-10-14-final-sync-complete.md +0 -250
  157. package/one/events/2024-10-14-release-v2.0.6.md +0 -414
  158. package/one/events/2024-10-15-agent-clean-v2-summary.md +0 -495
  159. package/one/events/2024-10-15-handoff-to-clean.md +0 -347
  160. package/one/events/2024-10-15-package-manager-tests.md +0 -442
  161. package/one/events/2024-10-15-release-command-complete.md +0 -416
  162. package/one/events/2025-10-15-private-files-secured.md +0 -359
  163. package/one/events/2025-10-15-unignore-public-group-docs.md +0 -298
  164. package/one/events/ALIGNMENT_REPORT_PROBLEM_SOLVER.md +0 -335
  165. package/one/events/ALIGNMENT_SUMMARY.md +0 -280
  166. package/one/events/API_ROUTES_FIXES_SUMMARY.md +0 -280
  167. package/one/events/ASTRO-INTEGRATION-EXAMPLES.md +0 -654
  168. package/one/events/AUDIT-ONTOLOGY-ALIGNMENT.md +0 -598
  169. package/one/events/BEFORE_AFTER_COMPARISON.md +0 -978
  170. package/one/events/CART-DRAWER-INTEGRATION-GUIDE.md +0 -372
  171. package/one/events/CASCADE-2-BACKEND-AGNOSTIC.md +0 -430
  172. package/one/events/CLAUDE copy.md +0 -897
  173. package/one/events/CLEANUP-RELEASE-V2.0.8.md +0 -308
  174. package/one/events/CONNECTIONS_DEMO.md +0 -519
  175. package/one/events/CREATE-WEBSITE.md +0 -460
  176. package/one/events/CRITICAL-FIXES-COMPLETE.md +0 -522
  177. package/one/events/CUSTOM-DOMAIN.md +0 -375
  178. package/one/events/DELIVERABLES.md +0 -450
  179. package/one/events/DEMO-GROUPS-PAGE.md +0 -410
  180. package/one/events/DEMO-TESTING-SUMMARY.md +0 -536
  181. package/one/events/DEMO_COMPONENTS.md +0 -505
  182. package/one/events/DEMO_HOOKS_INDEX.md +0 -352
  183. package/one/events/DEMO_INFRASTRUCTURE.md +0 -923
  184. package/one/events/DEMO_INFRASTRUCTURE_SUMMARY.md +0 -588
  185. package/one/events/DEMO_INTEGRATION_CHECKLIST.md +0 -449
  186. package/one/events/DEMO_QUICK_REFERENCE.md +0 -459
  187. package/one/events/DEMO_SETUP.md +0 -494
  188. package/one/events/DEPLOYMENT copy.md +0 -444
  189. package/one/events/DEPLOYMENT.md +0 -196
  190. package/one/events/ECOMMERCE-BEFORE-AFTER.md +0 -267
  191. package/one/events/ECOMMERCE-DEMO-PLAN.md +0 -243
  192. package/one/events/ECOMMERCE-ENHANCEMENTS.md +0 -594
  193. package/one/events/ECOMMERCE-HIGH-CONVERTING-ELEMENTS.md +0 -439
  194. package/one/events/ECOMMERCE-LIVE-DEMO.md +0 -381
  195. package/one/events/ECOMMERCE-REFACTOR-SUMMARY.md +0 -214
  196. package/one/events/ECOMMERCE-SETUP-SUMMARY.md +0 -414
  197. package/one/events/ECOMMERCE-TEMPLATE-COMPLETE.md +0 -753
  198. package/one/events/ECOMMERCE-TEMPLATES-SUMMARY.md +0 -941
  199. package/one/events/EFFECT_TS_API_PATTERN.md +0 -496
  200. package/one/events/FEATURE-2-4-COMPLETE.md +0 -320
  201. package/one/events/FEATURE_2_3_COMPLETE.md +0 -593
  202. package/one/events/GRADIENT-TEXT-PERMANENT-FIX.md +0 -241
  203. package/one/events/GROUPS-MIGRATION.md +0 -643
  204. package/one/events/GROUPS_DEMO_IMPLEMENTATION.md +0 -432
  205. package/one/events/HANDOFF.md +0 -331
  206. package/one/events/HOOKS-DEMO.md +0 -459
  207. package/one/events/IMPLEMENTATION-SUMMARY-FINAL.md +0 -521
  208. package/one/events/IMPLEMENTATION_SUMMARY.md +0 -547
  209. package/one/events/INSTALL-TESTS.md +0 -311
  210. package/one/events/INSTALLATION_FOLDERS.md +0 -534
  211. package/one/events/INSTALLATION_FOLDERS_FILES.md +0 -223
  212. package/one/events/INSTALLATION_FOLDERS_SUMMARY.md +0 -437
  213. package/one/events/INTEGRATION-ARCHITECTURE.md +0 -579
  214. package/one/events/INTEGRATION-CHECKLIST.md +0 -1252
  215. package/one/events/INTEGRATION-ORCHESTRATION.md +0 -2641
  216. package/one/events/INTEGRATION-SUMMARY.md +0 -671
  217. package/one/events/LANDING-PAGE-EXAMPLE-OUTPUT.md +0 -684
  218. package/one/events/LANDING-PAGE-IMPLEMENTATION.md +0 -660
  219. package/one/events/LANDING-PAGE-QUICKSTART.md +0 -425
  220. package/one/events/LICENSE.md +0 -107
  221. package/one/events/MCP-CONFIGURATION.md +0 -354
  222. package/one/events/MCP-SETUP-COMPLETE.md +0 -223
  223. package/one/events/MIGRATION-REPORT.md +0 -453
  224. package/one/events/MIGRATION.md +0 -87
  225. package/one/events/MULTI-ONTOLOGY-COMPLETE-GUIDE.md +0 -1645
  226. package/one/events/MULTI-ONTOLOGY-IMPLEMENTATION-COMPLETE.md +0 -591
  227. package/one/events/NODE-UPGRADE.md +0 -129
  228. package/one/events/ONBOARDING-IMPLEMENTATION-COMPLETE copy.md +0 -416
  229. package/one/events/ONTOLOGY-HOOKS-README.md +0 -718
  230. package/one/events/ONTOLOGY-INTEGRATION-MANIFEST.md +0 -383
  231. package/one/events/ONTOLOGY-TUTORIALS-SUMMARY.md +0 -543
  232. package/one/events/ONTOLOGY-TYPE-GENERATOR-SUMMARY.md +0 -473
  233. package/one/events/ONTOLOGY_DISCOVERY_IMPLEMENTATION.md +0 -504
  234. package/one/events/ONTOLOGY_DISCOVERY_QUICKSTART.md +0 -221
  235. package/one/events/PACKAGE-STRUCTURE.md +0 -328
  236. package/one/events/PLAYBOOK-SETUP-SUMMARY.md +0 -349
  237. package/one/events/PROMPT_FIX_FRONTEND_ONLY.md +0 -585
  238. package/one/events/QA-CHECKLIST.md +0 -692
  239. package/one/events/QUICK-START-ONTOLOGY.md +0 -426
  240. package/one/events/README-archived.md +0 -537
  241. package/one/events/SEARCH_DEMO_CODE_REFERENCE.md +0 -657
  242. package/one/events/SEARCH_DEMO_DELIVERY.md +0 -433
  243. package/one/events/SEARCH_DEMO_SUMMARY.md +0 -321
  244. package/one/events/SEARCH_DEMO_VISUAL_GUIDE.md +0 -399
  245. package/one/events/SECURITY-AUDIT-FIXES.md +0 -394
  246. package/one/events/SECURITY-SCAN-COMPLETE.md +0 -299
  247. package/one/events/SHOP-BUILD-STATUS.md +0 -132
  248. package/one/events/SHOP-PREMIUM-UPDATE.md +0 -165
  249. package/one/events/SIMPLE_FIX_FRONTEND_ONLY.md +0 -280
  250. package/one/events/SITE-WIDE-GRADIENT-FIX.md +0 -317
  251. package/one/events/STORE-PRODUCTION-READY-STATUS.md +0 -377
  252. package/one/events/STRIPE-INTEGRATION.md +0 -432
  253. package/one/events/STRIPE-PAYMENT-METHODS-GUIDE.md +0 -447
  254. package/one/events/STRIPE-SETUP-GUIDE.md +0 -480
  255. package/one/events/TEST-PLAN-INDEX.md +0 -364
  256. package/one/events/TEST-PLAN.md +0 -1435
  257. package/one/events/TEST-SUMMARY.md +0 -411
  258. package/one/events/TESTING-DELIVERY.txt +0 -372
  259. package/one/events/TESTS-QUICK-REF.md +0 -280
  260. package/one/events/TRANSITIONS-QUICK-START.md +0 -159
  261. package/one/events/TRANSPARENCY-FIXES.md +0 -293
  262. package/one/events/TYPESCRIPT_FIXES.md +0 -170
  263. package/one/events/TYPESCRIPT_FIXES_COMPLETE.txt +0 -412
  264. package/one/events/TYPESCRIPT_FIXES_INDEX.md +0 -359
  265. package/one/events/VIEW-TRANSITIONS.md +0 -446
  266. package/one/events/agent-director-enhancement-summary.md +0 -404
  267. package/one/events/agent-onboard-implementation-summary.md +0 -475
  268. package/one/events/agent-ontology-alignment-completion.md +0 -263
  269. package/one/events/backend-integration-tests.md +0 -624
  270. package/one/events/backend-structure-diagram.txt +0 -393
  271. package/one/events/backend-structure-summary.txt +0 -269
  272. package/one/events/clean-agent-ontology-cleanup-report.md +0 -371
  273. package/one/events/clean-agent-todo-analysis-summary.md +0 -336
  274. package/one/events/cloudflare-automation-complete.md +0 -350
  275. package/one/events/cloudflare-pages-infrastructure-setup.md +0 -282
  276. package/one/events/contact-page-complete.md +0 -316
  277. package/one/events/convex-analysis-index.md +0 -322
  278. package/one/events/convex-structure-analysis.md +0 -718
  279. package/one/events/deployment-installation-folders.md +0 -178
  280. package/one/events/deployment-ops-summary.md +0 -386
  281. package/one/events/deployment-verification.md +0 -366
  282. package/one/events/design-spec-complete.md +0 -226
  283. package/one/events/documentation-audit-index.md +0 -473
  284. package/one/events/documentation-audit-summary.md +0 -417
  285. package/one/events/documentation-improvement-roadmap.md +0 -906
  286. package/one/events/documentation-standards-compliance-report.md +0 -538
  287. package/one/events/events.md +0 -563
  288. package/one/events/frontend-effects-complete.md +0 -584
  289. package/one/events/frontend-effects-orchestration.md +0 -1356
  290. package/one/events/frontend-effects-risk-register.md +0 -1055
  291. package/one/events/frontend-effects-week1-assignments.md +0 -1594
  292. package/one/events/hook-ontology-alignment-summary.md +0 -528
  293. package/one/events/installation-folders-workflow-integration.md +0 -458
  294. package/one/events/landing-page-generator.md +0 -476
  295. package/one/events/legal-assessment-2025-10-16.md +0 -1917
  296. package/one/events/onboarding-implementation-complete.md +0 -523
  297. package/one/events/ontology-test-examples.md +0 -580
  298. package/one/events/phase1-backend-implementation-complete.md +0 -536
  299. package/one/events/release.md +0 -272
  300. package/one/events/root-cleanup-alignment-report.md +0 -265
  301. package/one/events/separate-implementation-status.md +0 -555
  302. package/one/events/session-summary-2025-10-18.md +0 -366
  303. package/one/events/skills-complete.md +0 -351
  304. package/one/events/skills-infer-6-10-summary.md +0 -70
  305. package/one/events/skills-phase1-complete.md +0 -281
  306. package/one/events/structural-analysis-architecture-vs-plans.md +0 -559
  307. package/one/events/test-dashboard.md +0 -363
  308. package/one/events/test-index.md +0 -379
  309. package/one/events/test-report-ontology.md +0 -600
  310. package/one/events/testing-summary.md +0 -362
  311. package/one/events/todo-refactoring-complete.md +0 -408
  312. package/one/events/wave1-backend-implementation-complete.md +0 -698
@@ -1,1645 +0,0 @@
1
- ---
2
- title: Multi Ontology Complete Guide
3
- dimension: events
4
- category: MULTI-ONTOLOGY-COMPLETE-GUIDE.md
5
- tags: 6-dimensions, architecture, backend, frontend, ontology
6
- related_dimensions: knowledge, people, things
7
- scope: global
8
- created: 2025-11-03
9
- updated: 2025-11-03
10
- version: 1.0.0
11
- ai_context: |
12
- This document is part of the events dimension in the MULTI-ONTOLOGY-COMPLETE-GUIDE.md category.
13
- Location: one/events/MULTI-ONTOLOGY-COMPLETE-GUIDE.md
14
- Purpose: Documents multi-ontology architecture: complete guide
15
- Related dimensions: knowledge, people, things
16
- For AI agents: Read this to understand MULTI ONTOLOGY COMPLETE GUIDE.
17
- ---
18
-
19
- # Multi-Ontology Architecture: Complete Guide
20
-
21
- **Version:** 1.0.0
22
- **Last Updated:** 2025-10-20
23
- **Status:** Production Ready
24
-
25
- ---
26
-
27
- ## Table of Contents
28
-
29
- 1. [Introduction](#1-introduction)
30
- 2. [Quick Start (5 Minutes)](#2-quick-start-5-minutes)
31
- 3. [Architecture Overview](#3-architecture-overview)
32
- 4. [Core Concepts](#4-core-concepts)
33
- 5. [YAML Ontology Format](#5-yaml-ontology-format)
34
- 6. [Type Generation System](#6-type-generation-system)
35
- 7. [Backend Integration](#7-backend-integration)
36
- 8. [Frontend Integration](#8-frontend-integration)
37
- 9. [Creating Your First Feature](#9-creating-your-first-feature)
38
- 10. [Advanced Patterns](#10-advanced-patterns)
39
- 11. [Migration Guide](#11-migration-guide)
40
- 12. [API Reference](#12-api-reference)
41
- 13. [Troubleshooting](#13-troubleshooting)
42
- 14. [FAQs](#14-faqs)
43
- 15. [Resources](#15-resources)
44
-
45
- ---
46
-
47
- ## 1. Introduction
48
-
49
- ### What is the Multi-Ontology Architecture?
50
-
51
- The **Multi-Ontology Architecture** is a revolutionary approach to feature development in the ONE Platform. Instead of hardcoding all possible entity types into a monolithic schema, features bring their own data models (ontologies) that compose cleanly at runtime.
52
-
53
- **The Problem It Solves:**
54
-
55
- Traditional platforms suffer from **schema bloat**:
56
-
57
- ```typescript
58
- // Traditional approach - ALL types hardcoded
59
- type EntityType =
60
- | 'user'
61
- | 'page'
62
- | 'blog_post'
63
- | 'product'
64
- | 'course'
65
- | 'video'
66
- | 'podcast'
67
- | 'nft'
68
- | 'token'
69
- // ... 100+ more types you'll never use
70
- ```
71
-
72
- This leads to:
73
- - Large bundle sizes (load types you don't need)
74
- - Tight coupling (can't change one without affecting all)
75
- - Poor developer experience (autocomplete suggests 100+ irrelevant types)
76
- - Impossible multi-backend support (all backends must support all types)
77
-
78
- **The Solution:**
79
-
80
- Feature-specific ontologies that compose at runtime:
81
-
82
- ```yaml
83
- # /one/knowledge/ontology-core.yaml (always loaded)
84
- feature: core
85
- thingTypes:
86
- - name: page
87
- - name: user
88
- - name: file
89
-
90
- # /one/knowledge/ontology-blog.yaml (optional)
91
- feature: blog
92
- extends: core
93
- thingTypes:
94
- - name: blog_post
95
- - name: blog_category
96
-
97
- # /one/knowledge/ontology-shop.yaml (optional)
98
- feature: shop
99
- extends: core
100
- thingTypes:
101
- - name: product
102
- - name: order
103
- ```
104
-
105
- Enable only the features you need:
106
-
107
- ```bash
108
- # .env.local
109
- PUBLIC_FEATURES="blog" # Only loads core + blog (7 types)
110
- # Not: 'shop', 'courses', 'videos', etc. (those remain disabled)
111
- ```
112
-
113
- ### Key Benefits
114
-
115
- 1. **Feature Modularity** - Each feature is self-contained with its own data model
116
- 2. **Type Safety** - Full TypeScript validation at compile and runtime
117
- 3. **Zero Schema Migration** - Add/remove features without database changes
118
- 4. **Backend Flexibility** - Run different backends with different feature sets
119
- 5. **Composability** - Features extend and build on each other cleanly
120
- 6. **Performance** - Load only what you need (98% smaller schemas)
121
- 7. **Developer Experience** - Clear, focused autocomplete with only relevant types
122
-
123
- ### Who Should Read This
124
-
125
- - **Developers** building features on the ONE Platform
126
- - **Architects** designing multi-tenant systems
127
- - **Teams** migrating from monolithic schemas to modular ontologies
128
- - **Product Managers** understanding feature composition capabilities
129
-
130
- ---
131
-
132
- ## 2. Quick Start (5 Minutes)
133
-
134
- ### Prerequisites
135
-
136
- - Node.js 22+ and Bun installed
137
- - ONE Platform repository cloned
138
- - Basic understanding of TypeScript and YAML
139
-
140
- ### Step 1: Enable Features
141
-
142
- Edit your environment configuration:
143
-
144
- ```bash
145
- # backend/.env.local
146
- PUBLIC_FEATURES="blog,portfolio"
147
- ```
148
-
149
- This tells the platform to load the `blog` and `portfolio` ontology extensions in addition to the core ontology (which is always loaded).
150
-
151
- ### Step 2: Generate Types
152
-
153
- From the backend directory:
154
-
155
- ```bash
156
- cd backend
157
- bun run scripts/generate-ontology-types.ts
158
- ```
159
-
160
- Expected output:
161
-
162
- ```
163
- 🎯 Loading ontologies...
164
- Features: core, blog, portfolio
165
-
166
- ✅ Composition complete:
167
- Thing types: 9
168
- Connection types: 6
169
- Event types: 7
170
-
171
- ✅ Validation passed
172
-
173
- 📝 Generating TypeScript types...
174
-
175
- ✅ Types generated: backend/convex/types/ontology.ts
176
- ```
177
-
178
- ### Step 3: Deploy Schema
179
-
180
- Start Convex development server:
181
-
182
- ```bash
183
- npx convex dev
184
- ```
185
-
186
- Convex automatically reads the generated types and updates schema validation.
187
-
188
- ### Step 4: Verify
189
-
190
- Check that your schema now validates blog and portfolio types:
191
-
192
- ```typescript
193
- // backend/convex/mutations/blog.ts
194
- import { mutation } from './_generated/server';
195
- import { v } from 'convex/values';
196
-
197
- export const createBlogPost = mutation({
198
- args: {
199
- title: v.string(),
200
- content: v.string(),
201
- },
202
- handler: async (ctx, args) => {
203
- // TypeScript knows 'blog_post' is a valid type!
204
- const postId = await ctx.db.insert('things', {
205
- type: 'blog_post', // ✅ Type-safe
206
- name: args.title,
207
- properties: {
208
- title: args.title,
209
- content: args.content,
210
- publishedAt: Date.now(),
211
- },
212
- status: 'active',
213
- createdAt: Date.now(),
214
- updatedAt: Date.now(),
215
- });
216
-
217
- return postId;
218
- },
219
- });
220
- ```
221
-
222
- **Done!** You're now using the multi-ontology architecture.
223
-
224
- ---
225
-
226
- ## 3. Architecture Overview
227
-
228
- ### System Layers
229
-
230
- ```
231
- ┌─────────────────────────────────────────────────────────────────┐
232
- │ LAYER 1: ONTOLOGY DEFINITIONS (YAML Files) │
233
- │ /one/knowledge/ │
234
- │ ├─ ontology-core.yaml (always loaded) │
235
- │ ├─ ontology-blog.yaml (if feature enabled) │
236
- │ ├─ ontology-portfolio.yaml (if feature enabled) │
237
- │ ├─ ontology-courses.yaml (if feature enabled) │
238
- │ ├─ ontology-community.yaml (if feature enabled) │
239
- │ └─ ontology-tokens.yaml (if feature enabled) │
240
- └─────────────────────────────────────────────────────────────────┘
241
- ↓
242
- ┌─────────────────────────────────────────────────────────────────┐
243
- │ LAYER 2: BUILD-TIME PROCESSING │
244
- │ /backend/lib/ │
245
- │ ├─ ontology-loader.ts (loads & composes YAML) │
246
- │ ├─ ontology-validator.ts (validates composition) │
247
- │ └─ type-generator.ts (generates TypeScript) │
248
- │ │
249
- │ /backend/scripts/ │
250
- │ └─ generate-ontology-types.ts (CLI tool) │
251
- └─────────────────────────────────────────────────────────────────┘
252
- ↓
253
- ┌─────────────────────────────────────────────────────────────────┐
254
- │ LAYER 3: GENERATED TYPES │
255
- │ /backend/convex/types/ontology.ts (auto-generated) │
256
- │ ├─ type ThingType = 'page' | 'user' | 'blog_post' | ... │
257
- │ ├─ type ConnectionType = 'created_by' | 'posted_in' | ... │
258
- │ ├─ type EventType = 'thing_created' | 'blog_published' ... │
259
- │ ├─ const THING_TYPES: ThingType[] = [...] │
260
- │ └─ function isThingType(value): value is ThingType │
261
- └─────────────────────────────────────────────────────────────────┘
262
- ↓
263
- ┌─────────────────────────────────────────────────────────────────┐
264
- │ LAYER 4: RUNTIME VALIDATION │
265
- │ /backend/convex/schema.ts │
266
- │ ├─ entities table: type = union(...THING_TYPES) │
267
- │ ├─ connections table: type = union(...CONNECTION_TYPES) │
268
- │ └─ events table: type = union(...EVENT_TYPES) │
269
- └─────────────────────────────────────────────────────────────────┘
270
- ↓
271
- ┌─────────────────────────────────────────────────────────────────┐
272
- │ LAYER 5: APPLICATION CODE │
273
- │ /backend/convex/mutations/*.ts │
274
- │ /backend/convex/queries/*.ts │
275
- │ /web/src/components/features/*.tsx │
276
- └─────────────────────────────────────────────────────────────────┘
277
- ```
278
-
279
- ### Composition Flow
280
-
281
- 1. **Define** features as YAML ontologies
282
- 2. **Enable** features via `PUBLIC_FEATURES` environment variable
283
- 3. **Generate** TypeScript types from enabled features
284
- 4. **Validate** at compile-time (TypeScript) and runtime (Convex schema)
285
- 5. **Use** type-safe APIs in your application code
286
-
287
- ### File Structure
288
-
289
- ```
290
- ONE/
291
- ├── one/knowledge/
292
- │ ├── ontology-core.yaml # Core types (always present)
293
- │ ├── ontology-blog.yaml # Blog feature
294
- │ ├── ontology-portfolio.yaml # Portfolio feature
295
- │ ├── ontology-courses.yaml # E-learning feature
296
- │ ├── ontology-community.yaml # Social features
297
- │ └── ontology-tokens.yaml # Token economy
298
- │
299
- ├── backend/
300
- │ ├── lib/
301
- │ │ ├── ontology-loader.ts # YAML loader & composition
302
- │ │ ├── ontology-validator.ts # Composition validator
303
- │ │ └── type-generator.ts # TypeScript generator
304
- │ │
305
- │ ├── scripts/
306
- │ │ └── generate-ontology-types.ts # CLI build tool
307
- │ │
308
- │ └── convex/
309
- │ ├── types/
310
- │ │ └── ontology.ts # Generated types (auto)
311
- │ │
312
- │ ├── schema.ts # Convex schema (uses generated types)
313
- │ ├── mutations/ # Write operations
314
- │ └── queries/ # Read operations
315
- │
316
- └── web/
317
- └── src/
318
- └── components/
319
- └── features/ # Feature-specific UI
320
- ```
321
-
322
- ---
323
-
324
- ## 4. Core Concepts
325
-
326
- ### The 6-Dimension Ontology
327
-
328
- The ONE Platform is built on a universal 6-dimension ontology that models reality:
329
-
330
- ```
331
- ┌──────────────────────────────────────────────────────────────┐
332
- │ 6-DIMENSION ONTOLOGY │
333
- ├──────────────────────────────────────────────────────────────┤
334
- │ 1. GROUPS → Who belongs where (hierarchical containers)│
335
- │ 2. PEOPLE → Who can do what (authorization & roles) │
336
- │ 3. THINGS → What exists (all entities) │
337
- │ 4. CONNECTIONS → How things relate (relationships) │
338
- │ 5. EVENTS → What happened (audit trail) │
339
- │ 6. KNOWLEDGE → What we know (embeddings & search) │
340
- └──────────────────────────────────────────────────────────────┘
341
- ```
342
-
343
- **The multi-ontology architecture extends the THINGS, CONNECTIONS, and EVENTS dimensions.**
344
-
345
- ### Feature Ontologies
346
-
347
- A **feature ontology** defines the data model for a specific feature:
348
-
349
- ```yaml
350
- feature: blog
351
- extends: core
352
- description: Blog and content publishing
353
-
354
- thingTypes:
355
- - name: blog_post
356
- - name: blog_category
357
-
358
- connectionTypes:
359
- - name: posted_in
360
-
361
- eventTypes:
362
- - name: blog_post_published
363
- - name: blog_post_viewed
364
- ```
365
-
366
- ### Ontology Composition
367
-
368
- Multiple ontologies **compose** into a unified schema:
369
-
370
- ```
371
- Core Ontology (5 thing types)
372
- +
373
- Blog Ontology (2 thing types)
374
- +
375
- Portfolio Ontology (2 thing types)
376
- =
377
- Composed Ontology (9 thing types)
378
- ```
379
-
380
- Composition rules:
381
-
382
- 1. **Core is always included** - Even if not explicitly enabled
383
- 2. **No duplicate types** - Validator prevents type name conflicts
384
- 3. **Dependency resolution** - Features load in correct order (parents before children)
385
- 4. **Type safety** - Generated TypeScript types enforce valid compositions
386
-
387
- ### Type Generation
388
-
389
- From composed ontology, the system generates:
390
-
391
- ```typescript
392
- // 1. Union types
393
- export type ThingType = 'page' | 'user' | 'blog_post' | 'project';
394
-
395
- // 2. Constant arrays
396
- export const THING_TYPES: readonly ThingType[] = ['page', 'user', 'blog_post', 'project'];
397
-
398
- // 3. Type guards
399
- export function isThingType(value: string): value is ThingType {
400
- return THING_TYPES.includes(value as ThingType);
401
- }
402
-
403
- // 4. Feature metadata
404
- export const ENABLED_FEATURES = ['core', 'blog', 'portfolio'];
405
-
406
- export function hasFeature(feature: string): boolean {
407
- return ENABLED_FEATURES.includes(feature);
408
- }
409
- ```
410
-
411
- ---
412
-
413
- ## 5. YAML Ontology Format
414
-
415
- ### Complete Specification
416
-
417
- ```yaml
418
- # Feature identifier (lowercase, no spaces)
419
- feature: myfeature
420
-
421
- # Base feature to extend (usually 'core', or null for standalone)
422
- extends: core
423
-
424
- # Semantic version
425
- version: "1.0.0"
426
-
427
- # Human-readable description
428
- description: "Brief description of feature purpose"
429
-
430
- # Optional: Explicit dependencies (in addition to 'extends')
431
- dependencies:
432
- - otherfeat
433
-
434
- # ============================================================================
435
- # THING TYPES - Entities that exist
436
- # ============================================================================
437
-
438
- thingTypes:
439
- - name: my_entity # Type name (lowercase_underscore)
440
- description: "What this thing represents"
441
- properties:
442
- # Primitive types
443
- name: string # Text values
444
- count: number # Numeric values
445
- active: boolean # True/false values
446
-
447
- # Array types
448
- tags: string[] # Array of strings
449
- scores: number[] # Array of numbers
450
-
451
- # Complex types
452
- metadata: object # JSON object (any structure)
453
-
454
- # ============================================================================
455
- # CONNECTION TYPES - Relationships between entities
456
- # ============================================================================
457
-
458
- connectionTypes:
459
- - name: my_connection # Connection name (lowercase_underscore)
460
- description: "How things relate"
461
- fromType: source_type # Source thing type (or '*' for any)
462
- toType: target_type # Target thing type (or '*' for any)
463
-
464
- # ============================================================================
465
- # EVENT TYPES - Actions that occur
466
- # ============================================================================
467
-
468
- eventTypes:
469
- - name: my_event_happened # Event name (past tense, lowercase_underscore)
470
- description: "What action occurred"
471
- thingType: my_entity # Thing type this event applies to (or '*' for any)
472
- ```
473
-
474
- ### Naming Conventions
475
-
476
- **Feature Names:**
477
- - Lowercase, no spaces
478
- - Use hyphens for multi-word features
479
- - Examples: `core`, `blog`, `shop`, `social-media`
480
-
481
- **Thing Type Names:**
482
- - Lowercase with underscores
483
- - Singular nouns
484
- - Examples: `blog_post`, `product`, `user`, `shopping_cart`
485
-
486
- **Connection Type Names:**
487
- - Lowercase with underscores
488
- - Action verbs (present tense)
489
- - Examples: `created_by`, `posted_in`, `purchased`, `in_stock`
490
-
491
- **Event Type Names:**
492
- - Lowercase with underscores
493
- - Past tense verbs
494
- - Examples: `blog_post_published`, `product_created`, `order_placed`
495
-
496
- ### Property Types
497
-
498
- | Type | Example | Description |
499
- |------|---------|-------------|
500
- | `string` | `"Hello"` | Text values |
501
- | `number` | `42`, `3.14` | Integer or float |
502
- | `boolean` | `true`, `false` | True/false values |
503
- | `object` | `{ key: "value" }` | JSON object (any structure) |
504
- | `string[]` | `["a", "b"]` | Array of strings |
505
- | `number[]` | `[1, 2, 3]` | Array of numbers |
506
-
507
- ### Inheritance with `extends`
508
-
509
- Features can inherit types from a base feature:
510
-
511
- ```yaml
512
- # ontology-advanced-blog.yaml
513
- feature: advanced-blog
514
- extends: blog # Inherits: blog_post, blog_category
515
-
516
- thingTypes:
517
- - name: blog_series # New type (builds on blog)
518
- - name: blog_newsletter
519
- ```
520
-
521
- **Inheritance Rules:**
522
-
523
- 1. **Transitive** - If `A extends B` and `B extends C`, then `A` gets types from both `B` and `C`
524
- 2. **No circular dependencies** - `A → B → A` will error
525
- 3. **No override** - You can't redefine types from base features
526
-
527
- ### Complete Example: Blog Ontology
528
-
529
- ```yaml
530
- # /one/knowledge/ontology-blog.yaml
531
-
532
- feature: blog
533
- extends: core
534
- version: "1.0.0"
535
- description: "Blog and content publishing feature"
536
-
537
- thingTypes:
538
- - name: blog_post
539
- description: "A blog post or article"
540
- properties:
541
- title: string
542
- slug: string
543
- content: string
544
- excerpt: string
545
- featuredImage: string
546
- publishedAt: number
547
- author: string
548
- status: string
549
-
550
- - name: blog_category
551
- description: "A blog category for organizing posts"
552
- properties:
553
- name: string
554
- slug: string
555
- description: string
556
-
557
- connectionTypes:
558
- - name: posted_in
559
- description: "Blog post posted in category"
560
- fromType: blog_post
561
- toType: blog_category
562
-
563
- - name: authored
564
- description: "Blog post authored by user"
565
- fromType: blog_post
566
- toType: user
567
-
568
- eventTypes:
569
- - name: blog_post_published
570
- description: "Blog post was published"
571
- thingType: blog_post
572
-
573
- - name: blog_post_viewed
574
- description: "Someone viewed a blog post"
575
- thingType: blog_post
576
- ```
577
-
578
- ---
579
-
580
- ## 6. Type Generation System
581
-
582
- ### How It Works
583
-
584
- The type generator:
585
-
586
- 1. **Loads** enabled features from `PUBLIC_FEATURES` environment variable
587
- 2. **Reads** YAML files from `/one/knowledge/ontology-{feature}.yaml`
588
- 3. **Resolves** dependencies (handles `extends` relationships)
589
- 4. **Merges** types from all enabled features
590
- 5. **Validates** composition (no duplicates, no conflicts)
591
- 6. **Generates** TypeScript code with validation functions
592
- 7. **Writes** output to `backend/convex/types/ontology.ts`
593
-
594
- ### Generated Code Structure
595
-
596
- ```typescript
597
- // backend/convex/types/ontology.ts (auto-generated)
598
-
599
- /**
600
- * Auto-generated ontology types
601
- * DO NOT EDIT MANUALLY - Changes will be overwritten
602
- *
603
- * Generated from features: core, blog, portfolio
604
- * Generation time: 2025-10-20T12:34:56.789Z
605
- */
606
-
607
- // ============================================================================
608
- // TYPE UNIONS
609
- // ============================================================================
610
-
611
- export type ThingType =
612
- | 'page'
613
- | 'user'
614
- | 'file'
615
- | 'link'
616
- | 'note'
617
- | 'blog_post'
618
- | 'blog_category'
619
- | 'project'
620
- | 'case_study';
621
-
622
- export type ConnectionType =
623
- | 'created_by'
624
- | 'updated_by'
625
- | 'viewed_by'
626
- | 'favorited_by'
627
- | 'posted_in'
628
- | 'authored';
629
-
630
- export type EventType =
631
- | 'thing_created'
632
- | 'thing_updated'
633
- | 'thing_deleted'
634
- | 'thing_viewed'
635
- | 'blog_post_published'
636
- | 'blog_post_viewed'
637
- | 'project_viewed';
638
-
639
- // ============================================================================
640
- // CONSTANT ARRAYS
641
- // ============================================================================
642
-
643
- export const THING_TYPES: readonly ThingType[] = [
644
- 'page',
645
- 'user',
646
- 'file',
647
- 'link',
648
- 'note',
649
- 'blog_post',
650
- 'blog_category',
651
- 'project',
652
- 'case_study',
653
- ] as const;
654
-
655
- export const CONNECTION_TYPES: readonly ConnectionType[] = [
656
- 'created_by',
657
- 'updated_by',
658
- 'viewed_by',
659
- 'favorited_by',
660
- 'posted_in',
661
- 'authored',
662
- ] as const;
663
-
664
- export const EVENT_TYPES: readonly EventType[] = [
665
- 'thing_created',
666
- 'thing_updated',
667
- 'thing_deleted',
668
- 'thing_viewed',
669
- 'blog_post_published',
670
- 'blog_post_viewed',
671
- 'project_viewed',
672
- ] as const;
673
-
674
- // ============================================================================
675
- // TYPE GUARDS
676
- // ============================================================================
677
-
678
- export function isThingType(value: string): value is ThingType {
679
- return THING_TYPES.includes(value as ThingType);
680
- }
681
-
682
- export function isConnectionType(value: string): value is ConnectionType {
683
- return CONNECTION_TYPES.includes(value as ConnectionType);
684
- }
685
-
686
- export function isEventType(value: string): value is EventType {
687
- return EVENT_TYPES.includes(value as EventType);
688
- }
689
-
690
- // ============================================================================
691
- // FEATURE HELPERS
692
- // ============================================================================
693
-
694
- export const ENABLED_FEATURES = ['core', 'blog', 'portfolio'] as const;
695
-
696
- export function hasFeature(feature: string): boolean {
697
- return ENABLED_FEATURES.includes(feature);
698
- }
699
-
700
- // ============================================================================
701
- // METADATA
702
- // ============================================================================
703
-
704
- export const ONTOLOGY_METADATA = {
705
- features: ['core', 'blog', 'portfolio'],
706
- generatedAt: '2025-10-20T12:34:56.789Z',
707
- thingTypeCount: 9,
708
- connectionTypeCount: 6,
709
- eventTypeCount: 7,
710
- } as const;
711
- ```
712
-
713
- ### Running the Generator
714
-
715
- **Manual generation:**
716
-
717
- ```bash
718
- cd backend
719
- PUBLIC_FEATURES="blog,portfolio" bun run scripts/generate-ontology-types.ts
720
- ```
721
-
722
- **Automatic generation (recommended):**
723
-
724
- Add to `package.json`:
725
-
726
- ```json
727
- {
728
- "scripts": {
729
- "dev": "bun run scripts/generate-ontology-types.ts && npx convex dev",
730
- "deploy": "bun run scripts/generate-ontology-types.ts && npx convex deploy"
731
- }
732
- }
733
- ```
734
-
735
- Now types regenerate automatically before every dev/deploy!
736
-
737
- ---
738
-
739
- ## 7. Backend Integration
740
-
741
- ### Schema Integration
742
-
743
- Update your Convex schema to use generated types:
744
-
745
- ```typescript
746
- // backend/convex/schema.ts
747
- import { defineSchema, defineTable } from 'convex/server';
748
- import { v } from 'convex/values';
749
- import { THING_TYPES, CONNECTION_TYPES, EVENT_TYPES } from './types/ontology';
750
-
751
- // Generate union from ontology types
752
- const thingTypeUnion = v.union(...THING_TYPES.map(t => v.literal(t)));
753
- const connectionTypeUnion = v.union(...CONNECTION_TYPES.map(t => v.literal(t)));
754
- const eventTypeUnion = v.union(...EVENT_TYPES.map(t => v.literal(t)));
755
-
756
- export default defineSchema({
757
- things: defineTable({
758
- groupId: v.id('groups'),
759
- type: thingTypeUnion, // ✅ Generated from ontology
760
- name: v.string(),
761
- properties: v.any(),
762
- status: v.string(),
763
- createdAt: v.number(),
764
- updatedAt: v.number(),
765
- })
766
- .index('by_group_type', ['groupId', 'type'])
767
- .index('by_type', ['type']),
768
-
769
- connections: defineTable({
770
- groupId: v.id('groups'),
771
- fromThingId: v.id('things'),
772
- toThingId: v.id('things'),
773
- relationshipType: connectionTypeUnion, // ✅ Generated
774
- metadata: v.any(),
775
- createdAt: v.number(),
776
- })
777
- .index('by_from', ['fromThingId', 'relationshipType'])
778
- .index('by_to', ['toThingId', 'relationshipType']),
779
-
780
- events: defineTable({
781
- groupId: v.id('groups'),
782
- type: eventTypeUnion, // ✅ Generated
783
- actorId: v.optional(v.string()),
784
- targetId: v.optional(v.id('things')),
785
- timestamp: v.number(),
786
- metadata: v.any(),
787
- })
788
- .index('by_target', ['targetId', 'timestamp'])
789
- .index('by_type', ['type', 'timestamp']),
790
- });
791
- ```
792
-
793
- ### Mutations with Type Validation
794
-
795
- ```typescript
796
- // backend/convex/mutations/entities.ts
797
- import { mutation } from './_generated/server';
798
- import { v } from 'convex/values';
799
- import { isThingType, type ThingType } from './types/ontology';
800
-
801
- export const create = mutation({
802
- args: {
803
- groupId: v.id('groups'),
804
- type: v.string(),
805
- name: v.string(),
806
- properties: v.any(),
807
- },
808
- handler: async (ctx, args) => {
809
- // Runtime validation
810
- if (!isThingType(args.type)) {
811
- throw new Error(
812
- `Invalid thing type: "${args.type}". ` +
813
- `Valid types: ${THING_TYPES.join(', ')}`
814
- );
815
- }
816
-
817
- // Now TypeScript knows args.type is valid
818
- const thingId = await ctx.db.insert('things', {
819
- groupId: args.groupId,
820
- type: args.type as ThingType,
821
- name: args.name,
822
- properties: args.properties,
823
- status: 'draft',
824
- createdAt: Date.now(),
825
- updatedAt: Date.now(),
826
- });
827
-
828
- // Log creation event
829
- await ctx.db.insert('events', {
830
- groupId: args.groupId,
831
- type: 'thing_created',
832
- actorId: ctx.auth?.getUserIdentity()?.tokenIdentifier,
833
- targetId: thingId,
834
- timestamp: Date.now(),
835
- metadata: { thingType: args.type },
836
- });
837
-
838
- return thingId;
839
- },
840
- });
841
- ```
842
-
843
- ### Queries with Feature Detection
844
-
845
- ```typescript
846
- // backend/convex/queries/entities.ts
847
- import { query } from './_generated/server';
848
- import { v } from 'convex/values';
849
- import { hasFeature, THING_TYPES } from './types/ontology';
850
-
851
- export const listContent = query({
852
- args: {
853
- groupId: v.id('groups'),
854
- },
855
- handler: async (ctx, args) => {
856
- // Build type filter based on enabled features
857
- const contentTypes: string[] = ['page']; // Core type
858
-
859
- if (hasFeature('blog')) {
860
- contentTypes.push('blog_post');
861
- }
862
-
863
- if (hasFeature('portfolio')) {
864
- contentTypes.push('project', 'case_study');
865
- }
866
-
867
- // Query entities
868
- const entities = await ctx.db
869
- .query('things')
870
- .withIndex('by_group_type', (q) => q.eq('groupId', args.groupId))
871
- .filter((q) =>
872
- q.or(
873
- ...contentTypes.map(type => q.eq(q.field('type'), type))
874
- )
875
- )
876
- .collect();
877
-
878
- return entities;
879
- },
880
- });
881
- ```
882
-
883
- ---
884
-
885
- ## 8. Frontend Integration
886
-
887
- ### React Components with Type Safety
888
-
889
- ```typescript
890
- // web/src/components/features/blog/BlogPostList.tsx
891
- import { useQuery } from 'convex/react';
892
- import { api } from '@/convex/_generated/api';
893
- import type { Id } from '@/convex/_generated/dataModel';
894
-
895
- interface BlogPostListProps {
896
- groupId: Id<'groups'>;
897
- }
898
-
899
- export function BlogPostList({ groupId }: BlogPostListProps) {
900
- const posts = useQuery(api.queries.blog.list, { groupId });
901
-
902
- if (posts === undefined) {
903
- return <div>Loading...</div>;
904
- }
905
-
906
- if (posts.length === 0) {
907
- return <div>No blog posts yet.</div>;
908
- }
909
-
910
- return (
911
- <div className="space-y-4">
912
- {posts.map((post) => (
913
- <article key={post._id} className="border p-4 rounded">
914
- <h2 className="text-2xl font-bold">{post.properties.title}</h2>
915
- <p className="text-gray-600">{post.properties.excerpt}</p>
916
- <time className="text-sm text-gray-400">
917
- {new Date(post.properties.publishedAt).toLocaleDateString()}
918
- </time>
919
- </article>
920
- ))}
921
- </div>
922
- );
923
- }
924
- ```
925
-
926
- ### Astro Pages with SSR
927
-
928
- ```astro
929
- ---
930
- // web/src/pages/blog/[slug].astro
931
- import { ConvexHttpClient } from 'convex/browser';
932
- import { api } from '@/convex/_generated/api';
933
- import BlogPost from '@/components/features/blog/BlogPost';
934
-
935
- const convex = new ConvexHttpClient(import.meta.env.PUBLIC_CONVEX_URL);
936
-
937
- const slug = Astro.params.slug;
938
- const post = await convex.query(api.queries.blog.getBySlug, { slug });
939
-
940
- if (!post) {
941
- return Astro.redirect('/404');
942
- }
943
- ---
944
-
945
- <Layout title={post.properties.title}>
946
- <BlogPost client:load post={post} />
947
- </Layout>
948
- ```
949
-
950
- ### Feature-Conditional UI
951
-
952
- ```typescript
953
- // web/src/components/Navigation.tsx
954
- import { useQuery } from 'convex/react';
955
- import { api } from '@/convex/_generated/api';
956
-
957
- export function Navigation() {
958
- const features = useQuery(api.queries.system.getEnabledFeatures);
959
-
960
- return (
961
- <nav>
962
- <a href="/">Home</a>
963
-
964
- {features?.includes('blog') && (
965
- <a href="/blog">Blog</a>
966
- )}
967
-
968
- {features?.includes('portfolio') && (
969
- <a href="/portfolio">Portfolio</a>
970
- )}
971
-
972
- {features?.includes('shop') && (
973
- <a href="/shop">Shop</a>
974
- )}
975
- </nav>
976
- );
977
- }
978
- ```
979
-
980
- ---
981
-
982
- ## 9. Creating Your First Feature
983
-
984
- Let's build a complete "products" feature from scratch.
985
-
986
- ### Step 1: Create Ontology YAML
987
-
988
- Create `/one/knowledge/ontology-products.yaml`:
989
-
990
- ```yaml
991
- feature: products
992
- extends: core
993
- version: "1.0.0"
994
- description: "Product catalog and inventory management"
995
-
996
- thingTypes:
997
- - name: product
998
- description: "A product in the catalog"
999
- properties:
1000
- name: string
1001
- sku: string
1002
- price: number
1003
- inventory: number
1004
- description: string
1005
- images: string[]
1006
- status: string
1007
-
1008
- - name: product_category
1009
- description: "Category for organizing products"
1010
- properties:
1011
- name: string
1012
- slug: string
1013
- description: string
1014
-
1015
- connectionTypes:
1016
- - name: in_category
1017
- description: "Product belongs to category"
1018
- fromType: product
1019
- toType: product_category
1020
-
1021
- - name: created_product
1022
- description: "User created product"
1023
- fromType: user
1024
- toType: product
1025
-
1026
- eventTypes:
1027
- - name: product_created
1028
- description: "Product was created"
1029
- thingType: product
1030
-
1031
- - name: product_updated
1032
- description: "Product was modified"
1033
- thingType: product
1034
-
1035
- - name: product_viewed
1036
- description: "Someone viewed product"
1037
- thingType: product
1038
- ```
1039
-
1040
- ### Step 2: Enable Feature
1041
-
1042
- ```bash
1043
- # backend/.env.local
1044
- PUBLIC_FEATURES="products"
1045
- ```
1046
-
1047
- ### Step 3: Generate Types
1048
-
1049
- ```bash
1050
- cd backend
1051
- bun run scripts/generate-ontology-types.ts
1052
- ```
1053
-
1054
- ### Step 4: Create Mutations
1055
-
1056
- ```typescript
1057
- // backend/convex/mutations/products.ts
1058
- import { mutation } from './_generated/server';
1059
- import { v } from 'convex/values';
1060
- import type { ThingType, EventType } from './types/ontology';
1061
-
1062
- export const create = mutation({
1063
- args: {
1064
- groupId: v.id('groups'),
1065
- name: v.string(),
1066
- sku: v.string(),
1067
- price: v.number(),
1068
- inventory: v.number(),
1069
- },
1070
- handler: async (ctx, args) => {
1071
- const userId = await ctx.auth.getUserIdentity();
1072
- if (!userId) throw new Error('Unauthorized');
1073
-
1074
- // Create product
1075
- const productId = await ctx.db.insert('things', {
1076
- groupId: args.groupId,
1077
- type: 'product' as ThingType,
1078
- name: args.name,
1079
- properties: {
1080
- name: args.name,
1081
- sku: args.sku,
1082
- price: args.price,
1083
- inventory: args.inventory,
1084
- description: '',
1085
- images: [],
1086
- status: 'active',
1087
- },
1088
- status: 'active',
1089
- createdAt: Date.now(),
1090
- updatedAt: Date.now(),
1091
- });
1092
-
1093
- // Create ownership connection
1094
- await ctx.db.insert('connections', {
1095
- groupId: args.groupId,
1096
- fromThingId: userId.tokenIdentifier as any,
1097
- toThingId: productId,
1098
- relationshipType: 'created_product',
1099
- metadata: {},
1100
- createdAt: Date.now(),
1101
- });
1102
-
1103
- // Log event
1104
- await ctx.db.insert('events', {
1105
- groupId: args.groupId,
1106
- type: 'product_created' as EventType,
1107
- actorId: userId.tokenIdentifier,
1108
- targetId: productId,
1109
- timestamp: Date.now(),
1110
- metadata: {
1111
- sku: args.sku,
1112
- price: args.price,
1113
- },
1114
- });
1115
-
1116
- return productId;
1117
- },
1118
- });
1119
- ```
1120
-
1121
- ### Step 5: Create Queries
1122
-
1123
- ```typescript
1124
- // backend/convex/queries/products.ts
1125
- import { query } from './_generated/server';
1126
- import { v } from 'convex/values';
1127
-
1128
- export const list = query({
1129
- args: {
1130
- groupId: v.id('groups'),
1131
- },
1132
- handler: async (ctx, args) => {
1133
- const products = await ctx.db
1134
- .query('things')
1135
- .withIndex('by_group_type', (q) =>
1136
- q.eq('groupId', args.groupId).eq('type', 'product')
1137
- )
1138
- .collect();
1139
-
1140
- return products;
1141
- },
1142
- });
1143
-
1144
- export const getBySlug = query({
1145
- args: {
1146
- sku: v.string(),
1147
- },
1148
- handler: async (ctx, args) => {
1149
- const product = await ctx.db
1150
- .query('things')
1151
- .filter((q) =>
1152
- q.and(
1153
- q.eq(q.field('type'), 'product'),
1154
- q.eq(q.field('properties.sku'), args.sku)
1155
- )
1156
- )
1157
- .first();
1158
-
1159
- return product;
1160
- },
1161
- });
1162
- ```
1163
-
1164
- ### Step 6: Create React Component
1165
-
1166
- ```typescript
1167
- // web/src/components/features/products/ProductCard.tsx
1168
- import type { Doc } from '@/convex/_generated/dataModel';
1169
-
1170
- interface ProductCardProps {
1171
- product: Doc<'things'>;
1172
- }
1173
-
1174
- export function ProductCard({ product }: ProductCardProps) {
1175
- const { name, sku, price, inventory } = product.properties;
1176
-
1177
- return (
1178
- <div className="border rounded-lg p-4">
1179
- <h3 className="text-lg font-bold">{name}</h3>
1180
- <p className="text-sm text-gray-600">SKU: {sku}</p>
1181
- <p className="text-xl font-bold">${price.toFixed(2)}</p>
1182
- <p className="text-sm">
1183
- {inventory > 0 ? `${inventory} in stock` : 'Out of stock'}
1184
- </p>
1185
- </div>
1186
- );
1187
- }
1188
- ```
1189
-
1190
- ### Step 7: Deploy
1191
-
1192
- ```bash
1193
- cd backend
1194
- npx convex dev
1195
- ```
1196
-
1197
- **Done!** You've created a complete feature with type-safe backend and frontend.
1198
-
1199
- ---
1200
-
1201
- ## 10. Advanced Patterns
1202
-
1203
- ### Pattern 1: Multi-Backend Support
1204
-
1205
- Run different backends with different feature sets:
1206
-
1207
- ```bash
1208
- # Backend A (blog-focused)
1209
- PUBLIC_FEATURES="blog,portfolio"
1210
-
1211
- # Backend B (e-commerce focused)
1212
- PUBLIC_FEATURES="products,shop,payments"
1213
-
1214
- # Backend C (minimal)
1215
- PUBLIC_FEATURES="core"
1216
- ```
1217
-
1218
- Each backend generates types for only its enabled features!
1219
-
1220
- ### Pattern 2: Feature Dependencies
1221
-
1222
- Features can depend on other features:
1223
-
1224
- ```yaml
1225
- # ontology-advanced-blog.yaml
1226
- feature: advanced-blog
1227
- extends: blog # Requires blog feature
1228
- dependencies:
1229
- - newsletter # Also requires newsletter feature
1230
-
1231
- thingTypes:
1232
- - name: blog_series
1233
- properties:
1234
- posts: string[] # Array of blog_post IDs
1235
- ```
1236
-
1237
- ### Pattern 3: Versioned Ontologies
1238
-
1239
- Support multiple versions of the same feature:
1240
-
1241
- ```yaml
1242
- # ontology-products-v1.yaml
1243
- feature: products-v1
1244
- extends: core
1245
- thingTypes:
1246
- - name: product_v1
1247
-
1248
- # ontology-products-v2.yaml
1249
- feature: products-v2
1250
- extends: core
1251
- thingTypes:
1252
- - name: product_v2
1253
- properties:
1254
- # New fields
1255
- ```
1256
-
1257
- Enable both versions simultaneously:
1258
-
1259
- ```bash
1260
- PUBLIC_FEATURES="products-v1,products-v2"
1261
- ```
1262
-
1263
- ### Pattern 4: Conditional Type Loading
1264
-
1265
- ```typescript
1266
- // Load types dynamically based on environment
1267
- const features = process.env.PUBLIC_FEATURES?.split(',') || ['core'];
1268
-
1269
- if (features.includes('blog')) {
1270
- // Blog-specific initialization
1271
- await initializeBlogFeature();
1272
- }
1273
-
1274
- if (features.includes('products')) {
1275
- // Products-specific initialization
1276
- await initializeProductsFeature();
1277
- }
1278
- ```
1279
-
1280
- ### Pattern 5: Shared Connection Types
1281
-
1282
- Use wildcard types for shared relationships:
1283
-
1284
- ```yaml
1285
- # ontology-core.yaml
1286
- connectionTypes:
1287
- - name: created_by
1288
- fromType: '*' # Any thing can have a creator
1289
- toType: user
1290
-
1291
- - name: viewed_by
1292
- fromType: '*' # Any thing can be viewed
1293
- toType: user
1294
- ```
1295
-
1296
- ---
1297
-
1298
- ## 11. Migration Guide
1299
-
1300
- ### From Hardcoded Schema to Multi-Ontology
1301
-
1302
- **Before (Hardcoded):**
1303
-
1304
- ```typescript
1305
- // backend/convex/schema.ts
1306
- entities: defineTable({
1307
- type: v.union(
1308
- v.literal('page'),
1309
- v.literal('user'),
1310
- v.literal('blog_post'),
1311
- v.literal('product'),
1312
- // ... 50 more hardcoded types
1313
- ),
1314
- })
1315
- ```
1316
-
1317
- **After (Multi-Ontology):**
1318
-
1319
- ```typescript
1320
- // backend/convex/schema.ts
1321
- import { THING_TYPES } from './types/ontology';
1322
-
1323
- entities: defineTable({
1324
- type: v.union(...THING_TYPES.map(t => v.literal(t))),
1325
- })
1326
- ```
1327
-
1328
- ### Migration Steps
1329
-
1330
- **Step 1: Inventory Current Types**
1331
-
1332
- Create a spreadsheet of all entity types in use:
1333
-
1334
- | Type | Feature | Usage Count |
1335
- |------|---------|-------------|
1336
- | page | core | 1,245 |
1337
- | user | core | 8,932 |
1338
- | blog_post | blog | 3,421 |
1339
- | product | shop | 1,892 |
1340
-
1341
- **Step 2: Group Types into Features**
1342
-
1343
- Organize types into logical features:
1344
-
1345
- - **Core:** page, user, file, link, note
1346
- - **Blog:** blog_post, blog_category
1347
- - **Shop:** product, order, payment
1348
-
1349
- **Step 3: Create Ontology YAMLs**
1350
-
1351
- Create one YAML per feature (see [Section 5](#5-yaml-ontology-format) for format).
1352
-
1353
- **Step 4: Generate Types (Test First!)**
1354
-
1355
- ```bash
1356
- cd backend
1357
- PUBLIC_FEATURES="blog,shop" bun run scripts/generate-ontology-types.ts
1358
- ```
1359
-
1360
- **Step 5: Update Schema**
1361
-
1362
- Replace hardcoded unions with generated types.
1363
-
1364
- **Step 6: Deploy to Staging**
1365
-
1366
- Test thoroughly before production!
1367
-
1368
- **Step 7: Deploy to Production**
1369
-
1370
- Monitor for issues after deployment.
1371
-
1372
- ### Data Migration
1373
-
1374
- **Good news:** No data migration required! The multi-ontology architecture doesn't change your data structure, only type definitions.
1375
-
1376
- Existing data remains valid:
1377
-
1378
- ```typescript
1379
- // Before migration
1380
- { _id: "abc", type: "blog_post", ... }
1381
-
1382
- // After migration
1383
- { _id: "abc", type: "blog_post", ... } // Still valid!
1384
- ```
1385
-
1386
- ---
1387
-
1388
- ## 12. API Reference
1389
-
1390
- ### Generated Type Exports
1391
-
1392
- ```typescript
1393
- // Import from generated types
1394
- import {
1395
- // Type unions
1396
- ThingType,
1397
- ConnectionType,
1398
- EventType,
1399
-
1400
- // Constant arrays
1401
- THING_TYPES,
1402
- CONNECTION_TYPES,
1403
- EVENT_TYPES,
1404
-
1405
- // Type guards
1406
- isThingType,
1407
- isConnectionType,
1408
- isEventType,
1409
-
1410
- // Feature helpers
1411
- ENABLED_FEATURES,
1412
- hasFeature,
1413
-
1414
- // Metadata
1415
- ONTOLOGY_METADATA,
1416
- } from './backend/convex/types/ontology';
1417
- ```
1418
-
1419
- ### Type Guard Functions
1420
-
1421
- ```typescript
1422
- isThingType(value: string): value is ThingType
1423
- ```
1424
-
1425
- Checks if a string is a valid thing type.
1426
-
1427
- **Example:**
1428
- ```typescript
1429
- if (isThingType('blog_post')) {
1430
- // Type is valid
1431
- }
1432
- ```
1433
-
1434
- ---
1435
-
1436
- ```typescript
1437
- isConnectionType(value: string): value is ConnectionType
1438
- ```
1439
-
1440
- Checks if a string is a valid connection type.
1441
-
1442
- ---
1443
-
1444
- ```typescript
1445
- isEventType(value: string): value is EventType
1446
- ```
1447
-
1448
- Checks if a string is a valid event type.
1449
-
1450
- ---
1451
-
1452
- ```typescript
1453
- hasFeature(feature: string): boolean
1454
- ```
1455
-
1456
- Checks if a feature is enabled.
1457
-
1458
- **Example:**
1459
- ```typescript
1460
- if (hasFeature('blog')) {
1461
- // Blog feature is enabled
1462
- }
1463
- ```
1464
-
1465
- ### Metadata Object
1466
-
1467
- ```typescript
1468
- ONTOLOGY_METADATA = {
1469
- features: string[]; // List of enabled features
1470
- generatedAt: string; // ISO timestamp
1471
- thingTypeCount: number; // Total thing types
1472
- connectionTypeCount: number; // Total connection types
1473
- eventTypeCount: number; // Total event types
1474
- }
1475
- ```
1476
-
1477
- ---
1478
-
1479
- ## 13. Troubleshooting
1480
-
1481
- ### Problem: Type not found after adding feature
1482
-
1483
- **Symptom:**
1484
- ```
1485
- Error: Invalid thing type: "product"
1486
- ```
1487
-
1488
- **Solution:**
1489
- 1. Verify feature is in `PUBLIC_FEATURES`
1490
- 2. Run `bun run scripts/generate-ontology-types.ts`
1491
- 3. Restart Convex dev server
1492
-
1493
- ---
1494
-
1495
- ### Problem: Circular dependency error
1496
-
1497
- **Symptom:**
1498
- ```
1499
- Error: Circular dependency detected: blog → portfolio → blog
1500
- ```
1501
-
1502
- **Solution:**
1503
- Both features should extend `core`, not each other:
1504
-
1505
- ```yaml
1506
- # ✅ Correct
1507
- feature: blog
1508
- extends: core
1509
-
1510
- feature: portfolio
1511
- extends: core
1512
- ```
1513
-
1514
- ---
1515
-
1516
- ### Problem: Duplicate type error
1517
-
1518
- **Symptom:**
1519
- ```
1520
- Error: Duplicate thing type "product" in features "shop" and "marketplace"
1521
- ```
1522
-
1523
- **Solution:**
1524
- Consolidate into one feature or use different names.
1525
-
1526
- ---
1527
-
1528
- ### Problem: Feature not loading
1529
-
1530
- **Symptom:**
1531
- ```
1532
- ⚠️ Feature "products" not found, skipping
1533
- ```
1534
-
1535
- **Solution:**
1536
- 1. Verify file exists: `/one/knowledge/ontology-products.yaml`
1537
- 2. Check naming: `ontology-{feature}.yaml`
1538
- 3. Feature name in YAML must match filename
1539
-
1540
- ---
1541
-
1542
- ## 14. FAQs
1543
-
1544
- ### Q: Do I need to migrate existing data?
1545
-
1546
- **A:** No! The multi-ontology architecture only changes type definitions, not data structure. Existing data remains valid.
1547
-
1548
- ---
1549
-
1550
- ### Q: Can I disable a feature after deploying?
1551
-
1552
- **A:** Yes! Remove from `PUBLIC_FEATURES`, regenerate types, and redeploy. Existing data with that type will remain but won't pass validation for new inserts.
1553
-
1554
- ---
1555
-
1556
- ### Q: How many features can I have?
1557
-
1558
- **A:** No hard limit. System scales linearly. We've tested with 10+ features (50+ types) with excellent performance (<100ms).
1559
-
1560
- ---
1561
-
1562
- ### Q: Can features depend on each other?
1563
-
1564
- **A:** Yes! Use `extends` or `dependencies` in YAML. The system automatically resolves dependencies in correct order.
1565
-
1566
- ---
1567
-
1568
- ### Q: What happens if I have a type conflict?
1569
-
1570
- **A:** Validation fails with a clear error message identifying both features. You must rename one of the types.
1571
-
1572
- ---
1573
-
1574
- ### Q: Can I use custom backends (not Convex)?
1575
-
1576
- **A:** Yes! The ontology system is backend-agnostic. Adapt the type generation for your backend of choice.
1577
-
1578
- ---
1579
-
1580
- ## 15. Resources
1581
-
1582
- ### Documentation
1583
-
1584
- - [Quick Start Guide](/one/knowledge/ontology-quickstart.md) - Get running in 5 minutes
1585
- - [Developer Guide](/one/knowledge/ontology-developer-guide.md) - Advanced patterns and internals
1586
- - [Migration Guide](/one/knowledge/ontology-migration-guide.md) - Step-by-step migration process
1587
- - [Cheat Sheet](/one/knowledge/ontology-cheatsheet.md) - Quick reference
1588
- - [Ontology Specification](/one/knowledge/ontology.md) - Complete ontology docs
1589
-
1590
- ### Implementation Files
1591
-
1592
- - **Ontology Loader:** `/backend/lib/ontology-loader.ts`
1593
- - **Validator:** `/backend/lib/ontology-validator.ts`
1594
- - **Type Generator:** `/backend/lib/type-generator.ts`
1595
- - **CLI Tool:** `/backend/scripts/generate-ontology-types.ts`
1596
-
1597
- ### Example Ontologies
1598
-
1599
- - Core: `/one/knowledge/ontology-core.yaml`
1600
- - Blog: `/one/knowledge/ontology-blog.yaml`
1601
- - Portfolio: `/one/knowledge/ontology-portfolio.yaml`
1602
- - Courses: `/one/knowledge/ontology-courses.yaml`
1603
- - Community: `/one/knowledge/ontology-community.yaml`
1604
- - Tokens: `/one/knowledge/ontology-tokens.yaml`
1605
-
1606
- ### Test Reports
1607
-
1608
- - [Test Report](/backend/TEST-REPORT-ONTOLOGY.md) - 33 tests, all passing
1609
- - [Implementation Summary](/MULTI-ONTOLOGY-IMPLEMENTATION-COMPLETE.md) - Production readiness
1610
-
1611
- ### Community
1612
-
1613
- - **GitHub Discussions:** Share your ontologies
1614
- - **Discord:** Get help from the community
1615
- - **Weekly Office Hours:** Ask questions live
1616
-
1617
- ---
1618
-
1619
- ## Summary
1620
-
1621
- The Multi-Ontology Architecture provides:
1622
-
1623
- ✅ **Feature Modularity** - Self-contained, composable features
1624
- ✅ **Type Safety** - Compile-time and runtime validation
1625
- ✅ **Zero Migration** - Add/remove features without schema changes
1626
- ✅ **Backend Flexibility** - Different backends, different features
1627
- ✅ **Performance** - Sub-100ms operations, 98% smaller schemas
1628
- ✅ **Developer Experience** - Clear errors, focused autocomplete
1629
-
1630
- **Status:** ✅ Production Ready
1631
-
1632
- **Test Coverage:** 33/33 tests passing (100%)
1633
-
1634
- **Performance:** 75ms cold load, 5ms cached load
1635
-
1636
- **Documentation:** Complete
1637
-
1638
- ---
1639
-
1640
- **Built with clarity, simplicity, and infinite scale in mind.**
1641
-
1642
- **Version:** 1.0.0
1643
- **Last Updated:** 2025-10-20
1644
- **Total Pages:** 47
1645
- **Word Count:** ~12,000