oneie 2.0.7 → 2.0.8

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/README.md CHANGED
@@ -27,9 +27,9 @@
27
27
 
28
28
  ## ✨ What is ONE?
29
29
 
30
- ONE is the **6-dimension reality model** for building AI-native applications.
30
+ **Build apps, websites, and AI agents in English.** Download to your computer, run in the cloud and deploy to the edge or your own server. ONE is open source and free forever.
31
31
 
32
- Instead of creating dozens of database tables, ONE maps everything to **6 universal dimensions**:
32
+ ONE maps everything to **6 universal dimensions**:
33
33
 
34
34
  1. **Groups** – Who owns what (multi-tenant isolation + hierarchical nesting)
35
35
  2. **People** – Who can do what (authorization & governance)
package/folders.yaml CHANGED
@@ -87,6 +87,6 @@ exclude_patterns:
87
87
  deployment:
88
88
  github_repo: one-ie/one
89
89
  npm_package: oneie
90
- version: 2.0.7
90
+ version: 2.0.8
91
91
  homepage: https://one.ie
92
92
  license_url: https://one.ie/free-license
@@ -171,6 +171,9 @@
171
171
  },
172
172
  "active": "613025f84d05f0e8",
173
173
  "lastOpenFiles": [
174
+ "README.md",
175
+ "readme.md",
176
+ "knowledge/metadata-system.md",
174
177
  "things/vision/elegant-interface.md",
175
178
  "things/vision",
176
179
  "things/tests/2-1-test-analysis.md",
@@ -197,9 +200,6 @@
197
200
  "things/features/DEPLOYMENT.md",
198
201
  "things/features/DECOUPLING.md",
199
202
  "things/features/AUTH_HOOKS_IMPLEMENTATION.md",
200
- "things/features/2-tests.md",
201
- "things/features/2-design.md",
202
- "things/features/2-cli.md",
203
203
  "things/cli",
204
204
  "things/cascade/docs/examples/1-6-numbering-structure",
205
205
  "things/cascade/docs/examples/1-5-quality-loops",
package/one/README.md ADDED
@@ -0,0 +1,652 @@
1
+ # The ONE Ontology
2
+
3
+ > **Every intelligent system needs a coherent model of reality.**
4
+
5
+ The ONE Ontology gives AI agents—and the humans who direct them—a complete, scalable architecture for understanding **who owns what, who can do what, what happened, and what it all means.**
6
+
7
+ [![License](https://img.shields.io/badge/license-FREE-blue.svg)](../LICENSE.md)
8
+ [![Version](https://img.shields.io/badge/version-1.0.0-green.svg)](./knowledge/ontology.md)
9
+ [![Dimensions](https://img.shields.io/badge/dimensions-6-orange.svg)](#the-6-dimensions)
10
+
11
+ ---
12
+
13
+ ## 🌟 Why the ONE Ontology
14
+
15
+ Traditional systems create tables for features, pollute schemas with temporary concepts, and end up with hundreds of entities nobody understands. The ONE Ontology takes a different approach:
16
+
17
+ **Model reality in six core dimensions and map everything to them.**
18
+
19
+ ```
20
+ ┌─────────────────────────────────────────────────────────────┐
21
+ │ Groups → People → Things → Connections → Events → Knowledge │
22
+ │ │
23
+ │ Everything flows through these six dimensions. │
24
+ │ Everything scales without schema changes. │
25
+ │ Everything is queryable, composable, and intelligent. │
26
+ └─────────────────────────────────────────────────────────────┘
27
+ ```
28
+
29
+ ---
30
+
31
+ ## 🎯 The 6 Dimensions
32
+
33
+ ### 1. 👥 Groups
34
+ **Hierarchical containers that organize people and things**
35
+
36
+ Groups can nest infinitely—from intimate friend circles to massive organizations. Each group owns its own graph of people, things, connections, events, and knowledge, creating perfect isolation at any scale.
37
+
38
+ **6 Group Types:**
39
+ - `friend_circle` - Small, intimate groups
40
+ - `business` - Commercial organizations
41
+ - `community` - Interest-based collectives
42
+ - `dao` - Token-governed groups
43
+ - `government` - Public institutions
44
+ - `organization` - Generic groups
45
+
46
+ **URL-Based Creation:**
47
+ ```
48
+ one.ie/group/cooldao → creates "cooldao" group
49
+ one.ie/group/cooldao/treasury → creates nested "treasury" group
50
+ one.ie/group/emmas-birthday → creates "emmas-birthday" group
51
+ ```
52
+
53
+ **Hierarchical Nesting Example:**
54
+ ```
55
+ groups/acme-corp (business)
56
+ ├─ groups/engineering (organization)
57
+ │ ├─ groups/backend-team (organization)
58
+ │ └─ groups/frontend-team (organization)
59
+ ├─ groups/marketing (organization)
60
+ └─ groups/sales (organization)
61
+
62
+ groups/emmas-friends (friend_circle)
63
+ ├─ groups/birthday-party (friend_circle)
64
+ └─ groups/game-night (friend_circle)
65
+
66
+ groups/cool-dao (dao)
67
+ ├─ groups/treasury (dao)
68
+ └─ groups/governance (dao)
69
+ ```
70
+
71
+ ---
72
+
73
+ ### 2. 🙋 People
74
+ **Authorization & governance - WHO can do what**
75
+
76
+ People are the prime movers. Every decision, transaction, and relationship traces back to human intent. People link to organizations through membership connections, creating clear authorization chains.
77
+
78
+ **4 Roles:**
79
+ - `platform_owner` - Platform-level control
80
+ - `org_owner` - Organization-level control
81
+ - `org_user` - Organization member
82
+ - `customer` - End user
83
+
84
+ **Properties:**
85
+ - Identity (name, email, wallet)
86
+ - Authentication credentials
87
+ - Role within organization
88
+ - Permissions and authorization
89
+ - Preferences and settings
90
+
91
+ **Why it matters:**
92
+ - ✓ Human authorization required
93
+ - ✓ Clear governance
94
+ - ✓ Audit trails
95
+ - ✓ Intent and accountability
96
+ - ✓ AI serves people, not the other way around
97
+
98
+ ---
99
+
100
+ ### 3. 📦 Things
101
+ **Entities - WHAT exists in your system**
102
+
103
+ Things are discrete entities with properties, types, and states. They can be agents, products, audiences, tokens, mandates, contracts—anything you need to model. Every thing belongs to exactly one group.
104
+
105
+ **66 Thing Types** organized in categories:
106
+
107
+ **Core:**
108
+ - `creator`, `audience_member`, `workspace`, `organization_settings`
109
+
110
+ **Agents:**
111
+ - `intelligence_agent`, `business_agent`, `personal_assistant`, `data_analyst`, `writer`, `researcher`, `moderator`, `customer_support`, `sales_rep`, `code_reviewer`, `qa_tester`, `task_automator`
112
+
113
+ **Content:**
114
+ - `video_content`, `text_content`, `audio_content`, `image_content`, `course`, `curriculum`, `module`, `lesson`, `quiz`, `certificate`, `podcast`, `newsletter`, `live_stream`, `blog_post`
115
+
116
+ **Products:**
117
+ - `token`, `nft`, `digital_product`, `offer`, `subscription_tier`, `bundle`, `access_pass`
118
+
119
+ **Community:**
120
+ - `community`, `forum`, `discussion`, `announcement`, `poll`
121
+
122
+ **Knowledge:**
123
+ - `knowledge_base`, `knowledge_chunk`, `topic`, `recommendation`, `insight`, `summary`
124
+
125
+ **Platform:**
126
+ - `ai_clone`, `voice_clone`, `personality_profile`, `mandate`, `delegation`, `workflow`, `automation`, `integration`, `webhook`
127
+
128
+ **Business:**
129
+ - `lead`, `deal`, `invoice`, `payment_method`, `payout_config`
130
+
131
+ ---
132
+
133
+ ### 4. 🔗 Connections
134
+ **Relationships - HOW things relate to each other**
135
+
136
+ Connections are first-class relationships with their own properties. They express ownership, membership, governance, authorization, dependencies, transactions, and more. Connections make the implicit explicit.
137
+
138
+ **25 Connection Types:**
139
+
140
+ **Ownership & Authorization:**
141
+ - `owns` - Ownership relationship
142
+ - `can_read` - Read access
143
+ - `can_write` - Write access
144
+ - `can_execute` - Execution permission
145
+
146
+ **Governance:**
147
+ - `governed_by` - Governed by mandate
148
+ - `delegated_to` - Delegation chain
149
+ - `member_of` - Membership
150
+
151
+ **Content & Knowledge:**
152
+ - `authored` - Created content
153
+ - `taught_by` - Teaching relationship
154
+ - `enrolled_in` - Course enrollment
155
+ - `contains` - Hierarchical containment
156
+
157
+ **Social:**
158
+ - `following` - Social following
159
+ - `subscribed_to` - Subscription
160
+ - `holds_tokens` - Token ownership
161
+
162
+ **Consolidated Types (with metadata):**
163
+ - `transacted` - Financial transactions (metadata.protocol: stripe | sui | blockchain)
164
+ - `communicated` - Messages/interactions (metadata.channel: email | chat | voice)
165
+ - `delegated` - Delegated authority (metadata.permissions: [...])
166
+ - `governed` - Governance (metadata.constraints: [...])
167
+ - `powered` - Dependency (metadata.config: {...})
168
+ - `related` - Generic relationship (metadata.relationshipType: custom)
169
+ - `licensed_to` - Licensing (metadata.terms: {...})
170
+
171
+ ---
172
+
173
+ ### 5. ⚡ Events
174
+ **Actions - WHAT happened, when, and why**
175
+
176
+ Events are immutable records of every action in your system. They create an audit trail, enable time-travel queries, feed analytics, and power learning loops. Events are the memory of your system.
177
+
178
+ **67 Event Types** organized in categories:
179
+
180
+ **Thing Lifecycle:**
181
+ - `thing_created`, `thing_updated`, `thing_deleted`, `thing_published`, `thing_archived`
182
+
183
+ **User Actions:**
184
+ - `user_signup`, `user_login`, `user_logout`, `profile_updated`, `preferences_changed`
185
+
186
+ **AI/Agent:**
187
+ - `agent_created`, `agent_executed`, `agent_completed`, `agent_failed`, `clone_created`, `clone_interaction`, `voice_cloned`, `personality_analyzed`
188
+
189
+ **Inference Events:**
190
+ - `inference_request`, `inference_completed`, `inference_failed`, `inference_quota_exceeded`, `inference_revenue_collected`, `org_revenue_generated`, `revenue_share_distributed`
191
+
192
+ **Token/NFT:**
193
+ - `token_created`, `tokens_purchased`, `tokens_transferred`, `tokens_burned`, `nft_minted`, `nft_transferred`
194
+
195
+ **Blockchain:**
196
+ - `tokens_bridged`, `contract_deployed`, `treasury_withdrawal`
197
+
198
+ **Content:**
199
+ - `content_created`, `content_published`, `content_viewed`, `content_liked`, `content_shared`, `course_enrolled`, `lesson_completed`, `quiz_submitted`, `certificate_earned`
200
+
201
+ **Knowledge:**
202
+ - `knowledge_indexed`, `embedding_generated`, `search_performed`, `recommendation_generated`
203
+
204
+ **Consolidated Events (with metadata):**
205
+ - `communicated` (metadata.protocol: email | sms | chat)
206
+ - `transacted` (metadata.protocol: stripe | sui | blockchain)
207
+ - `content_engaged` (metadata.engagement_type: view | like | share)
208
+ - Others...
209
+
210
+ ---
211
+
212
+ ### 6. 🧠 Knowledge
213
+ **Intelligence - WHAT it all means**
214
+
215
+ Knowledge captures semantics—labels, chunks, embeddings, and structured insights—that give agents the context they need to act intelligently. Knowledge transforms raw events and properties into queryable, composable intelligence.
216
+
217
+ **12 Tag Categories:**
218
+
219
+ 1. **skill** - typescript, react, python, design, video-editing
220
+ 2. **industry** - fitness, education, finance, healthcare
221
+ 3. **topic** - ai, blockchain, marketing, sales, analytics
222
+ 4. **format** - video, text, audio, code, interactive
223
+ 5. **goal** - learn, earn, build, grow, teach
224
+ 6. **audience** - beginners, professionals, students, developers
225
+ 7. **technology** - astro, react-19, convex, sui, solana
226
+ 8. **status** - draft, published, deprecated, featured
227
+ 9. **capability** - image-gen, analysis, trading, refactoring
228
+ 10. **protocol** - a2a, acp, ap2, x402, ag-ui
229
+ 11. **payment** - stripe, crypto, x402, ap2
230
+ 12. **network** - sui, solana, base, ethereum
231
+
232
+ **Features:**
233
+ - Labels for categorization
234
+ - Chunks for semantic search
235
+ - Embeddings for vector similarity
236
+ - Relationships for knowledge graphs
237
+ - Licensing for IP protection
238
+ - Provenance for trust
239
+ - Tokenization for markets
240
+
241
+ ---
242
+
243
+ ## 🎨 How The Ontology Works
244
+
245
+ ### Complete Example: Fan Buys Creator Tokens
246
+
247
+ Let's see how all six dimensions work together in a real feature:
248
+
249
+ #### Step 0: **Groups** (Scope)
250
+ ```typescript
251
+ groupId: "acme-corp"
252
+ // Transaction happens within this group boundary
253
+ // All entities belong to this group (can be nested)
254
+ ```
255
+
256
+ #### Step 1: **People** (Authorization)
257
+ ```typescript
258
+ actorId: "fan_123"
259
+ // Fan authorizes: "Buy 100 creator tokens for $10"
260
+ ```
261
+
262
+ #### Step 2: **Things** (Entities Involved)
263
+ ```typescript
264
+ {
265
+ fan_123: { type: "audience_member" },
266
+ token_456: { type: "token", symbol: "CRTR" }
267
+ }
268
+ ```
269
+
270
+ #### Step 3: **Connections** (Relationship Created)
271
+ ```typescript
272
+ {
273
+ fromThingId: "fan_123",
274
+ toThingId: "token_456",
275
+ relationshipType: "holds_tokens",
276
+ metadata: { balance: 100 }
277
+ }
278
+ ```
279
+
280
+ #### Step 4: **Events** (Action Recorded)
281
+ ```typescript
282
+ {
283
+ type: "tokens_purchased",
284
+ actorId: "fan_123",
285
+ targetId: "token_456",
286
+ metadata: { amount: 100, usd: 10 },
287
+ timestamp: Date.now()
288
+ }
289
+ ```
290
+
291
+ #### Step 5: **Knowledge** (Context Added)
292
+ ```typescript
293
+ // Labels give downstream agents context
294
+ tags: ["payment_method:stripe", "status:completed", "audience:engaged"]
295
+ ```
296
+
297
+ **Result:** One intent now touches every dimension—organizational scope, authorization, entities, relationships, events, and context—ready for agents to reuse.
298
+
299
+ ---
300
+
301
+ ## 📐 Data Flow Through The Ontology
302
+
303
+ ```
304
+ 0. Groups (Isolation Layer)
305
+ ↓ Establishes scope for all operations (with optional nesting)
306
+
307
+ 1. People (Policy Layer)
308
+ ↓ Humans set outcomes, attach limits, approve execution
309
+
310
+ 2. Things (Entity Layer)
311
+ ↓ System resolves intent into typed entities
312
+
313
+ 3. Connections (Relationship Layer)
314
+ ↓ Defines how value moves—ownership, membership, authority
315
+
316
+ 4. Events (Audit Layer)
317
+ ↓ Records what happened, when, by whom
318
+
319
+ 5. Knowledge (Intelligence Layer)
320
+ ↓ Adds labels, embeddings, summaries for AI agents
321
+ ```
322
+
323
+ **Together:** Groups partition for scale (with infinite hierarchy), People authorize for governance, Things exist for substance, Connections relate for structure, Events record for memory, Knowledge learns for intelligence.
324
+
325
+ ---
326
+
327
+ ## 💡 Plain English DSL
328
+
329
+ ### Write Features in English. The System Builds Everything.
330
+
331
+ Describe what you want in plain English. The compiler checks every line against the ontology, generates TypeScript and tests, and deploys to the edge.
332
+
333
+ **Example: Chat with AI Clone**
334
+
335
+ ```
336
+ FEATURE: Let fans chat with my AI clone
337
+
338
+ WHEN a fan sends a message
339
+ CHECK they own tokens
340
+ GET conversation history
341
+ CALL OpenAI with my personality
342
+ RECORD the interaction
343
+ REWARD fan with 10 tokens
344
+ GIVE AI response to fan
345
+ ```
346
+
347
+ **What maps to ontology:**
348
+
349
+ - **Things Touched:** fan, ai_clone, message, token — all typed rows
350
+ - **Connections Updated:** fan `holds_tokens` token, fan `interacted_with` clone with metadata
351
+ - **Events Logged:** message_sent, tokens_earned, clone_interaction with timestamps
352
+ - **Knowledge Indexed:** Clone personality, embeddings, conversation history for retrieval
353
+
354
+ **5 Core Commands:**
355
+
356
+ | Command | Purpose | Example |
357
+ |---------|---------|---------|
358
+ | `CREATE` | Add typed Things into the graph | `CREATE ai clone WITH voice ID` |
359
+ | `CONNECT` | Define relationships with metadata | `CONNECT fan to token as holder` |
360
+ | `RECORD` | Append immutable Events | `RECORD tokens purchased BY fan` |
361
+ | `CALL` | Invoke services and persist outputs | `CALL Stripe to charge payment` |
362
+ | `CHECK` | Enforce guardrails before action | `CHECK user has tokens` |
363
+
364
+ See [language.md](./knowledge/language.md) for complete DSL specification.
365
+
366
+ ---
367
+
368
+ ## 🚀 What This Unlocks
369
+
370
+ ### Zero-Trust Authorization
371
+ Every action traces back through explicit connections to a person in an organization. Perfect auditability. No implicit permissions. Authorization is data, not code.
372
+
373
+ ### Identity-Aware Intelligence
374
+ Agents don't just retrieve facts—they understand organizational context, provenance, licensing, governance, and strategic constraints.
375
+
376
+ ### Event-Driven Compounding
377
+ Every action generates events that create knowledge that enriches future actions. The system gets smarter with every interaction.
378
+
379
+ ### Protocol-Agnostic Integration
380
+ Same ontology, different protocols—all via metadata. Query across Stripe, SUI, and any future protocol with unified patterns.
381
+
382
+ ### Cross-Organization Collaboration
383
+ Resources can be shared without transferring ownership. Perfect for knowledge marketplaces with trustless licensing.
384
+
385
+ ### Tokenization with SUI
386
+ SUI's object-centric model maps naturally to ONE's thing-centric ontology. Knowledge as tradeable, licensable assets.
387
+
388
+ ---
389
+
390
+ ## 📈 Built for Scale
391
+
392
+ ### Current Scale
393
+ - ✅ 1M+ things per organization
394
+ - ✅ 10M+ connections (optimized indexes)
395
+ - ✅ 100M+ events (time-partitioned)
396
+ - ✅ 1M+ knowledge chunks (vector search)
397
+
398
+ ### Performance
399
+ - 🚀 Graph caching (ownership chains)
400
+ - 🚀 Materialized views (common queries)
401
+ - 🚀 Event archival (cold storage)
402
+ - 🚀 Token budgeting (context aware)
403
+
404
+ ### Future Scale
405
+ - 🔮 Shard by organization (>10M things)
406
+ - 🔮 Streaming events (Kafka)
407
+ - 🔮 Distributed vectors (Weaviate)
408
+ - 🔮 Regional databases (CDC replication)
409
+
410
+ ---
411
+
412
+ ## 📚 Documentation Structure
413
+
414
+ This repository contains **41 documentation files** organized in **8 layers**:
415
+
416
+ ### 1. Strategy Layer (Vision & Revenue)
417
+ - [vision.md](./groups/vision.md) - Platform vision
418
+ - [revenue.md](./groups/revenue.md) - Revenue strategy
419
+ - [one.md](./groups/one.md) - Platform organization
420
+
421
+ ### 2. Ontology Layer (Core Model)
422
+ - [ontology.md](./knowledge/ontology.md) - Complete 6-dimension spec (Version 1.0.0)
423
+ - [groups.md](./groups/groups.md) - Groups dimension
424
+ - [things.md](./things/things.md) - Things dimension
425
+ - [connections.md](./connections/connections.md) - Connections dimension
426
+ - [events.md](./events/events.md) - Events dimension
427
+ - [knowledge.md](./knowledge/knowledge.md) - Knowledge dimension
428
+
429
+ ### 3. Protocols Layer (A2A, ACP, AP2, X402, AG-UI)
430
+ - [protocols.md](./connections/protocols.md) - Protocol overview
431
+ - [a2a.md](./connections/a2a.md), [acp.md](./connections/acp.md), [ap2.md](./connections/ap2.md), [x402.md](./connections/x402.md), [agui.md](./connections/agui.md)
432
+
433
+ ### 4. Services Layer (Effect.ts)
434
+ - [service-layer.md](./connections/service-layer.md) - Effect.ts patterns
435
+ - [service-providers.md](./things/service-providers.md) - External API providers
436
+
437
+ ### 5. Implementation Layer (Frontend, Patterns)
438
+ - [frontend.md](./knowledge/frontend.md) - Frontend architecture
439
+ - [architecture.md](./knowledge/architecture.md) - System architecture
440
+ - [patterns.md](./connections/patterns.md) - Code patterns
441
+
442
+ ### 6. Integration Layer (ElizaOS, CopilotKit, MCP, N8N)
443
+ - [elizaos.md](./connections/elizaos.md) - ElizaOS integration
444
+ - [copilotkit.md](./connections/copilotkit.md) - CopilotKit integration
445
+ - [mcp.md](./connections/mcp.md) - Model Context Protocol
446
+ - [n8n.md](./connections/n8n.md) - N8N workflow automation
447
+
448
+ ### 7. Examples Layer (Use Cases)
449
+ - [lemonade-stand.md](./things/examples/children/lemonade-stand.md) - Simple for children
450
+ - Enterprise CRM examples
451
+
452
+ ### 8. Plans Layer (Future & Technical Debt)
453
+ - Various planning documents
454
+
455
+ **Use targeted reading:** Don't read everything - follow the critical path for your specific feature type.
456
+
457
+ See [files.md](./knowledge/files.md) for complete file location guide.
458
+
459
+ ---
460
+
461
+ ## 🎯 Getting Started
462
+
463
+ ### For Developers
464
+
465
+ 1. **Understand the Ontology**
466
+ ```bash
467
+ # Read these in order:
468
+ - knowledge/ontology.md (complete 6-dimension spec)
469
+ - knowledge/rules.md (golden rules)
470
+ - connections/workflow.md (development flow)
471
+ - connections/patterns.md (code patterns)
472
+ ```
473
+
474
+ 2. **Map Your Feature**
475
+ - Which **groups** are involved? (organizational scope, with potential nesting)
476
+ - Which **people** are involved? (authorization)
477
+ - Which **things** are involved? (entities)
478
+ - Which **connections** are needed? (relationships)
479
+ - Which **events** should be logged? (actions)
480
+ - Which **knowledge** should be captured? (context)
481
+
482
+ 3. **Generate Code**
483
+ - Use Effect.ts for business logic
484
+ - Create Convex wrappers for database operations
485
+ - Build React components for UI
486
+ - Write tests to validate behavior
487
+
488
+ ### For AI Agents
489
+
490
+ **Before generating ANY code:**
491
+
492
+ 1. Read `knowledge/ontology.md` (understand the 6 dimensions)
493
+ 2. Read `knowledge/rules.md` (golden rules for AI agents)
494
+ 3. Read `connections/workflow.md` (6-phase development workflow)
495
+ 4. Map feature to: groups, people, things, connections, events, knowledge
496
+ 5. Design types and errors (tagged unions)
497
+ 6. Generate Effect.ts service (pure business logic)
498
+ 7. Create Convex wrapper (thin layer)
499
+ 8. Build React component (UI)
500
+ 9. Write tests (unit + integration)
501
+ 10. Update documentation
502
+
503
+ **Critical:** Never skip reading documentation. Never use `any` type except in entity `properties`. Always write tests.
504
+
505
+ ### For Content Creators
506
+
507
+ Use the Plain English DSL:
508
+
509
+ ```
510
+ FEATURE: Create my AI voice clone
511
+
512
+ INPUT:
513
+ - video links (at least 3)
514
+
515
+ OUTPUT:
516
+ - clone ID
517
+ - voice ID
518
+
519
+ FLOW:
520
+ CALL ElevenLabs to clone voice
521
+ CALL OpenAI to analyze personality
522
+ CREATE ai clone WITH voice and personality
523
+ CONNECT creator to clone as owner
524
+ RECORD clone created
525
+ GIVE clone ID and voice ID
526
+ ```
527
+
528
+ See [language.md](./knowledge/language.md) for complete DSL reference.
529
+
530
+ ---
531
+
532
+ ## 🏗️ Architecture Principles
533
+
534
+ ### 1. Clarity Scales
535
+ Everything maps to the 6 dimensions. No exceptions. If it doesn't map, rethink your approach.
536
+
537
+ ### 2. Groups Partition for Scale
538
+ From friend circles (2 people) to governments (billions) without schema changes. Infinite hierarchical nesting supported.
539
+
540
+ ### 3. People Authorize for Governance
541
+ Every action traces back to human intent. AI serves people, not the other way around.
542
+
543
+ ### 4. Things Exist for Substance
544
+ 66 thing types capture everything you need to model. Flexible `properties` field for type-specific data.
545
+
546
+ ### 5. Connections Relate for Structure
547
+ 25 connection types make the implicit explicit. Relationships are first-class with metadata.
548
+
549
+ ### 6. Events Record for Memory
550
+ 67 event types create immutable audit trail. Time-travel queries and analytics built-in.
551
+
552
+ ### 7. Knowledge Learns for Intelligence
553
+ Tags, chunks, embeddings, and relationships give AI agents context to act intelligently.
554
+
555
+ ---
556
+
557
+ ## 💎 Philosophy
558
+
559
+ **Beauty = Stability.** The ontology is not just a schema—it's a shared mental model between humans, AI agents, and code. Every feature should feel intentional because it maps cleanly to reality.
560
+
561
+ **Simple enough for children. Powerful enough for enterprises.** A lemonade stand and a Fortune 500 company use the same 6 dimensions.
562
+
563
+ **The ontology holds the contracts. The DSL speaks those contracts.** Together they give everyone the same, inspectable source of truth.
564
+
565
+ **Clarity scales.** Your DSL features, agent playbooks, and analytics dashboards stay in sync because they pull from the same ontology.
566
+
567
+ **Map your domain to these dimensions. Everything else is just data.**
568
+
569
+ ---
570
+
571
+ ## 📊 Statistics
572
+
573
+ ### Ontology Size
574
+ - **6 Dimensions** (groups, people, things, connections, events, knowledge)
575
+ - **6 Group Types** (friend_circle, business, community, dao, government, organization)
576
+ - **4 Roles** (platform_owner, org_owner, org_user, customer)
577
+ - **66 Thing Types** (across 13 categories)
578
+ - **25 Connection Types** (18 specific + 7 consolidated)
579
+ - **67 Event Types** (including inference & blockchain events)
580
+ - **12 Tag Categories** (industry, skill, topic, format, goal, audience, technology, status, capability, protocol, payment, network)
581
+
582
+ ### Coverage
583
+ - ✅ **100% Protocol Agnostic** - Stripe, SUI, Solana, any blockchain via metadata
584
+ - ✅ **100% Type Safe** - Every entity, connection, and event is typed
585
+ - ✅ **100% AI Understandable** - Plain English DSL compiles to ontology
586
+ - ✅ **100% Auditable** - Immutable event log for every action
587
+
588
+ ---
589
+
590
+ ## 🔗 Quick Links
591
+
592
+ ### Core Documentation
593
+ - [📖 Complete Ontology Specification](./knowledge/ontology.md) - Version 1.0.0
594
+ - [🎨 Plain English DSL](./knowledge/language.md) - Write features in English
595
+ - [🏗️ Architecture Guide](./knowledge/architecture.md) - System architecture
596
+ - [📝 Development Workflow](./connections/workflow.md) - 6-phase process
597
+ - [🎯 Code Patterns](./connections/patterns.md) - Proven patterns
598
+ - [⚡ Golden Rules](./knowledge/rules.md) - Rules for AI agents
599
+ - [📁 File Locations](./knowledge/files.md) - Where everything goes
600
+
601
+ ### Integrations
602
+ - [🤖 ElizaOS](./connections/elizaos.md) - Multi-agent communication
603
+ - [🎨 CopilotKit](./connections/copilotkit.md) - Generative UI
604
+ - [🔌 MCP](./connections/mcp.md) - Model Context Protocol
605
+ - [⚙️ N8N](./connections/n8n.md) - Workflow automation
606
+
607
+ ### Examples
608
+ - [🍋 Lemonade Stand](./things/examples/children/lemonade-stand.md) - Simple for children
609
+ - Enterprise CRM (coming soon)
610
+
611
+ ---
612
+
613
+ ## 🤝 Contributing
614
+
615
+ We welcome contributions! Before submitting:
616
+
617
+ 1. Read [knowledge/ontology.md](./knowledge/ontology.md) to understand the 6 dimensions
618
+ 2. Read [knowledge/rules.md](./knowledge/rules.md) for golden rules
619
+ 3. Map your contribution to the ontology
620
+ 4. Follow the patterns in [connections/patterns.md](./connections/patterns.md)
621
+ 5. Write tests
622
+ 6. Update documentation
623
+
624
+ ---
625
+
626
+ ## 📜 License
627
+
628
+ Copyright © 2025 ONE Platform
629
+ Licensed under the FREE License with Commercial Attribution
630
+
631
+ See [LICENSE.md](../LICENSE.md) for details.
632
+
633
+ ---
634
+
635
+ ## 🌐 Links
636
+
637
+ - **Website:** [one.ie](https://one.ie)
638
+ - **GitHub:** [github.com/one-ie/ontology](https://github.com/one-ie/ontology)
639
+ - **Documentation:** [docs.one.ie](https://docs.one.ie)
640
+ - **NPM:** `npx oneie@latest`
641
+
642
+ ---
643
+
644
+ <div align="center">
645
+
646
+ **ONE Ontology. Infinite Systems.**
647
+
648
+ *Built with clarity, simplicity, and infinite scale in mind.*
649
+
650
+ [Explore the Platform](https://one.ie) • [View on GitHub](https://github.com/one-ie/stack) • [Read the Docs](https://docs.one.ie)
651
+
652
+ </div>