oneie 2.0.1 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +245 -0
- package/CLAUDE.md +534 -0
- package/README.md +61 -4
- package/one/.obsidian/app.json +1 -0
- package/one/.obsidian/appearance.json +1 -0
- package/one/.obsidian/core-plugins.json +33 -0
- package/one/.obsidian/workspace.json +211 -0
- package/one/connections/a2a.md +551 -0
- package/one/connections/acp.md +761 -0
- package/one/connections/acps.md +731 -0
- package/one/connections/agui.md +767 -0
- package/one/connections/any-backend.md +1702 -0
- package/one/connections/ap2.md +998 -0
- package/one/connections/api-docs.md +1891 -0
- package/one/connections/api.md +2190 -0
- package/one/connections/architecture-diagram.md +94 -0
- package/one/connections/communications.md +449 -0
- package/one/connections/connections.md +339 -0
- package/one/connections/cryptonetworks.md +781 -0
- package/one/connections/documentation.md +1120 -0
- package/one/connections/effect.md +279 -0
- package/one/connections/elizaos.md +1290 -0
- package/one/connections/inference.md +58 -0
- package/one/connections/kyc.md +632 -0
- package/one/connections/mcp.md +842 -0
- package/one/connections/membership.md +1152 -0
- package/one/connections/middleware.md +1067 -0
- package/one/connections/multitenant.md +1341 -0
- package/one/connections/n8n.md +1015 -0
- package/one/connections/patterns.md +89 -0
- package/one/connections/protocols.md +279 -0
- package/one/connections/relationships.md +107 -0
- package/one/connections/schema.md +587 -0
- package/one/connections/service-layer.md +550 -0
- package/one/connections/structure.md +0 -0
- package/one/connections/vectors.md +207 -0
- package/one/connections/wordpress.md +1302 -0
- package/one/connections/workflow-copy.md +905 -0
- package/one/connections/workflow-examples.md +741 -0
- package/one/connections/workflow.md +905 -0
- package/one/connections/workflows/delegation.md +885 -0
- package/one/connections/workflows/frontend.md +1037 -0
- package/one/connections/workflows/strategy.md +903 -0
- package/one/connections/workflows/tasks.md +698 -0
- package/one/connections/x402.md +1249 -0
- package/one/events/events.md +545 -0
- package/one/knowledge/ai-platform.md +305 -0
- package/one/knowledge/architecture-diagram.md +94 -0
- package/one/knowledge/architecture-frontend.md +930 -0
- package/one/knowledge/architecture.md +2077 -0
- package/one/knowledge/crypto.md +960 -0
- package/one/knowledge/dsl.md +1660 -0
- package/one/knowledge/files.md +2471 -0
- package/one/knowledge/frontend.md +1038 -0
- package/one/knowledge/hono.md +2109 -0
- package/one/knowledge/implementation-examples.md +2536 -0
- package/one/knowledge/inference-score.md +159 -0
- package/one/knowledge/knowledge.md +642 -0
- package/one/knowledge/language.md +980 -0
- package/one/knowledge/lessons-learned.md +70 -0
- package/one/knowledge/ontology-6-dimensions.md +0 -0
- package/one/knowledge/ontology-documentation.md +356 -0
- package/one/knowledge/ontology-engineering-specification.md +1292 -0
- package/one/knowledge/ontology-engineering.md +1652 -0
- package/one/knowledge/ontology-frontend-copy-2.md +1492 -0
- package/one/knowledge/ontology-frontend-copy.md +753 -0
- package/one/knowledge/ontology-frontend-specifications.md +2188 -0
- package/one/knowledge/ontology-frontend.md +2427 -0
- package/one/knowledge/ontology-minimal.yaml +299 -0
- package/one/knowledge/ontology.md +2819 -0
- package/one/knowledge/ontology.yaml +1165 -0
- package/one/knowledge/patterns/backend/convex-mutation-pattern.md +100 -0
- package/one/knowledge/patterns/backend/convex-query-pattern.md +88 -0
- package/one/knowledge/patterns/backend/mutation-template.md +231 -0
- package/one/knowledge/patterns/backend/query-template.md +267 -0
- package/one/knowledge/patterns/backend/service-template.md +237 -0
- package/one/knowledge/patterns/design/component-architecture.md +399 -0
- package/one/knowledge/patterns/design/test-driven-design-pattern.md +162 -0
- package/one/knowledge/patterns/design/wireframe-template.md +216 -0
- package/one/knowledge/patterns/frontend/component-template.md +195 -0
- package/one/knowledge/patterns/frontend/form-template.md +276 -0
- package/one/knowledge/patterns/frontend/page-template.md +178 -0
- package/one/knowledge/patterns/frontend/react-component-pattern.md +128 -0
- package/one/knowledge/patterns/test/acceptance-criteria-template.md +378 -0
- package/one/knowledge/patterns/test/technical-test-template.md +544 -0
- package/one/knowledge/patterns/test/test-driven-pattern.md +140 -0
- package/one/knowledge/patterns/test/user-flow-template.md +254 -0
- package/one/knowledge/quality-loop.md +401 -0
- package/one/knowledge/readme.md +131 -0
- package/one/knowledge/rules.md +626 -0
- package/one/knowledge/score.md +67 -0
- package/one/knowledge/specifications.md +855 -0
- package/one/knowledge/tags.md +130 -0
- package/one/organisation/one.md +599 -0
- package/one/organisation/organisation.md +438 -0
- package/one/organisation/revenue.md +673 -0
- package/one/organisation/strategy.md +869 -0
- package/one/organisation/vision.md +98 -0
- package/one/people/anthony-o-connell.md +440 -0
- package/one/people/people.md +567 -0
- package/one/repomix-output.md +92634 -0
- package/one/things/agentkit.md +349 -0
- package/one/things/agents/agent-backend.md +1401 -0
- package/one/things/agents/agent-builder.md +955 -0
- package/one/things/agents/agent-clean.md +709 -0
- package/one/things/agents/agent-clone.md +1341 -0
- package/one/things/agents/agent-designer.md +2177 -0
- package/one/things/agents/agent-director.md +1508 -0
- package/one/things/agents/agent-documenter.md +1049 -0
- package/one/things/agents/agent-frontend.md +1119 -0
- package/one/things/agents/agent-integrator.md +1192 -0
- package/one/things/agents/agent-problem-solver.md +1379 -0
- package/one/things/agents/agent-quality.md +1353 -0
- package/one/things/agents/agent-sales.md +986 -0
- package/one/things/cascade/cascade.yaml +464 -0
- package/one/things/cascade/docs/examples/1-1-agent-prompts/design.md +470 -0
- package/one/things/cascade/docs/examples/1-1-agent-prompts/tests.md +264 -0
- package/one/things/cascade/docs/examples/1-1-agent-prompts.md +486 -0
- package/one/things/cascade/docs/examples/1-2-yaml-orchestrator/design.md +497 -0
- package/one/things/cascade/docs/examples/1-2-yaml-orchestrator/tests.md +227 -0
- package/one/things/cascade/docs/examples/1-2-yaml-orchestrator.md +516 -0
- package/one/things/cascade/docs/examples/1-3-event-coordination/design.md +544 -0
- package/one/things/cascade/docs/examples/1-3-event-coordination/tests.md +223 -0
- package/one/things/cascade/docs/examples/1-3-event-coordination.md +508 -0
- package/one/things/cascade/docs/examples/1-4-knowledge-management/design.md +609 -0
- package/one/things/cascade/docs/examples/1-4-knowledge-management/tests.md +195 -0
- package/one/things/cascade/docs/examples/1-4-knowledge-management.md +577 -0
- package/one/things/cascade/docs/examples/1-5-quality-loops/design.md +797 -0
- package/one/things/cascade/docs/examples/1-5-quality-loops/tests.md +212 -0
- package/one/things/cascade/docs/examples/1-5-quality-loops.md +641 -0
- package/one/things/cascade/docs/examples/1-6-numbering-structure/design.md +610 -0
- package/one/things/cascade/docs/examples/1-6-numbering-structure/tests.md +213 -0
- package/one/things/cascade/docs/examples/1-6-numbering-structure.md +575 -0
- package/one/things/cascade/docs/examples/readme.md +222 -0
- package/one/things/cascade/docs/getting-started.md +515 -0
- package/one/things/cascade/docs/workflow.md +1372 -0
- package/one/things/cascade/readme.md +336 -0
- package/one/things/cascade/templates/feature-template.md +267 -0
- package/one/things/claude/agents/advocacy-activation-manager.md +685 -0
- package/one/things/claude/agents/advocacy-campaign-designer.md +663 -0
- package/one/things/claude/agents/analyst.md +483 -0
- package/one/things/claude/agents/architect.md +480 -0
- package/one/things/claude/agents/brand-identity-specialist.md +513 -0
- package/one/things/claude/agents/bstp-token-strategist.md +667 -0
- package/one/things/claude/agents/builder-repo.md +489 -0
- package/one/things/claude/agents/bullstamp-community-builder.md +574 -0
- package/one/things/claude/agents/bullstamp-marketing-orchestrator.md +506 -0
- package/one/things/claude/agents/bulltilt-platform-growth.md +567 -0
- package/one/things/claude/agents/company-bullstamp-character.md +587 -0
- package/one/things/claude/agents/company-bullstamp-community.md +292 -0
- package/one/things/claude/agents/company-bullstamp-marketing.md +292 -0
- package/one/things/claude/agents/company-bullstamp-token.md +292 -0
- package/one/things/claude/agents/company-bulltilt-growth.md +292 -0
- package/one/things/claude/agents/content-bibliography-formatter.md +381 -0
- package/one/things/claude/agents/content-calendar-planner.md +448 -0
- package/one/things/claude/agents/content-chapter-formatter.md +488 -0
- package/one/things/claude/agents/content-formatter.md +546 -0
- package/one/things/claude/agents/content-hook-specialist.md +462 -0
- package/one/things/claude/agents/content-image-formatter.md +535 -0
- package/one/things/claude/agents/content-introduction-formatter.md +485 -0
- package/one/things/claude/agents/content-multiplication-engine.md +556 -0
- package/one/things/claude/agents/content-playbook-writer.md +448 -0
- package/one/things/claude/agents/content-team-manager.md +622 -0
- package/one/things/claude/agents/content-toc-formatter.md +522 -0
- package/one/things/claude/agents/convex-backend-specialist.md +2561 -0
- package/one/things/claude/agents/core-manager.md +582 -0
- package/one/things/claude/agents/core-master.md +403 -0
- package/one/things/claude/agents/cross-functional-manager.md +471 -0
- package/one/things/claude/agents/crypto-airdrop-strategist.md +602 -0
- package/one/things/claude/agents/crypto-analytics-educator.md +553 -0
- package/one/things/claude/agents/crypto-architecture-specialist.md +466 -0
- package/one/things/claude/agents/crypto-community-analyst.md +298 -0
- package/one/things/claude/agents/crypto-community-psychologist.md +509 -0
- package/one/things/claude/agents/crypto-dex-optimization-expert.md +538 -0
- package/one/things/claude/agents/crypto-dex-optimizer.md +292 -0
- package/one/things/claude/agents/crypto-diamond-formation-specialist.md +513 -0
- package/one/things/claude/agents/crypto-diamond-hands.md +292 -0
- package/one/things/claude/agents/crypto-ecosystem-expansion-manager.md +554 -0
- package/one/things/claude/agents/crypto-engagement-specialist.md +540 -0
- package/one/things/claude/agents/crypto-market-researcher.md +292 -0
- package/one/things/claude/agents/crypto-marketing-orchestrator.md +523 -0
- package/one/things/claude/agents/crypto-network-effect-amplifier.md +569 -0
- package/one/things/claude/agents/crypto-optimization-analyst.md +554 -0
- package/one/things/claude/agents/crypto-strategic-synthesizer.md +517 -0
- package/one/things/claude/agents/crypto-team-manager.md +387 -0
- package/one/things/claude/agents/crypto-token-analyst.md +278 -0
- package/one/things/claude/agents/crypto-viral-content-creator.md +546 -0
- package/one/things/claude/agents/crypto-wallet-identification-expert.md +517 -0
- package/one/things/claude/agents/crypto-wallet-identifier.md +292 -0
- package/one/things/claude/agents/customer-journey-designer.md +481 -0
- package/one/things/claude/agents/customer-success-manager.md +581 -0
- package/one/things/claude/agents/dev.md +413 -0
- package/one/things/claude/agents/documenter.md +546 -0
- package/one/things/claude/agents/elevate-marketing-orchestrator.md +410 -0
- package/one/things/claude/agents/engagement-specialist.md +509 -0
- package/one/things/claude/agents/engineering-architect.md +387 -0
- package/one/things/claude/agents/engineering-business-analyst.md +537 -0
- package/one/things/claude/agents/engineering-developer.md +387 -0
- package/one/things/claude/agents/engineering-director.md +282 -0
- package/one/things/claude/agents/engineering-ingestor.md +649 -0
- package/one/things/claude/agents/engineering-product-manager.md +537 -0
- package/one/things/claude/agents/engineering-product-owner.md +537 -0
- package/one/things/claude/agents/engineering-project-coordinator.md +537 -0
- package/one/things/claude/agents/engineering-quality-assurance.md +393 -0
- package/one/things/claude/agents/engineering-team-manager.md +512 -0
- package/one/things/claude/agents/engineering-user-experience.md +387 -0
- package/one/things/claude/agents/framework-elevate-manager.md +294 -0
- package/one/things/claude/agents/improver.md +763 -0
- package/one/things/claude/agents/intelligence-team-manager.md +385 -0
- package/one/things/claude/agents/lead-capture-expert.md +466 -0
- package/one/things/claude/agents/lead-magnet-creator.md +453 -0
- package/one/things/claude/agents/market-research-analyst.md +412 -0
- package/one/things/claude/agents/marketing-brand-identity.md +314 -0
- package/one/things/claude/agents/marketing-content-hooks.md +450 -0
- package/one/things/claude/agents/marketing-content-multiplier.md +326 -0
- package/one/things/claude/agents/marketing-content-poster.md +361 -0
- package/one/things/claude/agents/marketing-customer-journey.md +326 -0
- package/one/things/claude/agents/marketing-director.md +397 -0
- package/one/things/claude/agents/marketing-engagement.md +326 -0
- package/one/things/claude/agents/marketing-lead-capture.md +326 -0
- package/one/things/claude/agents/marketing-lead-magnet.md +326 -0
- package/one/things/claude/agents/marketing-network-effects.md +326 -0
- package/one/things/claude/agents/marketing-nurture-campaigns.md +326 -0
- package/one/things/claude/agents/marketing-share-optimizer.md +326 -0
- package/one/things/claude/agents/marketing-team-manager.md +446 -0
- package/one/things/claude/agents/marketing-viral-growth.md +201 -0
- package/one/things/claude/agents/mission-commander.md +373 -0
- package/one/things/claude/agents/network-effect-analyst.md +587 -0
- package/one/things/claude/agents/nextjs-15-specialist.md +1547 -0
- package/one/things/claude/agents/npx.md +890 -0
- package/one/things/claude/agents/nurture-campaign-manager.md +531 -0
- package/one/things/claude/agents/one-master.md +355 -0
- package/one/things/claude/agents/one-orchestrator.md +315 -0
- package/one/things/claude/agents/one.md +601 -0
- package/one/things/claude/agents/playbook-generator.md +503 -0
- package/one/things/claude/agents/pm.md +326 -0
- package/one/things/claude/agents/po.md +345 -0
- package/one/things/claude/agents/qa.md +336 -0
- package/one/things/claude/agents/research-foundation-analyst.md +307 -0
- package/one/things/claude/agents/research-intelligence-gatherer.md +408 -0
- package/one/things/claude/agents/research-market-analyst.md +307 -0
- package/one/things/claude/agents/research-team-manager.md +482 -0
- package/one/things/claude/agents/sales-environment-optimizer.md +494 -0
- package/one/things/claude/agents/sales-team-manager.md +400 -0
- package/one/things/claude/agents/sales-upsell-strategist.md +307 -0
- package/one/things/claude/agents/service-advocacy-campaigns.md +307 -0
- package/one/things/claude/agents/service-advocacy-manager.md +307 -0
- package/one/things/claude/agents/service-success-manager.md +307 -0
- package/one/things/claude/agents/service-team-manager.md +400 -0
- package/one/things/claude/agents/shadcn-ui-design-system-specialist.md +2302 -0
- package/one/things/claude/agents/share-optimization-specialist.md +551 -0
- package/one/things/claude/agents/sm.md +327 -0
- package/one/things/claude/agents/story-teller.md +473 -0
- package/one/things/claude/agents/task-master.md +596 -0
- package/one/things/claude/agents/tauri-cross-platform-specialist.md +1827 -0
- package/one/things/claude/agents/tester.md +556 -0
- package/one/things/claude/agents/the-bull-character-manager.md +580 -0
- package/one/things/claude/agents/tools-playbook-generator.md +489 -0
- package/one/things/claude/agents/turbo-repo-builder.md +316 -0
- package/one/things/claude/agents/upsell-strategist.md +480 -0
- package/one/things/claude/agents/ux-expert.md +335 -0
- package/one/things/claude/agents/viral-growth-orchestrator.md +497 -0
- package/one/things/claude/claude-code-hooks-development.json +21 -0
- package/one/things/claude/claude-code-hooks-production.json +21 -0
- package/one/things/claude/claude-code-hooks.json +25 -0
- package/one/things/claude/commands/agent.md +104 -0
- package/one/things/claude/commands/cascade-status.md +128 -0
- package/one/things/claude/commands/ingest.md +290 -0
- package/one/things/claude/commands/ingestor.md +136 -0
- package/one/things/claude/commands/mission.md +83 -0
- package/one/things/claude/commands/npx.md +133 -0
- package/one/things/claude/commands/one.md +440 -0
- package/one/things/claude/commands/quality-check.md +204 -0
- package/one/things/claude/commands/smart-route.md +220 -0
- package/one/things/claude/commands/start.md +121 -0
- package/one/things/claude/commands/story.md +83 -0
- package/one/things/claude/commands/task.md +173 -0
- package/one/things/claude/hook-bypass.json +32 -0
- package/one/things/claude/hooks/agent-hook-config.json +427 -0
- package/one/things/claude/hooks/agent-hook-manager.js +525 -0
- package/one/things/claude/hooks/agent-load-balancer.js +271 -0
- package/one/things/claude/hooks/agent-request-interceptor.js +70 -0
- package/one/things/claude/hooks/build-hook.sh +156 -0
- package/one/things/claude/hooks/cascade-feedback.js +297 -0
- package/one/things/claude/hooks/cascade-integration-hooks.js +648 -0
- package/one/things/claude/hooks/cleanup-hook.sh +201 -0
- package/one/things/claude/hooks/continuous-improvement-monitor.js +510 -0
- package/one/things/claude/hooks/file-organization-engine.js +427 -0
- package/one/things/claude/hooks/file-organization-hook.sh +80 -0
- package/one/things/claude/hooks/file-organization-monitor.js +269 -0
- package/one/things/claude/hooks/format-hook.sh +43 -0
- package/one/things/claude/hooks/hook-bypass.sh +293 -0
- package/one/things/claude/hooks/hook-config-manager.js +202 -0
- package/one/things/claude/hooks/hook-debouncer.sh +62 -0
- package/one/things/claude/hooks/hook-logger.sh +89 -0
- package/one/things/claude/hooks/hook-orchestrator.js +662 -0
- package/one/things/claude/hooks/hook-performance-report.js +120 -0
- package/one/things/claude/hooks/lint-hook.sh +140 -0
- package/one/things/claude/hooks/mcp-cascade-integration.js +816 -0
- package/one/things/claude/hooks/memory-optimizer.js +510 -0
- package/one/things/claude/hooks/notification-hook.sh +204 -0
- package/one/things/claude/hooks/ontology-compliance.js +394 -0
- package/one/things/claude/hooks/ontology-hook-manager.js +316 -0
- package/one/things/claude/hooks/ontology-validation-engine.js +317 -0
- package/one/things/claude/hooks/ontology-validation-hook.sh +86 -0
- package/one/things/claude/hooks/performance-metrics.json +25 -0
- package/one/things/claude/hooks/performance-monitoring-hook.js +422 -0
- package/one/things/claude/hooks/quality-scoring-engine.js +834 -0
- package/one/things/claude/hooks/security-hook.sh +256 -0
- package/one/things/claude/hooks/simple-load-balancer.js +238 -0
- package/one/things/claude/hooks/startup-optimizer.js +625 -0
- package/one/things/claude/hooks/story-scoring-system.js +445 -0
- package/one/things/claude/hooks/story-validation-engine.js +473 -0
- package/one/things/claude/hooks/story-validation-hook-enhanced.sh +210 -0
- package/one/things/claude/hooks/story-validation-hook.sh +145 -0
- package/one/things/claude/hooks/structure-synchronizer.js +194 -0
- package/one/things/claude/hooks/sub-agent-output-validator.js +647 -0
- package/one/things/claude/hooks/sub-agent-validation-hook.js +343 -0
- package/one/things/claude/hooks/test-hook.sh +145 -0
- package/one/things/claude/hooks/test-story-validation.sh +170 -0
- package/one/things/claude/hooks/trinity-validation-system.js +392 -0
- package/one/things/claude/settings-local.json +86 -0
- package/one/things/cli-code.md +652 -0
- package/one/things/cli-compiler-code.md +652 -0
- package/one/things/cli.md +1045 -0
- package/one/things/components/card-shadcn.md +929 -0
- package/one/things/components/card.md +1050 -0
- package/one/things/components.md +1669 -0
- package/one/things/componets.md +4 -0
- package/one/things/copilotkit.md +1559 -0
- package/one/things/creator-diagram.md +166 -0
- package/one/things/examples/children/lemonade-stand.md +366 -0
- package/one/things/examples/enterprise/crm-saas.md +1429 -0
- package/one/things/features/1-1-agent-prompts/design.md +470 -0
- package/one/things/features/1-1-agent-prompts/tests.md +264 -0
- package/one/things/features/1-1-agent-prompts.md +486 -0
- package/one/things/features/1-2-yaml-orchestrator/design.md +497 -0
- package/one/things/features/1-2-yaml-orchestrator/tests.md +227 -0
- package/one/things/features/1-2-yaml-orchestrator.md +516 -0
- package/one/things/features/1-3-event-coordination/design.md +544 -0
- package/one/things/features/1-3-event-coordination/tests.md +223 -0
- package/one/things/features/1-3-event-coordination.md +508 -0
- package/one/things/features/1-4-knowledge-management/design.md +609 -0
- package/one/things/features/1-4-knowledge-management/tests.md +195 -0
- package/one/things/features/1-4-knowledge-management.md +577 -0
- package/one/things/features/1-5-quality-loops/design.md +797 -0
- package/one/things/features/1-5-quality-loops/tests.md +212 -0
- package/one/things/features/1-5-quality-loops.md +641 -0
- package/one/things/features/1-6-numbering-structure/design.md +610 -0
- package/one/things/features/1-6-numbering-structure/tests.md +213 -0
- package/one/things/features/1-6-numbering-structure.md +575 -0
- package/one/things/features/2-cli.md +1235 -0
- package/one/things/features/use-one-backend.md +1180 -0
- package/one/things/ideas/1-create-workflow.md +189 -0
- package/one/things/plans/1-create-workflow-status.md +555 -0
- package/one/things/plans/1-create-workflow.md +713 -0
- package/one/things/plans/app.md +761 -0
- package/one/things/plans/better-auth-any-backend-revised.md +1065 -0
- package/one/things/plans/better-auth-any-backend.md +1852 -0
- package/one/things/plans/better-auth-available-features.md +235 -0
- package/one/things/plans/big-plan.md +38 -0
- package/one/things/plans/convex-better-auth.md +1109 -0
- package/one/things/plans/convex-on-off.md +389 -0
- package/one/things/plans/desktop.md +1121 -0
- package/one/things/plans/effect-components.md +1669 -0
- package/one/things/plans/effect.md +973 -0
- package/one/things/plans/email.md +953 -0
- package/one/things/plans/enhance-auth.md +1669 -0
- package/one/things/plans/install-components.md +198 -0
- package/one/things/plans/landing.md +728 -0
- package/one/things/plans/layout.md +205 -0
- package/one/things/plans/mail-backend.md +1308 -0
- package/one/things/plans/mail.md +2624 -0
- package/one/things/plans/next-features.md +83 -0
- package/one/things/plans/one.md +658 -0
- package/one/things/plans/ontology-6-dimensions.md +2216 -0
- package/one/things/plans/ontology-driven-strategy.md +866 -0
- package/one/things/plans/ontology-ui-approach.md +357 -0
- package/one/things/plans/open-agent.md +785 -0
- package/one/things/plans/performace.md +90 -0
- package/one/things/plans/releases.md +809 -0
- package/one/things/plans/repos.md +76 -0
- package/one/things/plans/separate-copy-2.md +1293 -0
- package/one/things/plans/separate-copy-3.md +2458 -0
- package/one/things/plans/separate-copy.md +1293 -0
- package/one/things/plans/separate.md +1983 -0
- package/one/things/plans/shadcn-integration-summary.md +450 -0
- package/one/things/plans/sidebar.md +172 -0
- package/one/things/plans/small-fixes.md +5 -0
- package/one/things/plans/test-backend-connection.md +476 -0
- package/one/things/plans/workflow-files.md +1196 -0
- package/one/things/plans/workflow.md +1372 -0
- package/one/things/products/cascade-landing-page.md +737 -0
- package/one/things/products/cascade.md +1518 -0
- package/one/things/products/context-engineering.md +1427 -0
- package/one/things/products/onthology.md +0 -0
- package/one/things/products/ontology-ui-shadcn.md +1280 -0
- package/one/things/products/ontology-ui.md +1387 -0
- package/one/things/products/ontology.md +717 -0
- package/one/things/products/sdk.md +557 -0
- package/one/things/promptkit.md +903 -0
- package/one/things/service-providers-new.md +982 -0
- package/one/things/service-providers.md +1092 -0
- package/one/things/things.md +349 -0
- package/one/things/todo.md +1248 -0
- package/package.json +5 -2
|
@@ -0,0 +1,1165 @@
|
|
|
1
|
+
# ONE Platform - Ontology Specification (YAML)
|
|
2
|
+
|
|
3
|
+
version: 2.0.0
|
|
4
|
+
status: Complete - Reality-Aware Architecture
|
|
5
|
+
principle: This ontology models reality in six dimensions. All protocols map TO this ontology via metadata.
|
|
6
|
+
|
|
7
|
+
# ======================================================================
|
|
8
|
+
# THE 6-DIMENSION REALITY MODEL
|
|
9
|
+
# ======================================================================
|
|
10
|
+
|
|
11
|
+
dimensions:
|
|
12
|
+
- name: organizations
|
|
13
|
+
description: Multi-tenant isolation boundary - who owns what at org level
|
|
14
|
+
purpose: Partition the system for multi-tenant scale
|
|
15
|
+
|
|
16
|
+
- name: people
|
|
17
|
+
description: Authorization & governance - platform owner, org owners
|
|
18
|
+
purpose: Define who can do what. People direct organizations, customize AI agents, and govern access
|
|
19
|
+
|
|
20
|
+
- name: things
|
|
21
|
+
description: Every "thing" - users, agents, content, tokens, courses
|
|
22
|
+
purpose: All addressable objects in the system
|
|
23
|
+
|
|
24
|
+
- name: connections
|
|
25
|
+
description: Every relationship - owns, follows, taught_by, powers
|
|
26
|
+
purpose: All relationships between things
|
|
27
|
+
|
|
28
|
+
- name: events
|
|
29
|
+
description: Every action - purchased, created, viewed, completed
|
|
30
|
+
purpose: All time-stamped occurrences
|
|
31
|
+
|
|
32
|
+
- name: knowledge
|
|
33
|
+
description: Labels + chunks + vectors powering RAG & search
|
|
34
|
+
purpose: Taxonomy (labels) and retrieval-augmented generation (RAG)
|
|
35
|
+
|
|
36
|
+
golden_rule: "If you can't map your feature to these 6 dimensions, you're thinking about it wrong."
|
|
37
|
+
|
|
38
|
+
simplicity: "ONE is six dimensions — organizations partition, people authorize, things exist, connections relate, events record, and knowledge understands. Everything composes from these building blocks."
|
|
39
|
+
|
|
40
|
+
# ======================================================================
|
|
41
|
+
# ORGANIZATIONS: The Isolation Boundary
|
|
42
|
+
# ======================================================================
|
|
43
|
+
|
|
44
|
+
organizations:
|
|
45
|
+
structure:
|
|
46
|
+
_id: Id<'organizations'>
|
|
47
|
+
name: string # REQUIRED: Display name
|
|
48
|
+
slug: string # REQUIRED: URL identifier (/org/slug)
|
|
49
|
+
domain: string? # OPTIONAL: Custom domain
|
|
50
|
+
logo: string? # OPTIONAL: Organization logo
|
|
51
|
+
description: string? # OPTIONAL: About text
|
|
52
|
+
status:
|
|
53
|
+
- active
|
|
54
|
+
- suspended
|
|
55
|
+
- trial
|
|
56
|
+
- cancelled
|
|
57
|
+
plan:
|
|
58
|
+
- starter
|
|
59
|
+
- pro
|
|
60
|
+
- enterprise
|
|
61
|
+
limits:
|
|
62
|
+
users: number
|
|
63
|
+
storage: number # GB
|
|
64
|
+
apiCalls: number
|
|
65
|
+
inference: number # Monthly LLM calls
|
|
66
|
+
usage:
|
|
67
|
+
users: number
|
|
68
|
+
storage: number
|
|
69
|
+
apiCalls: number
|
|
70
|
+
inference: number
|
|
71
|
+
billing:
|
|
72
|
+
customerId: string? # Stripe customer
|
|
73
|
+
subscriptionId: string?
|
|
74
|
+
settings:
|
|
75
|
+
allowSignups: boolean
|
|
76
|
+
requireEmailVerification: boolean
|
|
77
|
+
enableTwoFactor: boolean
|
|
78
|
+
createdAt: number
|
|
79
|
+
updatedAt: number
|
|
80
|
+
trialEndsAt: number?
|
|
81
|
+
|
|
82
|
+
common_fields:
|
|
83
|
+
identity: [name, slug]
|
|
84
|
+
web: [slug, name, logo, description, domain]
|
|
85
|
+
operations: [status, plan, limits, usage, settings]
|
|
86
|
+
|
|
87
|
+
why_matters:
|
|
88
|
+
- Multi-Tenant Isolation: Each org's data is completely separate
|
|
89
|
+
- Resource Quotas: Control costs and usage per organization
|
|
90
|
+
- Custom Branding: Each org can have unique frontend/domain
|
|
91
|
+
- Billing Flexibility: Per-org subscriptions and revenue sharing
|
|
92
|
+
|
|
93
|
+
# ======================================================================
|
|
94
|
+
# PEOPLE: Authorization & Governance
|
|
95
|
+
# ======================================================================
|
|
96
|
+
|
|
97
|
+
people:
|
|
98
|
+
structure:
|
|
99
|
+
_id: Id<'people'>
|
|
100
|
+
email: string # REQUIRED: Auth identifier
|
|
101
|
+
username: string # REQUIRED: URL identifier (/username)
|
|
102
|
+
displayName: string # REQUIRED: Display name
|
|
103
|
+
role:
|
|
104
|
+
- platform_owner
|
|
105
|
+
- org_owner
|
|
106
|
+
- org_user
|
|
107
|
+
- customer
|
|
108
|
+
organizationId: Id<'organizations'>? # Current/default org
|
|
109
|
+
permissions: string[]? # Additional permissions
|
|
110
|
+
bio: string? # OPTIONAL: About text
|
|
111
|
+
avatar: string? # OPTIONAL: Profile image
|
|
112
|
+
organizations: Id<'organizations'>[] # All orgs this person belongs to
|
|
113
|
+
createdAt: number
|
|
114
|
+
updatedAt: number
|
|
115
|
+
|
|
116
|
+
common_fields:
|
|
117
|
+
identity: [email, username, displayName]
|
|
118
|
+
auth: [email, username, role, permissions]
|
|
119
|
+
web: [username, displayName, avatar, bio]
|
|
120
|
+
governance: [role, organizationId, organizations, permissions]
|
|
121
|
+
|
|
122
|
+
roles:
|
|
123
|
+
platform_owner:
|
|
124
|
+
description: Owns the ONE Platform
|
|
125
|
+
revenue: 100% from platform-level services
|
|
126
|
+
access: Can access all organizations (support/debugging)
|
|
127
|
+
capabilities: Creates new organizations
|
|
128
|
+
|
|
129
|
+
org_owner:
|
|
130
|
+
description: Owns/manages one or more organizations
|
|
131
|
+
control: Users, permissions, billing within org
|
|
132
|
+
customization: AI agents and frontend
|
|
133
|
+
revenue: Revenue sharing with platform
|
|
134
|
+
|
|
135
|
+
org_user:
|
|
136
|
+
description: Works within an organization
|
|
137
|
+
permissions: Limited permissions (defined by org owner)
|
|
138
|
+
capabilities: Can create content, run agents (within quotas)
|
|
139
|
+
|
|
140
|
+
customer:
|
|
141
|
+
description: External user consuming content
|
|
142
|
+
access: Purchases tokens, enrolls in courses
|
|
143
|
+
admin: No admin access
|
|
144
|
+
|
|
145
|
+
why_matters:
|
|
146
|
+
- Authorization: Every action must have an actor (person)
|
|
147
|
+
- Governance: Org owners control who can do what
|
|
148
|
+
- Audit Trail: Events log who did what when
|
|
149
|
+
- Customization: People teach AI agents their preferences
|
|
150
|
+
|
|
151
|
+
# ======================================================================
|
|
152
|
+
# KNOWLEDGE: Labels, Chunks, and Vectors (RAG)
|
|
153
|
+
# ======================================================================
|
|
154
|
+
|
|
155
|
+
knowledge:
|
|
156
|
+
purpose: Unify taxonomy ("tags") and retrieval-augmented generation (RAG) under one table
|
|
157
|
+
|
|
158
|
+
principles:
|
|
159
|
+
- Protocol-agnostic: store protocol details in metadata
|
|
160
|
+
- Many-to-many: link knowledge ⇄ things via thingKnowledge with optional context metadata
|
|
161
|
+
- Scalable: consolidated types minimize index fan-out; embeddings enable semantic search
|
|
162
|
+
|
|
163
|
+
types:
|
|
164
|
+
- label: # replaces legacy "tag"; lightweight categorical marker
|
|
165
|
+
- document: # wrapper for a source text/blob (pre-chunking)
|
|
166
|
+
- chunk: # atomic chunk of text with embedding
|
|
167
|
+
- vector_only: # embedding without stored text (e.g., privacy)
|
|
168
|
+
|
|
169
|
+
structure:
|
|
170
|
+
_id: Id<'knowledge'>
|
|
171
|
+
knowledgeType: KnowledgeType
|
|
172
|
+
text: string? # optional for label/vector_only
|
|
173
|
+
embedding: number[]? # Float32 vector; model-dependent dimension
|
|
174
|
+
embeddingModel: string? # e.g., "text-embedding-3-large"
|
|
175
|
+
embeddingDim: number?
|
|
176
|
+
sourceThingId: Id<'things'>? # Primary source entity
|
|
177
|
+
sourceField: string? # e.g., 'content', 'transcript', 'title'
|
|
178
|
+
chunk:
|
|
179
|
+
index: number
|
|
180
|
+
start: number?
|
|
181
|
+
end: number?
|
|
182
|
+
tokenCount: number?
|
|
183
|
+
overlap: number?
|
|
184
|
+
labels: string[]? # Replaces per-thing tags; applied to knowledge
|
|
185
|
+
metadata: Record<string, any>? # protocol, language, mime, hash, version
|
|
186
|
+
createdAt: number
|
|
187
|
+
updatedAt: number
|
|
188
|
+
deletedAt: number?
|
|
189
|
+
|
|
190
|
+
junction_thingKnowledge:
|
|
191
|
+
_id: Id<'thingKnowledge'>
|
|
192
|
+
thingId: Id<'things'>
|
|
193
|
+
knowledgeId: Id<'knowledge'>
|
|
194
|
+
role:
|
|
195
|
+
- label
|
|
196
|
+
- summary
|
|
197
|
+
- chunk_of
|
|
198
|
+
- caption
|
|
199
|
+
- keyword
|
|
200
|
+
metadata: Record<string, any>?
|
|
201
|
+
createdAt: number
|
|
202
|
+
|
|
203
|
+
indexes:
|
|
204
|
+
- knowledge.by_type (knowledgeType)
|
|
205
|
+
- knowledge.by_source (sourceThingId)
|
|
206
|
+
- knowledge.by_created (createdAt)
|
|
207
|
+
- thingKnowledge.by_thing (thingId)
|
|
208
|
+
- thingKnowledge.by_knowledge (knowledgeId)
|
|
209
|
+
- knowledge.by_embedding (vector index for ANN search)
|
|
210
|
+
|
|
211
|
+
governance:
|
|
212
|
+
policy: Default is free-form, user-extensible knowledge labels for maximum flexibility
|
|
213
|
+
curated_prefixes:
|
|
214
|
+
- skill:*
|
|
215
|
+
- industry:*
|
|
216
|
+
- topic:*
|
|
217
|
+
- format:*
|
|
218
|
+
- goal:*
|
|
219
|
+
- audience:*
|
|
220
|
+
- technology:*
|
|
221
|
+
- status:*
|
|
222
|
+
- capability:*
|
|
223
|
+
- protocol:*
|
|
224
|
+
- payment_method:*
|
|
225
|
+
- network:*
|
|
226
|
+
validation: Enforce label hygiene (no duplicates within scope)
|
|
227
|
+
ownership: Platform/organization owners may curate official labels
|
|
228
|
+
|
|
229
|
+
# ======================================================================
|
|
230
|
+
# THINGS: All The "Things" (66 Types)
|
|
231
|
+
# ======================================================================
|
|
232
|
+
|
|
233
|
+
things:
|
|
234
|
+
test: "If you can point at it and say 'this is a ___', it's a thing"
|
|
235
|
+
|
|
236
|
+
structure:
|
|
237
|
+
_id: Id<"things">
|
|
238
|
+
type: ThingType
|
|
239
|
+
name: string
|
|
240
|
+
properties: Record<string, any> # Type-specific properties (JSON)
|
|
241
|
+
status:
|
|
242
|
+
- active
|
|
243
|
+
- inactive
|
|
244
|
+
- draft
|
|
245
|
+
- published
|
|
246
|
+
- archived
|
|
247
|
+
createdAt: number
|
|
248
|
+
updatedAt: number
|
|
249
|
+
deletedAt: number?
|
|
250
|
+
|
|
251
|
+
types:
|
|
252
|
+
core:
|
|
253
|
+
- creator # Human creator (role: platform_owner, org_owner, org_user, customer)
|
|
254
|
+
- ai_clone # Digital twin of creator
|
|
255
|
+
- audience_member # Fan/user (role: customer)
|
|
256
|
+
- organization # Multi-tenant organization
|
|
257
|
+
|
|
258
|
+
business_agents:
|
|
259
|
+
- strategy_agent # Vision, planning, OKRs
|
|
260
|
+
- research_agent # Market, trends, competitors
|
|
261
|
+
- marketing_agent # Content strategy, SEO, distribution
|
|
262
|
+
- sales_agent # Funnels, conversion, follow-up
|
|
263
|
+
- service_agent # Support, onboarding, success
|
|
264
|
+
- design_agent # Brand, UI/UX, assets
|
|
265
|
+
- engineering_agent # Tech, integration, automation
|
|
266
|
+
- finance_agent # Revenue, costs, forecasting
|
|
267
|
+
- legal_agent # Compliance, contracts, IP
|
|
268
|
+
- intelligence_agent # Analytics, insights, predictions
|
|
269
|
+
|
|
270
|
+
content:
|
|
271
|
+
- blog_post # Written content
|
|
272
|
+
- video # Video content
|
|
273
|
+
- podcast # Audio content
|
|
274
|
+
- social_post # Social media post
|
|
275
|
+
- email # Email content
|
|
276
|
+
- course # Educational course
|
|
277
|
+
- lesson # Individual lesson
|
|
278
|
+
|
|
279
|
+
products:
|
|
280
|
+
- digital_product # Templates, tools, assets
|
|
281
|
+
- membership # Tiered membership
|
|
282
|
+
- consultation # 1-on-1 session
|
|
283
|
+
- nft # NFT collectible
|
|
284
|
+
|
|
285
|
+
community:
|
|
286
|
+
- community # Community space
|
|
287
|
+
- conversation # Thread/discussion
|
|
288
|
+
- message # Individual message
|
|
289
|
+
|
|
290
|
+
token:
|
|
291
|
+
- token # Actual token instance
|
|
292
|
+
- token_contract # Smart contract
|
|
293
|
+
|
|
294
|
+
knowledge_types:
|
|
295
|
+
- knowledge_item # Piece of creator knowledge
|
|
296
|
+
- embedding # Vector embedding
|
|
297
|
+
|
|
298
|
+
platform:
|
|
299
|
+
- website # Auto-generated creator site
|
|
300
|
+
- landing_page # Custom landing pages
|
|
301
|
+
- template # Design templates
|
|
302
|
+
- livestream # Live broadcast
|
|
303
|
+
- recording # Saved livestream content
|
|
304
|
+
- media_asset # Images, videos, files
|
|
305
|
+
|
|
306
|
+
business:
|
|
307
|
+
- payment # Payment transaction
|
|
308
|
+
- subscription # Recurring subscription
|
|
309
|
+
- invoice # Invoice record
|
|
310
|
+
- metric # Tracked metric
|
|
311
|
+
- insight # AI-generated insight
|
|
312
|
+
- prediction # AI prediction
|
|
313
|
+
- report # Analytics report
|
|
314
|
+
|
|
315
|
+
auth_session:
|
|
316
|
+
- session # User session (Better Auth)
|
|
317
|
+
- oauth_account # OAuth connection (GitHub, Google)
|
|
318
|
+
- verification_token # Email/2FA verification token
|
|
319
|
+
- password_reset_token # Password reset token
|
|
320
|
+
|
|
321
|
+
ui_preferences:
|
|
322
|
+
- ui_preferences # User UI settings (theme, layout, etc.)
|
|
323
|
+
|
|
324
|
+
marketing:
|
|
325
|
+
- notification # System notification
|
|
326
|
+
- email_campaign # Email marketing campaign
|
|
327
|
+
- announcement # Platform announcement
|
|
328
|
+
- referral # Referral record
|
|
329
|
+
- campaign # Marketing campaign
|
|
330
|
+
- lead # Potential customer/lead
|
|
331
|
+
|
|
332
|
+
external:
|
|
333
|
+
- external_agent # External AI agent (ElizaOS, etc.)
|
|
334
|
+
- external_workflow # External workflow (n8n, Zapier, Make)
|
|
335
|
+
- external_connection # Connection config to external service
|
|
336
|
+
|
|
337
|
+
protocol:
|
|
338
|
+
- mandate # Intent or cart mandate (AP2)
|
|
339
|
+
- product # Sellable product (ACP/marketplace)
|
|
340
|
+
|
|
341
|
+
properties_by_type:
|
|
342
|
+
creator:
|
|
343
|
+
email: string
|
|
344
|
+
username: string
|
|
345
|
+
displayName: string
|
|
346
|
+
bio: string?
|
|
347
|
+
avatar: string?
|
|
348
|
+
niche: string[]
|
|
349
|
+
expertise: string[]
|
|
350
|
+
targetAudience: string
|
|
351
|
+
brandColors:
|
|
352
|
+
primary: string
|
|
353
|
+
secondary: string
|
|
354
|
+
accent: string
|
|
355
|
+
totalFollowers: number
|
|
356
|
+
totalContent: number
|
|
357
|
+
totalRevenue: number
|
|
358
|
+
role:
|
|
359
|
+
- platform_owner
|
|
360
|
+
- org_owner
|
|
361
|
+
- org_user
|
|
362
|
+
- customer
|
|
363
|
+
organizationId: Id<"things">?
|
|
364
|
+
permissions: string[]?
|
|
365
|
+
|
|
366
|
+
organization:
|
|
367
|
+
name: string
|
|
368
|
+
slug: string
|
|
369
|
+
domain: string?
|
|
370
|
+
logo: string?
|
|
371
|
+
description: string?
|
|
372
|
+
status:
|
|
373
|
+
- active
|
|
374
|
+
- suspended
|
|
375
|
+
- trial
|
|
376
|
+
- cancelled
|
|
377
|
+
plan:
|
|
378
|
+
- starter
|
|
379
|
+
- pro
|
|
380
|
+
- enterprise
|
|
381
|
+
limits:
|
|
382
|
+
users: number
|
|
383
|
+
storage: number
|
|
384
|
+
apiCalls: number
|
|
385
|
+
usage:
|
|
386
|
+
users: number
|
|
387
|
+
storage: number
|
|
388
|
+
apiCalls: number
|
|
389
|
+
billing:
|
|
390
|
+
customerId: string?
|
|
391
|
+
subscriptionId: string?
|
|
392
|
+
currentPeriodEnd: number?
|
|
393
|
+
settings:
|
|
394
|
+
allowSignups: boolean
|
|
395
|
+
requireEmailVerification: boolean
|
|
396
|
+
enableTwoFactor: boolean
|
|
397
|
+
allowedDomains: string[]?
|
|
398
|
+
createdAt: number
|
|
399
|
+
trialEndsAt: number?
|
|
400
|
+
|
|
401
|
+
ai_clone:
|
|
402
|
+
voiceId: string?
|
|
403
|
+
voiceProvider:
|
|
404
|
+
- elevenlabs
|
|
405
|
+
- azure
|
|
406
|
+
- custom
|
|
407
|
+
appearanceId: string?
|
|
408
|
+
appearanceProvider:
|
|
409
|
+
- d-id
|
|
410
|
+
- heygen
|
|
411
|
+
- custom
|
|
412
|
+
systemPrompt: string
|
|
413
|
+
temperature: number
|
|
414
|
+
knowledgeBaseSize: number
|
|
415
|
+
lastTrainingDate: number
|
|
416
|
+
totalInteractions: number
|
|
417
|
+
satisfactionScore: number
|
|
418
|
+
|
|
419
|
+
token:
|
|
420
|
+
contractAddress: string
|
|
421
|
+
blockchain:
|
|
422
|
+
- base
|
|
423
|
+
- ethereum
|
|
424
|
+
- polygon
|
|
425
|
+
standard:
|
|
426
|
+
- ERC20
|
|
427
|
+
- ERC721
|
|
428
|
+
- ERC1155
|
|
429
|
+
totalSupply: number
|
|
430
|
+
circulatingSupply: number
|
|
431
|
+
price: number
|
|
432
|
+
marketCap: number
|
|
433
|
+
utility: string[]
|
|
434
|
+
burnRate: number
|
|
435
|
+
holders: number
|
|
436
|
+
transactions24h: number
|
|
437
|
+
volume24h: number
|
|
438
|
+
|
|
439
|
+
course:
|
|
440
|
+
title: string
|
|
441
|
+
description: string
|
|
442
|
+
thumbnail: string?
|
|
443
|
+
modules: number
|
|
444
|
+
lessons: number
|
|
445
|
+
totalDuration: number
|
|
446
|
+
price: number
|
|
447
|
+
currency: string
|
|
448
|
+
tokenPrice: number?
|
|
449
|
+
enrollments: number
|
|
450
|
+
completions: number
|
|
451
|
+
averageRating: number
|
|
452
|
+
generatedBy:
|
|
453
|
+
- ai
|
|
454
|
+
- human
|
|
455
|
+
- hybrid
|
|
456
|
+
personalizationLevel:
|
|
457
|
+
- none
|
|
458
|
+
- basic
|
|
459
|
+
- advanced
|
|
460
|
+
|
|
461
|
+
# ======================================================================
|
|
462
|
+
# CONNECTIONS: All The Relationships (25 Types)
|
|
463
|
+
# ======================================================================
|
|
464
|
+
|
|
465
|
+
connections:
|
|
466
|
+
test: "If you're describing how thing X relates to thing Y, it's a connection"
|
|
467
|
+
|
|
468
|
+
principle: Consolidated types with metadata for variants. Protocol identity stored in metadata.protocol
|
|
469
|
+
|
|
470
|
+
structure:
|
|
471
|
+
_id: Id<"connections">
|
|
472
|
+
fromThingId: Id<"things">
|
|
473
|
+
toThingId: Id<"things">
|
|
474
|
+
relationshipType: ConnectionType
|
|
475
|
+
metadata: Record<string, any>? # relationship data
|
|
476
|
+
strength: number? # 0-1
|
|
477
|
+
validFrom: number?
|
|
478
|
+
validTo: number?
|
|
479
|
+
createdAt: number
|
|
480
|
+
updatedAt: number?
|
|
481
|
+
|
|
482
|
+
types:
|
|
483
|
+
ownership:
|
|
484
|
+
- owns
|
|
485
|
+
- created_by
|
|
486
|
+
|
|
487
|
+
ai_relationships:
|
|
488
|
+
- clone_of
|
|
489
|
+
- trained_on
|
|
490
|
+
- powers
|
|
491
|
+
|
|
492
|
+
content_relationships:
|
|
493
|
+
- authored
|
|
494
|
+
- generated_by
|
|
495
|
+
- published_to
|
|
496
|
+
- part_of
|
|
497
|
+
- references
|
|
498
|
+
|
|
499
|
+
community_relationships:
|
|
500
|
+
- member_of
|
|
501
|
+
- following
|
|
502
|
+
- moderates
|
|
503
|
+
- participated_in
|
|
504
|
+
|
|
505
|
+
business_relationships:
|
|
506
|
+
- manages
|
|
507
|
+
- reports_to
|
|
508
|
+
- collaborates_with
|
|
509
|
+
|
|
510
|
+
token_relationships:
|
|
511
|
+
- holds_tokens
|
|
512
|
+
- staked_in
|
|
513
|
+
- earned_from
|
|
514
|
+
|
|
515
|
+
product_relationships:
|
|
516
|
+
- purchased
|
|
517
|
+
- enrolled_in
|
|
518
|
+
- completed
|
|
519
|
+
- teaching
|
|
520
|
+
|
|
521
|
+
consolidated:
|
|
522
|
+
transacted: # Payment/subscription/invoice (metadata.transactionType + protocol)
|
|
523
|
+
notified: # Notifications (metadata.channel + notificationType)
|
|
524
|
+
referred: # Referrals (metadata.referralType)
|
|
525
|
+
communicated: # Agent/protocol communication (metadata.protocol + messageType)
|
|
526
|
+
delegated: # Task/workflow delegation (metadata.protocol + taskType)
|
|
527
|
+
approved: # Approvals (metadata.approvalType + protocol)
|
|
528
|
+
fulfilled: # Fulfillment (metadata.fulfillmentType + protocol)
|
|
529
|
+
|
|
530
|
+
patterns:
|
|
531
|
+
ownership:
|
|
532
|
+
description: Creator owns AI clone
|
|
533
|
+
example:
|
|
534
|
+
fromThingId: creatorId
|
|
535
|
+
toThingId: cloneId
|
|
536
|
+
relationshipType: owns
|
|
537
|
+
|
|
538
|
+
revenue_split:
|
|
539
|
+
description: Collaborator owns 30% of course
|
|
540
|
+
example:
|
|
541
|
+
fromThingId: collaboratorId
|
|
542
|
+
toThingId: courseId
|
|
543
|
+
relationshipType: owns
|
|
544
|
+
metadata:
|
|
545
|
+
revenueShare: 0.3
|
|
546
|
+
|
|
547
|
+
token_holding:
|
|
548
|
+
description: User holds 1000 tokens
|
|
549
|
+
example:
|
|
550
|
+
fromThingId: userId
|
|
551
|
+
toThingId: tokenId
|
|
552
|
+
relationshipType: holds_tokens
|
|
553
|
+
metadata:
|
|
554
|
+
balance: 1000
|
|
555
|
+
acquiredAt: timestamp
|
|
556
|
+
|
|
557
|
+
org_membership:
|
|
558
|
+
description: User is member of organization with role
|
|
559
|
+
example:
|
|
560
|
+
fromThingId: userId
|
|
561
|
+
toThingId: organizationId
|
|
562
|
+
relationshipType: member_of
|
|
563
|
+
metadata:
|
|
564
|
+
role: org_owner # or org_user
|
|
565
|
+
permissions: [read, write, admin]
|
|
566
|
+
invitedBy: userId?
|
|
567
|
+
joinedAt: timestamp
|
|
568
|
+
|
|
569
|
+
# ======================================================================
|
|
570
|
+
# EVENTS: All The Actions (67 Types)
|
|
571
|
+
# ======================================================================
|
|
572
|
+
|
|
573
|
+
events:
|
|
574
|
+
test: "If you're describing something that HAPPENED at a specific TIME, it's an event"
|
|
575
|
+
|
|
576
|
+
principle: Consolidated types with metadata for variants. Protocol identity stored in metadata.protocol
|
|
577
|
+
|
|
578
|
+
structure:
|
|
579
|
+
_id: Id<"events">
|
|
580
|
+
type: EventType
|
|
581
|
+
actorId: Id<"things"> # Who/what caused this
|
|
582
|
+
targetId: Id<"things">? # Optional target thing
|
|
583
|
+
timestamp: number
|
|
584
|
+
metadata: any # Event-specific data
|
|
585
|
+
|
|
586
|
+
metadata_structure:
|
|
587
|
+
protocol_agnostic:
|
|
588
|
+
action: string
|
|
589
|
+
contentType: string
|
|
590
|
+
|
|
591
|
+
protocol_specific:
|
|
592
|
+
protocol:
|
|
593
|
+
- a2a
|
|
594
|
+
- acp
|
|
595
|
+
- ap2
|
|
596
|
+
- x402
|
|
597
|
+
- ag-ui
|
|
598
|
+
# protocol-specific fields
|
|
599
|
+
|
|
600
|
+
types:
|
|
601
|
+
entity_lifecycle:
|
|
602
|
+
- entity_created
|
|
603
|
+
- entity_updated
|
|
604
|
+
- entity_deleted
|
|
605
|
+
- entity_archived
|
|
606
|
+
|
|
607
|
+
user_events:
|
|
608
|
+
- user_registered
|
|
609
|
+
- user_verified
|
|
610
|
+
- user_login
|
|
611
|
+
- user_logout
|
|
612
|
+
- profile_updated
|
|
613
|
+
|
|
614
|
+
authentication_events:
|
|
615
|
+
- password_reset_requested
|
|
616
|
+
- password_reset_completed
|
|
617
|
+
- email_verification_sent
|
|
618
|
+
- email_verified
|
|
619
|
+
- two_factor_enabled
|
|
620
|
+
- two_factor_disabled
|
|
621
|
+
|
|
622
|
+
organization_events:
|
|
623
|
+
- organization_created
|
|
624
|
+
- organization_updated
|
|
625
|
+
- user_invited_to_org
|
|
626
|
+
- user_joined_org
|
|
627
|
+
- user_removed_from_org
|
|
628
|
+
|
|
629
|
+
dashboard_ui_events:
|
|
630
|
+
- dashboard_viewed
|
|
631
|
+
- settings_updated
|
|
632
|
+
- theme_changed
|
|
633
|
+
- preferences_updated
|
|
634
|
+
|
|
635
|
+
ai_clone_events:
|
|
636
|
+
- clone_created
|
|
637
|
+
- clone_updated
|
|
638
|
+
- voice_cloned
|
|
639
|
+
- appearance_cloned
|
|
640
|
+
|
|
641
|
+
agent_events:
|
|
642
|
+
- agent_created
|
|
643
|
+
- agent_executed
|
|
644
|
+
- agent_completed
|
|
645
|
+
- agent_failed
|
|
646
|
+
|
|
647
|
+
token_events:
|
|
648
|
+
- token_created
|
|
649
|
+
- token_minted
|
|
650
|
+
- token_burned
|
|
651
|
+
- tokens_purchased
|
|
652
|
+
- tokens_staked
|
|
653
|
+
- tokens_unstaked
|
|
654
|
+
- tokens_transferred
|
|
655
|
+
|
|
656
|
+
course_events:
|
|
657
|
+
- course_created
|
|
658
|
+
- course_enrolled
|
|
659
|
+
- lesson_completed
|
|
660
|
+
- course_completed
|
|
661
|
+
- certificate_earned
|
|
662
|
+
|
|
663
|
+
analytics_events:
|
|
664
|
+
- metric_calculated
|
|
665
|
+
- insight_generated
|
|
666
|
+
- prediction_made
|
|
667
|
+
- optimization_applied
|
|
668
|
+
- report_generated
|
|
669
|
+
|
|
670
|
+
inference_events:
|
|
671
|
+
- inference_request
|
|
672
|
+
- inference_completed
|
|
673
|
+
- inference_failed
|
|
674
|
+
- inference_quota_exceeded
|
|
675
|
+
- inference_revenue_collected
|
|
676
|
+
- org_revenue_generated
|
|
677
|
+
- revenue_share_distributed
|
|
678
|
+
|
|
679
|
+
blockchain_events:
|
|
680
|
+
- nft_minted
|
|
681
|
+
- nft_transferred
|
|
682
|
+
- tokens_bridged
|
|
683
|
+
- contract_deployed
|
|
684
|
+
- treasury_withdrawal
|
|
685
|
+
|
|
686
|
+
consolidated_events:
|
|
687
|
+
content_event: # metadata.action: created|updated|deleted|viewed|shared|liked
|
|
688
|
+
payment_event: # metadata.status: requested|verified|processed + protocol
|
|
689
|
+
subscription_event: # metadata.action: started|renewed|cancelled
|
|
690
|
+
commerce_event: # metadata.eventType + protocol (ACP, AP2)
|
|
691
|
+
livestream_event: # metadata.status: started|ended + metadata.action: joined|left|chat|donation
|
|
692
|
+
notification_event: # metadata.channel: email|sms|push|in_app + deliveryStatus
|
|
693
|
+
referral_event: # metadata.action: created|completed|rewarded
|
|
694
|
+
communication_event: # metadata.protocol (A2A, ACP, AG-UI) + messageType
|
|
695
|
+
task_event: # metadata.action: delegated|completed|failed + protocol
|
|
696
|
+
mandate_event: # metadata.mandateType: intent|cart + protocol (AP2)
|
|
697
|
+
price_event: # metadata.action: checked|changed
|
|
698
|
+
|
|
699
|
+
retention_archival:
|
|
700
|
+
purpose: Keep queries fast and costs predictable at scale
|
|
701
|
+
windows:
|
|
702
|
+
hot: Last 30-90 days in primary events table, fully indexed
|
|
703
|
+
warm: 90-365 days; restrict heavy scans
|
|
704
|
+
cold: >365 days exported to warehouse/storage
|
|
705
|
+
patterns:
|
|
706
|
+
- Use type_time and actor_time for filters
|
|
707
|
+
- Precompute aggregates into metric entities
|
|
708
|
+
- Scheduled rollups to move old events to archive
|
|
709
|
+
|
|
710
|
+
# ======================================================================
|
|
711
|
+
# PROTOCOL INTEGRATION
|
|
712
|
+
# ======================================================================
|
|
713
|
+
|
|
714
|
+
protocols:
|
|
715
|
+
principle: Ontology is protocol-agnostic. Protocols identify themselves via metadata.protocol
|
|
716
|
+
|
|
717
|
+
a2a_agent_to_agent:
|
|
718
|
+
description: Agent-to-Agent communication
|
|
719
|
+
event_example:
|
|
720
|
+
type: task_delegated
|
|
721
|
+
actorId: oneAgentId
|
|
722
|
+
targetId: externalAgentId
|
|
723
|
+
metadata:
|
|
724
|
+
protocol: a2a
|
|
725
|
+
task: research_market_trends
|
|
726
|
+
parameters:
|
|
727
|
+
industry: fitness
|
|
728
|
+
|
|
729
|
+
acp_agentic_commerce:
|
|
730
|
+
description: Agentic Commerce Protocol
|
|
731
|
+
event_example:
|
|
732
|
+
type: commerce_event
|
|
733
|
+
actorId: agentId
|
|
734
|
+
targetId: transactionId
|
|
735
|
+
metadata:
|
|
736
|
+
protocol: acp
|
|
737
|
+
eventType: purchase_initiated
|
|
738
|
+
agentPlatform: chatgpt
|
|
739
|
+
productId: productId
|
|
740
|
+
amount: 99.00
|
|
741
|
+
|
|
742
|
+
ap2_agent_payments:
|
|
743
|
+
description: Agent Payments Protocol
|
|
744
|
+
event_example:
|
|
745
|
+
type: mandate_created
|
|
746
|
+
actorId: userId
|
|
747
|
+
targetId: mandateId
|
|
748
|
+
metadata:
|
|
749
|
+
protocol: ap2
|
|
750
|
+
mandateType: intent
|
|
751
|
+
autoExecute: true
|
|
752
|
+
maxBudget: 1500
|
|
753
|
+
|
|
754
|
+
x402_http_micropayments:
|
|
755
|
+
description: HTTP Micropayments Protocol
|
|
756
|
+
event_example:
|
|
757
|
+
type: payment_requested
|
|
758
|
+
actorId: apiServiceId
|
|
759
|
+
targetId: resourceId
|
|
760
|
+
metadata:
|
|
761
|
+
protocol: x402
|
|
762
|
+
scheme: permit
|
|
763
|
+
network: base
|
|
764
|
+
amount: "0.01"
|
|
765
|
+
resource: /api/agent/analyze
|
|
766
|
+
|
|
767
|
+
ag_ui_generative_ui:
|
|
768
|
+
description: CopilotKit Generative UI
|
|
769
|
+
event_example:
|
|
770
|
+
type: message_sent
|
|
771
|
+
actorId: agentId
|
|
772
|
+
targetId: conversationId
|
|
773
|
+
metadata:
|
|
774
|
+
protocol: ag-ui
|
|
775
|
+
messageType: ui
|
|
776
|
+
component: chart
|
|
777
|
+
data:
|
|
778
|
+
chartType: line
|
|
779
|
+
|
|
780
|
+
# ======================================================================
|
|
781
|
+
# QUERIES & INDEXES
|
|
782
|
+
# ======================================================================
|
|
783
|
+
|
|
784
|
+
queries:
|
|
785
|
+
get_thing_by_id:
|
|
786
|
+
description: Get thing by ID
|
|
787
|
+
example: db.get(thingId)
|
|
788
|
+
|
|
789
|
+
get_things_by_type:
|
|
790
|
+
description: Get all things of type
|
|
791
|
+
index: by_type
|
|
792
|
+
example: |
|
|
793
|
+
db.query('things')
|
|
794
|
+
.withIndex('by_type', (q) => q.eq('type', 'creator'))
|
|
795
|
+
.collect()
|
|
796
|
+
|
|
797
|
+
get_thing_relationships:
|
|
798
|
+
description: Get all entities this entity owns
|
|
799
|
+
index: from_type
|
|
800
|
+
example: |
|
|
801
|
+
db.query('connections')
|
|
802
|
+
.withIndex('from_type', (q) =>
|
|
803
|
+
q.eq('fromThingId', thingId).eq('relationshipType', 'owns'))
|
|
804
|
+
.collect()
|
|
805
|
+
|
|
806
|
+
get_thing_history:
|
|
807
|
+
description: Get all events for this entity
|
|
808
|
+
index: thing_type_time
|
|
809
|
+
example: |
|
|
810
|
+
db.query('events')
|
|
811
|
+
.withIndex('thing_type_time', (q) => q.eq('thingId', thingId))
|
|
812
|
+
.order('desc')
|
|
813
|
+
.collect()
|
|
814
|
+
|
|
815
|
+
get_thing_knowledge:
|
|
816
|
+
description: Get knowledge items linked to thing
|
|
817
|
+
example: |
|
|
818
|
+
db.query('thingKnowledge')
|
|
819
|
+
.withIndex('by_thing', (q) => q.eq('thingId', thingId))
|
|
820
|
+
.collect()
|
|
821
|
+
|
|
822
|
+
indexes:
|
|
823
|
+
things:
|
|
824
|
+
- by_type(type)
|
|
825
|
+
- by_status(status)
|
|
826
|
+
- by_created(createdAt)
|
|
827
|
+
- search_things(name, type, status)
|
|
828
|
+
|
|
829
|
+
connections:
|
|
830
|
+
- from_type(fromThingId, relationshipType)
|
|
831
|
+
- to_type(toThingId, relationshipType)
|
|
832
|
+
- bidirectional(fromThingId, toThingId)
|
|
833
|
+
|
|
834
|
+
events:
|
|
835
|
+
- thing_type_time(thingId, eventType, timestamp)
|
|
836
|
+
- type_time(eventType, timestamp)
|
|
837
|
+
- session(sessionId, timestamp)
|
|
838
|
+
- actor_time(actorId, timestamp)
|
|
839
|
+
|
|
840
|
+
knowledge:
|
|
841
|
+
- by_type(knowledgeType)
|
|
842
|
+
- by_source(sourceThingId)
|
|
843
|
+
- by_created(createdAt)
|
|
844
|
+
- by_embedding(embedding vector)
|
|
845
|
+
|
|
846
|
+
# ======================================================================
|
|
847
|
+
# VALIDATION RULES
|
|
848
|
+
# ======================================================================
|
|
849
|
+
|
|
850
|
+
validation:
|
|
851
|
+
thing:
|
|
852
|
+
- type must be valid ThingType
|
|
853
|
+
- name cannot be empty
|
|
854
|
+
- properties structure must match type
|
|
855
|
+
- status must be valid
|
|
856
|
+
- createdAt and updatedAt required
|
|
857
|
+
|
|
858
|
+
connection:
|
|
859
|
+
- fromThingId must exist
|
|
860
|
+
- toThingId must exist
|
|
861
|
+
- relationshipType must be valid
|
|
862
|
+
- Cannot connect a thing to itself (usually)
|
|
863
|
+
- Relationship must make semantic sense
|
|
864
|
+
|
|
865
|
+
event:
|
|
866
|
+
- thingId must exist
|
|
867
|
+
- eventType must be valid
|
|
868
|
+
- timestamp required
|
|
869
|
+
- actorId must exist if provided
|
|
870
|
+
- metadata structure must match event type
|
|
871
|
+
|
|
872
|
+
# ======================================================================
|
|
873
|
+
# SUMMARY STATISTICS
|
|
874
|
+
# ======================================================================
|
|
875
|
+
|
|
876
|
+
statistics:
|
|
877
|
+
dimensions: 6
|
|
878
|
+
thing_types: 66
|
|
879
|
+
connection_types: 25
|
|
880
|
+
event_types: 67
|
|
881
|
+
|
|
882
|
+
thing_breakdown:
|
|
883
|
+
core: 4
|
|
884
|
+
business_agents: 10
|
|
885
|
+
content: 7
|
|
886
|
+
products: 4
|
|
887
|
+
community: 3
|
|
888
|
+
token: 2
|
|
889
|
+
knowledge: 2
|
|
890
|
+
platform: 6
|
|
891
|
+
business: 7
|
|
892
|
+
auth_session: 5
|
|
893
|
+
marketing: 6
|
|
894
|
+
external: 3
|
|
895
|
+
protocol: 2
|
|
896
|
+
|
|
897
|
+
connection_breakdown:
|
|
898
|
+
specific_semantic: 18
|
|
899
|
+
consolidated_with_metadata: 7
|
|
900
|
+
|
|
901
|
+
event_breakdown:
|
|
902
|
+
entity_lifecycle: 4
|
|
903
|
+
user: 5
|
|
904
|
+
authentication: 6
|
|
905
|
+
organization: 5
|
|
906
|
+
dashboard_ui: 4
|
|
907
|
+
ai_clone: 4
|
|
908
|
+
agent: 4
|
|
909
|
+
token: 7
|
|
910
|
+
course: 5
|
|
911
|
+
analytics: 5
|
|
912
|
+
inference: 7
|
|
913
|
+
blockchain: 5
|
|
914
|
+
consolidated: 11
|
|
915
|
+
|
|
916
|
+
# ======================================================================
|
|
917
|
+
# DESIGN BENEFITS
|
|
918
|
+
# ======================================================================
|
|
919
|
+
|
|
920
|
+
benefits:
|
|
921
|
+
- Six-dimension reality model
|
|
922
|
+
- Multi-tenant by design
|
|
923
|
+
- Clear ownership & governance
|
|
924
|
+
- Protocol-agnostic core
|
|
925
|
+
- Infinite protocol extensibility
|
|
926
|
+
- Cross-protocol analytics
|
|
927
|
+
- Type-safe
|
|
928
|
+
- Future-proof
|
|
929
|
+
- Scales from children to enterprise
|
|
930
|
+
|
|
931
|
+
# ======================================================================
|
|
932
|
+
# PHILOSOPHY
|
|
933
|
+
# ======================================================================
|
|
934
|
+
|
|
935
|
+
philosophy:
|
|
936
|
+
quote: "Simplicity is the ultimate sophistication."
|
|
937
|
+
|
|
938
|
+
proof: |
|
|
939
|
+
This ontology proves that you don't need hundreds of tables or complex schemas
|
|
940
|
+
to build a complete AI-native platform.
|
|
941
|
+
|
|
942
|
+
why_this_works:
|
|
943
|
+
other_systems:
|
|
944
|
+
- Create new tables for every feature
|
|
945
|
+
- Add protocol-specific columns
|
|
946
|
+
- Pollute schema with temporary concepts
|
|
947
|
+
- End up with 50+ tables, 200+ columns
|
|
948
|
+
- Become unmaintainable nightmares
|
|
949
|
+
|
|
950
|
+
one_approach:
|
|
951
|
+
- Map every feature to 6 dimensions
|
|
952
|
+
- Organizations partition the space
|
|
953
|
+
- People authorize and govern
|
|
954
|
+
- Things, connections, events flow from there
|
|
955
|
+
- Knowledge understands it all
|
|
956
|
+
- Scale infinitely without schema changes
|
|
957
|
+
- Stay simple, clean, beautiful
|
|
958
|
+
|
|
959
|
+
result:
|
|
960
|
+
- Scales from lemonade stands to global enterprises
|
|
961
|
+
- Children can understand it
|
|
962
|
+
- Enterprises can rely on it
|
|
963
|
+
- AI agents can reason about it
|
|
964
|
+
- Never needs breaking changes
|
|
965
|
+
- Grows more powerful as it grows larger
|
|
966
|
+
|
|
967
|
+
# ======================================================================
|
|
968
|
+
# EXTENSIBILITY
|
|
969
|
+
# ======================================================================
|
|
970
|
+
|
|
971
|
+
extensibility:
|
|
972
|
+
principle: Users can add to any type without breaking the ontology
|
|
973
|
+
|
|
974
|
+
guidelines:
|
|
975
|
+
- Use properties for schema-free details
|
|
976
|
+
- Use knowledge labels to categorize, filter, and group
|
|
977
|
+
- Use metadata on connections and events for protocol/workflow-specific context
|
|
978
|
+
- Keep type stable, add properties.kind and labels for subtypes
|
|
979
|
+
- Custom automations integrate via external_agent, external_workflow, external_connection
|
|
980
|
+
|
|
981
|
+
# ======================================================================
|
|
982
|
+
# UNIVERSAL FIELDS (Auth + Web Generation)
|
|
983
|
+
# ======================================================================
|
|
984
|
+
|
|
985
|
+
universal_fields:
|
|
986
|
+
description: "Fields that EVERY person/org has for auth and web generation"
|
|
987
|
+
|
|
988
|
+
organizations_require:
|
|
989
|
+
identity: [name, slug] # Who they are + URL
|
|
990
|
+
web: [slug, logo?, description?, domain?]
|
|
991
|
+
operations: [status, plan, limits, usage]
|
|
992
|
+
|
|
993
|
+
people_require:
|
|
994
|
+
identity: [email, username, displayName] # Who they are + URL
|
|
995
|
+
auth: [email, username, role] # Authentication
|
|
996
|
+
web: [username, displayName, avatar?, bio?]
|
|
997
|
+
governance: [role, organizationId?, organizations]
|
|
998
|
+
|
|
999
|
+
things_require:
|
|
1000
|
+
identity: [type, name] # What it is
|
|
1001
|
+
properties: {} # Type-specific data (username, slug, image, etc.)
|
|
1002
|
+
status: enum # Visibility/state
|
|
1003
|
+
|
|
1004
|
+
web_generation_pattern: |
|
|
1005
|
+
Every person/org can be a website:
|
|
1006
|
+
- Organizations: /org/{slug} → generated from org data
|
|
1007
|
+
- People: /{username} → generated from person data
|
|
1008
|
+
- Things: Rendered in context of their owner (org or person)
|
|
1009
|
+
|
|
1010
|
+
Required for ANY web page:
|
|
1011
|
+
1. URL identifier (slug/username in properties)
|
|
1012
|
+
2. Display name (name field)
|
|
1013
|
+
3. Visual identity (logo/avatar in properties)
|
|
1014
|
+
4. Description (bio/description in properties)
|
|
1015
|
+
5. Visibility (status field)
|
|
1016
|
+
|
|
1017
|
+
auth_pattern: |
|
|
1018
|
+
Better Auth integration:
|
|
1019
|
+
- People table has email (links to auth.users)
|
|
1020
|
+
- Auth sessions → session thing (type: session)
|
|
1021
|
+
- OAuth accounts → oauth_account thing
|
|
1022
|
+
- Email verification → verification_token thing
|
|
1023
|
+
|
|
1024
|
+
Minimal auth fields in people:
|
|
1025
|
+
- email (REQUIRED for linking to auth.users)
|
|
1026
|
+
- username (OPTIONAL for username-based login)
|
|
1027
|
+
- role (REQUIRED for authorization)
|
|
1028
|
+
|
|
1029
|
+
# ======================================================================
|
|
1030
|
+
# WORKFLOW (Agent-Based Development)
|
|
1031
|
+
# ======================================================================
|
|
1032
|
+
|
|
1033
|
+
workflow:
|
|
1034
|
+
description: "Agent-orchestrated development using ontology as source of truth"
|
|
1035
|
+
philosophy: "The ontology IS the workflow. Agents collaborate. Everything else is noise."
|
|
1036
|
+
|
|
1037
|
+
stages:
|
|
1038
|
+
1_ideas: # Director validates against ontology
|
|
1039
|
+
2_plans: # Director creates feature collections
|
|
1040
|
+
3_features: # Specialists write specifications
|
|
1041
|
+
4_tests: # Quality defines user flows & acceptance criteria
|
|
1042
|
+
5_design: # Design creates UI that enables tests to pass
|
|
1043
|
+
6_implementation: # Specialists code → Quality validates → Complete
|
|
1044
|
+
|
|
1045
|
+
agents:
|
|
1046
|
+
director: # Validates ideas, creates plans, assigns work
|
|
1047
|
+
role: engineering_agent
|
|
1048
|
+
responsibilities: [validate_ideas, create_plans, assign_specialists, mark_complete]
|
|
1049
|
+
context_tokens: 200 # Just ontology type names
|
|
1050
|
+
|
|
1051
|
+
specialists: # Write features, execute tasks, fix problems
|
|
1052
|
+
roles: [engineering_agent, design_agent, marketing_agent]
|
|
1053
|
+
types: [backend, frontend, integration]
|
|
1054
|
+
context_tokens: 1500 # Ontology types + patterns
|
|
1055
|
+
|
|
1056
|
+
quality: # Defines tests, validates results
|
|
1057
|
+
role: intelligence_agent
|
|
1058
|
+
responsibilities: [check_ontology, create_user_flows, define_tests, validate]
|
|
1059
|
+
context_tokens: 2000 # Ontology + feature + UX patterns
|
|
1060
|
+
|
|
1061
|
+
design: # Creates wireframes & components
|
|
1062
|
+
role: design_agent
|
|
1063
|
+
responsibilities: [create_wireframes, define_components, set_tokens]
|
|
1064
|
+
context_tokens: 2000 # Feature + tests + design patterns
|
|
1065
|
+
|
|
1066
|
+
problem_solver: # Analyzes failures (ultrathink mode)
|
|
1067
|
+
role: intelligence_agent
|
|
1068
|
+
responsibilities: [analyze_failures, propose_solutions, delegate_fixes]
|
|
1069
|
+
context_tokens: 2500 # Failed tests + implementation + ontology
|
|
1070
|
+
|
|
1071
|
+
documenter: # Writes docs after completion
|
|
1072
|
+
role: intelligence_agent
|
|
1073
|
+
responsibilities: [write_docs, update_knowledge]
|
|
1074
|
+
context_tokens: 1000 # Feature + tests
|
|
1075
|
+
|
|
1076
|
+
workflow_things:
|
|
1077
|
+
idea: "User's initial concept → validated by director"
|
|
1078
|
+
plan: "Collection of features → orchestrated by director (e.g., 2-course-platform)"
|
|
1079
|
+
feature: "Specification of what to build → written by specialists (e.g., 2-1-course-crud)"
|
|
1080
|
+
test: "User flows + acceptance criteria → defined by quality agent"
|
|
1081
|
+
design: "Wireframes + components → created by design agent"
|
|
1082
|
+
task: "Individual work item → executed by specialists (e.g., 2-1-task-1)"
|
|
1083
|
+
lesson: "Lessons learned → captured in knowledge after fixes"
|
|
1084
|
+
|
|
1085
|
+
workflow_connections:
|
|
1086
|
+
part_of: "feature → plan, task → feature"
|
|
1087
|
+
assigned_to: "feature → agent, task → agent"
|
|
1088
|
+
depends_on: "task → task (optional ordering)"
|
|
1089
|
+
tested_by: "feature → test"
|
|
1090
|
+
designed_by: "feature → design"
|
|
1091
|
+
implements: "task → design"
|
|
1092
|
+
|
|
1093
|
+
numbering:
|
|
1094
|
+
plan: "2-plan-name" # e.g., 2-course-platform
|
|
1095
|
+
feature: "2-1-feature-name" # e.g., 2-1-course-crud
|
|
1096
|
+
tasks: "2-1-feature-name-tasks" # e.g., 2-1-course-crud-tasks
|
|
1097
|
+
task: "2-1-task-1" # e.g., 2-1-task-1
|
|
1098
|
+
|
|
1099
|
+
workflow_events:
|
|
1100
|
+
planning: [plan_started, feature_assigned, tasks_created]
|
|
1101
|
+
execution: [feature_started, implementation_complete, task_started, task_completed]
|
|
1102
|
+
quality: [quality_check_started, quality_check_complete, test_started, test_passed, test_failed]
|
|
1103
|
+
problem_solving: [problem_analysis_started, solution_proposed, fix_started, fix_complete]
|
|
1104
|
+
documentation: [documentation_started, documentation_complete, lesson_learned_added]
|
|
1105
|
+
completion: [feature_complete, plan_complete]
|
|
1106
|
+
|
|
1107
|
+
quality_loop: |
|
|
1108
|
+
Specialist writes → Quality validates → Tests run
|
|
1109
|
+
→ PASS: Documenter writes docs
|
|
1110
|
+
→ FAIL: Problem Solver analyzes → Proposes solution → Specialist fixes → Add to lessons learned → Re-test
|
|
1111
|
+
|
|
1112
|
+
coordination:
|
|
1113
|
+
pattern: "Event-driven via events table"
|
|
1114
|
+
no_handoffs: "Agents watch events, act autonomously"
|
|
1115
|
+
parallel: "Tasks execute concurrently"
|
|
1116
|
+
audit_trail: "Complete history in events table"
|
|
1117
|
+
|
|
1118
|
+
benefits:
|
|
1119
|
+
- 300 lines of orchestration vs 15,000+ lines of YAML
|
|
1120
|
+
- 98% context reduction (200-2,500 tokens vs 50k-150k)
|
|
1121
|
+
- 5x faster execution (20s vs 115s per feature)
|
|
1122
|
+
- Event-driven coordination (no handoff protocols)
|
|
1123
|
+
- Quality loops with continuous learning
|
|
1124
|
+
- Parallel execution by default
|
|
1125
|
+
|
|
1126
|
+
# ======================================================================
|
|
1127
|
+
# FOR IMPLEMENTERS
|
|
1128
|
+
# ======================================================================
|
|
1129
|
+
|
|
1130
|
+
implementer_checklist:
|
|
1131
|
+
when_implementing_feature:
|
|
1132
|
+
1: What entities are involved?
|
|
1133
|
+
2: What connections link them?
|
|
1134
|
+
3: What events need to be logged?
|
|
1135
|
+
4: What knowledge labels categorize them?
|
|
1136
|
+
5: What protocol is this for? (add to metadata)
|
|
1137
|
+
6: What knowledge (labels + chunks) should be linked?
|
|
1138
|
+
7: What workflow stage? (idea/plan/feature/test/design/implementation)
|
|
1139
|
+
|
|
1140
|
+
for_ai_agents: |
|
|
1141
|
+
You now have a complete, unambiguous data model. Generate consistent
|
|
1142
|
+
database operations because you understand the underlying structure.
|
|
1143
|
+
|
|
1144
|
+
Use the workflow agents to orchestrate development:
|
|
1145
|
+
- Director validates ideas and creates plans
|
|
1146
|
+
- Specialists write features and execute tasks
|
|
1147
|
+
- Quality defines tests and validates results
|
|
1148
|
+
- Design creates UI that enables tests to pass
|
|
1149
|
+
- Problem Solver analyzes failures and proposes solutions
|
|
1150
|
+
- Documenter captures knowledge after completion
|
|
1151
|
+
|
|
1152
|
+
for_developers: |
|
|
1153
|
+
You have a schema that will never need major refactoring. Just add new
|
|
1154
|
+
thing types as needed, use existing event types with metadata, and enjoy
|
|
1155
|
+
the simplicity.
|
|
1156
|
+
|
|
1157
|
+
The workflow system uses the same 6-dimension ontology:
|
|
1158
|
+
- Ideas, plans, features, tests, designs, tasks are all "things"
|
|
1159
|
+
- Agent assignments are "connections"
|
|
1160
|
+
- All progress tracked via "events"
|
|
1161
|
+
- Lessons learned stored in "knowledge"
|
|
1162
|
+
|
|
1163
|
+
# ======================================================================
|
|
1164
|
+
# END OF ONTOLOGY SPECIFICATION
|
|
1165
|
+
# ======================================================================
|