| title | dimension | category | tags | related_dimensions | scope | created | updated | version | ai_context |
|---|---|---|---|---|---|---|---|---|---|
Readme |
knowledge |
general |
agent, ai, architecture, knowledge, ontology |
connections, events, groups, people, things |
global |
2025-11-03 |
2025-11-03 |
1.0.0 |
This document is part of the knowledge dimension in the general category.
Location: one/README.md
Purpose: Documents the one ontology
Related dimensions: connections, events, groups, people, things
For AI agents: Read this to understand README.
|
Every intelligent system needs a coherent model of reality.
██████╗ ███╗ ██╗███████╗
██╔═══██╗████╗ ██║██╔════╝
██║ ██║██╔██╗ ██║█████╗
██║ ██║██║╚██╗██║██╔══╝
╚██████╔╝██║ ╚████║███████╗
╚═════╝ ╚═╝ ╚═══╝╚══════╝
Make Your Ideas Real
https://one.ie • npx oneie
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.
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:
Model reality in six core dimensions and map everything to them.
┌─────────────────────────────────────────────────────────────┐
│ Groups → People → Things → Connections → Events → Knowledge │
│ │
│ Everything flows through these six dimensions. │
│ Everything scales without schema changes. │
│ Everything is queryable, composable, and intelligent. │
└─────────────────────────────────────────────────────────────┘
Hierarchical containers that organize people and things
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.
6 Group Types:
friend_circle- Small, intimate groupsbusiness- Commercial organizationscommunity- Interest-based collectivesdao- Token-governed groupsgovernment- Public institutionsorganization- Generic groups
URL-Based Creation:
one.ie/group/cooldao → creates "cooldao" group
one.ie/group/cooldao/treasury → creates nested "treasury" group
one.ie/group/emmas-birthday → creates "emmas-birthday" group
Hierarchical Nesting Example:
groups/acme-corp (business)
├─ groups/engineering (organization)
│ ├─ groups/backend-team (organization)
│ └─ groups/frontend-team (organization)
├─ groups/marketing (organization)
└─ groups/sales (organization)
groups/emmas-friends (friend_circle)
├─ groups/birthday-party (friend_circle)
└─ groups/game-night (friend_circle)
groups/cool-dao (dao)
├─ groups/treasury (dao)
└─ groups/governance (dao)
Authorization & governance - WHO can do what
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.
4 Roles:
platform_owner- Platform-level controlorg_owner- Organization-level controlorg_user- Organization membercustomer- End user
Properties:
- Identity (name, email, wallet)
- Authentication credentials
- Role within organization
- Permissions and authorization
- Preferences and settings
Why it matters:
- ✓ Human authorization required
- ✓ Clear governance
- ✓ Audit trails
- ✓ Intent and accountability
- ✓ AI serves people, not the other way around
Entities - WHAT exists in your system
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.
66 Thing Types organized in categories:
Core:
creator,audience_member,workspace,organization_settings
Agents:
intelligence_agent,business_agent,personal_assistant,data_analyst,writer,researcher,moderator,customer_support,sales_rep,code_reviewer,qa_tester,task_automator
Content:
video_content,text_content,audio_content,image_content,course,curriculum,module,lesson,quiz,certificate,podcast,newsletter,live_stream,blog_post
Products:
token,nft,digital_product,offer,subscription_tier,bundle,access_pass
Community:
community,forum,discussion,announcement,poll
Knowledge:
knowledge_base,knowledge_chunk,topic,recommendation,insight,summary
Platform:
ai_clone,voice_clone,personality_profile,mandate,delegation,workflow,automation,integration,webhook
Business:
lead,deal,invoice,payment_method,payout_config
Relationships - HOW things relate to each other
Connections are first-class relationships with their own properties. They express ownership, membership, governance, authorization, dependencies, transactions, and more. Connections make the implicit explicit.
25 Connection Types:
Ownership & Authorization:
owns- Ownership relationshipcan_read- Read accesscan_write- Write accesscan_execute- Execution permission
Governance:
governed_by- Governed by mandatedelegated_to- Delegation chainmember_of- Membership
Content & Knowledge:
authored- Created contenttaught_by- Teaching relationshipenrolled_in- Course enrollmentcontains- Hierarchical containment
Social:
following- Social followingsubscribed_to- Subscriptionholds_tokens- Token ownership
Consolidated Types (with metadata):
transacted- Financial transactions (metadata.protocol: stripe | sui | blockchain)communicated- Messages/interactions (metadata.channel: email | chat | voice)delegated- Delegated authority (metadata.permissions: [...])governed- Governance (metadata.constraints: [...])powered- Dependency (metadata.config: {...})related- Generic relationship (metadata.relationshipType: custom)licensed_to- Licensing (metadata.terms: {...})
Actions - WHAT happened, when, and why
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.
67 Event Types organized in categories:
Thing Lifecycle:
thing_created,thing_updated,thing_deleted,thing_published,thing_archived
User Actions:
user_signup,user_login,user_logout,profile_updated,preferences_changed
AI/Agent:
agent_created,agent_executed,agent_completed,agent_failed,clone_created,clone_interaction,voice_cloned,personality_analyzed
Cycle Events:
cycle_request,cycle_completed,cycle_failed,cycle_quota_exceeded,cycle_revenue_collected,org_revenue_generated,revenue_share_distributed
Token/NFT:
token_created,tokens_purchased,tokens_transferred,tokens_burned,nft_minted,nft_transferred
Blockchain:
tokens_bridged,contract_deployed,treasury_withdrawal
Content:
content_created,content_published,content_viewed,content_liked,content_shared,course_enrolled,lesson_completed,quiz_submitted,certificate_earned
Knowledge:
knowledge_indexed,embedding_generated,search_performed,recommendation_generated
Consolidated Events (with metadata):
communicated(metadata.protocol: email | sms | chat)transacted(metadata.protocol: stripe | sui | blockchain)content_engaged(metadata.engagement_type: view | like | share)- Others...
Intelligence - WHAT it all means
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.
12 Tag Categories:
- skill - typescript, react, python, design, video-editing
- industry - fitness, education, finance, healthcare
- topic - ai, blockchain, marketing, sales, analytics
- format - video, text, audio, code, interactive
- goal - learn, earn, build, grow, teach
- audience - beginners, professionals, students, developers
- technology - astro, react-19, convex, sui, solana
- status - draft, published, deprecated, featured
- capability - image-gen, analysis, trading, refactoring
- protocol - a2a, acp, ap2, x402, ag-ui
- payment - stripe, crypto, x402, ap2
- network - sui, solana, base, ethereum
Features:
- Labels for categorization
- Chunks for semantic search
- Embeddings for vector similarity
- Relationships for knowledge graphs
- Licensing for IP protection
- Provenance for trust
- Tokenization for markets
Let's see how all six dimensions work together in a real feature:
groupId: "acme-corp";
// Transaction happens within this group boundary
// All entities belong to this group (can be nested)actorId: "fan_123";
// Fan authorizes: "Buy 100 creator tokens for $10"{
fan_123: { type: "audience_member" },
token_456: { type: "token", symbol: "CRTR" }
}{
fromThingId: "fan_123",
toThingId: "token_456",
relationshipType: "holds_tokens",
metadata: { balance: 100 }
}{
type: "tokens_purchased",
actorId: "fan_123",
targetId: "token_456",
metadata: { amount: 100, usd: 10 },
timestamp: Date.now()
}// Labels give downstream agents context
tags: ["payment_method:stripe", "status:completed", "audience:engaged"];Result: One intent now touches every dimension—organizational scope, authorization, entities, relationships, events, and context—ready for agents to reuse.
0. Groups (Isolation Layer)
↓ Establishes scope for all operations (with optional nesting)
1. People (Policy Layer)
↓ Humans set outcomes, attach limits, approve execution
2. Things (Entity Layer)
↓ System resolves intent into typed entities
3. Connections (Relationship Layer)
↓ Defines how value moves—ownership, membership, authority
4. Events (Audit Layer)
↓ Records what happened, when, by whom
5. Knowledge (Intelligence Layer)
↓ Adds labels, embeddings, summaries for AI agents
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.
Describe what you want in plain English. The compiler checks every line against the ontology, generates TypeScript and tests, and deploys to the edge.
Example: Chat with AI Clone
FEATURE: Let fans chat with my AI clone
WHEN a fan sends a message
CHECK they own tokens
GET conversation history
CALL OpenAI with my personality
RECORD the interaction
REWARD fan with 10 tokens
GIVE AI response to fan
What maps to ontology:
- Things Touched: fan, ai_clone, message, token — all typed rows
- Connections Updated: fan
holds_tokenstoken, faninteracted_withclone with metadata - Events Logged: message_sent, tokens_earned, clone_interaction with timestamps
- Knowledge Indexed: Clone personality, embeddings, conversation history for retrieval
5 Core Commands:
| Command | Purpose | Example |
|---|---|---|
CREATE |
Add typed Things into the graph | CREATE ai clone WITH voice ID |
CONNECT |
Define relationships with metadata | CONNECT fan to token as holder |
RECORD |
Append immutable Events | RECORD tokens purchased BY fan |
CALL |
Invoke services and persist outputs | CALL Stripe to charge payment |
CHECK |
Enforce guardrails before action | CHECK user has tokens |
See language.md for complete DSL specification.
Every action traces back through explicit connections to a person in an organization. Perfect auditability. No implicit permissions. Authorization is data, not code.
Agents don't just retrieve facts—they understand organizational context, provenance, licensing, governance, and strategic constraints.
Every action generates events that create knowledge that enriches future actions. The system gets smarter with every interaction.
Same ontology, different protocols—all via metadata. Query across Stripe, SUI, and any future protocol with unified patterns.
Resources can be shared without transferring ownership. Perfect for knowledge marketplaces with trustless licensing.
SUI's object-centric model maps naturally to ONE's thing-centric ontology. Knowledge as tradeable, licensable assets.
- ✅ 1M+ things per organization
- ✅ 10M+ connections (optimized indexes)
- ✅ 100M+ events (time-partitioned)
- ✅ 1M+ knowledge chunks (vector search)
- 🚀 Graph caching (ownership chains)
- 🚀 Materialized views (common queries)
- 🚀 Event archival (cold storage)
- 🚀 Token budgeting (context aware)
- 🔮 Shard by organization (>10M things)
- 🔮 Streaming events (Kafka)
- 🔮 Distributed vectors (Weaviate)
- 🔮 Regional databases (CDC replication)
This repository contains 41 documentation files organized in 8 layers:
- one.md - Platform organization
- ontology.md - Complete 6-dimension spec (Version 1.0.0)
- groups.md - Groups dimension
- things.md - Things dimension
- connections.md - Connections dimension
- events.md - Events dimension
- knowledge.md - Knowledge dimension
- service-layer.md - Effect.ts patterns
- service-providers.md - External API providers
- frontend.md - Frontend architecture
- architecture.md - System architecture
- patterns.md - Code patterns
- elizaos.md - ElizaOS integration
- copilotkit.md - CopilotKit integration
- mcp.md - Model Context Protocol
- n8n.md - N8N workflow automation
- lemonade-stand.md - Simple for children
- Enterprise CRM examples
- Various planning documents
Use targeted reading: Don't read everything - follow the critical path for your specific feature type.
See files.md for complete file location guide.
-
Understand the Ontology
# Read these in order: - knowledge/ontology.md (complete 6-dimension spec) - knowledge/rules.md (golden rules) - connections/workflow.md (development flow) - connections/patterns.md (code patterns) -
Map Your Feature
- Which groups are involved? (organizational scope, with potential nesting)
- Which people are involved? (authorization)
- Which things are involved? (entities)
- Which connections are needed? (relationships)
- Which events should be logged? (actions)
- Which knowledge should be captured? (context)
-
Generate Code
- Use Effect.ts for business logic
- Create Convex wrappers for database operations
- Build React components for UI
- Write tests to validate behavior
Before generating ANY code:
- Read
knowledge/ontology.md(understand the 6 dimensions) - Read
knowledge/rules.md(golden rules for AI agents) - Read
connections/workflow.md(6-phase development workflow) - Map feature to: groups, people, things, connections, events, knowledge
- Design types and errors (tagged unions)
- Generate Effect.ts service (pure business logic)
- Create Convex wrapper (thin layer)
- Build React component (UI)
- Write tests (unit + integration)
- Update documentation
Critical: Never skip reading documentation. Never use any type except in entity properties. Always write tests.
Use the Plain English DSL:
FEATURE: Create my AI voice clone
INPUT:
- video links (at least 3)
OUTPUT:
- clone ID
- voice ID
FLOW:
CALL ElevenLabs to clone voice
CALL OpenAI to analyze personality
CREATE ai clone WITH voice and personality
CONNECT creator to clone as owner
RECORD clone created
GIVE clone ID and voice ID
See language.md for complete DSL reference.
Everything maps to the 6 dimensions. No exceptions. If it doesn't map, rethink your approach.
From friend circles (2 people) to governments (billions) without schema changes. Infinite hierarchical nesting supported.
Every action traces back to human intent. AI serves people, not the other way around.
66 thing types capture everything you need to model. Flexible properties field for type-specific data.
25 connection types make the implicit explicit. Relationships are first-class with metadata.
67 event types create immutable audit trail. Time-travel queries and analytics built-in.
Tags, chunks, embeddings, and relationships give AI agents context to act intelligently.
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.
Simple enough for children. Powerful enough for enterprises. A lemonade stand and a Fortune 500 company use the same 6 dimensions.
The ontology holds the contracts. The DSL speaks those contracts. Together they give everyone the same, inspectable source of truth.
Clarity scales. Your DSL features, agent playbooks, and analytics dashboards stay in sync because they pull from the same ontology.
Map your domain to these dimensions. Everything else is just data.
- Director (
agent-director.md) validates ideas against the 6 dimensions, sequences numbered plans, and routes work to the right specialist. - 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. - 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. - 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. - 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. - Growth ops (
agent-clone.md,agent-sales.md) migrate legacy assets, build AI clones, manage trials, and tie revenue attribution back to event streams.
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.
- shadcn (
npx shadcn@latest mcp) gives UI agents instant access to audited component recipes without leaving Claude Code. - 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. - 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. - chrome-devtools (
npx -y chrome-devtools-mcp@latest) enables live performance profiling; findings roll into knowledge chunks for future optimizations.
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.
- 6 Dimensions (groups, people, things, connections, events, knowledge)
- 6 Group Types (friend_circle, business, community, dao, government, organization)
- 4 Roles (platform_owner, org_owner, org_user, customer)
- 66 Thing Types (across 13 categories)
- 25 Connection Types (18 specific + 7 consolidated)
- 67 Event Types (including cycle & blockchain events)
- 12 Tag Categories (industry, skill, topic, format, goal, audience, technology, status, capability, protocol, payment, network)
- ✅ 100% Protocol Agnostic - Stripe, SUI, Solana, any blockchain via metadata
- ✅ 100% Type Safe - Every entity, connection, and event is typed
- ✅ 100% AI Understandable - Plain English DSL compiles to ontology
- ✅ 100% Auditable - Immutable event log for every action
- 📖 Complete Ontology Specification - Version 1.0.0
- 🎨 Plain English DSL - Write features in English
- 🏗️ Architecture Guide - System architecture
- 📝 Development Workflow - 6-phase process
- 🎯 Code Patterns - Proven patterns
- ⚡ Golden Rules - Rules for AI agents
- 📁 File Locations - Where everything goes
- 🍋 Lemonade Stand - Simple for children
We welcome contributions! Before submitting:
- Read knowledge/ontology.md to understand the 6 dimensions
- Read knowledge/rules.md for golden rules
- Map your contribution to the ontology
- Follow the patterns in connections/patterns.md
- Write tests
- Update documentation
Copyright © 2025 ONE ONE Free License -see LICENSE.md.
ONE Ontology. Infinite Systems.
Built with clarity, simplicity, and infinite scale in mind.