oneie 3.6.17 → 3.6.20
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-ops.md +63 -2
- package/.claude/commands/commit.md +95 -0
- package/.claude/commands/npx.md +2 -2
- package/.claude/commands/one.md +7 -1
- package/.claude/commands/push.md +113 -21
- package/.claude/commands/release.md +2 -2
- package/.claude/hooks/release-cli.sh +195 -0
- package/CLAUDE.md +119 -0
- package/README.md +778 -497
- package/package.json +1 -1
- package/.claude/agents/NEWS-QUICKSTART.md +0 -321
- package/.claude/agents/NEWS-README.md +0 -353
- package/.claude/hooks/README-knowledge-hooks.md +0 -451
- package/.claude/hooks/README-root-cleanup.md +0 -200
- package/.claude/hooks/README.md +0 -284
- package/.claude/hooks/__pycache__/done.cpython-313.pyc +0 -0
- package/.claude/hooks/__pycache__/todo.cpython-313.pyc +0 -0
- package/.claude/hooks/check-filenames.py +0 -177
- package/.claude/hooks/clean-post.py +0 -468
- package/.claude/hooks/clean-pre.py +0 -393
- package/.claude/hooks/clean-root-markdown.sh +0 -73
- package/.claude/hooks/done.py +0 -236
- package/.claude/hooks/format-hook.sh +0 -163
- package/.claude/hooks/hook-logger.sh +0 -173
- package/.claude/hooks/knowledge-post.py +0 -355
- package/.claude/hooks/knowledge-pre.py +0 -245
- package/.claude/hooks/notification-hook.sh +0 -279
- package/.claude/hooks/root-cleanup.py +0 -217
- package/.claude/hooks/security-hook.sh +0 -397
- package/.claude/hooks/tag-all-docs.py +0 -464
- package/.claude/hooks/test-validate-ontology.sh +0 -170
- package/.claude/hooks/todo.py +0 -368
- package/.claude/hooks/track-changes.sh +0 -101
- package/.claude/hooks/validate-ontology-structure-summary.md +0 -243
- package/.claude/hooks/validate-ontology-structure.py +0 -518
- package/TESTING-ONBOARDING.md +0 -185
package/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# ONE
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> **Every intelligent system needs a coherent model of reality.**
|
|
4
|
+
|
|
4
5
|
██████╗ ███╗ ██╗███████╗
|
|
5
6
|
██╔═══██╗████╗ ██║██╔════╝
|
|
6
7
|
██║ ██║██╔██╗ ██║█████╗
|
|
@@ -9,41 +10,14 @@
|
|
|
9
10
|
╚═════╝ ╚═╝ ╚═══╝╚══════╝
|
|
10
11
|
|
|
11
12
|
Make Your Ideas Real
|
|
12
|
-
https://one.ie
|
|
13
|
-
type
|
|
14
|
-
npx oneie
|
|
15
|
-
/claude
|
|
16
|
-
/one
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
20
|
-
`/now` `/next` `/todo` `/done` `/build` `/design` `/deploy` `/see`
|
|
21
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
22
|
-
|
|
23
|
-
**Build apps, websites and AI agents in English and deploy at the edge. Free!**
|
|
24
|
-
|
|
25
|
-
## 🌟 What Makes ONE Different
|
|
26
|
-
|
|
27
|
-
**ONE isn't a framework. It's a universal language for software.**
|
|
28
|
-
|
|
29
|
-
Every single thing in ONE exists within one of these **6 dimensions:**
|
|
30
13
|
|
|
31
|
-
|
|
32
|
-
1. GROUPS → Who owns what (friend circles → governments)
|
|
33
|
-
2. PEOPLE → Who can do what (authorization)
|
|
34
|
-
3. THINGS → Every entity (users, content, tokens, agents)
|
|
35
|
-
4. CONNECTIONS → Every relationship (owns, follows, enrolled_in)
|
|
36
|
-
5. EVENTS → Every action (created, purchased, completed)
|
|
37
|
-
6. KNOWLEDGE → AI understanding (RAG, search, embeddings)
|
|
38
|
-
```
|
|
14
|
+
https://one.ie • npx oneie
|
|
39
15
|
|
|
40
|
-
**
|
|
41
|
-
- **Build once, scale infinitely** - Same structure works for 2 people or 2 billion
|
|
42
|
-
- **AI gets smarter over time** - 85% → 98% accuracy (not 95% → 30% like traditional)
|
|
43
|
-
- **Clone any feature in 20 minutes** - Shopify, Moodle, any system maps to the 6 dimensions
|
|
44
|
-
- **Never breaks** - Reality doesn't change, only technology does
|
|
16
|
+
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.**
|
|
45
17
|
|
|
46
|
-
|
|
18
|
+
[](./LICENSE.md)
|
|
19
|
+
[](./one/knowledge/ontology.md)
|
|
20
|
+
[](#the-6-dimensions)
|
|
47
21
|
|
|
48
22
|
---
|
|
49
23
|
|
|
@@ -51,11 +25,13 @@ Every single thing in ONE exists within one of these **6 dimensions:**
|
|
|
51
25
|
|
|
52
26
|
```bash
|
|
53
27
|
# Option 1: Bootstrap new project
|
|
54
|
-
npx oneie
|
|
28
|
+
npx oneie # Install
|
|
29
|
+
claude # Start Claude Code
|
|
30
|
+
/one
|
|
55
31
|
|
|
56
32
|
# Option 2: Clone and develop
|
|
57
33
|
git clone https://github.com/one-ie/one
|
|
58
|
-
cd
|
|
34
|
+
cd web
|
|
59
35
|
bun install
|
|
60
36
|
bun dev
|
|
61
37
|
```
|
|
@@ -80,582 +56,887 @@ cd web/
|
|
|
80
56
|
bun test # All tests
|
|
81
57
|
```
|
|
82
58
|
|
|
83
|
-
|
|
59
|
+
# ONE
|
|
84
60
|
|
|
85
|
-
|
|
61
|
+
Make your ideas real
|
|
86
62
|
|
|
87
|
-
|
|
63
|
+
**Model reality in six core dimensions and map everything to them.**
|
|
88
64
|
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
|
|
65
|
+
```
|
|
66
|
+
┌─────────────────────────────────────────────────────────────┐
|
|
67
|
+
│ Groups → People → Things → Connections → Events → Knowledge │
|
|
68
|
+
│ │
|
|
69
|
+
│ Everything flows through these six dimensions. │
|
|
70
|
+
│ Everything scales without schema changes. │
|
|
71
|
+
│ Everything is queryable, composable, and intelligent. │
|
|
72
|
+
└─────────────────────────────────────────────────────────────┘
|
|
92
73
|
```
|
|
93
74
|
|
|
94
|
-
|
|
75
|
+
**Every single thing in ONE exists within one of these 6 dimensions:**
|
|
95
76
|
|
|
96
77
|
```
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
│
|
|
100
|
-
│
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
78
|
+
┌──────────────────────────────────────────────────────────────┐
|
|
79
|
+
│ 1. GROUPS │
|
|
80
|
+
│ Multi-tenant isolation with hierarchical nesting - who owns │
|
|
81
|
+
│ what at group level (friend circles → DAOs → governments) │
|
|
82
|
+
└──────────────────────────────────────────────────────────────┘
|
|
83
|
+
↓
|
|
84
|
+
┌──────────────────────────────────────────────────────────────┐
|
|
85
|
+
│ 2. PEOPLE │
|
|
86
|
+
│ Authorization & governance - platform owner, group owners │
|
|
87
|
+
└──────────────────────────────────────────────────────────────┘
|
|
88
|
+
↓
|
|
89
|
+
┌──────────────────────────────────────────────────────────────┐
|
|
90
|
+
│ 3. THINGS │
|
|
91
|
+
│ Every "thing" - users, agents, content, tokens, courses │
|
|
92
|
+
└──────────────────────────────────────────────────────────────┘
|
|
93
|
+
↓
|
|
94
|
+
┌──────────────────────────────────────────────────────────────┐
|
|
95
|
+
│ 4. CONNECTIONS │
|
|
96
|
+
│ Every relationship - owns, follows, taught_by, powers │
|
|
97
|
+
└──────────────────────────────────────────────────────────────┘
|
|
98
|
+
↓
|
|
99
|
+
┌──────────────────────────────────────────────────────────────┐
|
|
100
|
+
│ 5. EVENTS │
|
|
101
|
+
│ Every action - purchased, created, viewed, completed │
|
|
102
|
+
└──────────────────────────────────────────────────────────────┘
|
|
103
|
+
↓
|
|
104
|
+
┌──────────────────────────────────────────────────────────────┐
|
|
105
|
+
│ 6. KNOWLEDGE │
|
|
106
|
+
│ Labels + chunks + vectors powering RAG & search │
|
|
107
|
+
└──────────────────────────────────────────────────────────────┘
|
|
108
108
|
```
|
|
109
109
|
|
|
110
|
-
|
|
110
|
+
**The Universal Interface (How Technology Implements the Ontology):**
|
|
111
111
|
|
|
112
|
-
|
|
112
|
+
```
|
|
113
|
+
┌─────────────────────────────────────────────────────────────────────┐
|
|
114
|
+
│ LAYER 1: UNIVERSAL INTERFACE │
|
|
115
|
+
│ (The 6-Dimension DSL) │
|
|
116
|
+
├─────────────────────────────────────────────────────────────────────┤
|
|
117
|
+
│ groups → Hierarchical containers (friend circles → governments)│
|
|
118
|
+
│ people → Authorization & governance (who can do what) │
|
|
119
|
+
│ things → All entities (66 types: user, product, course...) │
|
|
120
|
+
│ connections → All relationships (25 types: owns, purchased...) │
|
|
121
|
+
│ events → All actions (67 types: created, updated, logged...) │
|
|
122
|
+
│ knowledge → AI understanding (embeddings, search, RAG) │
|
|
123
|
+
│ │
|
|
124
|
+
│ This layer NEVER changes. It models reality. │
|
|
125
|
+
└──────────────────┬──────────────────────────────────────────────────┘
|
|
126
|
+
│
|
|
127
|
+
↓ Technology changes, ontology stays the same
|
|
128
|
+
|
|
129
|
+
### 1. 👥 Groups
|
|
130
|
+
|
|
131
|
+
**Hierarchical containers that organize people and things**
|
|
132
|
+
|
|
133
|
+
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.
|
|
134
|
+
|
|
135
|
+
**6 Group Types:**
|
|
136
|
+
|
|
137
|
+
- `friend_circle` - Small, intimate groups
|
|
138
|
+
- `business` - Commercial organizations
|
|
139
|
+
- `community` - Interest-based collectives
|
|
140
|
+
- `dao` - Token-governed groups
|
|
141
|
+
- `government` - Public institutions
|
|
142
|
+
- `organization` - Generic groups
|
|
143
|
+
|
|
144
|
+
**URL-Based Creation:**
|
|
113
145
|
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
one.ie/group/cooldao → creates "cooldao" group
|
|
149
|
+
one.ie/group/cooldao/treasury → creates nested "treasury" group
|
|
150
|
+
one.ie/group/emmas-birthday → creates "emmas-birthday" group
|
|
151
|
+
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
**Hierarchical Nesting Example:**
|
|
117
155
|
|
|
118
|
-
# Add group-specific practices
|
|
119
|
-
echo "# Engineering Practices" > /acme/groups/engineering/practices.md
|
|
120
156
|
```
|
|
121
157
|
|
|
122
|
-
|
|
158
|
+
groups/acme-corp (business)
|
|
159
|
+
├─ groups/engineering (organization)
|
|
160
|
+
│ ├─ groups/backend-team (organization)
|
|
161
|
+
│ └─ groups/frontend-team (organization)
|
|
162
|
+
├─ groups/marketing (organization)
|
|
163
|
+
└─ groups/sales (organization)
|
|
123
164
|
|
|
124
|
-
|
|
165
|
+
groups/emmas-friends (friend_circle)
|
|
166
|
+
├─ groups/birthday-party (friend_circle)
|
|
167
|
+
└─ groups/game-night (friend_circle)
|
|
168
|
+
|
|
169
|
+
groups/cool-dao (dao)
|
|
170
|
+
├─ groups/treasury (dao)
|
|
171
|
+
└─ groups/governance (dao)
|
|
172
|
+
|
|
173
|
+
````
|
|
174
|
+
|
|
175
|
+
---
|
|
125
176
|
|
|
126
|
-
|
|
127
|
-
2. Parent groups (walk up hierarchy)
|
|
128
|
-
3. Installation root (e.g., `/acme/things/vision.md`)
|
|
129
|
-
4. Global fallback (e.g., `/one/things/vision.md`)
|
|
177
|
+
### 2. 🙋 People
|
|
130
178
|
|
|
131
|
-
|
|
179
|
+
**Authorization & governance - WHO can do what**
|
|
132
180
|
|
|
133
|
-
|
|
134
|
-
- 6-Dimension Ontology: `/one/knowledge/ontology.md`
|
|
181
|
+
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.
|
|
135
182
|
|
|
136
|
-
|
|
183
|
+
**4 Roles:**
|
|
137
184
|
|
|
138
|
-
|
|
185
|
+
- `platform_owner` - Platform-level control
|
|
186
|
+
- `org_owner` - Organization-level control
|
|
187
|
+
- `org_user` - Organization member
|
|
188
|
+
- `customer` - End user
|
|
139
189
|
|
|
140
|
-
|
|
190
|
+
**Properties:**
|
|
141
191
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
6. **Knowledge** – What it means (embeddings, vectors, RAG)
|
|
192
|
+
- Identity (name, email, wallet)
|
|
193
|
+
- Authentication credentials
|
|
194
|
+
- Role within organization
|
|
195
|
+
- Permissions and authorization
|
|
196
|
+
- Preferences and settings
|
|
148
197
|
|
|
149
|
-
**
|
|
198
|
+
**Why it matters:**
|
|
199
|
+
|
|
200
|
+
- ✓ Human authorization required
|
|
201
|
+
- ✓ Clear governance
|
|
202
|
+
- ✓ Audit trails
|
|
203
|
+
- ✓ Intent and accountability
|
|
204
|
+
- ✓ AI serves people, not the other way around
|
|
150
205
|
|
|
151
206
|
---
|
|
152
207
|
|
|
153
|
-
|
|
208
|
+
### 3. 📦 Things
|
|
209
|
+
|
|
210
|
+
**Entities - WHAT exists in your system**
|
|
211
|
+
|
|
212
|
+
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.
|
|
213
|
+
|
|
214
|
+
**66 Thing Types** organized in categories:
|
|
215
|
+
|
|
216
|
+
**Core:**
|
|
217
|
+
|
|
218
|
+
- `creator`, `audience_member`, `workspace`, `organization_settings`
|
|
219
|
+
|
|
220
|
+
**Agents:**
|
|
154
221
|
|
|
155
|
-
|
|
222
|
+
- `intelligence_agent`, `business_agent`, `personal_assistant`, `data_analyst`, `writer`, `researcher`, `moderator`, `customer_support`, `sales_rep`, `code_reviewer`, `qa_tester`, `task_automator`
|
|
156
223
|
|
|
157
|
-
|
|
158
|
-
- 50+ tables, 200+ columns, endless complexity
|
|
159
|
-
- Schema changes break everything
|
|
160
|
-
- AI agents can't understand your database
|
|
224
|
+
**Content:**
|
|
161
225
|
|
|
162
|
-
|
|
226
|
+
- `video_content`, `text_content`, `audio_content`, `image_content`, `course`, `curriculum`, `module`, `lesson`, `quiz`, `certificate`, `podcast`, `newsletter`, `live_stream`, `blog_post`
|
|
163
227
|
|
|
164
|
-
|
|
228
|
+
**Products:**
|
|
165
229
|
|
|
166
|
-
|
|
230
|
+
- `token`, `nft`, `digital_product`, `offer`, `subscription_tier`, `bundle`, `access_pass`
|
|
167
231
|
|
|
168
|
-
|
|
169
|
-
- Enterprise SaaS? ✅ Works
|
|
170
|
-
- Social network? ✅ Works
|
|
171
|
-
- E-commerce? ✅ Works
|
|
172
|
-
- AI agent platform? ✅ Works
|
|
232
|
+
**Community:**
|
|
173
233
|
|
|
174
|
-
|
|
234
|
+
- `community`, `forum`, `discussion`, `announcement`, `poll`
|
|
235
|
+
|
|
236
|
+
**Knowledge:**
|
|
237
|
+
|
|
238
|
+
- `knowledge_base`, `knowledge_chunk`, `topic`, `recommendation`, `insight`, `summary`
|
|
239
|
+
|
|
240
|
+
**Platform:**
|
|
241
|
+
|
|
242
|
+
- `ai_clone`, `voice_clone`, `personality_profile`, `mandate`, `delegation`, `workflow`, `automation`, `integration`, `webhook`
|
|
243
|
+
|
|
244
|
+
**Business:**
|
|
245
|
+
|
|
246
|
+
- `lead`, `deal`, `invoice`, `payment_method`, `payout_config`
|
|
247
|
+
|
|
248
|
+
---
|
|
249
|
+
|
|
250
|
+
### 4. 🔗 Connections
|
|
251
|
+
|
|
252
|
+
**Relationships - HOW things relate to each other**
|
|
253
|
+
|
|
254
|
+
Connections are first-class relationships with their own properties. They express ownership, membership, governance, authorization, dependencies, transactions, and more. Connections make the implicit explicit.
|
|
255
|
+
|
|
256
|
+
**25 Connection Types:**
|
|
257
|
+
|
|
258
|
+
**Ownership & Authorization:**
|
|
259
|
+
|
|
260
|
+
- `owns` - Ownership relationship
|
|
261
|
+
- `can_read` - Read access
|
|
262
|
+
- `can_write` - Write access
|
|
263
|
+
- `can_execute` - Execution permission
|
|
264
|
+
|
|
265
|
+
**Governance:**
|
|
266
|
+
|
|
267
|
+
- `governed_by` - Governed by mandate
|
|
268
|
+
- `delegated_to` - Delegation chain
|
|
269
|
+
- `member_of` - Membership
|
|
270
|
+
|
|
271
|
+
**Content & Knowledge:**
|
|
272
|
+
|
|
273
|
+
- `authored` - Created content
|
|
274
|
+
- `taught_by` - Teaching relationship
|
|
275
|
+
- `enrolled_in` - Course enrollment
|
|
276
|
+
- `contains` - Hierarchical containment
|
|
277
|
+
|
|
278
|
+
**Social:**
|
|
279
|
+
|
|
280
|
+
- `following` - Social following
|
|
281
|
+
- `subscribed_to` - Subscription
|
|
282
|
+
- `holds_tokens` - Token ownership
|
|
283
|
+
|
|
284
|
+
**Consolidated Types (with metadata):**
|
|
285
|
+
|
|
286
|
+
- `transacted` - Financial transactions (metadata.protocol: stripe | sui | blockchain)
|
|
287
|
+
- `communicated` - Messages/interactions (metadata.channel: email | chat | voice)
|
|
288
|
+
- `delegated` - Delegated authority (metadata.permissions: [...])
|
|
289
|
+
- `governed` - Governance (metadata.constraints: [...])
|
|
290
|
+
- `powered` - Dependency (metadata.config: {...})
|
|
291
|
+
- `related` - Generic relationship (metadata.relationshipType: custom)
|
|
292
|
+
- `licensed_to` - Licensing (metadata.terms: {...})
|
|
175
293
|
|
|
176
294
|
---
|
|
177
295
|
|
|
178
|
-
|
|
296
|
+
### 5. ⚡ Events
|
|
297
|
+
|
|
298
|
+
**Actions - WHAT happened, when, and why**
|
|
299
|
+
|
|
300
|
+
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.
|
|
301
|
+
|
|
302
|
+
**67 Event Types** organized in categories:
|
|
303
|
+
|
|
304
|
+
**Thing Lifecycle:**
|
|
305
|
+
|
|
306
|
+
- `thing_created`, `thing_updated`, `thing_deleted`, `thing_published`, `thing_archived`
|
|
307
|
+
|
|
308
|
+
**User Actions:**
|
|
309
|
+
|
|
310
|
+
- `user_signup`, `user_login`, `user_logout`, `profile_updated`, `preferences_changed`
|
|
311
|
+
|
|
312
|
+
**AI/Agent:**
|
|
313
|
+
|
|
314
|
+
- `agent_created`, `agent_executed`, `agent_completed`, `agent_failed`, `clone_created`, `clone_interaction`, `voice_cloned`, `personality_analyzed`
|
|
315
|
+
|
|
316
|
+
**Cycle Events:**
|
|
317
|
+
|
|
318
|
+
- `cycle_request`, `cycle_completed`, `cycle_failed`, `cycle_quota_exceeded`, `cycle_revenue_collected`, `org_revenue_generated`, `revenue_share_distributed`
|
|
319
|
+
|
|
320
|
+
**Token/NFT:**
|
|
321
|
+
|
|
322
|
+
- `token_created`, `tokens_purchased`, `tokens_transferred`, `tokens_burned`, `nft_minted`, `nft_transferred`
|
|
323
|
+
|
|
324
|
+
**Blockchain:**
|
|
325
|
+
|
|
326
|
+
- `tokens_bridged`, `contract_deployed`, `treasury_withdrawal`
|
|
327
|
+
|
|
328
|
+
**Content:**
|
|
329
|
+
|
|
330
|
+
- `content_created`, `content_published`, `content_viewed`, `content_liked`, `content_shared`, `course_enrolled`, `lesson_completed`, `quiz_submitted`, `certificate_earned`
|
|
331
|
+
|
|
332
|
+
**Knowledge:**
|
|
333
|
+
|
|
334
|
+
- `knowledge_indexed`, `embedding_generated`, `search_performed`, `recommendation_generated`
|
|
335
|
+
|
|
336
|
+
**Consolidated Events (with metadata):**
|
|
337
|
+
|
|
338
|
+
- `communicated` (metadata.protocol: email | sms | chat)
|
|
339
|
+
- `transacted` (metadata.protocol: stripe | sui | blockchain)
|
|
340
|
+
- `content_engaged` (metadata.engagement_type: view | like | share)
|
|
341
|
+
- Others...
|
|
342
|
+
|
|
343
|
+
---
|
|
344
|
+
|
|
345
|
+
### 6. 🧠 Knowledge
|
|
346
|
+
|
|
347
|
+
**Intelligence - WHAT it all means**
|
|
348
|
+
|
|
349
|
+
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.
|
|
350
|
+
|
|
351
|
+
**12 Tag Categories:**
|
|
352
|
+
|
|
353
|
+
1. **skill** - typescript, react, python, design, video-editing
|
|
354
|
+
2. **industry** - fitness, education, finance, healthcare
|
|
355
|
+
3. **topic** - ai, blockchain, marketing, sales, analytics
|
|
356
|
+
4. **format** - video, text, audio, code, interactive
|
|
357
|
+
5. **goal** - learn, earn, build, grow, teach
|
|
358
|
+
6. **audience** - beginners, professionals, students, developers
|
|
359
|
+
7. **technology** - astro, react-19, convex, sui, solana
|
|
360
|
+
8. **status** - draft, published, deprecated, featured
|
|
361
|
+
9. **capability** - image-gen, analysis, trading, refactoring
|
|
362
|
+
10. **protocol** - a2a, acp, ap2, x402, ag-ui
|
|
363
|
+
11. **payment** - stripe, crypto, x402, ap2
|
|
364
|
+
12. **network** - sui, solana, base, ethereum
|
|
365
|
+
|
|
366
|
+
**Features:**
|
|
367
|
+
|
|
368
|
+
- Labels for categorization
|
|
369
|
+
- Chunks for semantic search
|
|
370
|
+
- Embeddings for vector similarity
|
|
371
|
+
- Relationships for knowledge graphs
|
|
372
|
+
- Licensing for IP protection
|
|
373
|
+
- Provenance for trust
|
|
374
|
+
- Tokenization for markets
|
|
375
|
+
|
|
376
|
+
---
|
|
377
|
+
|
|
378
|
+
## 🎨 How The Ontology Works
|
|
379
|
+
|
|
380
|
+
### Complete Example: Fan Buys Creator Tokens
|
|
381
|
+
|
|
382
|
+
Let's see how all six dimensions work together in a real feature:
|
|
383
|
+
|
|
384
|
+
#### Step 0: **Groups** (Scope)
|
|
385
|
+
|
|
386
|
+
```typescript
|
|
387
|
+
groupId: "acme-corp";
|
|
388
|
+
// Transaction happens within this group boundary
|
|
389
|
+
// All entities belong to this group (can be nested)
|
|
390
|
+
````
|
|
391
|
+
|
|
392
|
+
#### Step 1: **People** (Authorization)
|
|
393
|
+
|
|
394
|
+
```typescript
|
|
395
|
+
actorId: "fan_123";
|
|
396
|
+
// Fan authorizes: "Buy 100 creator tokens for $10"
|
|
397
|
+
```
|
|
398
|
+
|
|
399
|
+
#### Step 2: **Things** (Entities Involved)
|
|
179
400
|
|
|
180
401
|
```typescript
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
properties: {
|
|
203
|
-
price: 1.0,
|
|
204
|
-
inventory: 20,
|
|
205
|
-
},
|
|
206
|
-
});
|
|
207
|
-
|
|
208
|
-
// 4. Customer buys it (a connection)
|
|
209
|
-
await createConnection({
|
|
210
|
-
from: customer._id,
|
|
211
|
-
to: lemonade._id,
|
|
212
|
-
type: "purchased",
|
|
213
|
-
groupId: myStand._id,
|
|
214
|
-
});
|
|
215
|
-
|
|
216
|
-
// 5. Log the sale (an event)
|
|
217
|
-
await createEvent({
|
|
402
|
+
{
|
|
403
|
+
fan_123: { type: "audience_member" },
|
|
404
|
+
token_456: { type: "token", symbol: "CRTR" }
|
|
405
|
+
}
|
|
406
|
+
```
|
|
407
|
+
|
|
408
|
+
#### Step 3: **Connections** (Relationship Created)
|
|
409
|
+
|
|
410
|
+
```typescript
|
|
411
|
+
{
|
|
412
|
+
fromThingId: "fan_123",
|
|
413
|
+
toThingId: "token_456",
|
|
414
|
+
relationshipType: "holds_tokens",
|
|
415
|
+
metadata: { balance: 100 }
|
|
416
|
+
}
|
|
417
|
+
```
|
|
418
|
+
|
|
419
|
+
#### Step 4: **Events** (Action Recorded)
|
|
420
|
+
|
|
421
|
+
```typescript
|
|
422
|
+
{
|
|
218
423
|
type: "tokens_purchased",
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
}
|
|
424
|
+
actorId: "fan_123",
|
|
425
|
+
targetId: "token_456",
|
|
426
|
+
metadata: { amount: 100, usd: 10 },
|
|
427
|
+
timestamp: Date.now()
|
|
428
|
+
}
|
|
429
|
+
```
|
|
430
|
+
|
|
431
|
+
#### Step 5: **Knowledge** (Context Added)
|
|
224
432
|
|
|
225
|
-
|
|
226
|
-
//
|
|
433
|
+
```typescript
|
|
434
|
+
// Labels give downstream agents context
|
|
435
|
+
tags: ["payment_method:stripe", "status:completed", "audience:engaged"];
|
|
227
436
|
```
|
|
228
437
|
|
|
229
|
-
**
|
|
438
|
+
**Result:** One intent now touches every dimension—organizational scope, authorization, entities, relationships, events, and context—ready for agents to reuse.
|
|
230
439
|
|
|
231
440
|
---
|
|
232
441
|
|
|
233
|
-
##
|
|
442
|
+
## 📐 Data Flow Through The Ontology
|
|
234
443
|
|
|
235
|
-
```
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
parentGroupId: acmeCorp._id,
|
|
257
|
-
});
|
|
258
|
-
|
|
259
|
-
const backend = await createGroup({
|
|
260
|
-
name: "Backend Team",
|
|
261
|
-
slug: "backend",
|
|
262
|
-
type: "team",
|
|
263
|
-
parentGroupId: engineering._id,
|
|
264
|
-
});
|
|
265
|
-
|
|
266
|
-
// Role-based access control
|
|
267
|
-
const ceo = await createPerson({
|
|
268
|
-
name: "Jane CEO",
|
|
269
|
-
role: "org_owner",
|
|
270
|
-
groupId: acmeCorp._id,
|
|
271
|
-
});
|
|
272
|
-
|
|
273
|
-
// AI sales agent (a thing)
|
|
274
|
-
const salesAgent = await createThing({
|
|
275
|
-
type: "sales_agent",
|
|
276
|
-
name: "Acme Sales AI",
|
|
277
|
-
groupId: acmeCorp._id,
|
|
278
|
-
properties: {
|
|
279
|
-
systemPrompt: "You are a friendly sales assistant...",
|
|
280
|
-
temperature: 0.7,
|
|
281
|
-
},
|
|
282
|
-
});
|
|
283
|
-
|
|
284
|
-
// Lead management (things + connections)
|
|
285
|
-
const lead = await createThing({
|
|
286
|
-
type: "lead",
|
|
287
|
-
name: "John Smith - Enterprise Lead",
|
|
288
|
-
groupId: acmeCorp._id,
|
|
289
|
-
properties: {
|
|
290
|
-
email: "john@enterprise.com",
|
|
291
|
-
budget: 100000,
|
|
292
|
-
status: "qualified",
|
|
293
|
-
},
|
|
294
|
-
});
|
|
295
|
-
|
|
296
|
-
// AI agent follows up (connection + event)
|
|
297
|
-
await createConnection({
|
|
298
|
-
from: salesAgent._id,
|
|
299
|
-
to: lead._id,
|
|
300
|
-
type: "communicated",
|
|
301
|
-
groupId: acmeCorp._id,
|
|
302
|
-
metadata: {
|
|
303
|
-
protocol: "email",
|
|
304
|
-
subject: "Following up on our conversation",
|
|
305
|
-
},
|
|
306
|
-
});
|
|
307
|
-
|
|
308
|
-
await createEvent({
|
|
309
|
-
type: "communication_event",
|
|
310
|
-
actor: salesAgent._id,
|
|
311
|
-
target: lead._id,
|
|
312
|
-
groupId: acmeCorp._id,
|
|
313
|
-
metadata: {
|
|
314
|
-
protocol: "email",
|
|
315
|
-
sentiment: "positive",
|
|
316
|
-
},
|
|
317
|
-
});
|
|
318
|
-
|
|
319
|
-
// AI learns from all sales interactions (knowledge)
|
|
320
|
-
const context = await queryKnowledge({
|
|
321
|
-
groupId: acmeCorp._id,
|
|
322
|
-
query: "enterprise software objections pricing",
|
|
323
|
-
k: 10,
|
|
324
|
-
});
|
|
325
|
-
|
|
326
|
-
const aiResponse = await generateResponse({
|
|
327
|
-
context,
|
|
328
|
-
prompt: "Address pricing concerns",
|
|
329
|
-
});
|
|
330
|
-
```
|
|
331
|
-
|
|
332
|
-
**Perfect data isolation. Clear governance. Hierarchical structure. Infinite scale.**
|
|
444
|
+
```
|
|
445
|
+
0. Groups (Isolation Layer)
|
|
446
|
+
↓ Establishes scope for all operations (with optional nesting)
|
|
447
|
+
|
|
448
|
+
1. People (Policy Layer)
|
|
449
|
+
↓ Humans set outcomes, attach limits, approve execution
|
|
450
|
+
|
|
451
|
+
2. Things (Entity Layer)
|
|
452
|
+
↓ System resolves intent into typed entities
|
|
453
|
+
|
|
454
|
+
3. Connections (Relationship Layer)
|
|
455
|
+
↓ Defines how value moves—ownership, membership, authority
|
|
456
|
+
|
|
457
|
+
4. Events (Audit Layer)
|
|
458
|
+
↓ Records what happened, when, by whom
|
|
459
|
+
|
|
460
|
+
5. Knowledge (Intelligence Layer)
|
|
461
|
+
↓ Adds labels, embeddings, summaries for AI agents
|
|
462
|
+
```
|
|
463
|
+
|
|
464
|
+
**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.
|
|
333
465
|
|
|
334
466
|
---
|
|
335
467
|
|
|
336
|
-
##
|
|
468
|
+
## 🚀 English → Code → Reality
|
|
469
|
+
|
|
470
|
+
**In Minutes, Not Months**
|
|
471
|
+
|
|
472
|
+
Describe your feature in plain English. The system validates it against the ontology, compiles to TypeScript, generates tests, and deploys to the edge.
|
|
473
|
+
|
|
474
|
+
### The Four-Step Workflow
|
|
475
|
+
|
|
476
|
+
#### 1️⃣ Write in English
|
|
477
|
+
|
|
478
|
+
Describe what you want: `"CREATE ai clone"`, `"CALL OpenAI"`, `"RECORD purchase"`. Use 15 simple commands anyone can understand.
|
|
479
|
+
|
|
480
|
+
```
|
|
481
|
+
Creator: "CREATE my AI clone"
|
|
482
|
+
Seller: "RECORD purchase event"
|
|
483
|
+
Engineer: "CONNECT to Stripe API"
|
|
484
|
+
```
|
|
485
|
+
|
|
486
|
+
#### 2️⃣ System Validates
|
|
487
|
+
|
|
488
|
+
Checks against the ontology: Do these entity types exist? Are connections valid? Are services available? Instant feedback.
|
|
489
|
+
|
|
490
|
+
```
|
|
491
|
+
✓ ai_clone entity type exists
|
|
492
|
+
✓ tokens_purchased event valid
|
|
493
|
+
✓ Stripe service available
|
|
494
|
+
```
|
|
495
|
+
|
|
496
|
+
#### 3️⃣ Code Generated
|
|
497
|
+
|
|
498
|
+
Compiles to production TypeScript with Effect.ts, Convex functions, React components, full test suite. Type-safe, tested, ready.
|
|
499
|
+
|
|
500
|
+
```
|
|
501
|
+
Backend Frontend Tests
|
|
502
|
+
├─ Mutations ├─ Components └─ 50+ cases
|
|
503
|
+
├─ Queries └─ Pages
|
|
504
|
+
└─ Services
|
|
505
|
+
```
|
|
506
|
+
|
|
507
|
+
#### 4️⃣ Deploy to Edge
|
|
508
|
+
|
|
509
|
+
Push to Cloudflare's global network. Unlimited requests, instant updates, zero configuration. Live in 60 seconds.
|
|
510
|
+
|
|
511
|
+
```
|
|
512
|
+
330+ locations worldwide
|
|
513
|
+
< 330ms average response time
|
|
514
|
+
Free tier unlimited
|
|
515
|
+
```
|
|
516
|
+
|
|
517
|
+
### Complete Example: Portfolio Website
|
|
518
|
+
|
|
519
|
+
**You Write:**
|
|
520
|
+
|
|
521
|
+
```
|
|
522
|
+
WEBSITE: Portfolio
|
|
523
|
+
|
|
524
|
+
CREATE pages:
|
|
525
|
+
- / → Hero + featured work
|
|
526
|
+
- /work → Project grid
|
|
527
|
+
- /about → Bio + skills
|
|
528
|
+
- /contact → Form
|
|
529
|
+
|
|
530
|
+
ADD blog with Astro collections
|
|
531
|
+
STYLE: Minimal, dark theme
|
|
532
|
+
DEPLOY: Cloudflare Pages
|
|
533
|
+
```
|
|
534
|
+
|
|
535
|
+
**System Generates:**
|
|
337
536
|
|
|
338
537
|
```typescript
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
//
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
},
|
|
377
|
-
});
|
|
378
|
-
|
|
379
|
-
// Track RSVPs (connections)
|
|
380
|
-
await createConnection({
|
|
381
|
-
from: alice._id,
|
|
382
|
-
to: birthdayParty._id,
|
|
383
|
-
type: "member_of",
|
|
384
|
-
groupId: birthdayParty._id,
|
|
385
|
-
metadata: {
|
|
386
|
-
rsvp: "yes",
|
|
387
|
-
guestsCount: 1,
|
|
388
|
-
},
|
|
389
|
-
});
|
|
390
|
-
```
|
|
391
|
-
|
|
392
|
-
**Nested groups enable rich social structures. Friends → Events → Photos → Memories.**
|
|
538
|
+
src/pages/
|
|
539
|
+
├─ index.astro // Hero + featured work
|
|
540
|
+
├─ work.astro // Project grid
|
|
541
|
+
├─ about.astro // Bio + skills
|
|
542
|
+
└─ contact.astro // Contact form
|
|
543
|
+
|
|
544
|
+
src/content/
|
|
545
|
+
├─ blog/config.ts // Astro collections
|
|
546
|
+
└─ projects/config.ts // Project metadata
|
|
547
|
+
|
|
548
|
+
styles/
|
|
549
|
+
├─ global.css // Tailwind v4 dark theme
|
|
550
|
+
└─ responsive.css // Mobile-first design
|
|
551
|
+
|
|
552
|
+
tests/
|
|
553
|
+
└─ pages.test.ts // All pages tested
|
|
554
|
+
```
|
|
555
|
+
|
|
556
|
+
**You Get:**
|
|
557
|
+
|
|
558
|
+
- 4 Astro pages (SSR)
|
|
559
|
+
- React components
|
|
560
|
+
- Content collections
|
|
561
|
+
- Responsive design
|
|
562
|
+
- Edge deployment
|
|
563
|
+
- 100/100 Lighthouse score
|
|
564
|
+
|
|
565
|
+
### Why This Works
|
|
566
|
+
|
|
567
|
+
Every feature follows this flow:
|
|
568
|
+
|
|
569
|
+
1. **English → Ontology** - Validates intent against 6 dimensions
|
|
570
|
+
2. **Ontology → Code** - Generates type-safe services
|
|
571
|
+
3. **Code → Tests** - Creates 50+ test cases automatically
|
|
572
|
+
4. **Tests → Deploy** - Pushes to edge with zero downtime
|
|
573
|
+
|
|
574
|
+
The ontology ensures consistency. The compiler ensures quality. The edge ensures performance.
|
|
393
575
|
|
|
394
576
|
---
|
|
395
577
|
|
|
396
|
-
##
|
|
578
|
+
## 💡 Plain English DSL
|
|
397
579
|
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
});
|
|
435
|
-
|
|
436
|
-
// Track token holdings (thing + connection)
|
|
437
|
-
const tokenHolding = await createThing({
|
|
438
|
-
type: "token",
|
|
439
|
-
name: "COOL Token Holding",
|
|
440
|
-
groupId: coolDAO._id,
|
|
441
|
-
properties: {
|
|
442
|
-
symbol: "COOL",
|
|
443
|
-
amount: 1000,
|
|
444
|
-
chain: "base",
|
|
445
|
-
},
|
|
446
|
-
});
|
|
447
|
-
|
|
448
|
-
await createConnection({
|
|
449
|
-
from: member._id,
|
|
450
|
-
to: tokenHolding._id,
|
|
451
|
-
type: "holds_tokens",
|
|
452
|
-
groupId: coolDAO._id,
|
|
453
|
-
});
|
|
454
|
-
|
|
455
|
-
// Governance proposal (thing)
|
|
456
|
-
const proposal = await createThing({
|
|
457
|
-
type: "proposal",
|
|
458
|
-
name: "Allocate 10% Treasury to Marketing",
|
|
459
|
-
groupId: governance._id,
|
|
460
|
-
properties: {
|
|
461
|
-
proposer: member._id,
|
|
462
|
-
status: "active",
|
|
463
|
-
votesFor: 5000,
|
|
464
|
-
votesAgainst: 2000,
|
|
465
|
-
quorum: 10000,
|
|
466
|
-
},
|
|
467
|
-
});
|
|
468
|
-
|
|
469
|
-
// Vote event
|
|
470
|
-
await createEvent({
|
|
471
|
-
type: "vote_cast",
|
|
472
|
-
actor: member._id,
|
|
473
|
-
target: proposal._id,
|
|
474
|
-
groupId: governance._id,
|
|
475
|
-
metadata: {
|
|
476
|
-
choice: "for",
|
|
477
|
-
votingPower: 1000,
|
|
478
|
-
},
|
|
479
|
-
});
|
|
480
|
-
```
|
|
481
|
-
|
|
482
|
-
**Groups model DAOs perfectly: Top-level DAO → Committees → Proposals → Votes.**
|
|
580
|
+
### Write Features in English. The System Builds Everything.
|
|
581
|
+
|
|
582
|
+
Describe what you want in plain English. The compiler checks every line against the ontology, generates TypeScript and tests, and deploys to the edge.
|
|
583
|
+
|
|
584
|
+
**Example: Chat with AI Clone**
|
|
585
|
+
|
|
586
|
+
```
|
|
587
|
+
FEATURE: Let fans chat with my AI clone
|
|
588
|
+
|
|
589
|
+
WHEN a fan sends a message
|
|
590
|
+
CHECK they own tokens
|
|
591
|
+
GET conversation history
|
|
592
|
+
CALL OpenAI with my personality
|
|
593
|
+
RECORD the interaction
|
|
594
|
+
REWARD fan with 10 tokens
|
|
595
|
+
GIVE AI response to fan
|
|
596
|
+
```
|
|
597
|
+
|
|
598
|
+
**What maps to ontology:**
|
|
599
|
+
|
|
600
|
+
- **Things Touched:** fan, ai_clone, message, token — all typed rows
|
|
601
|
+
- **Connections Updated:** fan `holds_tokens` token, fan `interacted_with` clone with metadata
|
|
602
|
+
- **Events Logged:** message_sent, tokens_earned, clone_interaction with timestamps
|
|
603
|
+
- **Knowledge Indexed:** Clone personality, embeddings, conversation history for retrieval
|
|
604
|
+
|
|
605
|
+
**5 Core Commands:**
|
|
606
|
+
|
|
607
|
+
| Command | Purpose | Example |
|
|
608
|
+
| --------- | ----------------------------------- | -------------------------------- |
|
|
609
|
+
| `CREATE` | Add typed Things into the graph | `CREATE ai clone WITH voice ID` |
|
|
610
|
+
| `CONNECT` | Define relationships with metadata | `CONNECT fan to token as holder` |
|
|
611
|
+
| `RECORD` | Append immutable Events | `RECORD tokens purchased BY fan` |
|
|
612
|
+
| `CALL` | Invoke services and persist outputs | `CALL Stripe to charge payment` |
|
|
613
|
+
| `CHECK` | Enforce guardrails before action | `CHECK user has tokens` |
|
|
614
|
+
|
|
615
|
+
See [language.md](./one/knowledge/language.md) for complete DSL specification.
|
|
483
616
|
|
|
484
617
|
---
|
|
485
618
|
|
|
486
|
-
##
|
|
619
|
+
## 🚀 What This Unlocks
|
|
487
620
|
|
|
488
|
-
|
|
621
|
+
### Zero-Trust Authorization
|
|
489
622
|
|
|
490
|
-
|
|
491
|
-
- React 19 (Islands architecture)
|
|
492
|
-
- Tailwind v4 (CSS-based config)
|
|
493
|
-
- shadcn/ui (50+ components)
|
|
494
|
-
- TypeScript 5.9+ (Strict mode)
|
|
623
|
+
Every action traces back through explicit connections to a person in an organization. Perfect auditability. No implicit permissions. Authorization is data, not code.
|
|
495
624
|
|
|
496
|
-
|
|
625
|
+
### Identity-Aware Intelligence
|
|
497
626
|
|
|
498
|
-
|
|
499
|
-
- OpenAI (GPT-4, GPT-3.5)
|
|
500
|
-
- Anthropic (Claude 3.5 Sonnet)
|
|
501
|
-
- OpenRouter (100+ models)
|
|
627
|
+
Agents don't just retrieve facts—they understand organizational context, provenance, licensing, governance, and strategic constraints.
|
|
502
628
|
|
|
503
|
-
|
|
629
|
+
### Event-Driven Compounding
|
|
504
630
|
|
|
505
|
-
|
|
506
|
-
- Stripe (Payments)
|
|
507
|
-
- Multi-chain (Sui, Base, Solana)
|
|
631
|
+
Every action generates events that create knowledge that enriches future actions. The system gets smarter with every interaction.
|
|
508
632
|
|
|
509
|
-
|
|
633
|
+
### Protocol-Agnostic Integration
|
|
510
634
|
|
|
511
|
-
|
|
512
|
-
- [Introduction](https://one.ie/docs/getting-started/introduction) – What is ONE?
|
|
513
|
-
- [Quick Start](https://one.ie/docs/getting-started/setup) – Get up and running in 5 minutes
|
|
514
|
-
- [Installation](https://one.ie/docs/getting-started/installation) – Install the CLI
|
|
635
|
+
Same ontology, different protocols—all via metadata. Query across Stripe, SUI, and any future protocol with unified patterns.
|
|
515
636
|
|
|
516
|
-
|
|
517
|
-
- [Language](https://one.ie/docs/overview/language) – ONE DSL and concepts
|
|
518
|
-
- [Ontology](https://one.ie/docs/overview/ontology) – The 6-dimension data model
|
|
519
|
-
- [Architecture](https://one.ie/docs/overview/architecture) – How it all fits together
|
|
520
|
-
- [Website](https://one.ie/docs/overview/website) – Building with Astro + React
|
|
637
|
+
### Cross-Organization Collaboration
|
|
521
638
|
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
639
|
+
Resources can be shared without transferring ownership. Perfect for knowledge marketplaces with trustless licensing.
|
|
640
|
+
|
|
641
|
+
### Tokenization with SUI
|
|
642
|
+
|
|
643
|
+
SUI's object-centric model maps naturally to ONE's thing-centric ontology. Knowledge as tradeable, licensable assets.
|
|
525
644
|
|
|
526
645
|
---
|
|
527
646
|
|
|
528
|
-
##
|
|
647
|
+
## 📈 Built for Scale
|
|
529
648
|
|
|
530
|
-
|
|
649
|
+
### Current Scale
|
|
531
650
|
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
5. ✅ Email Verification
|
|
537
|
-
6. ✅ 2FA (TOTP + Backup codes)
|
|
651
|
+
- ✅ 1M+ things per organization
|
|
652
|
+
- ✅ 10M+ connections (optimized indexes)
|
|
653
|
+
- ✅ 100M+ events (time-partitioned)
|
|
654
|
+
- ✅ 1M+ knowledge chunks (vector search)
|
|
538
655
|
|
|
539
|
-
|
|
656
|
+
### Performance
|
|
540
657
|
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
658
|
+
- 🚀 Graph caching (ownership chains)
|
|
659
|
+
- 🚀 Materialized views (common queries)
|
|
660
|
+
- 🚀 Event archival (cold storage)
|
|
661
|
+
- 🚀 Token budgeting (context aware)
|
|
662
|
+
|
|
663
|
+
### Future Scale
|
|
664
|
+
|
|
665
|
+
- 🔮 Shard by organization (>10M things)
|
|
666
|
+
- 🔮 Streaming events (Kafka)
|
|
667
|
+
- 🔮 Distributed vectors (Weaviate)
|
|
668
|
+
- 🔮 Regional databases (CDC replication)
|
|
669
|
+
|
|
670
|
+
---
|
|
671
|
+
|
|
672
|
+
## 📚 Documentation Structure
|
|
673
|
+
|
|
674
|
+
This repository contains **41 documentation files** organized in **8 layers**:
|
|
675
|
+
|
|
676
|
+
### 1. Strategy Layer (Vision & Revenue)
|
|
677
|
+
|
|
678
|
+
- [one.md](./one/groups/one.md) - Platform organization
|
|
679
|
+
|
|
680
|
+
### 2. Ontology Layer (Core Model)
|
|
681
|
+
|
|
682
|
+
- [ontology.md](./one/knowledge/ontology.md) - Complete 6-dimension spec (Version 1.0.0)
|
|
683
|
+
- [groups.md](./one/groups/groups.md) - Groups dimension
|
|
684
|
+
- [things.md](./one/things/things.md) - Things dimension
|
|
685
|
+
- [connections.md](./one/connections/connections.md) - Connections dimension
|
|
686
|
+
- [events.md](./one/events/events.md) - Events dimension
|
|
687
|
+
- [knowledge.md](./one/knowledge/knowledge.md) - Knowledge dimension
|
|
688
|
+
|
|
689
|
+
### 3. Protocols Layer (A2A, ACP, AP2, X402, AG-UI)
|
|
690
|
+
|
|
691
|
+
- [protocols.md](./one/connections/protocols.md) - Protocol overview
|
|
692
|
+
- [a2a.md](./one/connections/a2a.md), [acp.md](./one/connections/acp.md), [ap2.md](./one/connections/ap2.md), [x402.md](./one/connections/x402.md), [agui.md](./one/connections/agui.md)
|
|
693
|
+
|
|
694
|
+
### 4. Services Layer (Effect.ts)
|
|
695
|
+
|
|
696
|
+
- [service-layer.md](./one/connections/service-layer.md) - Effect.ts patterns
|
|
697
|
+
- [service-providers.md](./one/things/service-providers.md) - External API providers
|
|
698
|
+
|
|
699
|
+
### 5. Implementation Layer (Frontend, Patterns)
|
|
700
|
+
|
|
701
|
+
- [frontend.md](./one/knowledge/frontend.md) - Frontend architecture
|
|
702
|
+
- [architecture.md](./one/knowledge/architecture.md) - System architecture
|
|
703
|
+
- [patterns.md](./one/connections/patterns.md) - Code patterns
|
|
704
|
+
|
|
705
|
+
### 6. Integration Layer (ElizaOS, CopilotKit, MCP, N8N)
|
|
706
|
+
|
|
707
|
+
- [elizaos.md](./one/connections/elizaos.md) - ElizaOS integration
|
|
708
|
+
- [copilotkit.md](./one/connections/copilotkit.md) - CopilotKit integration
|
|
709
|
+
- [mcp.md](./one/connections/mcp.md) - Model Context Protocol
|
|
710
|
+
- [n8n.md](./one/connections/n8n.md) - N8N workflow automation
|
|
711
|
+
|
|
712
|
+
### 7. Examples Layer (Use Cases)
|
|
713
|
+
|
|
714
|
+
- [lemonade-stand.md](./one/things/examples/children/lemonade-stand.md) - Simple for children
|
|
715
|
+
- Enterprise CRM examples
|
|
716
|
+
|
|
717
|
+
### 8. Plans Layer (Future & Technical Debt)
|
|
718
|
+
|
|
719
|
+
- Various planning documents
|
|
720
|
+
|
|
721
|
+
**Use targeted reading:** Don't read everything - follow the critical path for your specific feature type.
|
|
722
|
+
|
|
723
|
+
See [files.md](./one/knowledge/files.md) for complete file location guide.
|
|
547
724
|
|
|
548
725
|
---
|
|
549
726
|
|
|
550
|
-
##
|
|
727
|
+
## 🎯 Getting Started
|
|
728
|
+
|
|
729
|
+
### For Developers
|
|
730
|
+
|
|
731
|
+
1. **Understand the Ontology**
|
|
732
|
+
|
|
733
|
+
```bash
|
|
734
|
+
# Read these in order:
|
|
735
|
+
- one/knowledge/ontology.md (complete 6-dimension spec)
|
|
736
|
+
- one/knowledge/rules.md (golden rules)
|
|
737
|
+
- one/connections/workflow.md (development flow)
|
|
738
|
+
- one/connections/patterns.md (code patterns)
|
|
739
|
+
```
|
|
740
|
+
|
|
741
|
+
2. **Map Your Feature**
|
|
742
|
+
- Which **groups** are involved? (organizational scope, with potential nesting)
|
|
743
|
+
- Which **people** are involved? (authorization)
|
|
744
|
+
- Which **things** are involved? (entities)
|
|
745
|
+
- Which **connections** are needed? (relationships)
|
|
746
|
+
- Which **events** should be logged? (actions)
|
|
747
|
+
- Which **knowledge** should be captured? (context)
|
|
748
|
+
|
|
749
|
+
3. **Generate Code**
|
|
750
|
+
- Use Effect.ts for business logic
|
|
751
|
+
- Create Convex wrappers for database operations
|
|
752
|
+
- Build React components for UI
|
|
753
|
+
- Write tests to validate behavior
|
|
754
|
+
|
|
755
|
+
### For AI Agents
|
|
756
|
+
|
|
757
|
+
**Before generating ANY code:**
|
|
758
|
+
|
|
759
|
+
1. Read `one/knowledge/ontology.md` (understand the 6 dimensions)
|
|
760
|
+
2. Read `one/knowledge/rules.md` (golden rules for AI agents)
|
|
761
|
+
3. Read `one/connections/workflow.md` (6-phase development workflow)
|
|
762
|
+
4. Map feature to: groups, people, things, connections, events, knowledge
|
|
763
|
+
5. Design types and errors (tagged unions)
|
|
764
|
+
6. Generate Effect.ts service (pure business logic)
|
|
765
|
+
7. Create Convex wrapper (thin layer)
|
|
766
|
+
8. Build React component (UI)
|
|
767
|
+
9. Write tests (unit + integration)
|
|
768
|
+
10. Update documentation
|
|
769
|
+
|
|
770
|
+
**Critical:** Never skip reading documentation. Never use `any` type except in entity `properties`. Always write tests.
|
|
771
|
+
|
|
772
|
+
### For Content Creators
|
|
773
|
+
|
|
774
|
+
Use the Plain English DSL:
|
|
551
775
|
|
|
552
776
|
```
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
777
|
+
FEATURE: Create my AI voice clone
|
|
778
|
+
|
|
779
|
+
INPUT:
|
|
780
|
+
- video links (at least 3)
|
|
781
|
+
|
|
782
|
+
OUTPUT:
|
|
783
|
+
- clone ID
|
|
784
|
+
- voice ID
|
|
785
|
+
|
|
786
|
+
FLOW:
|
|
787
|
+
CALL ElevenLabs to clone voice
|
|
788
|
+
CALL OpenAI to analyze personality
|
|
789
|
+
CREATE ai clone WITH voice and personality
|
|
790
|
+
CONNECT creator to clone as owner
|
|
791
|
+
RECORD clone created
|
|
792
|
+
GIVE clone ID and voice ID
|
|
569
793
|
```
|
|
570
794
|
|
|
795
|
+
See [language.md](./one/knowledge/language.md) for complete DSL reference.
|
|
796
|
+
|
|
797
|
+
---
|
|
798
|
+
|
|
799
|
+
## 🏗️ Architecture Principles
|
|
800
|
+
|
|
801
|
+
### 1. Clarity Scales
|
|
802
|
+
|
|
803
|
+
Everything maps to the 6 dimensions. No exceptions. If it doesn't map, rethink your approach.
|
|
804
|
+
|
|
805
|
+
### 2. Groups Partition for Scale
|
|
806
|
+
|
|
807
|
+
From friend circles (2 people) to governments (billions) without schema changes. Infinite hierarchical nesting supported.
|
|
808
|
+
|
|
809
|
+
### 3. People Authorize for Governance
|
|
810
|
+
|
|
811
|
+
Every action traces back to human intent. AI serves people, not the other way around.
|
|
812
|
+
|
|
813
|
+
### 4. Things Exist for Substance
|
|
814
|
+
|
|
815
|
+
66 thing types capture everything you need to model. Flexible `properties` field for type-specific data.
|
|
816
|
+
|
|
817
|
+
### 5. Connections Relate for Structure
|
|
818
|
+
|
|
819
|
+
25 connection types make the implicit explicit. Relationships are first-class with metadata.
|
|
820
|
+
|
|
821
|
+
### 6. Events Record for Memory
|
|
822
|
+
|
|
823
|
+
67 event types create immutable audit trail. Time-travel queries and analytics built-in.
|
|
824
|
+
|
|
825
|
+
### 7. Knowledge Learns for Intelligence
|
|
826
|
+
|
|
827
|
+
Tags, chunks, embeddings, and relationships give AI agents context to act intelligently.
|
|
828
|
+
|
|
571
829
|
---
|
|
572
830
|
|
|
573
|
-
##
|
|
831
|
+
## 💎 Philosophy
|
|
832
|
+
|
|
833
|
+
**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.
|
|
834
|
+
|
|
835
|
+
**Simple enough for children. Powerful enough for enterprises.** A lemonade stand and a Fortune 500 company use the same 6 dimensions.
|
|
836
|
+
|
|
837
|
+
**The ontology holds the contracts. The DSL speaks those contracts.** Together they give everyone the same, inspectable source of truth.
|
|
574
838
|
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
- **Complete Audit Trail** – Events table logs everything
|
|
579
|
-
- **GDPR Compliant** – Delete all group data with single groupId filter
|
|
580
|
-
- **Encryption** – Group-scoped encryption keys
|
|
839
|
+
**Clarity scales.** Your DSL features, agent playbooks, and analytics dashboards stay in sync because they pull from the same ontology.
|
|
840
|
+
|
|
841
|
+
**Map your domain to these dimensions. Everything else is just data.**
|
|
581
842
|
|
|
582
843
|
---
|
|
583
844
|
|
|
584
|
-
##
|
|
845
|
+
## 🤖 Claude Automation Stack
|
|
585
846
|
|
|
586
|
-
|
|
847
|
+
### `.claude/agents/*`
|
|
587
848
|
|
|
588
|
-
|
|
849
|
+
- **Director (`agent-director.md`)** validates ideas against the 6 dimensions, sequences numbered plans, and routes work to the right specialist.
|
|
850
|
+
- **Builder squad (`agent-builder.md`, `agent-backend.md`, `agent-frontend.md`, `backend-specialist.md`, `frontend-specialist.md`)** implements Convex services, Astro interfaces, and cross-cutting features while preserving multi-tenant boundaries and typed contracts.
|
|
851
|
+
- **Integration lead (`agent-integrator.md`)** connects external protocols (A2A, ACP, AP2, X402, AG-UI) and reconciles third-party data so it lands in groups, people, things, connections, events, and knowledge.
|
|
852
|
+
- **Quality loop (`agent-quality.md`, `agent-clean.md`, `agent-problem-solver.md`)** defines acceptance up front, enforces guardrails, diagnoses failures, and refactors without breaking ontology guarantees.
|
|
853
|
+
- **Design + knowledge (`agent-designer.md`, `designer.md`, `agent-documenter.md`)** translate specs into accessible UI systems, tokens, and documentation so the knowledge dimension stays queryable for future generations.
|
|
854
|
+
- **Growth ops (`agent-clone.md`, `agent-sales.md`)** migrate legacy assets, build AI clones, manage trials, and tie revenue attribution back to event streams.
|
|
589
855
|
|
|
590
|
-
|
|
591
|
-
2. **66 thing types** (every "thing")
|
|
592
|
-
3. **25 connection types** (every relationship)
|
|
593
|
-
4. **67 event types** (every action)
|
|
594
|
-
5. **Metadata** (for protocol-specific details)
|
|
856
|
+
**Cascade in practice:** Director validates → Quality defines tests → Designers supply artifacts → Specialists build → Clean and Problem Solver close gaps → Documenter updates knowledge. Every agent reads and writes to the same ontology, so each run leaves richer context for the next.
|
|
595
857
|
|
|
596
|
-
|
|
858
|
+
### MCP Servers (`.mcp.json`)
|
|
597
859
|
|
|
598
|
-
|
|
860
|
+
- **shadcn** (`npx shadcn@latest mcp`) gives UI agents instant access to audited component recipes without leaving Claude Code.
|
|
861
|
+
- **cloudflare-builds** (`npx -y mcp-remote https://builds.mcp.cloudflare.com/sse`) lets release flows trigger deployments, inspect logs, and roll back while emitting auditable events.
|
|
862
|
+
- **cloudflare-docs** (`npx -y mcp-remote https://docs.mcp.cloudflare.com/sse`) streams authoritative references so integrators and quality agents stay aligned with platform guidance.
|
|
863
|
+
- **chrome-devtools** (`npx -y chrome-devtools-mcp@latest`) enables live performance profiling; findings roll into knowledge chunks for future optimizations.
|
|
864
|
+
|
|
865
|
+
**How it fits:** `.claude/commands/*` orchestrate the workflow (plan → build → release), `.claude/hooks/*` enforce guardrails, agents execute the steps, and MCP servers provide live tool access—all grounded in the ONE ontology as the single source of truth.
|
|
866
|
+
|
|
867
|
+
---
|
|
868
|
+
|
|
869
|
+
## 📊 Statistics
|
|
599
870
|
|
|
600
|
-
|
|
871
|
+
### Ontology Size
|
|
601
872
|
|
|
602
|
-
-
|
|
603
|
-
-
|
|
604
|
-
-
|
|
605
|
-
-
|
|
606
|
-
-
|
|
873
|
+
- **6 Dimensions** (groups, people, things, connections, events, knowledge)
|
|
874
|
+
- **6 Group Types** (friend_circle, business, community, dao, government, organization)
|
|
875
|
+
- **4 Roles** (platform_owner, org_owner, org_user, customer)
|
|
876
|
+
- **66 Thing Types** (across 13 categories)
|
|
877
|
+
- **25 Connection Types** (18 specific + 7 consolidated)
|
|
878
|
+
- **67 Event Types** (including cycle & blockchain events)
|
|
879
|
+
- **12 Tag Categories** (industry, skill, topic, format, goal, audience, technology, status, capability, protocol, payment, network)
|
|
607
880
|
|
|
608
|
-
|
|
881
|
+
### Coverage
|
|
609
882
|
|
|
610
|
-
-
|
|
611
|
-
-
|
|
612
|
-
-
|
|
613
|
-
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
- Stay simple, clean, beautiful
|
|
883
|
+
- ✅ **100% Protocol Agnostic** - Stripe, SUI, Solana, any blockchain via metadata
|
|
884
|
+
- ✅ **100% Type Safe** - Every entity, connection, and event is typed
|
|
885
|
+
- ✅ **100% AI Understandable** - Plain English DSL compiles to ontology
|
|
886
|
+
- ✅ **100% Auditable** - Immutable event log for every action
|
|
887
|
+
|
|
888
|
+
---
|
|
617
889
|
|
|
618
|
-
|
|
890
|
+
## 🔗 Quick Links
|
|
619
891
|
|
|
620
|
-
|
|
892
|
+
### Core Documentation
|
|
621
893
|
|
|
622
|
-
-
|
|
623
|
-
-
|
|
624
|
-
-
|
|
625
|
-
-
|
|
626
|
-
-
|
|
627
|
-
-
|
|
628
|
-
-
|
|
894
|
+
- [📖 Complete Ontology Specification](./one/knowledge/ontology.md) - Version 1.0.0
|
|
895
|
+
- [🎨 Plain English DSL](./one/knowledge/language.md) - Write features in English
|
|
896
|
+
- [🏗️ Architecture Guide](./one/knowledge/architecture.md) - System architecture
|
|
897
|
+
- [📝 Development Workflow](./one/connections/workflow.md) - 6-phase process
|
|
898
|
+
- [🎯 Code Patterns](./one/connections/patterns.md) - Proven patterns
|
|
899
|
+
- [⚡ Golden Rules](./one/knowledge/rules.md) - Rules for AI agents
|
|
900
|
+
- [📁 File Locations](./one/knowledge/files.md) - Where everything goes
|
|
629
901
|
|
|
630
|
-
|
|
902
|
+
### Integrations
|
|
903
|
+
|
|
904
|
+
- [🤖 ElizaOS](./one/connections/elizaos.md) - Multi-agent communication
|
|
905
|
+
- [🔌 MCP](./one/connections/mcp.md) - Model Context Protocol
|
|
906
|
+
- [⚙️ N8N](./one/connections/n8n.md) - Workflow automation
|
|
907
|
+
|
|
908
|
+
### Examples
|
|
909
|
+
|
|
910
|
+
- [🍋 Lemonade Stand](./one/things/examples/children/lemonade-stand.md) - Simple for children
|
|
631
911
|
|
|
632
912
|
---
|
|
633
913
|
|
|
634
914
|
## 🤝 Contributing
|
|
635
915
|
|
|
636
|
-
|
|
637
|
-
2. Create a feature branch
|
|
638
|
-
3. **Map your feature to the 6 dimensions**
|
|
639
|
-
4. Add tests if applicable
|
|
640
|
-
5. Submit a pull request
|
|
916
|
+
We welcome contributions! Before submitting:
|
|
641
917
|
|
|
642
|
-
|
|
918
|
+
1. Read [knowledge/ontology.md](./one/knowledge/ontology.md) to understand the 6 dimensions
|
|
919
|
+
2. Read [knowledge/rules.md](./one/knowledge/rules.md) for golden rules
|
|
920
|
+
3. Map your contribution to the ontology
|
|
921
|
+
4. Follow the patterns in [connections/patterns.md](./one/connections/patterns.md)
|
|
922
|
+
5. Write tests
|
|
923
|
+
6. Update documentation
|
|
643
924
|
|
|
644
|
-
|
|
925
|
+
---
|
|
645
926
|
|
|
646
|
-
|
|
927
|
+
## 📜 License
|
|
647
928
|
|
|
648
|
-
|
|
929
|
+
Copyright © 2025 ONE
|
|
930
|
+
ONE Free License -see [LICENSE.md](LICENSE.md).
|
|
649
931
|
|
|
650
|
-
|
|
932
|
+
---
|
|
651
933
|
|
|
652
|
-
|
|
934
|
+
<div align="center">
|
|
653
935
|
|
|
654
|
-
|
|
655
|
-
Connections relate. Events record. Knowledge understands.
|
|
936
|
+
**ONE Ontology. Infinite Systems.**
|
|
656
937
|
|
|
657
|
-
|
|
938
|
+
_Built with clarity, simplicity, and infinite scale in mind._
|
|
658
939
|
|
|
659
|
-
[
|
|
940
|
+
[Explore the Platform](https://one.ie) • [View on GitHub](https://github.com/one-ie/one) • [Read the Docs](https://one.ie/docs)
|
|
660
941
|
|
|
661
942
|
</div>
|