oneie 3.6.27 → 3.6.30
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.
- package/.claude/agents/agent-builder.md +88 -0
- package/.claude/agents/agent-clone.md +2 -0
- package/.claude/agents/agent-frontend.md +87 -0
- package/.claude/agents/agent-writer.md +722 -0
- package/.claude/commands/create.md +26 -1
- package/.claude/commands/one.md +70 -8
- package/.claude/commands/push.md +42 -24
- package/.claude/commands/server.md +97 -48
- package/.claude/commands/start.md +182 -0
- package/.claude/hooks/.last-news-context +1 -0
- package/.claude/hooks/README-news-generation.md +364 -0
- package/.claude/hooks/push.sh +64 -12
- package/.claude/hooks/write-news.sh +194 -0
- package/CLAUDE.md +150 -1057
- package/one/knowledge/ontology-cheatsheet.md +78 -70
- package/one/knowledge/ontology-developer-guide.md +94 -87
- package/one/knowledge/ontology-index.md +51 -26
- package/one/knowledge/ontology-quickstart.md +58 -50
- package/one/knowledge/ontology-tutorial.md +27 -24
- package/one/knowledge/ontology-video-script.md +90 -59
- package/one/things/plans/multi-ontology-architecture.md +8 -8
- package/one/things/plans/ontology-compliance-audit.md +36 -9
- package/one/things/plans/video-backend.md +638 -0
- package/one/things/plans/video-frontend.md +432 -0
- package/one/things/plans/video-old-archived.md +656 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
title:
|
|
2
|
+
title: ONE Ontology Architecture
|
|
3
3
|
dimension: things
|
|
4
4
|
category: plans
|
|
5
5
|
tags: 6-dimensions, ai, architecture, connections, events, groups, knowledge, ontology, people, system-design
|
|
@@ -10,13 +10,13 @@ updated: 2025-11-03
|
|
|
10
10
|
version: 1.0.0
|
|
11
11
|
ai_context: |
|
|
12
12
|
This document is part of the things dimension in the plans category.
|
|
13
|
-
Location: one/things/plans/
|
|
14
|
-
Purpose: Documents
|
|
13
|
+
Location: one/things/plans/ONE Ontology-architecture.md
|
|
14
|
+
Purpose: Documents ONE Ontology architecture: feature-specific ontologies
|
|
15
15
|
Related dimensions: connections, events, groups, knowledge, people
|
|
16
|
-
For AI agents: Read this to understand
|
|
16
|
+
For AI agents: Read this to understand ONE Ontology architecture.
|
|
17
17
|
---
|
|
18
18
|
|
|
19
|
-
#
|
|
19
|
+
# ONE Ontology Architecture: Feature-Specific Ontologies
|
|
20
20
|
|
|
21
21
|
**Status:** 🎯 Active Plan
|
|
22
22
|
**Created:** 2025-10-19
|
|
@@ -529,7 +529,7 @@ const compositeOntology = composeOntologies(
|
|
|
529
529
|
coreOntology,
|
|
530
530
|
hasFeature("blog") ? blogOntology : null,
|
|
531
531
|
hasFeature("shop") ? shopOntology : null,
|
|
532
|
-
hasFeature("courses") ? coursesOntology : null
|
|
532
|
+
hasFeature("courses") ? coursesOntology : null
|
|
533
533
|
);
|
|
534
534
|
|
|
535
535
|
// Result: TypeScript types are generated for enabled features only
|
|
@@ -573,7 +573,7 @@ export default defineSchema({
|
|
|
573
573
|
status: v.union(
|
|
574
574
|
v.literal("draft"),
|
|
575
575
|
v.literal("active"),
|
|
576
|
-
v.literal("archived")
|
|
576
|
+
v.literal("archived")
|
|
577
577
|
),
|
|
578
578
|
createdAt: v.number(),
|
|
579
579
|
updatedAt: v.number(),
|
|
@@ -585,7 +585,7 @@ export default defineSchema({
|
|
|
585
585
|
fromThingId: v.id("things"),
|
|
586
586
|
toThingId: v.id("things"),
|
|
587
587
|
relationshipType: v.union(
|
|
588
|
-
...ontologies.connectionTypes.map((t) => v.literal(t))
|
|
588
|
+
...ontologies.connectionTypes.map((t) => v.literal(t))
|
|
589
589
|
),
|
|
590
590
|
metadata: v.optional(v.any()),
|
|
591
591
|
createdAt: v.number(),
|
|
@@ -34,6 +34,7 @@ ai_context: |
|
|
|
34
34
|
**✅ HIGH COMPLIANCE: 78/100 files (78%)**
|
|
35
35
|
|
|
36
36
|
**Breakdown:**
|
|
37
|
+
|
|
37
38
|
- ✅ Fully Aligned (45 files, 45%)
|
|
38
39
|
- ⚠️ Partially Aligned (33 files, 33%)
|
|
39
40
|
- ❌ Misaligned/Scattered (22 files, 22%)
|
|
@@ -63,16 +64,19 @@ ai_context: |
|
|
|
63
64
|
### GROUPS Dimension (Multi-Tenant Isolation)
|
|
64
65
|
|
|
65
66
|
**Fully Aligned (✅):**
|
|
67
|
+
|
|
66
68
|
- `3-groups.md` ✅ - Hierarchical groups, nesting, parent-child relationships
|
|
67
69
|
- `group-folder-multi-tenancy.md` ✅ - Installation folders with group hierarchy
|
|
68
70
|
- `backend-ontology-conformance.md` ✅ - Groups as first-class dimension
|
|
69
71
|
|
|
70
72
|
**Partially Aligned (⚠️):**
|
|
73
|
+
|
|
71
74
|
- `backend-status.md` ⚠️ - Mentions groups but lacks explicit mapping
|
|
72
75
|
- `deployment-architecture.md` ⚠️ - Assumes group scoping but doesn't explain
|
|
73
76
|
- `backend-target-structure.md` ⚠️ - References groupId but missing dimension context
|
|
74
77
|
|
|
75
78
|
**Missing Groups Context:**
|
|
79
|
+
|
|
76
80
|
- `app.md` ❌ - No mention of group isolation
|
|
77
81
|
- `components.md` ❌ - UI components don't reference group scoping
|
|
78
82
|
- `frontend-effects.md` ❌ - No group-aware state management
|
|
@@ -84,11 +88,13 @@ ai_context: |
|
|
|
84
88
|
### PEOPLE Dimension (Authorization & Governance)
|
|
85
89
|
|
|
86
90
|
**Fully Aligned (✅):**
|
|
91
|
+
|
|
87
92
|
- `backend-ontology-conformance.md` ✅ - Role-based access (platform_owner, group_owner, group_user, customer)
|
|
88
93
|
- `backend.md` ✅ - Complete authentication flows with 6 methods
|
|
89
94
|
- `phase-1-foundation.md` ✅ - Authorization via Effect Context
|
|
90
95
|
|
|
91
96
|
**Partially Aligned (⚠️):**
|
|
97
|
+
|
|
92
98
|
- `convex-better-auth.md` ⚠️ - Better Auth implementation, but missing authorization patterns
|
|
93
99
|
- `enhance-auth.md` ⚠️ - Auth enhancements without role governance
|
|
94
100
|
- `better-auth-any-backend.md` ⚠️ - Generic auth without ontology roles
|
|
@@ -97,6 +103,7 @@ ai_context: |
|
|
|
97
103
|
- `mcp-simple.md` ⚠️ - MCP server without authorization context
|
|
98
104
|
|
|
99
105
|
**Missing People Context:**
|
|
106
|
+
|
|
100
107
|
- `ai-elements.md` ❌ - No authorization for AI operations
|
|
101
108
|
- `ai-integration.md` ❌ - Missing actor context for AI actions
|
|
102
109
|
- `ai-sdk.md` ❌ - No role-based execution patterns
|
|
@@ -109,12 +116,14 @@ ai_context: |
|
|
|
109
116
|
### THINGS Dimension (Entities)
|
|
110
117
|
|
|
111
118
|
**Fully Aligned (✅):**
|
|
119
|
+
|
|
112
120
|
- `ontology-6-dimensions.md` ✅ - Complete 66+ thing types enumerated
|
|
113
121
|
- `backend-ontology-conformance.md` ✅ - Entity types with properties
|
|
114
122
|
- `3-groups.md` ✅ - Groups as entities with hierarchical support
|
|
115
123
|
- `phase-1-foundation.md` ✅ - Service layer entities defined
|
|
116
124
|
|
|
117
125
|
**Partially Aligned (⚠️):**
|
|
126
|
+
|
|
118
127
|
- `backend.md` ⚠️ - References "things" but uses generic naming (entities vs things)
|
|
119
128
|
- `ontology-refine.md` ⚠️ - Discusses thing types without full enumeration
|
|
120
129
|
- `ontology-driven-strategy.md` ⚠️ - Strategy but missing entity type examples
|
|
@@ -122,6 +131,7 @@ ai_context: |
|
|
|
122
131
|
- `data-quality-metrics.md` ⚠️ - Metrics for things without ontology context
|
|
123
132
|
|
|
124
133
|
**Missing Things Context:**
|
|
134
|
+
|
|
125
135
|
- `app.md` ❌ - No entity modeling
|
|
126
136
|
- `components.md` ❌ - Components for things without type awareness
|
|
127
137
|
- `ai-elements.md` ❌ - AI elements undefined as thing types
|
|
@@ -136,17 +146,20 @@ ai_context: |
|
|
|
136
146
|
### CONNECTIONS Dimension (Relationships)
|
|
137
147
|
|
|
138
148
|
**Fully Aligned (✅):**
|
|
149
|
+
|
|
139
150
|
- `ontology-6-dimensions.md` ✅ - 25 connection types with semantic meaning
|
|
140
151
|
- `backend-ontology-conformance.md` ✅ - Connection types for dependencies
|
|
141
152
|
- `phase-1-foundation.md` ✅ - Service dependency connections
|
|
142
153
|
|
|
143
154
|
**Partially Aligned (⚠️):**
|
|
155
|
+
|
|
144
156
|
- `backend.md` ⚠️ - References connections but limited example types
|
|
145
|
-
- `
|
|
157
|
+
- `ONE Ontology-architecture.md` ⚠️ - Multiple ontologies but connection mapping unclear
|
|
146
158
|
- `integration-guide.md` ⚠️ - Integration connections without semantic types
|
|
147
159
|
- `workflow.md` ⚠️ - Workflow steps as connections (not explicit)
|
|
148
160
|
|
|
149
161
|
**Missing Connections Context:**
|
|
162
|
+
|
|
150
163
|
- `components.md` ❌ - Component relationships undefined
|
|
151
164
|
- `frontend-effects.md` ❌ - State relationships without connection types
|
|
152
165
|
- `ai-integration.md` ❌ - AI service connections undefined
|
|
@@ -160,17 +173,20 @@ ai_context: |
|
|
|
160
173
|
### EVENTS Dimension (Actions & Audit Trail)
|
|
161
174
|
|
|
162
175
|
**Fully Aligned (✅):**
|
|
176
|
+
|
|
163
177
|
- `ontology-6-dimensions.md` ✅ - 67 event types with complete taxonomy
|
|
164
178
|
- `backend-ontology-conformance.md` ✅ - Event logging with actor + target + timestamp
|
|
165
179
|
- `phase-1-foundation.md` ✅ - Service observability events
|
|
166
180
|
|
|
167
181
|
**Partially Aligned (⚠️):**
|
|
182
|
+
|
|
168
183
|
- `backend.md` ⚠️ - Event logging examples but incomplete coverage
|
|
169
184
|
- `deployment-architecture.md` ⚠️ - Deployment events without ontology typing
|
|
170
185
|
- `development-plan.md` ⚠️ - Development workflow without event logging
|
|
171
186
|
- `wave1-onboarding-vision.md` ⚠️ - Onboarding without action event tracking
|
|
172
187
|
|
|
173
188
|
**Missing Events Context:**
|
|
189
|
+
|
|
174
190
|
- `ai-integration.md` ❌ - AI operations without event logging
|
|
175
191
|
- `async-ai-agents.md` ❌ - Agent execution without events
|
|
176
192
|
- `convex-agents.md` ❌ - Agent operations without audit trail
|
|
@@ -186,17 +202,20 @@ ai_context: |
|
|
|
186
202
|
### KNOWLEDGE Dimension (Understanding & RAG)
|
|
187
203
|
|
|
188
204
|
**Fully Aligned (✅):**
|
|
205
|
+
|
|
189
206
|
- `ontology-6-dimensions.md` ✅ - Knowledge types (label, document, chunk, vector_only)
|
|
190
207
|
- `backend-ontology-conformance.md` ✅ - Knowledge indexing and search
|
|
191
208
|
- `phase-1-foundation.md` ✅ - Service documentation via RAG
|
|
192
209
|
|
|
193
210
|
**Partially Aligned (⚠️):**
|
|
211
|
+
|
|
194
212
|
- `backend.md` ⚠️ - RAG implementation but limited knowledge structuring
|
|
195
213
|
- `implementation-guide.md` ⚠️ - Implementation patterns without knowledge indexing
|
|
196
214
|
- `ai-sdk.md` ⚠️ - AI SDK without RAG patterns
|
|
197
215
|
- `effect-patterns-reference.md` ⚠️ - Effect patterns without knowledge base
|
|
198
216
|
|
|
199
217
|
**Missing Knowledge Context:**
|
|
218
|
+
|
|
200
219
|
- `ai-integration.md` ❌ - AI without context awareness
|
|
201
220
|
- `improve-codebase.md` ❌ - Improvements without knowledge base
|
|
202
221
|
- `deep-researcher-agent.md` ❌ - Research without knowledge indexing
|
|
@@ -219,31 +238,34 @@ ai_context: |
|
|
|
219
238
|
|
|
220
239
|
### Dimension Coverage
|
|
221
240
|
|
|
222
|
-
| Dimension
|
|
223
|
-
|
|
|
224
|
-
| Groups
|
|
225
|
-
| People
|
|
226
|
-
| Things
|
|
227
|
-
| Connections
|
|
228
|
-
| Events
|
|
229
|
-
| Knowledge
|
|
241
|
+
| Dimension | Files Aware | % Coverage |
|
|
242
|
+
| ----------- | ----------- | ---------- |
|
|
243
|
+
| Groups | 12 | 12% |
|
|
244
|
+
| People | 10 | 10% |
|
|
245
|
+
| Things | 18 | 18% |
|
|
246
|
+
| Connections | 8 | 8% |
|
|
247
|
+
| Events | 10 | 10% |
|
|
248
|
+
| Knowledge | 7 | 7% |
|
|
230
249
|
|
|
231
250
|
---
|
|
232
251
|
|
|
233
252
|
## Consolidation Candidates
|
|
234
253
|
|
|
235
254
|
### DELETE (Exact Duplicates - 3 files)
|
|
255
|
+
|
|
236
256
|
- `separate-copy.md`
|
|
237
257
|
- `separate-copy-2.md`
|
|
238
258
|
- `separate-copy-3.md`
|
|
239
259
|
|
|
240
260
|
### CONSOLIDATE (Near-Duplicates - 9 files into 4 primary)
|
|
261
|
+
|
|
241
262
|
- `separate.md` ← `2-backend-agnostic-frontend.md`, `separate-demo.md`
|
|
242
263
|
- `workflow.md` ← `1-create-workflow.md`, `1-create-workflow-status.md`
|
|
243
264
|
- `feature-based-sites.md` ← `2-sites.md`
|
|
244
265
|
- `backend.md` ← `use-our-backend.md`
|
|
245
266
|
|
|
246
267
|
### ARCHIVE (Obsolete - 5 files)
|
|
268
|
+
|
|
247
269
|
- `convex-on-off.md`
|
|
248
270
|
- `desktop.md`
|
|
249
271
|
- `onboarding.md`
|
|
@@ -255,16 +277,19 @@ ai_context: |
|
|
|
255
277
|
## Remediation Roadmap
|
|
256
278
|
|
|
257
279
|
### Phase 1: Quick Wins (1 week)
|
|
280
|
+
|
|
258
281
|
- Delete 3 exact duplicates
|
|
259
282
|
- Create dimension-mapping template
|
|
260
283
|
- Update agent instructions
|
|
261
284
|
|
|
262
285
|
### Phase 2: Consolidation (1 week)
|
|
286
|
+
|
|
263
287
|
- Merge 9 near-duplicate files
|
|
264
288
|
- Archive 5 obsolete files
|
|
265
289
|
- Restructure 5 meta-docs
|
|
266
290
|
|
|
267
291
|
### Phase 3: Dimension Mapping (2-3 weeks)
|
|
292
|
+
|
|
268
293
|
- Add dimension sections to 33 partially-aligned files
|
|
269
294
|
- Validate all changes
|
|
270
295
|
- Sync findings globally
|
|
@@ -298,11 +323,13 @@ ai_context: |
|
|
|
298
323
|
**The ONE Platform's `/one/things/plans/` directory has strong foundational ontology alignment (45 files, 45%) but needs explicit dimension mapping for the remaining 55 files.**
|
|
299
324
|
|
|
300
325
|
**Immediate Actions:**
|
|
326
|
+
|
|
301
327
|
1. Delete 3 duplicate files (5 minutes)
|
|
302
328
|
2. Create dimension-mapping template (1 hour)
|
|
303
329
|
3. Add enforcement to agent instructions (2 hours)
|
|
304
330
|
|
|
305
331
|
**Impact of Full Remediation:**
|
|
332
|
+
|
|
306
333
|
- 100% of plans will map to 6-dimension ontology
|
|
307
334
|
- AI agents will have clearer context for code generation
|
|
308
335
|
- 98% code generation accuracy will improve further
|