oneie 3.5.0 → 3.6.3
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-director.md +902 -22
- package/.claude/agents/agent-onboard-example-output.md +600 -0
- package/.claude/agents/agent-onboard.md +576 -0
- package/.claude/commands/ONBOARDING_ENHANCEMENT_SUMMARY.md +266 -0
- package/.claude/commands/deploy.md +77 -150
- package/.claude/commands/one.md +375 -5
- package/.claude/commands/release.md +64 -3
- package/.mcp.json +57 -0
- package/CLAUDE.md +55 -69
- package/CREATE-WEBSITE.md +442 -0
- package/SECURITY.md +31 -0
- package/TESTING-ONBOARDING.md +185 -0
- package/dist/commands/create-website.d.ts +19 -0
- package/dist/commands/create-website.d.ts.map +1 -0
- package/dist/commands/create-website.js +231 -0
- package/dist/commands/create-website.js.map +1 -0
- package/dist/commands/init.d.ts +5 -6
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +213 -103
- package/dist/commands/init.js.map +1 -1
- package/dist/index.js +7 -5
- package/dist/index.js.map +1 -1
- package/dist/utils/installation-setup.d.ts +24 -1
- package/dist/utils/installation-setup.d.ts.map +1 -1
- package/dist/utils/installation-setup.js +85 -1
- package/dist/utils/installation-setup.js.map +1 -1
- package/dist/utils/launch-claude.d.ts +6 -0
- package/dist/utils/launch-claude.d.ts.map +1 -0
- package/dist/utils/launch-claude.js +51 -0
- package/dist/utils/launch-claude.js.map +1 -0
- package/dist/utils/validation.d.ts +48 -0
- package/dist/utils/validation.d.ts.map +1 -0
- package/dist/utils/validation.js +73 -0
- package/dist/utils/validation.js.map +1 -0
- package/folders.yaml +1 -1
- package/one/.obsidian/core-plugins.json +33 -0
- package/one/.obsidian/workspace.json +20 -20
- package/one/connections/workflow-onboarding.md +683 -0
- package/one/events/CART-DRAWER-INTEGRATION-GUIDE.md +354 -0
- package/one/events/CRITICAL-FIXES-COMPLETE.md +504 -0
- package/one/events/DEPLOYMENT.md +178 -0
- package/one/events/ECOMMERCE-DEMO-PLAN.md +225 -0
- package/one/events/ECOMMERCE-LIVE-DEMO.md +363 -0
- package/one/events/ECOMMERCE-TEMPLATE-COMPLETE.md +735 -0
- package/one/events/ECOMMERCE-TEMPLATES-SUMMARY.md +923 -0
- package/one/events/GRADIENT-TEXT-PERMANENT-FIX.md +223 -0
- package/one/events/HANDOFF.md +313 -0
- package/one/events/IMPLEMENTATION-SUMMARY-FINAL.md +503 -0
- package/one/events/IMPLEMENTATION_SUMMARY.md +529 -0
- package/one/events/LANDING-PAGE-EXAMPLE-OUTPUT.md +666 -0
- package/one/events/LANDING-PAGE-IMPLEMENTATION.md +642 -0
- package/one/events/LANDING-PAGE-QUICKSTART.md +407 -0
- package/one/events/MULTI-ONTOLOGY-COMPLETE-GUIDE.md +1627 -0
- package/one/events/MULTI-ONTOLOGY-IMPLEMENTATION-COMPLETE.md +573 -0
- package/one/events/ONBOARDING-IMPLEMENTATION-COMPLETE copy.md +398 -0
- package/one/events/ONTOLOGY-TUTORIALS-SUMMARY.md +525 -0
- package/one/events/ONTOLOGY-TYPE-GENERATOR-SUMMARY.md +455 -0
- package/one/events/ONTOLOGY_DISCOVERY_IMPLEMENTATION.md +486 -0
- package/one/events/ONTOLOGY_DISCOVERY_QUICKSTART.md +203 -0
- package/one/events/SECURITY-AUDIT-FIXES.md +376 -0
- package/one/events/SECURITY-SCAN-COMPLETE.md +281 -0
- package/one/events/SHOP-BUILD-STATUS.md +114 -0
- package/one/events/SHOP-PREMIUM-UPDATE.md +149 -0
- package/one/events/SITE-WIDE-GRADIENT-FIX.md +299 -0
- package/one/events/STORE-PRODUCTION-READY-STATUS.md +359 -0
- package/one/events/STRIPE-PAYMENT-METHODS-GUIDE.md +429 -0
- package/one/events/agent-director-enhancement-summary.md +386 -0
- package/one/events/agent-onboard-implementation-summary.md +457 -0
- package/one/events/clean-agent-ontology-cleanup-report.md +353 -0
- package/one/events/landing-page-generator.md +458 -0
- package/one/events/onboarding-implementation-complete.md +505 -0
- package/one/events/release.md +254 -0
- package/one/events/separate-implementation-status.md +537 -0
- package/one/knowledge/100-inference-quick-reference.md +431 -0
- package/one/knowledge/agent-onboard-usage.md +612 -0
- package/one/knowledge/cli-claude-handoff.md +718 -0
- package/one/knowledge/ontology-blog.yaml +31 -0
- package/one/knowledge/ontology-cheatsheet.md +591 -0
- package/one/knowledge/ontology-community.yaml +42 -0
- package/one/knowledge/ontology-core-universal.md +722 -0
- package/one/knowledge/ontology-core.yaml +50 -0
- package/one/knowledge/ontology-courses.yaml +53 -0
- package/one/knowledge/ontology-creator.md +376 -0
- package/one/knowledge/ontology-developer-guide.md +789 -0
- package/one/knowledge/ontology-education.md +920 -0
- package/one/knowledge/ontology-index.md +354 -0
- package/one/knowledge/ontology-migration-guide.md +811 -0
- package/one/knowledge/ontology-minimal.yaml +1 -1
- package/one/knowledge/ontology-portfolio.yaml +31 -0
- package/one/knowledge/ontology-quickstart.md +576 -0
- package/one/knowledge/ontology-shop.yaml +121 -0
- package/one/knowledge/ontology-tokens.yaml +32 -0
- package/one/knowledge/ontology-tutorial.md +434 -0
- package/one/knowledge/ontology-video-script.md +890 -0
- package/one/things/docs/ecommerce/ARCHITECTURE-DIAGRAM.md +467 -0
- package/one/things/docs/ecommerce/CONVERSION-ELEMENTS-IMPLEMENTATION.md +408 -0
- package/one/things/docs/ecommerce/CONVERSION-ELEMENTS-SUMMARY.md +369 -0
- package/one/things/docs/ecommerce/CONVERSION-UX-IMPLEMENTATION-SUMMARY.md +396 -0
- package/one/things/docs/ecommerce/FEATURE-SUMMARY.md +468 -0
- package/one/things/docs/ecommerce/IMPLEMENTATION-NOTES.md +582 -0
- package/one/things/docs/ecommerce/INTEGRATION-EXAMPLE.md +449 -0
- package/one/things/docs/ecommerce/QUICK-START.md +368 -0
- package/one/things/docs/ecommerce/URGENCY-IMPLEMENTATION-SUMMARY.md +498 -0
- package/one/things/docs/ecommerce/URGENCY-QUICK-REFERENCE.md +237 -0
- package/one/things/docs/ecommerce/USAGE-EXAMPLE.astro +171 -0
- package/one/things/docs/ecommerce/demo.astro +309 -0
- package/one/things/plans/agent-director-100-inference-plans.md +410 -0
- package/one/things/plans/dual-website-strategy.md +612 -0
- package/one/things/plans/feature-based-sites.md +821 -0
- package/one/things/plans/multi-ontology-architecture.md +836 -0
- package/one/things/plans/onboarding.md +32 -0
- package/one/things/plans/separate.md +15 -17
- package/one/things/plans/start-new.md +738 -0
- package/package.json +7 -2
- package/one/things/claude/hooks/agent-hook-manager.js +0 -525
- package/one/things/claude/hooks/agent-load-balancer.js +0 -271
- package/one/things/claude/hooks/agent-request-interceptor.js +0 -70
- package/one/things/claude/hooks/cascade-feedback.js +0 -297
- package/one/things/claude/hooks/cascade-integration-hooks.js +0 -648
- package/one/things/claude/hooks/continuous-improvement-monitor.js +0 -510
- package/one/things/claude/hooks/file-organization-engine.js +0 -427
- package/one/things/claude/hooks/file-organization-monitor.js +0 -269
- package/one/things/claude/hooks/hook-config-manager.js +0 -202
- package/one/things/claude/hooks/hook-orchestrator.js +0 -662
- package/one/things/claude/hooks/hook-performance-report.js +0 -120
- package/one/things/claude/hooks/mcp-cascade-integration.js +0 -816
- package/one/things/claude/hooks/memory-optimizer.js +0 -510
- package/one/things/claude/hooks/ontology-compliance.js +0 -394
- package/one/things/claude/hooks/ontology-hook-manager.js +0 -316
- package/one/things/claude/hooks/ontology-validation-engine.js +0 -317
- package/one/things/claude/hooks/performance-monitoring-hook.js +0 -422
- package/one/things/claude/hooks/quality-scoring-engine.js +0 -834
- package/one/things/claude/hooks/simple-load-balancer.js +0 -238
- package/one/things/claude/hooks/startup-optimizer.js +0 -625
- package/one/things/claude/hooks/story-scoring-system.js +0 -445
- package/one/things/claude/hooks/story-validation-engine.js +0 -473
- package/one/things/claude/hooks/structure-synchronizer.js +0 -194
- package/one/things/claude/hooks/sub-agent-output-validator.js +0 -647
- package/one/things/claude/hooks/sub-agent-validation-hook.js +0 -343
- package/one/things/claude/hooks/trinity-validation-system.js +0 -392
- package/one/things/plans/organizations-to-groups.md +0 -705
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
# Clean Agent: Ontology Cleanup Report
|
|
2
|
+
|
|
3
|
+
**Date:** 2025-10-22
|
|
4
|
+
**Agent:** Clean Agent
|
|
5
|
+
**Task:** Remove obsolete "custom ontology per installation" logic
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Executive Summary
|
|
10
|
+
|
|
11
|
+
Successfully removed all logic that generated "custom ontologies" per installation. The ONE Platform now correctly maintains a **single universal 6-dimension ontology** that all installations share.
|
|
12
|
+
|
|
13
|
+
**Key Principle Restored:** Installation folders provide branding and feature customization, NOT custom ontologies. All data scoping happens at runtime via `groupId`, using the universal ontology structure.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## What Was Removed
|
|
18
|
+
|
|
19
|
+
### 1. Custom Ontology Generation Service
|
|
20
|
+
|
|
21
|
+
**File Deleted:**
|
|
22
|
+
- `/backend/convex/services/ontologyGenerator.ts` (317 lines)
|
|
23
|
+
|
|
24
|
+
**What it did:** Generated installation-specific "custom ontologies" that violated the universal ontology principle.
|
|
25
|
+
|
|
26
|
+
**Why removed:** ONE has a single universal 6-dimension ontology. Custom ontologies would break cross-organization compatibility and data portability.
|
|
27
|
+
|
|
28
|
+
### 2. Agent Onboard Logic
|
|
29
|
+
|
|
30
|
+
**File Updated:** `.claude/agents/agent-onboard.md`
|
|
31
|
+
|
|
32
|
+
**Changes:**
|
|
33
|
+
- ❌ "Generate custom 6-dimension ontology based on analysis"
|
|
34
|
+
- ✅ "Map detected features to universal 6-dimension ontology"
|
|
35
|
+
- ❌ Custom ontology document generation
|
|
36
|
+
- ✅ Ontology mapping document generation
|
|
37
|
+
- ❌ References to `ontology.md`
|
|
38
|
+
- ✅ References to `ontology-mapping.md`
|
|
39
|
+
|
|
40
|
+
**Impact:** Agent now correctly identifies which parts of the universal ontology apply to a business, rather than creating a custom one.
|
|
41
|
+
|
|
42
|
+
### 3. Director Agent Configuration
|
|
43
|
+
|
|
44
|
+
**File Updated:** `.claude/agents/agent-director.md`
|
|
45
|
+
|
|
46
|
+
**Changes:**
|
|
47
|
+
- ❌ "Read custom ontology from installation folder"
|
|
48
|
+
- ✅ "Reference ontology mapping from installation folder"
|
|
49
|
+
- Added explicit note: "The ontology is ALWAYS universal. Installation folders do NOT create custom ontologies."
|
|
50
|
+
|
|
51
|
+
### 4. CLAUDE.md Workflow
|
|
52
|
+
|
|
53
|
+
**File Updated:** `CLAUDE.md`
|
|
54
|
+
|
|
55
|
+
**Changes:**
|
|
56
|
+
- ❌ "Look for `/<installation-name>/knowledge/ontology.md` (custom ontology docs)"
|
|
57
|
+
- ✅ "Look for `/<installation-name>/knowledge/ontology-mapping.md` (which ontology dimensions apply)"
|
|
58
|
+
- ❌ "Custom `things/vision.md` in installation folder"
|
|
59
|
+
- ✅ "Custom branding or feature documentation in installation folder"
|
|
60
|
+
|
|
61
|
+
### 5. /one Command
|
|
62
|
+
|
|
63
|
+
**File Updated:** `.claude/commands/one.md`
|
|
64
|
+
|
|
65
|
+
**Changes:**
|
|
66
|
+
- ❌ "Generate custom 6-dimension ontology"
|
|
67
|
+
- ✅ "Map detected features to universal 6-dimension ontology"
|
|
68
|
+
- ❌ "Custom ontology generated"
|
|
69
|
+
- ✅ "Ontology mapping created"
|
|
70
|
+
- ❌ Save to `/[org-slug]/knowledge/ontology.md`
|
|
71
|
+
- ✅ Save to `/[org-slug]/knowledge/ontology-mapping.md`
|
|
72
|
+
|
|
73
|
+
### 6. Backend Onboarding Mutation
|
|
74
|
+
|
|
75
|
+
**File Updated:** `backend/convex/mutations/onboarding.ts`
|
|
76
|
+
|
|
77
|
+
**Changes:**
|
|
78
|
+
- ❌ `import { runOntologyGeneration } from "../services/ontologyGenerator"`
|
|
79
|
+
- ✅ `import { runOntologyMapping } from "../services/ontologyMapper"`
|
|
80
|
+
- ❌ `const { document: ontologyDoc, markdown: ontologyMarkdown } = await runOntologyGeneration(...)`
|
|
81
|
+
- ✅ `const { document: mappingDoc, markdown: mappingMarkdown } = await runOntologyMapping(...)`
|
|
82
|
+
- ❌ Return `ontology: { document, markdown }`
|
|
83
|
+
- ✅ Return `ontologyMapping: { document, markdown }`
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## What Was Created
|
|
88
|
+
|
|
89
|
+
### 1. Ontology Mapper Service
|
|
90
|
+
|
|
91
|
+
**File Created:** `/backend/convex/services/ontologyMapper.ts` (333 lines)
|
|
92
|
+
|
|
93
|
+
**What it does:**
|
|
94
|
+
- Analyzes website features
|
|
95
|
+
- Identifies which parts of the **universal 6-dimension ontology** apply
|
|
96
|
+
- Creates a **mapping guide** (not a custom ontology)
|
|
97
|
+
- Generates markdown documentation
|
|
98
|
+
|
|
99
|
+
**Key Functions:**
|
|
100
|
+
- `mapToUniversalOntology()` - Identifies applicable ontology dimensions
|
|
101
|
+
- `generateOntologyMappingMarkdown()` - Creates usage guide
|
|
102
|
+
- `runOntologyMapping()` - Complete pipeline
|
|
103
|
+
|
|
104
|
+
**Output Format:**
|
|
105
|
+
```markdown
|
|
106
|
+
# [Org Name] - Ontology Usage Guide
|
|
107
|
+
|
|
108
|
+
**Based On:** Universal 6-Dimension Ontology
|
|
109
|
+
|
|
110
|
+
## GROUPS: Uses organization type from universal ontology
|
|
111
|
+
- organization
|
|
112
|
+
|
|
113
|
+
## PEOPLE: Uses standard roles from universal ontology
|
|
114
|
+
- platform_owner
|
|
115
|
+
- org_owner
|
|
116
|
+
- org_user
|
|
117
|
+
|
|
118
|
+
## THINGS: Uses content entity types from universal ontology
|
|
119
|
+
- project, website, feature, deployment
|
|
120
|
+
|
|
121
|
+
## CONNECTIONS: Uses standard relationship types
|
|
122
|
+
- owns, collaborates_on, deployed_to
|
|
123
|
+
|
|
124
|
+
## EVENTS: Tracks standard event types
|
|
125
|
+
- project_created, feature_deployed
|
|
126
|
+
|
|
127
|
+
## KNOWLEDGE: Uses knowledge types for categorization
|
|
128
|
+
- documentation, patterns, lessons
|
|
129
|
+
|
|
130
|
+
**Important:** This is NOT a custom ontology. All data is stored
|
|
131
|
+
in the same universal ontology structure.
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
---
|
|
135
|
+
|
|
136
|
+
## What Remains (Correct Architecture)
|
|
137
|
+
|
|
138
|
+
### 1. Universal 6-Dimension Ontology
|
|
139
|
+
|
|
140
|
+
**Location:** `/one/knowledge/ontology.md`
|
|
141
|
+
|
|
142
|
+
**Status:** ✅ Single source of truth for ALL installations
|
|
143
|
+
|
|
144
|
+
**Contains:**
|
|
145
|
+
- 6 groups types (friend_circle, business, community, dao, government, organization)
|
|
146
|
+
- 4 people roles (platform_owner, org_owner, org_user, customer)
|
|
147
|
+
- 66+ thing types (creator, course, lesson, token, agent, etc.)
|
|
148
|
+
- 25+ connection types (owns, authored, enrolled_in, etc.)
|
|
149
|
+
- 67+ event types (entity_created, course_enrolled, etc.)
|
|
150
|
+
- Knowledge types (labels, chunks, vectors)
|
|
151
|
+
|
|
152
|
+
### 2. Installation Folders (Branding/Features Only)
|
|
153
|
+
|
|
154
|
+
**Structure:**
|
|
155
|
+
```
|
|
156
|
+
/<installation-name>/
|
|
157
|
+
├── knowledge/
|
|
158
|
+
│ ├── brand-guide.md # ✅ Branding customization
|
|
159
|
+
│ ├── features.md # ✅ Enabled features
|
|
160
|
+
│ └── ontology-mapping.md # ✅ Which ontology parts apply
|
|
161
|
+
├── groups/
|
|
162
|
+
│ └── <group-slug>/
|
|
163
|
+
│ └── policies.md # ✅ Group-specific policies
|
|
164
|
+
└── things/
|
|
165
|
+
└── vision.md # ✅ Custom vision statement
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
**What goes here:**
|
|
169
|
+
- ✅ Brand colors, logos, fonts
|
|
170
|
+
- ✅ Feature-specific workflows
|
|
171
|
+
- ✅ Group policies and practices
|
|
172
|
+
- ✅ Custom business processes
|
|
173
|
+
- ❌ **NOT custom ontologies**
|
|
174
|
+
|
|
175
|
+
### 3. Database Schema (5 Tables)
|
|
176
|
+
|
|
177
|
+
**Tables:**
|
|
178
|
+
1. `groups` - Hierarchical containers with `parentGroupId`
|
|
179
|
+
2. `things` - All entities with `groupId` scoping
|
|
180
|
+
3. `connections` - All relationships with `groupId` scoping
|
|
181
|
+
4. `events` - All actions with `groupId` scoping
|
|
182
|
+
5. `knowledge` - All knowledge with `groupId` scoping
|
|
183
|
+
|
|
184
|
+
**Data Scoping:** All runtime data isolation via `groupId`, using the universal ontology.
|
|
185
|
+
|
|
186
|
+
### 4. File Resolution Priority
|
|
187
|
+
|
|
188
|
+
**Correct Priority:**
|
|
189
|
+
1. `/<installation-name>/groups/<group-path>/<file>` (group-specific policies)
|
|
190
|
+
2. `/<installation-name>/<file>` (installation-wide branding)
|
|
191
|
+
3. `/one/<file>` (global universal ontology)
|
|
192
|
+
|
|
193
|
+
**Usage:**
|
|
194
|
+
- Branding/features: Installation folder
|
|
195
|
+
- Ontology: Always `/one/knowledge/ontology.md`
|
|
196
|
+
- Data scoping: Always via `groupId` in database
|
|
197
|
+
|
|
198
|
+
---
|
|
199
|
+
|
|
200
|
+
## Benefits of This Cleanup
|
|
201
|
+
|
|
202
|
+
### 1. Cross-Organization Compatibility
|
|
203
|
+
|
|
204
|
+
**Before:** Each installation had its own custom ontology, making data incompatible.
|
|
205
|
+
|
|
206
|
+
**After:** All installations use the same universal ontology, enabling:
|
|
207
|
+
- Data portability between organizations
|
|
208
|
+
- Shared feature development
|
|
209
|
+
- Consistent API structure
|
|
210
|
+
- Easy migration/merging
|
|
211
|
+
|
|
212
|
+
### 2. Simplified Architecture
|
|
213
|
+
|
|
214
|
+
**Before:** Multiple ontology files to manage, file resolution complexity.
|
|
215
|
+
|
|
216
|
+
**After:**
|
|
217
|
+
- Single source of truth: `/one/knowledge/ontology.md`
|
|
218
|
+
- Clear separation: Branding in installation folders, ontology universal
|
|
219
|
+
- Simpler mental model: "Which parts of the ontology do I use?"
|
|
220
|
+
|
|
221
|
+
### 3. Correct Abstraction Levels
|
|
222
|
+
|
|
223
|
+
**Installation Level (Filesystem):**
|
|
224
|
+
- Branding customization
|
|
225
|
+
- Feature documentation
|
|
226
|
+
- Group policies
|
|
227
|
+
|
|
228
|
+
**Runtime Level (Database):**
|
|
229
|
+
- Data scoping via `groupId`
|
|
230
|
+
- Access control via roles
|
|
231
|
+
- Multi-tenancy via hierarchical groups
|
|
232
|
+
|
|
233
|
+
**Universal Level (Ontology):**
|
|
234
|
+
- Single 6-dimension schema
|
|
235
|
+
- Shared entity types
|
|
236
|
+
- Common event model
|
|
237
|
+
|
|
238
|
+
### 4. Alignment with ONE Philosophy
|
|
239
|
+
|
|
240
|
+
> "Simple enough for children. Powerful enough for enterprises."
|
|
241
|
+
|
|
242
|
+
The universal ontology scales from friend circles (2 people) to governments (billions) **without schema changes**. Custom ontologies would break this elegant scaling property.
|
|
243
|
+
|
|
244
|
+
---
|
|
245
|
+
|
|
246
|
+
## Documentation Updated
|
|
247
|
+
|
|
248
|
+
### Files Modified
|
|
249
|
+
|
|
250
|
+
1. `.claude/agents/agent-onboard.md` - Mapping instead of generation
|
|
251
|
+
2. `.claude/agents/agent-director.md` - Universal ontology enforcement
|
|
252
|
+
3. `.claude/commands/one.md` - Mapping workflow
|
|
253
|
+
4. `CLAUDE.md` - Workflow file resolution priority
|
|
254
|
+
5. `backend/convex/mutations/onboarding.ts` - Use mapper not generator
|
|
255
|
+
|
|
256
|
+
### Files Created
|
|
257
|
+
|
|
258
|
+
1. `backend/convex/services/ontologyMapper.ts` - New mapping service
|
|
259
|
+
2. `one/events/clean-agent-ontology-cleanup-report.md` - This report
|
|
260
|
+
|
|
261
|
+
### Files Deleted
|
|
262
|
+
|
|
263
|
+
1. `backend/convex/services/ontologyGenerator.ts` - Obsolete custom ontology generator
|
|
264
|
+
|
|
265
|
+
---
|
|
266
|
+
|
|
267
|
+
## Remaining References to Clean (Optional)
|
|
268
|
+
|
|
269
|
+
The following files still reference "custom ontology" but are documentation/examples that don't affect runtime behavior:
|
|
270
|
+
|
|
271
|
+
- `one/events/agent-onboard-implementation-summary.md`
|
|
272
|
+
- `one/events/onboarding-implementation-complete.md`
|
|
273
|
+
- `one/knowledge/agent-onboard-usage.md`
|
|
274
|
+
- `.claude/agents/agent-onboard-example-output.md`
|
|
275
|
+
- `.claude/commands/ONBOARDING_ENHANCEMENT_SUMMARY.md`
|
|
276
|
+
- Various `cli/` directory copies
|
|
277
|
+
|
|
278
|
+
**Recommendation:** Leave these as historical documentation of the old approach. They provide context for why the system evolved.
|
|
279
|
+
|
|
280
|
+
---
|
|
281
|
+
|
|
282
|
+
## Testing Recommendations
|
|
283
|
+
|
|
284
|
+
### 1. Test Ontology Mapping Service
|
|
285
|
+
|
|
286
|
+
```bash
|
|
287
|
+
cd backend/
|
|
288
|
+
npx convex dev
|
|
289
|
+
# Run website analysis
|
|
290
|
+
# Verify output is ontology-mapping.md not ontology.md
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
### 2. Test Agent Onboard Flow
|
|
294
|
+
|
|
295
|
+
```bash
|
|
296
|
+
npx oneie init
|
|
297
|
+
# Provide website URL
|
|
298
|
+
# Check created files in /<installation-name>/knowledge/
|
|
299
|
+
# Should see: brand-guide.md, features.md, ontology-mapping.md
|
|
300
|
+
# Should NOT see: ontology.md
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
### 3. Verify File Resolution
|
|
304
|
+
|
|
305
|
+
```bash
|
|
306
|
+
# Should always use universal ontology
|
|
307
|
+
cat /one/knowledge/ontology.md # ✅ Universal source of truth
|
|
308
|
+
|
|
309
|
+
# Should find mapping if exists
|
|
310
|
+
cat /<installation-name>/knowledge/ontology-mapping.md # ✅ Which parts apply
|
|
311
|
+
|
|
312
|
+
# Should NOT find custom ontology
|
|
313
|
+
cat /<installation-name>/knowledge/ontology.md # ❌ Should not exist
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
### 4. Verify Database Schema
|
|
317
|
+
|
|
318
|
+
```bash
|
|
319
|
+
# All tables should use universal ontology types
|
|
320
|
+
# Check that groupId scoping works correctly
|
|
321
|
+
npx convex run queries/groups:list
|
|
322
|
+
npx convex run queries/things:listByGroup '{"groupId": "..."}'
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
---
|
|
326
|
+
|
|
327
|
+
## Success Criteria
|
|
328
|
+
|
|
329
|
+
- [x] Deleted `ontologyGenerator.ts` service
|
|
330
|
+
- [x] Created `ontologyMapper.ts` service
|
|
331
|
+
- [x] Updated agent-onboard to map instead of generate
|
|
332
|
+
- [x] Updated agent-director to enforce universal ontology
|
|
333
|
+
- [x] Updated CLAUDE.md workflow
|
|
334
|
+
- [x] Updated /one command
|
|
335
|
+
- [x] Updated backend onboarding mutation
|
|
336
|
+
- [x] All references to "custom ontology generation" removed from active code
|
|
337
|
+
- [x] Clear distinction: Installation folders = branding, Database = data scoping, Ontology = universal
|
|
338
|
+
|
|
339
|
+
---
|
|
340
|
+
|
|
341
|
+
## Conclusion
|
|
342
|
+
|
|
343
|
+
The ONE Platform now correctly maintains a **single universal 6-dimension ontology** that all installations share. Installation folders provide branding and feature customization, while all data scoping happens at runtime via `groupId` using the universal schema.
|
|
344
|
+
|
|
345
|
+
**Key Insight:** The elegance of ONE comes from its universal ontology that scales infinitely without schema changes. Custom ontologies would have broken this fundamental property.
|
|
346
|
+
|
|
347
|
+
**Next Steps:** Consider adding validation to prevent creation of `ontology.md` files in installation folders during onboarding.
|
|
348
|
+
|
|
349
|
+
---
|
|
350
|
+
|
|
351
|
+
**Generated by:** Clean Agent
|
|
352
|
+
**Date:** 2025-10-22
|
|
353
|
+
**Context:** Ontology architecture cleanup
|