oneie 3.6.13 → 3.6.14
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/AUDIT-agent-ops-alignment.md +379 -0
- package/.claude/agents/NEWS-QUICKSTART.md +321 -0
- package/.claude/agents/NEWS-README.md +353 -0
- package/.claude/agents/agent-backend.md +1 -1
- package/.claude/agents/agent-builder.md +220 -151
- package/.claude/agents/agent-clean.md +39 -31
- package/.claude/agents/agent-clone.md +107 -54
- package/.claude/agents/agent-designer.md +76 -71
- package/.claude/agents/agent-director.md +164 -1
- package/.claude/agents/agent-documenter.md +169 -132
- package/.claude/agents/agent-frontend.md +442 -446
- package/.claude/agents/agent-integrator.md +30 -23
- package/.claude/agents/agent-lawyer.md +145 -98
- package/.claude/agents/agent-news.md +363 -0
- package/.claude/agents/agent-onboard.md +99 -69
- package/.claude/agents/agent-ontology.md +585 -0
- package/.claude/agents/agent-ops.md +178 -171
- package/.claude/agents/agent-problem-solver.md +132 -115
- package/.claude/agents/agent-quality.md +94 -77
- package/.claude/agents/agent-sales.md +89 -67
- package/.claude/commands/release.md +3 -1
- package/.claude/hooks/README-knowledge-hooks.md +266 -80
- package/.claude/hooks/README-root-cleanup.md +200 -0
- package/.claude/hooks/README.md +284 -0
- 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 +169 -32
- package/.claude/hooks/clean-post.py +195 -28
- package/.claude/hooks/clean-pre.py +96 -11
- package/.claude/hooks/done.py +74 -13
- package/.claude/hooks/format-hook.sh +105 -17
- package/.claude/hooks/hook-logger.sh +121 -7
- package/.claude/hooks/knowledge-post.py +136 -32
- package/.claude/hooks/knowledge-pre.py +129 -34
- package/.claude/hooks/notification-hook.sh +184 -17
- package/.claude/hooks/root-cleanup.py +181 -39
- package/.claude/hooks/security-hook.sh +248 -8
- package/.claude/hooks/tag-all-docs.py +175 -49
- package/.claude/hooks/test-validate-ontology.sh +170 -0
- package/.claude/hooks/todo.py +92 -22
- package/.claude/hooks/validate-ontology-structure-summary.md +243 -0
- package/.claude/hooks/validate-ontology-structure.py +83 -20
- package/AGENTS.md +60 -245
- package/CLAUDE.md +70 -1
- package/README.md +25 -0
- package/one/.claude/settings.local.json +11 -0
- package/one/.obsidian/community-plugins.json +3 -1
- package/one/.obsidian/plugins/editing-toolbar/data.json +328 -0
- package/one/.obsidian/plugins/editing-toolbar/main.js +12 -0
- package/one/.obsidian/plugins/editing-toolbar/manifest.json +10 -0
- package/one/.obsidian/plugins/editing-toolbar/styles.css +1338 -0
- package/one/.obsidian/plugins/terminal/data.json +154 -0
- package/one/.obsidian/plugins/terminal/main.js +197 -0
- package/one/.obsidian/plugins/terminal/manifest.json +14 -0
- package/one/.obsidian/plugins/terminal/styles.css +32 -0
- package/one/.obsidian/workspace.json +71 -45
- package/one/README.md +18 -0
- package/one/connections/a2a.md +49 -0
- package/one/connections/acp.md +47 -0
- package/one/connections/acps.md +18 -0
- package/one/connections/agentkit.md +18 -0
- package/one/connections/agui.md +18 -0
- package/one/connections/any-backend.md +39 -21
- package/one/connections/ap2.md +74 -0
- package/one/connections/api/queries-reference.md +18 -0
- package/one/connections/api-docs.md +18 -0
- package/one/connections/api-reference.md +18 -0
- package/one/connections/api.md +18 -0
- package/one/connections/architecture-diagram.md +18 -0
- package/one/connections/communications.md +18 -0
- package/one/connections/connections.md +18 -0
- package/one/connections/copilotkit.md +18 -0
- package/one/connections/cryptonetworks.md +18 -0
- package/one/connections/documentation.md +18 -0
- package/one/connections/effect.md +18 -0
- package/one/connections/elizaos.md +18 -0
- package/one/connections/groups.md +814 -0
- package/one/connections/inference.md +18 -0
- package/one/connections/integration-examples.md +18 -0
- package/one/connections/integration-guide.md +18 -0
- package/one/connections/integration-phase2.md +32 -14
- package/one/connections/kyc.md +18 -0
- package/one/connections/mcp.md +18 -0
- package/one/connections/membership.md +18 -0
- package/one/connections/middleware.md +18 -0
- package/one/connections/multitenant.md +18 -0
- package/one/connections/n8n.md +18 -0
- package/one/connections/patterns.md +18 -0
- package/one/connections/protocols.md +20 -2
- package/one/connections/relationships.md +18 -0
- package/one/connections/schema.md +18 -0
- package/one/connections/service-layer.md +18 -0
- package/one/connections/vectors.md +18 -0
- package/one/connections/wordpress.md +18 -0
- package/one/connections/workflow-copy.md +18 -0
- package/one/connections/workflow-examples.md +18 -0
- package/one/connections/workflow-onboarding.md +18 -0
- package/one/connections/workflow.md +18 -0
- package/one/connections/workflows/delegation.md +18 -0
- package/one/connections/workflows/frontend.md +18 -0
- package/one/connections/workflows/strategy.md +18 -0
- package/one/connections/workflows/tasks.md +18 -0
- package/one/connections/x402-baazar.md +131 -0
- package/one/connections/x402.md +268 -164
- package/one/events/2024-10-14-deployment-plan.md +15 -16
- package/one/events/2024-10-14-deployment-success.md +15 -16
- package/one/events/2024-10-14-final-sync-complete.md +15 -16
- package/one/events/2024-10-14-release-v2.0.6.md +15 -16
- package/one/events/2024-10-15-agent-clean-v2-summary.md +15 -16
- package/one/events/2024-10-15-handoff-to-clean.md +15 -16
- package/one/events/2024-10-15-package-manager-tests.md +15 -16
- package/one/events/2024-10-15-release-command-complete.md +15 -16
- package/one/events/2025-10-15-private-files-secured.md +18 -0
- package/one/events/2025-10-15-unignore-public-group-docs.md +18 -0
- package/one/events/ALIGNMENT_REPORT_PROBLEM_SOLVER.md +335 -0
- package/one/events/ALIGNMENT_SUMMARY.md +280 -0
- package/one/events/API_ROUTES_FIXES_SUMMARY.md +18 -0
- package/one/events/ASTRO-INTEGRATION-EXAMPLES.md +18 -0
- package/one/events/AUDIT-ONTOLOGY-ALIGNMENT.md +598 -0
- package/one/events/BEFORE_AFTER_COMPARISON.md +18 -0
- package/one/events/CART-DRAWER-INTEGRATION-GUIDE.md +18 -0
- package/one/events/CASCADE-2-BACKEND-AGNOSTIC.md +18 -0
- package/one/events/CLAUDE copy.md +897 -0
- package/one/events/CLEANUP-RELEASE-V2.0.8.md +18 -0
- package/one/events/CONNECTIONS_DEMO.md +18 -0
- package/one/events/CREATE-WEBSITE.md +18 -0
- package/one/events/CRITICAL-FIXES-COMPLETE.md +18 -0
- package/one/events/CUSTOM-DOMAIN.md +18 -0
- package/one/events/DELIVERABLES.md +18 -0
- package/one/events/DEMO-GROUPS-PAGE.md +18 -0
- package/one/events/DEMO-TESTING-SUMMARY.md +18 -0
- package/one/events/DEMO_COMPONENTS.md +18 -0
- package/one/events/DEMO_HOOKS_INDEX.md +18 -0
- package/one/events/DEMO_INFRASTRUCTURE.md +18 -0
- package/one/events/DEMO_INFRASTRUCTURE_SUMMARY.md +18 -0
- package/one/events/DEMO_INTEGRATION_CHECKLIST.md +18 -0
- package/one/events/DEMO_QUICK_REFERENCE.md +18 -0
- package/one/events/DEMO_SETUP.md +18 -0
- package/one/events/DEPLOYMENT copy.md +18 -0
- package/one/events/DEPLOYMENT.md +18 -0
- package/one/events/ECOMMERCE-BEFORE-AFTER.md +16 -0
- package/one/events/ECOMMERCE-DEMO-PLAN.md +18 -0
- package/one/events/ECOMMERCE-ENHANCEMENTS.md +18 -0
- package/one/events/ECOMMERCE-HIGH-CONVERTING-ELEMENTS.md +18 -0
- package/one/events/ECOMMERCE-LIVE-DEMO.md +18 -0
- package/one/events/ECOMMERCE-REFACTOR-SUMMARY.md +18 -0
- package/one/events/ECOMMERCE-SETUP-SUMMARY.md +18 -0
- package/one/events/ECOMMERCE-TEMPLATE-COMPLETE.md +18 -0
- package/one/events/ECOMMERCE-TEMPLATES-SUMMARY.md +18 -0
- package/one/events/EFFECT_TS_API_PATTERN.md +18 -0
- package/one/events/FEATURE-2-4-COMPLETE.md +18 -0
- package/one/events/FEATURE_2_3_COMPLETE.md +18 -0
- package/one/events/GRADIENT-TEXT-PERMANENT-FIX.md +18 -0
- package/one/events/GROUPS-MIGRATION.md +18 -0
- package/one/events/GROUPS_DEMO_IMPLEMENTATION.md +18 -0
- package/one/events/HANDOFF.md +18 -0
- package/one/events/HOOKS-DEMO.md +18 -0
- package/one/events/IMPLEMENTATION-SUMMARY-FINAL.md +18 -0
- package/one/events/IMPLEMENTATION_SUMMARY.md +18 -0
- package/one/events/INSTALL-TESTS.md +18 -0
- package/one/events/INSTALLATION_FOLDERS.md +18 -0
- package/one/events/INSTALLATION_FOLDERS_FILES.md +18 -0
- package/one/events/INSTALLATION_FOLDERS_SUMMARY.md +18 -0
- package/one/events/INTEGRATION-ARCHITECTURE.md +18 -0
- package/one/events/INTEGRATION-CHECKLIST.md +18 -0
- package/one/events/INTEGRATION-ORCHESTRATION.md +18 -0
- package/one/events/INTEGRATION-SUMMARY.md +18 -0
- package/one/events/LANDING-PAGE-EXAMPLE-OUTPUT.md +18 -0
- package/one/events/LANDING-PAGE-IMPLEMENTATION.md +18 -0
- package/one/events/LANDING-PAGE-QUICKSTART.md +18 -0
- package/one/events/LICENSE.md +18 -0
- package/one/events/MCP-CONFIGURATION.md +18 -0
- package/one/events/MCP-SETUP-COMPLETE.md +18 -0
- package/one/events/MIGRATION-REPORT.md +18 -0
- package/one/events/MIGRATION.md +18 -0
- package/one/events/MULTI-ONTOLOGY-COMPLETE-GUIDE.md +18 -0
- package/one/events/MULTI-ONTOLOGY-IMPLEMENTATION-COMPLETE.md +18 -0
- package/one/events/NODE-UPGRADE.md +18 -0
- package/one/events/ONBOARDING-IMPLEMENTATION-COMPLETE copy.md +18 -0
- package/one/events/ONTOLOGY-HOOKS-README.md +18 -0
- package/one/events/ONTOLOGY-INTEGRATION-MANIFEST.md +18 -0
- package/one/events/ONTOLOGY-TUTORIALS-SUMMARY.md +18 -0
- package/one/events/ONTOLOGY-TYPE-GENERATOR-SUMMARY.md +18 -0
- package/one/events/ONTOLOGY_DISCOVERY_IMPLEMENTATION.md +18 -0
- package/one/events/ONTOLOGY_DISCOVERY_QUICKSTART.md +18 -0
- package/one/events/PACKAGE-STRUCTURE.md +18 -0
- package/one/events/PLAYBOOK-SETUP-SUMMARY.md +18 -0
- package/one/events/PROMPT_FIX_FRONTEND_ONLY.md +18 -0
- package/one/events/QA-CHECKLIST.md +18 -0
- package/one/events/QUICK-START-ONTOLOGY.md +18 -0
- package/one/events/README-archived.md +18 -0
- package/one/events/SEARCH_DEMO_CODE_REFERENCE.md +18 -0
- package/one/events/SEARCH_DEMO_DELIVERY.md +18 -0
- package/one/events/SEARCH_DEMO_SUMMARY.md +18 -0
- package/one/events/SEARCH_DEMO_VISUAL_GUIDE.md +18 -0
- package/one/events/SECURITY-AUDIT-FIXES.md +18 -0
- package/one/events/SECURITY-SCAN-COMPLETE.md +18 -0
- package/one/events/SHOP-BUILD-STATUS.md +18 -0
- package/one/events/SHOP-PREMIUM-UPDATE.md +16 -0
- package/one/events/SIMPLE_FIX_FRONTEND_ONLY.md +18 -0
- package/one/events/SITE-WIDE-GRADIENT-FIX.md +18 -0
- package/one/events/STORE-PRODUCTION-READY-STATUS.md +18 -0
- package/one/events/STRIPE-INTEGRATION.md +18 -0
- package/one/events/STRIPE-PAYMENT-METHODS-GUIDE.md +18 -0
- package/one/events/STRIPE-SETUP-GUIDE.md +18 -0
- package/one/events/TEST-PLAN-INDEX.md +18 -0
- package/one/events/TEST-PLAN.md +18 -0
- package/one/events/TEST-SUMMARY.md +18 -0
- package/one/events/TESTS-QUICK-REF.md +18 -0
- package/one/events/TRANSITIONS-QUICK-START.md +18 -0
- package/one/events/TRANSPARENCY-FIXES.md +18 -0
- package/one/events/TYPESCRIPT_FIXES.md +18 -0
- package/one/events/TYPESCRIPT_FIXES_INDEX.md +18 -0
- package/one/events/VIEW-TRANSITIONS.md +18 -0
- package/one/events/agent-director-enhancement-summary.md +18 -0
- package/one/events/agent-onboard-implementation-summary.md +18 -0
- package/one/events/agent-ontology-alignment-completion.md +263 -0
- package/one/events/backend-integration-tests.md +18 -0
- package/one/events/clean-agent-ontology-cleanup-report.md +18 -0
- package/one/events/clean-agent-todo-analysis-summary.md +336 -0
- package/one/events/cloudflare-automation-complete.md +18 -0
- package/one/events/cloudflare-pages-infrastructure-setup.md +18 -0
- package/one/events/contact-page-complete.md +18 -0
- package/one/events/convex-analysis-index.md +18 -0
- package/one/events/convex-structure-analysis.md +18 -0
- package/one/events/deployment-installation-folders.md +18 -0
- package/one/events/deployment-ops-summary.md +18 -0
- package/one/events/deployment-verification.md +18 -0
- package/one/events/design-spec-complete.md +18 -0
- package/one/events/documentation-audit-index.md +473 -0
- package/one/events/documentation-audit-summary.md +417 -0
- package/one/events/documentation-improvement-roadmap.md +906 -0
- package/one/events/documentation-standards-compliance-report.md +538 -0
- package/one/events/events.md +18 -0
- package/one/events/frontend-effects-complete.md +584 -0
- package/one/events/frontend-effects-orchestration.md +1356 -0
- package/one/events/frontend-effects-risk-register.md +1055 -0
- package/one/events/frontend-effects-week1-assignments.md +1594 -0
- package/one/events/hook-ontology-alignment-summary.md +528 -0
- package/one/events/installation-folders-workflow-integration.md +18 -0
- package/one/events/landing-page-generator.md +18 -0
- package/one/events/legal-assessment-2025-10-16.md +18 -0
- package/one/events/onboarding-implementation-complete.md +18 -0
- package/one/events/ontology-test-examples.md +18 -0
- package/one/events/phase1-backend-implementation-complete.md +18 -0
- package/one/events/release.md +18 -0
- package/one/events/root-cleanup-alignment-report.md +265 -0
- package/one/events/separate-implementation-status.md +18 -0
- package/one/events/session-summary-2025-10-18.md +18 -0
- package/one/events/skills-complete.md +18 -0
- package/one/events/skills-infer-6-10-summary.md +18 -0
- package/one/events/skills-phase1-complete.md +18 -0
- package/one/events/structural-analysis-architecture-vs-plans.md +559 -0
- package/one/events/test-dashboard.md +18 -0
- package/one/events/test-index.md +18 -0
- package/one/events/test-report-ontology.md +18 -0
- package/one/events/testing-summary.md +18 -0
- package/one/events/todo-refactoring-complete.md +408 -0
- package/one/events/wave1-backend-implementation-complete.md +698 -0
- package/one/groups/features.md +26 -0
- package/one/groups/groups.md +83 -39
- package/one/groups/one.md +47 -27
- package/one/groups/{strategy copy.md → strategy-copy.md} +23 -5
- package/one/knowledge/.obsidian/ecommerce-ontology.md +18 -0
- package/one/knowledge/100-inference-quick-reference.md +18 -0
- package/one/knowledge/agent-onboard-usage.md +18 -0
- package/one/knowledge/agentic-commerce.md +146 -0
- package/one/knowledge/ai-agents-vs-memecoins-thesis.md +683 -0
- package/one/knowledge/ai-platform.md +18 -0
- package/one/knowledge/ai-token-crypto-analysis-framework.md +1191 -0
- package/one/knowledge/ai-token-paradigm-shift-2025.md +732 -0
- package/one/knowledge/altcoin-cycle-prediction-ontology.md +884 -0
- package/one/knowledge/altcoin-cycle-trading-strategy.md +642 -0
- package/one/knowledge/architecture-any-backend.md +265 -42
- package/one/knowledge/architecture-diagram.md +404 -94
- package/one/knowledge/architecture-frontend.md +130 -51
- package/one/knowledge/architecture.md +1496 -1831
- package/one/knowledge/{ontology.md.backup → archived/ontology.old.md} +18 -0
- package/one/knowledge/astro-effect-complete-vision.md +2148 -0
- package/one/knowledge/astro-effect-simple-architecture.md +717 -0
- package/one/knowledge/audit-agent-onboard-alignment.md +481 -0
- package/one/knowledge/audit-agent-sales-alignment.md +444 -0
- package/one/knowledge/backend-api-reference.md +18 -0
- package/one/knowledge/cli-claude-handoff.md +18 -0
- package/one/knowledge/context-engineering.md +610 -0
- package/one/knowledge/crypto-analysis-strategy.md +1276 -0
- package/one/knowledge/crypto-cycle-2024-2025-analysis.md +44 -0
- package/one/knowledge/crypto.md +18 -0
- package/one/knowledge/docs.md +627 -0
- package/one/knowledge/dsl.md +18 -0
- package/one/knowledge/files.md +18 -0
- package/one/knowledge/frontend.md +18 -0
- package/one/knowledge/hono.md +18 -0
- package/one/knowledge/implementation-examples.md +18 -0
- package/one/knowledge/installation-folders.md +18 -0
- package/one/knowledge/institutional-cycle-paradigm-2025.md +555 -0
- package/one/knowledge/knowledge.md +18 -0
- package/one/knowledge/language.md +18 -0
- package/one/knowledge/lessons-learned.md +18 -0
- package/one/knowledge/lessons-website-building-focus.md +18 -0
- package/one/knowledge/merge-report.md +254 -0
- package/one/knowledge/nine-padel-playbook.md +18 -0
- package/one/knowledge/ontology-blog.yaml +42 -26
- package/one/knowledge/ontology-cheatsheet.md +18 -0
- package/one/knowledge/ontology-community.yaml +60 -37
- package/one/knowledge/ontology-core-universal.md +19 -1
- package/one/knowledge/ontology-core.yaml +58 -45
- package/one/knowledge/ontology-courses.yaml +71 -48
- package/one/knowledge/ontology-creator.md +30 -4
- package/one/knowledge/ontology-crypto.md +1603 -0
- package/one/knowledge/ontology-developer-guide.md +18 -0
- package/one/knowledge/ontology-documentation.md +46 -25
- package/one/knowledge/ontology-ecommerce.md +24 -6
- package/one/knowledge/ontology-education.md +18 -0
- package/one/knowledge/ontology-engineering-specification.md +22 -4
- package/one/knowledge/ontology-engineering.md +67 -43
- package/one/knowledge/ontology-files.yaml +525 -0
- package/one/knowledge/ontology-frontend-master.md +2898 -0
- package/one/knowledge/ontology-frontend-specifications.md +57 -49
- package/one/knowledge/ontology-frontend.md +40 -22
- package/one/knowledge/ontology-index.md +18 -0
- package/one/knowledge/ontology-minimal.yaml +18 -16
- package/one/knowledge/ontology-portfolio.yaml +40 -26
- package/one/knowledge/ontology-quickstart.md +18 -0
- package/one/knowledge/ontology-release.md +317 -0
- package/one/knowledge/ontology-shop.yaml +146 -119
- package/one/knowledge/ontology-tokens.yaml +46 -27
- package/one/knowledge/ontology-tutorial.md +18 -0
- package/one/knowledge/ontology-video-script.md +18 -0
- package/one/knowledge/ontology-visual-guide.md +20 -2
- package/one/knowledge/ontology.md +1329 -304
- package/one/knowledge/ontology.yaml +763 -275
- package/one/knowledge/patterns/backend/convex-mutation-pattern.md +48 -18
- package/one/knowledge/patterns/backend/convex-query-pattern.md +78 -23
- package/one/knowledge/patterns/backend/mutation-template.md +28 -10
- package/one/knowledge/patterns/backend/query-template.md +44 -25
- package/one/knowledge/patterns/backend/service-template.md +35 -14
- package/one/knowledge/patterns/design/component-architecture.md +45 -9
- package/one/knowledge/patterns/design/test-driven-design-pattern.md +37 -3
- package/one/knowledge/patterns/design/wireframe-template.md +36 -2
- package/one/knowledge/patterns/frontend/component-template.md +91 -40
- package/one/knowledge/patterns/frontend/form-template.md +131 -59
- package/one/knowledge/patterns/frontend/page-template.md +59 -28
- package/one/knowledge/patterns/frontend/react-component-pattern.md +87 -27
- package/one/knowledge/patterns/test/acceptance-criteria-template.md +28 -10
- package/one/knowledge/patterns/test/technical-test-template.md +48 -26
- package/one/knowledge/patterns/test/test-driven-pattern.md +25 -5
- package/one/knowledge/patterns/test/user-flow-template.md +18 -0
- package/one/knowledge/provider-agnostic-content.md +995 -0
- package/one/knowledge/provider-creation-guide.md +18 -0
- package/one/knowledge/quality-loop.md +18 -0
- package/one/knowledge/readme-architecture.md +158 -0
- package/one/knowledge/readme.md +18 -0
- package/one/knowledge/rules.md +18 -0
- package/one/knowledge/score.md +18 -0
- package/one/knowledge/specifications.md +18 -0
- package/one/knowledge/tags.md +18 -0
- package/one/knowledge/todo-template.md +18 -0
- package/one/knowledge/todo.md +18 -0
- package/one/knowledge/typescript-patterns.md +18 -0
- package/one/knowledge/universal-generation-language.md +827 -0
- package/one/knowledge/x402-research.md +104 -0
- package/one/license.md +18 -0
- package/one/people/anthony-o-connell.md +48 -19
- package/one/people/people.md +54 -31
- package/one/things/ALIGNMENT_AUDIT_QUALITY_AGENT.md +401 -0
- package/one/things/AUDIT_AGENT_INTEGRATOR_ALIGNMENT.md +588 -0
- package/one/things/AUDIT_REPORT_AGENT_CLEAN.md +461 -0
- package/one/things/CHECKLIST.md +51 -0
- package/one/things/IMPLEMENTATION_STATUS.md +379 -0
- package/one/things/ONE.md +19 -1
- package/one/things/agents/agent-backend.md +198 -98
- package/one/things/agents/agent-builder.md +267 -158
- package/one/things/agents/agent-clean.md +40 -15
- package/one/things/agents/agent-clone.md +33 -50
- package/one/things/agents/agent-deploy.md +59 -11
- package/one/things/agents/agent-designer.md +274 -146
- package/one/things/agents/agent-director.md +20 -2
- package/one/things/agents/agent-documenter.md +126 -46
- package/one/things/agents/agent-frontend.md +104 -22
- package/one/things/agents/agent-integrator.md +153 -76
- package/one/things/agents/agent-lawyer.md +197 -92
- package/one/things/agents/agent-problem-solver.md +302 -224
- package/one/things/agents/agent-quality.md +149 -19
- package/one/things/agents/agent-sales.md +95 -7
- package/one/things/cascade/cascade.yaml +20 -3
- package/one/things/cascade/docs/examples/1-1-agent-prompts/design.md +53 -0
- package/one/things/cascade/docs/examples/1-1-agent-prompts/tests.md +50 -0
- package/one/things/cascade/docs/examples/1-1-agent-prompts.md +76 -0
- package/one/things/cascade/docs/examples/1-2-yaml-orchestrator/design.md +49 -3
- package/one/things/cascade/docs/examples/1-2-yaml-orchestrator/tests.md +45 -0
- package/one/things/cascade/docs/examples/1-2-yaml-orchestrator.md +32 -0
- package/one/things/cascade/docs/examples/1-3-event-coordination/design.md +45 -3
- package/one/things/cascade/docs/examples/1-3-event-coordination/tests.md +44 -0
- package/one/things/cascade/docs/examples/1-3-event-coordination.md +40 -1
- package/one/things/cascade/docs/examples/1-4-knowledge-management/design.md +81 -25
- package/one/things/cascade/docs/examples/1-4-knowledge-management/tests.md +41 -0
- package/one/things/cascade/docs/examples/1-4-knowledge-management.md +91 -16
- package/one/things/cascade/docs/examples/1-5-quality-loops/design.md +136 -73
- package/one/things/cascade/docs/examples/1-5-quality-loops/tests.md +43 -0
- package/one/things/cascade/docs/examples/1-5-quality-loops.md +88 -4
- package/one/things/cascade/docs/examples/1-6-numbering-structure/design.md +52 -3
- package/one/things/cascade/docs/examples/1-6-numbering-structure/tests.md +44 -1
- package/one/things/cascade/docs/examples/1-6-numbering-structure.md +78 -14
- package/one/things/cascade/docs/examples/readme.md +37 -0
- package/one/things/cascade/docs/getting-started.md +18 -0
- package/one/things/cascade/docs/workflow.md +18 -12
- package/one/things/cascade/readme.md +43 -0
- package/one/things/cascade/templates/feature-template.md +28 -6
- package/one/things/claude/agents/advocacy-activation-manager.md +64 -39
- package/one/things/claude/agents/advocacy-campaign-designer.md +64 -39
- package/one/things/claude/agents/analyst.md +64 -39
- package/one/things/claude/agents/architect.md +64 -39
- package/one/things/claude/agents/brand-identity-specialist.md +64 -39
- package/one/things/claude/agents/bstp-token-strategist.md +48 -25
- package/one/things/claude/agents/builder-repo.md +69 -26
- package/one/things/claude/agents/bullstamp-community-builder.md +48 -25
- package/one/things/claude/agents/bullstamp-marketing-orchestrator.md +48 -25
- package/one/things/claude/agents/bulltilt-platform-growth.md +48 -25
- package/one/things/claude/agents/company-bullstamp-character.md +45 -30
- package/one/things/claude/agents/company-bullstamp-community.md +45 -30
- package/one/things/claude/agents/company-bullstamp-marketing.md +45 -30
- package/one/things/claude/agents/company-bullstamp-token.md +45 -30
- package/one/things/claude/agents/company-bulltilt-growth.md +45 -30
- package/one/things/claude/agents/content-bibliography-formatter.md +48 -25
- package/one/things/claude/agents/content-calendar-planner.md +59 -34
- package/one/things/claude/agents/content-chapter-formatter.md +60 -35
- package/one/things/claude/agents/content-formatter.md +59 -34
- package/one/things/claude/agents/content-hook-specialist.md +54 -31
- package/one/things/claude/agents/content-image-formatter.md +59 -34
- package/one/things/claude/agents/content-introduction-formatter.md +59 -34
- package/one/things/claude/agents/content-multiplication-engine.md +54 -31
- package/one/things/claude/agents/content-playbook-writer.md +60 -35
- package/one/things/claude/agents/content-team-manager.md +59 -34
- package/one/things/claude/agents/content-toc-formatter.md +60 -35
- package/one/things/claude/agents/convex-backend-specialist.md +380 -216
- package/one/things/claude/agents/core-manager.md +59 -34
- package/one/things/claude/agents/core-master.md +55 -32
- package/one/things/claude/agents/cross-functional-manager.md +46 -41
- package/one/things/claude/agents/crypto-airdrop-strategist.md +74 -54
- package/one/things/claude/agents/crypto-analytics-educator.md +73 -30
- package/one/things/claude/agents/crypto-architecture-specialist.md +70 -39
- package/one/things/claude/agents/crypto-community-analyst.md +47 -31
- package/one/things/claude/agents/crypto-community-psychologist.md +68 -31
- package/one/things/claude/agents/crypto-dex-optimization-expert.md +72 -31
- package/one/things/claude/agents/crypto-dex-optimizer.md +45 -30
- package/one/things/claude/agents/crypto-diamond-formation-specialist.md +69 -30
- package/one/things/claude/agents/crypto-diamond-hands.md +45 -30
- package/one/things/claude/agents/crypto-ecosystem-expansion-manager.md +73 -30
- package/one/things/claude/agents/crypto-engagement-specialist.md +71 -30
- package/one/things/claude/agents/crypto-market-researcher.md +45 -30
- package/one/things/claude/agents/crypto-marketing-orchestrator.md +74 -34
- package/one/things/claude/agents/crypto-network-effect-amplifier.md +75 -30
- package/one/things/claude/agents/crypto-optimization-analyst.md +73 -30
- package/one/things/claude/agents/crypto-strategic-synthesizer.md +69 -30
- package/one/things/claude/agents/crypto-team-manager.md +45 -40
- package/one/things/claude/agents/crypto-token-analyst.md +66 -25
- package/one/things/claude/agents/crypto-viral-content-creator.md +64 -61
- package/one/things/claude/agents/crypto-wallet-identification-expert.md +61 -51
- package/one/things/claude/agents/crypto-wallet-identifier.md +45 -30
- package/one/things/claude/agents/customer-journey-designer.md +51 -58
- package/one/things/claude/agents/customer-success-manager.md +51 -58
- package/one/things/claude/agents/dev.md +51 -58
- package/one/things/claude/agents/documenter.md +71 -69
- package/one/things/claude/agents/elevate-marketing-orchestrator.md +45 -52
- package/one/things/claude/agents/engagement-specialist.md +45 -52
- package/one/things/claude/agents/engineering-architect.md +54 -54
- package/one/things/claude/agents/engineering-business-analyst.md +46 -56
- package/one/things/claude/agents/engineering-developer.md +51 -52
- package/one/things/claude/agents/engineering-director.md +65 -25
- package/one/things/claude/agents/engineering-ingestor.md +110 -100
- package/one/things/claude/agents/engineering-product-manager.md +43 -55
- package/one/things/claude/agents/engineering-product-owner.md +46 -56
- package/one/things/claude/agents/engineering-project-coordinator.md +44 -56
- package/one/things/claude/agents/engineering-quality-assurance.md +53 -54
- package/one/things/claude/agents/engineering-team-manager.md +46 -43
- package/one/things/claude/agents/engineering-user-experience.md +51 -52
- package/one/things/claude/agents/framework-elevate-manager.md +45 -30
- package/one/things/claude/agents/improver.md +120 -78
- package/one/things/claude/agents/intelligence-team-manager.md +45 -40
- package/one/things/claude/agents/lead-capture-expert.md +45 -52
- package/one/things/claude/agents/lead-magnet-creator.md +45 -52
- package/one/things/claude/agents/market-research-analyst.md +48 -25
- package/one/things/claude/agents/marketing-brand-identity.md +57 -27
- package/one/things/claude/agents/marketing-content-hooks.md +45 -40
- package/one/things/claude/agents/marketing-content-multiplier.md +45 -40
- package/one/things/claude/agents/marketing-content-poster.md +71 -60
- package/one/things/claude/agents/marketing-customer-journey.md +45 -40
- package/one/things/claude/agents/marketing-director.md +46 -41
- package/one/things/claude/agents/marketing-engagement.md +45 -40
- package/one/things/claude/agents/marketing-lead-capture.md +45 -40
- package/one/things/claude/agents/marketing-lead-magnet.md +45 -40
- package/one/things/claude/agents/marketing-network-effects.md +45 -40
- package/one/things/claude/agents/marketing-nurture-campaigns.md +45 -40
- package/one/things/claude/agents/marketing-share-optimizer.md +45 -40
- package/one/things/claude/agents/marketing-team-manager.md +45 -40
- package/one/things/claude/agents/marketing-viral-growth.md +49 -18
- package/one/things/claude/agents/mission-commander.md +45 -40
- package/one/things/claude/agents/network-effect-analyst.md +48 -31
- package/one/things/claude/agents/nextjs-15-specialist.md +209 -122
- package/one/things/claude/agents/npx.md +126 -70
- package/one/things/claude/agents/nurture-campaign-manager.md +48 -25
- package/one/things/claude/agents/one-master.md +48 -25
- package/one/things/claude/agents/one-orchestrator.md +57 -27
- package/one/things/claude/agents/one.md +88 -31
- package/one/things/claude/agents/playbook-generator.md +48 -25
- package/one/things/claude/agents/pm.md +48 -25
- package/one/things/claude/agents/po.md +51 -26
- package/one/things/claude/agents/qa.md +50 -25
- package/one/things/claude/agents/research-foundation-analyst.md +48 -31
- package/one/things/claude/agents/research-intelligence-gatherer.md +59 -32
- package/one/things/claude/agents/research-market-analyst.md +47 -30
- package/one/things/claude/agents/research-team-manager.md +47 -40
- package/one/things/claude/agents/sales-environment-optimizer.md +50 -25
- package/one/things/claude/agents/sales-team-manager.md +47 -40
- package/one/things/claude/agents/sales-upsell-strategist.md +47 -30
- package/one/things/claude/agents/service-advocacy-campaigns.md +47 -30
- package/one/things/claude/agents/service-advocacy-manager.md +47 -30
- package/one/things/claude/agents/service-success-manager.md +47 -30
- package/one/things/claude/agents/service-team-manager.md +45 -40
- package/one/things/claude/agents/shadcn-ui-design-system-specialist.md +85 -30
- package/one/things/claude/agents/share-optimization-specialist.md +50 -25
- package/one/things/claude/agents/sm.md +50 -25
- package/one/things/claude/agents/story-teller.md +51 -26
- package/one/things/claude/agents/task-master.md +52 -27
- package/one/things/claude/agents/tauri-cross-platform-specialist.md +201 -116
- package/one/things/claude/agents/tester.md +85 -46
- package/one/things/claude/agents/the-bull-character-manager.md +48 -25
- package/one/things/claude/agents/tools-playbook-generator.md +43 -40
- package/one/things/claude/agents/turbo-repo-builder.md +57 -27
- package/one/things/claude/agents/upsell-strategist.md +48 -25
- package/one/things/claude/agents/ux-expert.md +50 -25
- package/one/things/claude/agents/viral-growth-orchestrator.md +50 -27
- package/one/things/claude/commands/agent.md +25 -5
- package/one/things/claude/commands/cascade-status.md +33 -8
- package/one/things/claude/commands/ingest.md +64 -11
- package/one/things/claude/commands/ingestor.md +29 -7
- package/one/things/claude/commands/mission.md +24 -4
- package/one/things/claude/commands/npx.md +30 -7
- package/one/things/claude/commands/one.md +114 -68
- package/one/things/claude/commands/quality-check.md +72 -24
- package/one/things/claude/commands/smart-route.md +45 -4
- package/one/things/claude/commands/start.md +22 -4
- package/one/things/claude/commands/story.md +25 -5
- package/one/things/claude/commands/task.md +21 -1
- package/one/things/cli/cli-code.md +244 -219
- package/one/things/cli/cli-compiler-code.md +244 -219
- package/one/things/cli/cli.md +30 -6
- package/one/things/components/card-shadcn.md +252 -228
- package/one/things/components/card.md +315 -324
- package/one/things/components.md +667 -593
- package/one/things/componets.md +16 -1
- package/one/things/creator-diagram.md +23 -5
- package/one/things/demo-accessibility-animations.md +73 -47
- package/one/things/demo-components.md +225 -219
- package/one/things/demo-design-summary.md +89 -26
- package/one/things/demo-design-system.md +184 -130
- package/one/things/demo-page-layouts.md +52 -25
- package/one/things/designs/accessibility-audit.md +153 -66
- package/one/things/designs/component-specifications.md +163 -65
- package/one/things/designs/design-overview.md +81 -22
- package/one/things/designs/design-tokens.md +127 -93
- package/one/things/designs/wireframes-dashboard.md +64 -7
- package/one/things/docs/api-requests.md +75 -11
- package/one/things/docs/ecommerce/ARCHITECTURE-DIAGRAM.md +18 -0
- package/one/things/docs/ecommerce/CONVERSION-ELEMENTS-IMPLEMENTATION.md +57 -0
- package/one/things/docs/ecommerce/CONVERSION-ELEMENTS-SUMMARY.md +62 -6
- package/one/things/docs/ecommerce/CONVERSION-UX-IMPLEMENTATION-SUMMARY.md +60 -5
- package/one/things/docs/ecommerce/FEATURE-SUMMARY.md +95 -27
- package/one/things/docs/ecommerce/IMPLEMENTATION-NOTES.md +130 -62
- package/one/things/docs/ecommerce/INTEGRATION-EXAMPLE.md +43 -19
- package/one/things/docs/ecommerce/QUICK-START.md +41 -4
- package/one/things/docs/ecommerce/URGENCY-IMPLEMENTATION-SUMMARY.md +75 -6
- package/one/things/docs/ecommerce/URGENCY-QUICK-REFERENCE.md +58 -24
- package/one/things/examples/children/lemonade-stand.md +52 -14
- package/one/things/examples/enterprise/crm-saas.md +43 -28
- package/one/things/features/1-1-agent-prompts.md +76 -0
- package/one/things/features/1-2-yaml-orchestrator.md +32 -0
- package/one/things/features/1-3-event-coordination.md +40 -1
- package/one/things/features/1-4-knowledge-management.md +91 -16
- package/one/things/features/1-5-quality-loops.md +88 -4
- package/one/things/features/1-6-numbering-structure.md +78 -14
- package/one/things/features/2-1-dataprovider-interface.md +311 -86
- package/one/things/features/2-2-config-system.md +307 -140
- package/one/things/features/2-3-effectts-services.md +263 -116
- package/one/things/features/2-4-react-hooks.md +217 -201
- package/one/things/features/2-5-auth-migration.md +406 -308
- package/one/things/features/2-6-dashboard-migration.md +112 -13
- package/one/things/features/2-7-alternative-providers.md +138 -65
- package/one/things/features/2-7-implementation-report.md +68 -24
- package/one/things/features/2-cli.md +88 -76
- package/one/things/features/2-design.md +112 -80
- package/one/things/features/2-tests.md +56 -0
- package/one/things/features/AUTH_HOOKS_IMPLEMENTATION.md +91 -36
- package/one/things/features/DECOUPLING.md +36 -18
- package/one/things/features/DEPLOYMENT.md +22 -4
- package/one/things/features/IMPLEMENTATION_SUMMARY.md +48 -2
- package/one/things/features/improve.md +47 -29
- package/one/things/features/remove-convex-deps.md +18 -0
- package/one/things/features/top-features.md +28 -20
- package/one/things/features/use-one-backend.md +210 -173
- package/one/things/features-in-english.md +19 -6
- package/one/things/files.yaml +721 -0
- package/one/things/ideas/1-create-workflow.md +18 -0
- package/one/things/ideas/2-backend-agnostic-frontend.md +57 -2
- package/one/things/implementation/backend-guide.md +64 -19
- package/one/things/interface.md +43 -0
- package/one/things/landing-page-implementation.md +455 -0
- package/one/things/legal/README.md +44 -0
- package/one/things/legal/privacy-policy.md +186 -23
- package/one/things/legal/terms-of-service.md +164 -3
- package/one/things/master-workflow-plan.md +806 -0
- package/one/things/plans/0-timeline.md +36 -0
- package/one/things/plans/1-create-workflow.md +19 -0
- package/one/things/plans/QUICK-START-SIMPLIFICATION.md +333 -0
- package/one/things/plans/README-SIMPLIFICATION.md +349 -0
- package/one/things/plans/SIMPLIFICATION-EXAMPLES.md +16 -0
- package/one/things/plans/SIMPLIFICATION-SUMMARY.md +455 -0
- package/one/things/plans/ai-elements.md +21 -2
- package/one/things/plans/ai-integration.md +108 -59
- package/one/things/plans/ai-sdk.md +85 -48
- package/one/things/plans/ai-tools.md +621 -0
- package/one/things/plans/app.md +142 -71
- package/one/things/plans/architecture-summary.md +34 -5
- package/one/things/plans/async-ai-agents.md +19 -1
- package/one/things/plans/backend-agnostic-frontend.md +70 -8
- package/one/things/plans/backend-cleanup-quickstart.md +52 -18
- package/one/things/plans/backend-ontology-conformance.md +110 -51
- package/one/things/plans/backend-status.md +58 -0
- package/one/things/plans/backend-structure.md +103 -55
- package/one/things/plans/backend-target-structure.md +61 -17
- package/one/things/plans/backend.md +60 -18
- package/one/things/plans/better-auth-any-backend-revised.md +325 -287
- package/one/things/plans/better-auth-any-backend.md +575 -531
- package/one/things/plans/better-auth-available-features.md +43 -5
- package/one/things/plans/big-plan.md +20 -6
- package/one/things/plans/cli-updates-required.md +44 -4
- package/one/things/plans/complete-step-by-step.md +223 -116
- package/one/things/plans/components.md +709 -0
- package/one/things/plans/convex-agents.md +79 -50
- package/one/things/plans/convex-better-auth.md +186 -154
- package/one/things/plans/convex-on-off.md +47 -29
- package/one/things/plans/crypto-token-researcher.md +629 -0
- package/one/things/plans/data-quality-metrics.md +745 -0
- package/one/things/plans/deep-researcher-agent.md +466 -0
- package/one/things/plans/deploy-to-cloudflare.md +55 -13
- package/one/things/plans/deployment-architecture.md +54 -11
- package/one/things/plans/desktop.md +21 -3
- package/one/things/plans/development-plan.md +184 -121
- package/one/things/plans/development-workflow-tldr.md +207 -0
- package/one/things/plans/development-workflow.md +959 -0
- package/one/things/plans/effect-components.md +667 -593
- package/one/things/plans/effect-patterns-reference.md +2235 -0
- package/one/things/plans/effect.md +204 -131
- package/one/things/plans/email.md +21 -8
- package/one/things/plans/enhance-auth.md +64 -41
- package/one/things/plans/execution-strategy.md +1291 -0
- package/one/things/plans/existing-infrastructure.md +712 -0
- package/one/things/plans/feature-based-sites.md +124 -51
- package/one/things/plans/frontend-effects.md +1276 -0
- package/one/things/plans/group-folder-multi-tenancy.md +92 -29
- package/one/things/plans/improve-codebase.md +498 -421
- package/one/things/plans/install-components.md +18 -1
- package/one/things/plans/integrate-frontend-and-backend.md +68 -44
- package/one/things/plans/landing.md +92 -0
- package/one/things/plans/layout.md +45 -1
- package/one/things/plans/mail-backend.md +546 -493
- package/one/things/plans/mail.md +379 -326
- package/one/things/plans/mcp-clear-context-prompt.md +21 -0
- package/one/things/plans/mcp-simple.md +20 -0
- package/one/things/plans/multi-ontology-architecture.md +115 -66
- package/one/things/plans/next-features.md +31 -0
- package/one/things/plans/onboarding.md +20 -1
- package/one/things/plans/one.md +18 -0
- package/one/things/plans/ontology-6-dimensions.md +24 -45
- package/one/things/plans/ontology-compliance-audit.md +315 -0
- package/one/things/plans/ontology-driven-strategy.md +19 -3
- package/one/things/plans/ontology-refine.md +586 -0
- package/one/things/plans/ontology-ui-approach.md +18 -0
- package/one/things/plans/open-agent.md +152 -97
- package/one/things/plans/performace.md +32 -0
- package/one/things/plans/phase-1-foundation.md +620 -0
- package/one/things/plans/phase-3-implementation.md +1037 -0
- package/one/things/plans/quick-wins.md +342 -187
- package/one/things/plans/readme-backend-cleanup.md +54 -13
- package/one/things/plans/release.md +55 -2
- package/one/things/plans/repos.md +22 -0
- package/one/things/plans/separate-copy-2.md +127 -71
- package/one/things/plans/separate-copy-3.md +35 -14
- package/one/things/plans/separate-copy.md +127 -71
- package/one/things/plans/separate-demo.md +37 -3
- package/one/things/plans/separate.md +24 -6
- package/one/things/plans/sequence.md +155 -12
- package/one/things/plans/shadcn-integration-summary.md +104 -44
- package/one/things/plans/sidebar.md +44 -10
- package/one/things/plans/skills.md +103 -0
- package/one/things/plans/small-fixes.md +19 -1
- package/one/things/plans/start-new.md +34 -8
- package/one/things/plans/switch-off-auth.md +22 -0
- package/one/things/plans/sync-checklist.md +30 -0
- package/one/things/plans/test-backend-connection.md +38 -0
- package/one/things/plans/unified-implementation-plan.md +144 -62
- package/one/things/plans/update-demos.md +103 -35
- package/one/things/plans/use-our-backend.md +572 -0
- package/one/things/plans/wave1-onboarding-100-inferences.md +1686 -0
- package/one/things/plans/wave1-onboarding-vision.md +744 -0
- package/one/things/plans/wave1-orchestration-summary.md +604 -0
- package/one/things/plans/wave1-specialist-assignments.md +1413 -0
- package/one/things/plans/workflow-files.md +28 -14
- package/one/things/plans/workflow.md +18 -12
- package/one/things/products/cascade-landing-page.md +150 -46
- package/one/things/products/cascade.md +185 -135
- package/one/things/products/context-engineering.md +411 -350
- package/one/things/products/onthology.md +15 -0
- package/one/things/products/ontology-ui-shadcn.md +375 -353
- package/one/things/products/ontology-ui.md +101 -59
- package/one/things/products/ontology.md +90 -18
- package/one/things/products/sdk.md +181 -165
- package/one/things/promptkit.md +70 -43
- package/one/things/repos/all-repos.md +0 -0
- package/one/things/service-providers-new.md +95 -25
- package/one/things/service-providers.md +231 -202
- package/one/things/structure.md +532 -0
- package/one/things/system.md +18 -0
- package/one/things/templates.md +40 -0
- package/one/things/tests/2-1-dataprovider-interface.md +103 -31
- package/one/things/tests/2-1-test-analysis.md +65 -17
- package/one/things/things.md +48 -13
- package/one/things/todo-acp-integration.md +744 -0
- package/one/things/todo-ai.md +933 -0
- package/one/things/todo-api.md +1078 -0
- package/one/things/todo-assignment.md +580 -0
- package/one/things/todo-buy-chatgpt.md +1450 -0
- package/one/things/todo-components.md +1683 -0
- package/one/things/todo-connections.md +278 -0
- package/one/things/todo-ecommerce-frontend.md +1313 -0
- package/one/things/todo-ecommerce.md +569 -0
- package/one/things/todo-effects.md +1075 -0
- package/one/things/todo-frontend-effects.md +977 -0
- package/one/things/todo-landing-page.md +1091 -0
- package/one/things/todo-mail.md +1160 -0
- package/one/things/todo-master-plan.md +490 -0
- package/one/things/todo-onboard.md +666 -0
- package/one/things/todo-one-ie.md +538 -0
- package/one/things/todo-page.md +606 -0
- package/one/things/todo-plans.md +282 -0
- package/one/things/todo-projects.md +241 -0
- package/one/things/todo-refactoring-plan.md +366 -0
- package/one/things/todo-sequence.md +1621 -0
- package/one/things/todo-use-our-backend.md +1908 -0
- package/one/things/todo-workflow.md +626 -0
- package/one/things/todo-x402.md +2047 -0
- package/one/things/todo.md +459 -1075
- package/one/things/video/scripts-crypto.md +835 -0
- package/one/things/video-script-ontology.md +334 -0
- package/package.json +1 -1
- package/one/knowledge/CLOUDFLARE_ENV_SETUP.md +0 -49
- package/one/knowledge/docs/flow.md +0 -0
- package/one/knowledge/documentation-summary.md +0 -285
- package/one/knowledge/inference-score.md +0 -159
- package/one/knowledge/ontology-frontend-copy-2.md +0 -1492
- package/one/knowledge/ontology-frontend-copy.md +0 -753
- package/one/knowledge/ontology-migration-guide.md +0 -811
- package/one/things/features/0 All Features.md +0 -2
- package/one/things/plans/1-create-workflow-status.md +0 -555
- package/one/things/plans/2-backend-agnostic-frontend.md +0 -546
- package/one/things/plans/2-sites.md +0 -895
- package/one/things/plans/3-groups.md +0 -735
- package/one/things/plans/5-build-frontend.md +0 -0
- package/one/things/plans/5-complete.md +0 -17
- package/one/things/plans/agent-director-100-inference-plans.md +0 -410
- package/one/things/plans/dual-website-strategy.md +0 -612
- package/one/things/plans/releases.md +0 -809
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Agent Problem Solver
|
|
3
|
+
dimension: things
|
|
4
|
+
category: agents
|
|
5
|
+
tags: agent, ai, ai-agent, knowledge, ontology
|
|
6
|
+
related_dimensions: connections, events, groups, knowledge, people
|
|
7
|
+
scope: global
|
|
8
|
+
created: 2025-11-03
|
|
9
|
+
updated: 2025-11-03
|
|
10
|
+
version: 1.0.0
|
|
11
|
+
ai_context: |
|
|
12
|
+
This document is part of the things dimension in the agents category.
|
|
13
|
+
Location: one/things/agents/agent-problem-solver.md
|
|
14
|
+
Purpose: Documents problem solver agent
|
|
15
|
+
Related dimensions: connections, events, groups, knowledge, people
|
|
16
|
+
For AI agents: Read this to understand agent problem solver.
|
|
17
|
+
---
|
|
18
|
+
|
|
1
19
|
# Problem Solver Agent
|
|
2
20
|
|
|
3
21
|
**Version:** 2.0.0 (6-Dimension Ontology Aligned)
|
|
@@ -21,11 +39,13 @@ Analyze failed tests using deep analysis (ultrathink mode), identify root causes
|
|
|
21
39
|
## Responsibilities
|
|
22
40
|
|
|
23
41
|
### Core Responsibilities (from Ontology)
|
|
42
|
+
|
|
24
43
|
- **analyze_failures** - Deep analysis of test failures using ultrathink mode
|
|
25
44
|
- **propose_solutions** - Generate specific, actionable fix proposals
|
|
26
45
|
- **delegate_fixes** - Assign solutions to appropriate specialist agents
|
|
27
46
|
|
|
28
47
|
### Extended Responsibilities (Ontology-Aware)
|
|
48
|
+
|
|
29
49
|
- Query **events** table for failure patterns (`test_failed` events)
|
|
30
50
|
- Search **knowledge** table for similar issues (embeddings + labels)
|
|
31
51
|
- Create **things** (type: `lesson`) to capture lessons learned
|
|
@@ -41,34 +61,40 @@ Analyze failed tests using deep analysis (ultrathink mode), identify root causes
|
|
|
41
61
|
This agent interacts with all 6 dimensions of the ontology:
|
|
42
62
|
|
|
43
63
|
### 1. Organizations
|
|
64
|
+
|
|
44
65
|
- Validates performance against organization quotas
|
|
45
66
|
- Ensures fixes respect organization-level limits
|
|
46
67
|
- Scopes problem analysis to organization context
|
|
47
68
|
|
|
48
69
|
### 2. People
|
|
70
|
+
|
|
49
71
|
- Identifies **actorId** (person) who triggered the failure
|
|
50
72
|
- Delegates fixes to appropriate specialist **people** (by role)
|
|
51
73
|
- Logs all actions with proper actor attribution
|
|
52
74
|
|
|
53
75
|
### 3. Things
|
|
76
|
+
|
|
54
77
|
- Analyzes failed **things** (entities being tested)
|
|
55
78
|
- Creates **lessons** (type: `lesson`) as new things
|
|
56
79
|
- References **features** (type: `feature`) and **tasks** (type: `task`)
|
|
57
80
|
- Examines **test** things for acceptance criteria
|
|
58
81
|
|
|
59
82
|
### 4. Connections
|
|
83
|
+
|
|
60
84
|
- Queries `learned_from` connections (feature → lesson)
|
|
61
85
|
- Creates `assigned_to` connections (solution → specialist)
|
|
62
86
|
- Analyzes `part_of` connections (task → feature hierarchy)
|
|
63
87
|
- Uses `depends_on` connections to understand dependencies
|
|
64
88
|
|
|
65
89
|
### 5. Events
|
|
90
|
+
|
|
66
91
|
- **Watches:** `test_failed`, `implementation_complete`, `quality_check_complete`
|
|
67
92
|
- **Emits:** `problem_analysis_started`, `solution_proposed`, `fix_started`, `fix_complete`, `lesson_learned_added`
|
|
68
93
|
- Queries event history to identify recurring failure patterns
|
|
69
94
|
- Creates complete audit trail of problem-solving process
|
|
70
95
|
|
|
71
96
|
### 6. Knowledge
|
|
97
|
+
|
|
72
98
|
- Searches **knowledge** table for similar failures (vector similarity)
|
|
73
99
|
- Queries by `knowledgeType: 'label'` with labels like `skill:debugging`, `topic:performance`
|
|
74
100
|
- Links lessons to features via **thingKnowledge** junction table
|
|
@@ -80,23 +106,27 @@ This agent interacts with all 6 dimensions of the ontology:
|
|
|
80
106
|
## Input
|
|
81
107
|
|
|
82
108
|
### From Events Table
|
|
109
|
+
|
|
83
110
|
- `test_failed` events with metadata:
|
|
84
111
|
- `testName`, `errorMessage`, `stackTrace`
|
|
85
112
|
- `featureId`, `taskId`, `timestamp`
|
|
86
113
|
- `expectedResult`, `actualResult`
|
|
87
114
|
|
|
88
115
|
### From Things Table
|
|
116
|
+
|
|
89
117
|
- Failed implementation code (things with type: `task`, status: `failed`)
|
|
90
118
|
- Feature specifications (things with type: `feature`)
|
|
91
119
|
- Test criteria (things with type: `test`)
|
|
92
120
|
- Existing lessons (things with type: `lesson`)
|
|
93
121
|
|
|
94
122
|
### From Knowledge Table
|
|
123
|
+
|
|
95
124
|
- Similar failure patterns (vector similarity search)
|
|
96
125
|
- Labels: `skill:*`, `topic:*`, `status:failed`, `category:bug`
|
|
97
126
|
- Documentation chunks linked to failed components
|
|
98
127
|
|
|
99
128
|
### From Connections Table
|
|
129
|
+
|
|
100
130
|
- Feature-to-task relationships (`part_of`)
|
|
101
131
|
- Specialist assignments (`assigned_to`)
|
|
102
132
|
- Lesson linkages (`learned_from`)
|
|
@@ -106,6 +136,7 @@ This agent interacts with all 6 dimensions of the ontology:
|
|
|
106
136
|
## Output
|
|
107
137
|
|
|
108
138
|
### To Events Table
|
|
139
|
+
|
|
109
140
|
```typescript
|
|
110
141
|
// Problem analysis started
|
|
111
142
|
{
|
|
@@ -150,6 +181,7 @@ This agent interacts with all 6 dimensions of the ontology:
|
|
|
150
181
|
```
|
|
151
182
|
|
|
152
183
|
### To Things Table
|
|
184
|
+
|
|
153
185
|
```typescript
|
|
154
186
|
// Create lesson as a thing
|
|
155
187
|
{
|
|
@@ -172,6 +204,7 @@ This agent interacts with all 6 dimensions of the ontology:
|
|
|
172
204
|
```
|
|
173
205
|
|
|
174
206
|
### To Knowledge Table
|
|
207
|
+
|
|
175
208
|
```typescript
|
|
176
209
|
// Create knowledge chunk with embedding
|
|
177
210
|
{
|
|
@@ -212,6 +245,7 @@ This agent interacts with all 6 dimensions of the ontology:
|
|
|
212
245
|
```
|
|
213
246
|
|
|
214
247
|
### To Connections Table
|
|
248
|
+
|
|
215
249
|
```typescript
|
|
216
250
|
// Link lesson to feature
|
|
217
251
|
{
|
|
@@ -243,6 +277,7 @@ This agent interacts with all 6 dimensions of the ontology:
|
|
|
243
277
|
```
|
|
244
278
|
|
|
245
279
|
### Problem Documents
|
|
280
|
+
|
|
246
281
|
- `problems/N-M-problem-K.md` - Detailed analysis and solution proposal
|
|
247
282
|
|
|
248
283
|
---
|
|
@@ -252,6 +287,7 @@ This agent interacts with all 6 dimensions of the ontology:
|
|
|
252
287
|
**2,500 tokens** - Maximum context for deep analysis (highest among workflow agents)
|
|
253
288
|
|
|
254
289
|
**What's included:**
|
|
290
|
+
|
|
255
291
|
- Failed test details (name, error, stack trace): ~300 tokens
|
|
256
292
|
- Implementation code (relevant files): ~1,200 tokens
|
|
257
293
|
- Ontology types (structural validation): ~200 tokens
|
|
@@ -265,11 +301,13 @@ This agent interacts with all 6 dimensions of the ontology:
|
|
|
265
301
|
## Decision Framework
|
|
266
302
|
|
|
267
303
|
### Decision 1: What is the actual error?
|
|
304
|
+
|
|
268
305
|
- What did the test expect? (query test thing)
|
|
269
306
|
- What actually happened? (analyze test_failed event metadata)
|
|
270
307
|
- What's the diff between expected and actual?
|
|
271
308
|
|
|
272
309
|
### Decision 2: Why did it fail? (Root Cause Analysis)
|
|
310
|
+
|
|
273
311
|
- **Logic error** in code? (analyze implementation things)
|
|
274
312
|
- **Missing dependency**? (check connections table for missing relationships)
|
|
275
313
|
- **Wrong pattern applied**? (compare against knowledge base patterns)
|
|
@@ -278,52 +316,58 @@ This agent interacts with all 6 dimensions of the ontology:
|
|
|
278
316
|
- **Performance problem**? (check against organization limits)
|
|
279
317
|
|
|
280
318
|
### Decision 3: Is this a known issue? (Knowledge Search)
|
|
319
|
+
|
|
281
320
|
```typescript
|
|
282
321
|
// Vector similarity search in knowledge table
|
|
283
322
|
const similarIssues = await ctx.db
|
|
284
|
-
.query(
|
|
285
|
-
.withIndex(
|
|
286
|
-
|
|
287
|
-
)
|
|
288
|
-
.filter(q => q.gt(q.field('similarity'), 0.8))
|
|
289
|
-
.collect()
|
|
323
|
+
.query("knowledge")
|
|
324
|
+
.withIndex("by_embedding", (q) => q.similar("embedding", errorEmbedding, 10))
|
|
325
|
+
.filter((q) => q.gt(q.field("similarity"), 0.8))
|
|
326
|
+
.collect();
|
|
290
327
|
|
|
291
328
|
// Label-based search
|
|
292
329
|
const labeledIssues = await ctx.db
|
|
293
|
-
.query(
|
|
294
|
-
.withIndex(
|
|
295
|
-
.filter(
|
|
296
|
-
|
|
330
|
+
.query("knowledge")
|
|
331
|
+
.withIndex("by_type", (q) => q.eq("knowledgeType", "label"))
|
|
332
|
+
.filter((q) =>
|
|
333
|
+
q.eq(q.field("labels"), ["topic:error-handling", "status:failed"]),
|
|
334
|
+
)
|
|
335
|
+
.collect();
|
|
297
336
|
```
|
|
337
|
+
|
|
298
338
|
- Found similar problem? → Reference solution from knowledge
|
|
299
339
|
- New problem? → Will become new lesson
|
|
300
340
|
|
|
301
341
|
### Decision 4: What pattern was missed?
|
|
342
|
+
|
|
302
343
|
- Should have used service pattern? (check knowledge for `skill:services`)
|
|
303
344
|
- Should have logged event? (check knowledge for `skill:event-logging`)
|
|
304
345
|
- Should have used transaction? (check knowledge for `skill:transactions`)
|
|
305
346
|
- Should have validated input? (check knowledge for `skill:validation`)
|
|
306
347
|
|
|
307
348
|
### Decision 5: What's the minimum fix?
|
|
349
|
+
|
|
308
350
|
- Smallest change that solves problem
|
|
309
351
|
- Don't over-engineer
|
|
310
352
|
- Don't introduce new complexity
|
|
311
353
|
- Validate fix aligns with ontology structure
|
|
312
354
|
|
|
313
355
|
### Decision 6: Which specialist should fix? (People Query)
|
|
356
|
+
|
|
314
357
|
```typescript
|
|
315
358
|
// Query specialists by role (people are things with type: creator + role)
|
|
316
359
|
const specialist = await ctx.db
|
|
317
|
-
.query(
|
|
318
|
-
.withIndex(
|
|
319
|
-
.filter(q =>
|
|
360
|
+
.query("things")
|
|
361
|
+
.withIndex("by_type", (q) => q.eq("type", "creator"))
|
|
362
|
+
.filter((q) =>
|
|
320
363
|
q.and(
|
|
321
|
-
q.eq(q.field(
|
|
322
|
-
q.eq(q.field(
|
|
323
|
-
)
|
|
364
|
+
q.eq(q.field("properties.role"), problemCategory), // backend/frontend/integration
|
|
365
|
+
q.eq(q.field("status"), "active"),
|
|
366
|
+
),
|
|
324
367
|
)
|
|
325
|
-
.first()
|
|
368
|
+
.first();
|
|
326
369
|
```
|
|
370
|
+
|
|
327
371
|
- Backend issue? → Backend specialist
|
|
328
372
|
- Frontend issue? → Frontend specialist
|
|
329
373
|
- Integration issue? → Integration specialist
|
|
@@ -333,6 +377,7 @@ const specialist = await ctx.db
|
|
|
333
377
|
## Key Behaviors
|
|
334
378
|
|
|
335
379
|
### Ontology-Aware Analysis
|
|
380
|
+
|
|
336
381
|
- **Map failures to ontology dimensions** - Which dimension is misaligned?
|
|
337
382
|
- **Validate against 6-dimension structure** - Is the implementation ontology-compliant?
|
|
338
383
|
- **Query knowledge with semantic search** - Use vector embeddings for similarity
|
|
@@ -340,6 +385,7 @@ const specialist = await ctx.db
|
|
|
340
385
|
- **Scope all operations to organizations** - Multi-tenant isolation
|
|
341
386
|
|
|
342
387
|
### Ultrathink Mode Behaviors
|
|
388
|
+
|
|
343
389
|
- **Use ultrathink mode for deep analysis** - Take time to understand fully
|
|
344
390
|
- **Search lessons learned first** - Don't solve same problem twice
|
|
345
391
|
- **Identify root cause before proposing solution** - Understand "why" not just "what"
|
|
@@ -348,9 +394,10 @@ const specialist = await ctx.db
|
|
|
348
394
|
- **Ensure lesson captured after fix** - Every problem adds to knowledge
|
|
349
395
|
|
|
350
396
|
### Knowledge Base Management
|
|
397
|
+
|
|
351
398
|
- **Create embeddings for failures** - Enable semantic search
|
|
352
399
|
- **Link lessons to features** - Bidirectional traceability
|
|
353
|
-
- **Label with ontology taxonomy** - Use curated prefixes (skill
|
|
400
|
+
- **Label with ontology taxonomy** - Use curated prefixes (skill:_, topic:_)
|
|
354
401
|
- **Promote recurring patterns** - 3+ occurrences → official pattern
|
|
355
402
|
- **Update knowledge graph** - Lessons, chunks, labels all linked
|
|
356
403
|
|
|
@@ -363,21 +410,17 @@ const specialist = await ctx.db
|
|
|
363
410
|
```typescript
|
|
364
411
|
// Subscribe to test failures
|
|
365
412
|
const testFailures = await ctx.db
|
|
366
|
-
.query(
|
|
367
|
-
.withIndex(
|
|
368
|
-
|
|
369
|
-
)
|
|
370
|
-
.order('desc')
|
|
371
|
-
.take(50)
|
|
413
|
+
.query("events")
|
|
414
|
+
.withIndex("type_time", (q) => q.eq("type", "test_failed"))
|
|
415
|
+
.order("desc")
|
|
416
|
+
.take(50);
|
|
372
417
|
|
|
373
418
|
// Watch for fix completions (to verify lesson capture)
|
|
374
419
|
const fixCompletions = await ctx.db
|
|
375
|
-
.query(
|
|
376
|
-
.withIndex(
|
|
377
|
-
|
|
378
|
-
)
|
|
379
|
-
.order('desc')
|
|
380
|
-
.take(10)
|
|
420
|
+
.query("events")
|
|
421
|
+
.withIndex("type_time", (q) => q.eq("type", "fix_complete"))
|
|
422
|
+
.order("desc")
|
|
423
|
+
.take(10);
|
|
381
424
|
```
|
|
382
425
|
|
|
383
426
|
- `test_failed` → Analyze failure immediately
|
|
@@ -404,94 +447,97 @@ const fixCompletions = await ctx.db
|
|
|
404
447
|
## Ontology Operations (Concrete Examples)
|
|
405
448
|
|
|
406
449
|
### Query 1: Search Similar Failures (Knowledge Dimension)
|
|
450
|
+
|
|
407
451
|
```typescript
|
|
408
452
|
// Vector similarity search for similar error patterns
|
|
409
453
|
async function findSimilarFailures(errorMessage: string) {
|
|
410
454
|
// Generate embedding for error message
|
|
411
|
-
const embedding = await generateEmbedding(errorMessage)
|
|
455
|
+
const embedding = await generateEmbedding(errorMessage);
|
|
412
456
|
|
|
413
457
|
// Query knowledge table with vector similarity
|
|
414
458
|
const similar = await ctx.db
|
|
415
|
-
.query(
|
|
416
|
-
.withIndex(
|
|
417
|
-
|
|
418
|
-
)
|
|
419
|
-
.filter(q =>
|
|
459
|
+
.query("knowledge")
|
|
460
|
+
.withIndex("by_embedding", (q) => q.similar("embedding", embedding, 15))
|
|
461
|
+
.filter((q) =>
|
|
420
462
|
q.and(
|
|
421
|
-
q.gt(q.field(
|
|
422
|
-
q.eq(q.field(
|
|
423
|
-
)
|
|
463
|
+
q.gt(q.field("similarity"), 0.8),
|
|
464
|
+
q.eq(q.field("labels"), "status:failed"),
|
|
465
|
+
),
|
|
424
466
|
)
|
|
425
|
-
.collect()
|
|
467
|
+
.collect();
|
|
426
468
|
|
|
427
469
|
// Get linked lessons via junction table
|
|
428
470
|
const lessons = await Promise.all(
|
|
429
471
|
similar.map(async (knowledge) => {
|
|
430
472
|
const link = await ctx.db
|
|
431
|
-
.query(
|
|
432
|
-
.withIndex(
|
|
433
|
-
.first()
|
|
473
|
+
.query("thingKnowledge")
|
|
474
|
+
.withIndex("by_knowledge", (q) => q.eq("knowledgeId", knowledge._id))
|
|
475
|
+
.first();
|
|
434
476
|
|
|
435
477
|
if (link) {
|
|
436
|
-
return await ctx.db.get(link.thingId) // Returns lesson thing
|
|
478
|
+
return await ctx.db.get(link.thingId); // Returns lesson thing
|
|
437
479
|
}
|
|
438
|
-
})
|
|
439
|
-
)
|
|
480
|
+
}),
|
|
481
|
+
);
|
|
440
482
|
|
|
441
|
-
return lessons.filter(Boolean)
|
|
483
|
+
return lessons.filter(Boolean);
|
|
442
484
|
}
|
|
443
485
|
```
|
|
444
486
|
|
|
445
487
|
### Query 2: Get Feature History (Events Dimension)
|
|
488
|
+
|
|
446
489
|
```typescript
|
|
447
490
|
// Get complete event history for failed feature
|
|
448
|
-
async function getFeatureHistory(featureId: Id<
|
|
491
|
+
async function getFeatureHistory(featureId: Id<"things">) {
|
|
449
492
|
const history = await ctx.db
|
|
450
|
-
.query(
|
|
451
|
-
.withIndex(
|
|
452
|
-
|
|
453
|
-
)
|
|
454
|
-
.order('desc')
|
|
455
|
-
.collect()
|
|
493
|
+
.query("events")
|
|
494
|
+
.withIndex("thing_type_time", (q) => q.eq("thingId", featureId))
|
|
495
|
+
.order("desc")
|
|
496
|
+
.collect();
|
|
456
497
|
|
|
457
498
|
// Analyze event patterns
|
|
458
499
|
const patterns = {
|
|
459
|
-
testFailures: history.filter(e => e.type ===
|
|
460
|
-
fixAttempts: history.filter(e => e.type ===
|
|
461
|
-
implementations: history.filter(e => e.type ===
|
|
462
|
-
|
|
500
|
+
testFailures: history.filter((e) => e.type === "test_failed").length,
|
|
501
|
+
fixAttempts: history.filter((e) => e.type === "fix_started").length,
|
|
502
|
+
implementations: history.filter((e) => e.type === "implementation_complete")
|
|
503
|
+
.length,
|
|
504
|
+
};
|
|
463
505
|
|
|
464
|
-
return { history, patterns }
|
|
506
|
+
return { history, patterns };
|
|
465
507
|
}
|
|
466
508
|
```
|
|
467
509
|
|
|
468
510
|
### Query 3: Find Specialist by Role (People Dimension)
|
|
511
|
+
|
|
469
512
|
```typescript
|
|
470
513
|
// Find appropriate specialist for problem category
|
|
471
|
-
async function findSpecialist(
|
|
514
|
+
async function findSpecialist(
|
|
515
|
+
category: "backend" | "frontend" | "integration",
|
|
516
|
+
) {
|
|
472
517
|
// Specialists are things with type: creator
|
|
473
518
|
const specialist = await ctx.db
|
|
474
|
-
.query(
|
|
475
|
-
.withIndex(
|
|
476
|
-
.filter(q =>
|
|
519
|
+
.query("things")
|
|
520
|
+
.withIndex("by_type", (q) => q.eq("type", "creator"))
|
|
521
|
+
.filter((q) =>
|
|
477
522
|
q.and(
|
|
478
|
-
q.eq(q.field(
|
|
479
|
-
q.eq(q.field(
|
|
480
|
-
q.eq(q.field(
|
|
481
|
-
)
|
|
523
|
+
q.eq(q.field("properties.specialization"), category),
|
|
524
|
+
q.eq(q.field("properties.role"), "org_user"),
|
|
525
|
+
q.eq(q.field("status"), "active"),
|
|
526
|
+
),
|
|
482
527
|
)
|
|
483
|
-
.first()
|
|
528
|
+
.first();
|
|
484
529
|
|
|
485
|
-
return specialist
|
|
530
|
+
return specialist;
|
|
486
531
|
}
|
|
487
532
|
```
|
|
488
533
|
|
|
489
534
|
### Mutation 1: Create Lesson (Things Dimension)
|
|
535
|
+
|
|
490
536
|
```typescript
|
|
491
537
|
// Create lesson as a thing in ontology
|
|
492
538
|
async function createLesson(problem: ProblemAnalysis) {
|
|
493
|
-
const lessonId = await ctx.db.insert(
|
|
494
|
-
type:
|
|
539
|
+
const lessonId = await ctx.db.insert("things", {
|
|
540
|
+
type: "lesson",
|
|
495
541
|
name: problem.title,
|
|
496
542
|
properties: {
|
|
497
543
|
category: problem.category,
|
|
@@ -502,117 +548,119 @@ async function createLesson(problem: ProblemAnalysis) {
|
|
|
502
548
|
relatedPatterns: problem.relatedPatterns,
|
|
503
549
|
tags: problem.tags,
|
|
504
550
|
severity: problem.severity,
|
|
505
|
-
resolvedBy: problem.specialistId
|
|
551
|
+
resolvedBy: problem.specialistId,
|
|
506
552
|
},
|
|
507
|
-
status:
|
|
553
|
+
status: "published",
|
|
508
554
|
createdAt: Date.now(),
|
|
509
|
-
updatedAt: Date.now()
|
|
510
|
-
})
|
|
555
|
+
updatedAt: Date.now(),
|
|
556
|
+
});
|
|
511
557
|
|
|
512
558
|
// Create knowledge chunk with embedding
|
|
513
|
-
const knowledgeId = await ctx.db.insert(
|
|
514
|
-
knowledgeType:
|
|
559
|
+
const knowledgeId = await ctx.db.insert("knowledge", {
|
|
560
|
+
knowledgeType: "chunk",
|
|
515
561
|
text: problem.solution,
|
|
516
562
|
embedding: await generateEmbedding(problem.solution),
|
|
517
|
-
embeddingModel:
|
|
563
|
+
embeddingModel: "text-embedding-3-large",
|
|
518
564
|
embeddingDim: 1536,
|
|
519
565
|
sourceThingId: lessonId,
|
|
520
|
-
sourceField:
|
|
566
|
+
sourceField: "solution",
|
|
521
567
|
labels: [
|
|
522
568
|
`skill:${problem.category}`,
|
|
523
569
|
`topic:${problem.problemType}`,
|
|
524
|
-
|
|
525
|
-
|
|
570
|
+
"category:lesson",
|
|
571
|
+
"status:validated",
|
|
526
572
|
],
|
|
527
|
-
createdAt: Date.now()
|
|
528
|
-
})
|
|
573
|
+
createdAt: Date.now(),
|
|
574
|
+
});
|
|
529
575
|
|
|
530
576
|
// Link via junction table
|
|
531
|
-
await ctx.db.insert(
|
|
577
|
+
await ctx.db.insert("thingKnowledge", {
|
|
532
578
|
thingId: lessonId,
|
|
533
579
|
knowledgeId: knowledgeId,
|
|
534
|
-
role:
|
|
580
|
+
role: "summary",
|
|
535
581
|
metadata: { searchable: true },
|
|
536
|
-
createdAt: Date.now()
|
|
537
|
-
})
|
|
582
|
+
createdAt: Date.now(),
|
|
583
|
+
});
|
|
538
584
|
|
|
539
|
-
return lessonId
|
|
585
|
+
return lessonId;
|
|
540
586
|
}
|
|
541
587
|
```
|
|
542
588
|
|
|
543
589
|
### Mutation 2: Link Lesson to Feature (Connections Dimension)
|
|
590
|
+
|
|
544
591
|
```typescript
|
|
545
592
|
// Create connection between feature and lesson
|
|
546
593
|
async function linkLessonToFeature(
|
|
547
|
-
featureId: Id<
|
|
548
|
-
lessonId: Id<
|
|
549
|
-
problemId: string
|
|
594
|
+
featureId: Id<"things">,
|
|
595
|
+
lessonId: Id<"things">,
|
|
596
|
+
problemId: string,
|
|
550
597
|
) {
|
|
551
|
-
const connectionId = await ctx.db.insert(
|
|
598
|
+
const connectionId = await ctx.db.insert("connections", {
|
|
552
599
|
fromThingId: featureId,
|
|
553
600
|
toThingId: lessonId,
|
|
554
|
-
relationshipType:
|
|
601
|
+
relationshipType: "learned_from",
|
|
555
602
|
metadata: {
|
|
556
603
|
problemId: problemId,
|
|
557
|
-
rootCause:
|
|
604
|
+
rootCause: "missing_event_logging",
|
|
558
605
|
fixedBy: specialistId,
|
|
559
|
-
fixedAt: Date.now()
|
|
606
|
+
fixedAt: Date.now(),
|
|
560
607
|
},
|
|
561
|
-
createdAt: Date.now()
|
|
562
|
-
})
|
|
608
|
+
createdAt: Date.now(),
|
|
609
|
+
});
|
|
563
610
|
|
|
564
|
-
return connectionId
|
|
611
|
+
return connectionId;
|
|
565
612
|
}
|
|
566
613
|
```
|
|
567
614
|
|
|
568
615
|
### Mutation 3: Log Complete Workflow (Events Dimension)
|
|
616
|
+
|
|
569
617
|
```typescript
|
|
570
618
|
// Create complete event audit trail for problem solving
|
|
571
619
|
async function logProblemSolvingWorkflow(
|
|
572
620
|
problemId: string,
|
|
573
|
-
featureId: Id<
|
|
574
|
-
lessonId: Id<
|
|
621
|
+
featureId: Id<"things">,
|
|
622
|
+
lessonId: Id<"things">,
|
|
575
623
|
) {
|
|
576
624
|
// 1. Analysis started
|
|
577
|
-
await ctx.db.insert(
|
|
578
|
-
type:
|
|
625
|
+
await ctx.db.insert("events", {
|
|
626
|
+
type: "problem_analysis_started",
|
|
579
627
|
actorId: problemSolverAgentId,
|
|
580
628
|
targetId: featureId,
|
|
581
629
|
timestamp: Date.now(),
|
|
582
630
|
metadata: {
|
|
583
631
|
problemId,
|
|
584
|
-
analysisMode:
|
|
585
|
-
contextTokens: 2500
|
|
586
|
-
}
|
|
587
|
-
})
|
|
632
|
+
analysisMode: "ultrathink",
|
|
633
|
+
contextTokens: 2500,
|
|
634
|
+
},
|
|
635
|
+
});
|
|
588
636
|
|
|
589
637
|
// 2. Solution proposed
|
|
590
|
-
await ctx.db.insert(
|
|
591
|
-
type:
|
|
638
|
+
await ctx.db.insert("events", {
|
|
639
|
+
type: "solution_proposed",
|
|
592
640
|
actorId: problemSolverAgentId,
|
|
593
641
|
targetId: featureId,
|
|
594
642
|
timestamp: Date.now(),
|
|
595
643
|
metadata: {
|
|
596
644
|
problemId,
|
|
597
|
-
rootCause:
|
|
645
|
+
rootCause: "missing_event_logging",
|
|
598
646
|
assignedTo: specialistId,
|
|
599
|
-
priority:
|
|
600
|
-
}
|
|
601
|
-
})
|
|
647
|
+
priority: "high",
|
|
648
|
+
},
|
|
649
|
+
});
|
|
602
650
|
|
|
603
651
|
// 3. Lesson learned added
|
|
604
|
-
await ctx.db.insert(
|
|
605
|
-
type:
|
|
652
|
+
await ctx.db.insert("events", {
|
|
653
|
+
type: "lesson_learned_added",
|
|
606
654
|
actorId: problemSolverAgentId,
|
|
607
655
|
targetId: lessonId,
|
|
608
656
|
timestamp: Date.now(),
|
|
609
657
|
metadata: {
|
|
610
658
|
problemId,
|
|
611
|
-
category:
|
|
659
|
+
category: "backend",
|
|
612
660
|
occurrenceCount: 3,
|
|
613
|
-
promoted: true
|
|
614
|
-
}
|
|
615
|
-
})
|
|
661
|
+
promoted: true,
|
|
662
|
+
},
|
|
663
|
+
});
|
|
616
664
|
}
|
|
617
665
|
```
|
|
618
666
|
|
|
@@ -634,6 +682,7 @@ Specialist writes → Quality validates → Tests run
|
|
|
634
682
|
**Trigger:** `test_failed` event from Quality Agent
|
|
635
683
|
|
|
636
684
|
**Process:**
|
|
685
|
+
|
|
637
686
|
1. **Analyze** (Ultrathink mode)
|
|
638
687
|
- Query events for failure details
|
|
639
688
|
- Search knowledge for similar issues
|
|
@@ -676,6 +725,7 @@ Specialist writes → Quality validates → Tests run
|
|
|
676
725
|
### Example 1: Missing Event Log (Known Pattern)
|
|
677
726
|
|
|
678
727
|
**Input:**
|
|
728
|
+
|
|
679
729
|
```typescript
|
|
680
730
|
// test_failed event from events table
|
|
681
731
|
{
|
|
@@ -695,6 +745,7 @@ Specialist writes → Quality validates → Tests run
|
|
|
695
745
|
```
|
|
696
746
|
|
|
697
747
|
**Ultrathink Analysis:**
|
|
748
|
+
|
|
698
749
|
```
|
|
699
750
|
1. What was expected?
|
|
700
751
|
- Event in events table with type: "course_created"
|
|
@@ -735,56 +786,58 @@ Specialist writes → Quality validates → Tests run
|
|
|
735
786
|
```
|
|
736
787
|
|
|
737
788
|
**Ontology Operations:**
|
|
789
|
+
|
|
738
790
|
```typescript
|
|
739
791
|
// 1. Search knowledge for similar failures
|
|
740
|
-
const similarLessons = await findSimilarFailures(
|
|
792
|
+
const similarLessons = await findSimilarFailures("Expected event not found");
|
|
741
793
|
// Returns: [Lesson #47, Lesson #89]
|
|
742
794
|
|
|
743
795
|
// 2. Get feature details
|
|
744
|
-
const feature = await ctx.db.get(featureId) // type: 'feature'
|
|
796
|
+
const feature = await ctx.db.get(featureId); // type: 'feature'
|
|
745
797
|
|
|
746
798
|
// 3. Find backend specialist
|
|
747
|
-
const specialist = await findSpecialist(
|
|
799
|
+
const specialist = await findSpecialist("backend");
|
|
748
800
|
|
|
749
801
|
// 4. Create problem document (as thing)
|
|
750
|
-
const problemId = await ctx.db.insert(
|
|
751
|
-
type:
|
|
752
|
-
name:
|
|
802
|
+
const problemId = await ctx.db.insert("things", {
|
|
803
|
+
type: "task", // problems are tasks
|
|
804
|
+
name: "Fix: Missing event logging in CourseService",
|
|
753
805
|
properties: {
|
|
754
|
-
problemType:
|
|
755
|
-
rootCause:
|
|
806
|
+
problemType: "missing_event",
|
|
807
|
+
rootCause: "Forgot to apply event logging pattern",
|
|
756
808
|
solution: 'Add ctx.db.insert("events", {...})',
|
|
757
|
-
category:
|
|
758
|
-
estimatedTime: 300
|
|
809
|
+
category: "backend",
|
|
810
|
+
estimatedTime: 300,
|
|
759
811
|
},
|
|
760
|
-
status:
|
|
761
|
-
createdAt: Date.now()
|
|
762
|
-
})
|
|
812
|
+
status: "active",
|
|
813
|
+
createdAt: Date.now(),
|
|
814
|
+
});
|
|
763
815
|
|
|
764
816
|
// 5. Assign to specialist (connection)
|
|
765
|
-
await ctx.db.insert(
|
|
817
|
+
await ctx.db.insert("connections", {
|
|
766
818
|
fromThingId: problemId,
|
|
767
819
|
toThingId: specialist._id,
|
|
768
|
-
relationshipType:
|
|
769
|
-
metadata: { priority:
|
|
770
|
-
createdAt: Date.now()
|
|
771
|
-
})
|
|
820
|
+
relationshipType: "assigned_to",
|
|
821
|
+
metadata: { priority: "high" },
|
|
822
|
+
createdAt: Date.now(),
|
|
823
|
+
});
|
|
772
824
|
|
|
773
825
|
// 6. Log solution proposed
|
|
774
|
-
await ctx.db.insert(
|
|
775
|
-
type:
|
|
826
|
+
await ctx.db.insert("events", {
|
|
827
|
+
type: "solution_proposed",
|
|
776
828
|
actorId: problemSolverAgentId,
|
|
777
829
|
targetId: problemId,
|
|
778
830
|
metadata: {
|
|
779
|
-
rootCause:
|
|
780
|
-
referenceLesson:
|
|
781
|
-
estimatedTime: 300
|
|
782
|
-
}
|
|
783
|
-
})
|
|
831
|
+
rootCause: "missing_event_logging",
|
|
832
|
+
referenceLesson: "lesson-47",
|
|
833
|
+
estimatedTime: 300,
|
|
834
|
+
},
|
|
835
|
+
});
|
|
784
836
|
```
|
|
785
837
|
|
|
786
838
|
**Output (Solution Proposal):**
|
|
787
|
-
|
|
839
|
+
|
|
840
|
+
````markdown
|
|
788
841
|
# Problem: Event Logging Missing
|
|
789
842
|
|
|
790
843
|
**Feature:** 2-1-course-crud
|
|
@@ -798,6 +851,7 @@ CourseService.create() calls ctx.db.insert() but doesn't log event.
|
|
|
798
851
|
Missing: await ctx.db.insert('events', { type: 'course_created', ... })
|
|
799
852
|
|
|
800
853
|
**Ontology Validation:**
|
|
854
|
+
|
|
801
855
|
- ✓ Event type 'course_created' is defined in ontology (line 657)
|
|
802
856
|
- ✓ Events table structure is correct
|
|
803
857
|
- ✗ Pattern not applied in implementation
|
|
@@ -805,6 +859,7 @@ Missing: await ctx.db.insert('events', { type: 'course_created', ... })
|
|
|
805
859
|
## Similar Issues (Knowledge Search)
|
|
806
860
|
|
|
807
861
|
Found 2 similar issues in knowledge base:
|
|
862
|
+
|
|
808
863
|
- **Lesson #47:** "Always Log Events After Entity Creation" (86% similarity)
|
|
809
864
|
- Occurred in: Feature 1-1 (agent_prompt_created)
|
|
810
865
|
- Solution: Add event logging immediately after entity creation
|
|
@@ -846,6 +901,7 @@ async create(course: Course) {
|
|
|
846
901
|
return id
|
|
847
902
|
}
|
|
848
903
|
```
|
|
904
|
+
````
|
|
849
905
|
|
|
850
906
|
**Minimal change:** 6 lines
|
|
851
907
|
**Aligns with:** Ontology event structure (lines 577-584)
|
|
@@ -862,6 +918,7 @@ async create(course: Course) {
|
|
|
862
918
|
## Lesson Capture Required
|
|
863
919
|
|
|
864
920
|
After fix, backend specialist must update lesson (thing with type: lesson):
|
|
921
|
+
|
|
865
922
|
- **Title:** "Always Log Events After Entity Creation"
|
|
866
923
|
- **Occurrence Count:** 3 → This is the 3rd occurrence
|
|
867
924
|
- **Action:** Promote to official pattern in knowledge base
|
|
@@ -869,10 +926,12 @@ After fix, backend specialist must update lesson (thing with type: lesson):
|
|
|
869
926
|
- **Event:** Emit `lesson_learned_added` with metadata.promoted = true
|
|
870
927
|
|
|
871
928
|
**Knowledge Update:**
|
|
929
|
+
|
|
872
930
|
- Update embedding with new context
|
|
873
931
|
- Link lesson to feature 2-1-course-crud via `learned_from` connection
|
|
874
932
|
- Add label: `feature:course-crud` for future reference
|
|
875
|
-
|
|
933
|
+
|
|
934
|
+
````
|
|
876
935
|
|
|
877
936
|
### Example 2: Performance Problem (New Issue)
|
|
878
937
|
|
|
@@ -901,9 +960,10 @@ After fix, backend specialist must update lesson (thing with type: lesson):
|
|
|
901
960
|
}
|
|
902
961
|
}
|
|
903
962
|
}
|
|
904
|
-
|
|
963
|
+
````
|
|
905
964
|
|
|
906
965
|
**Ultrathink Analysis:**
|
|
966
|
+
|
|
907
967
|
```
|
|
908
968
|
1. What was expected?
|
|
909
969
|
- Flow completion in < 10 seconds (organization limit)
|
|
@@ -950,100 +1010,102 @@ After fix, backend specialist must update lesson (thing with type: lesson):
|
|
|
950
1010
|
```
|
|
951
1011
|
|
|
952
1012
|
**Ontology Operations:**
|
|
1013
|
+
|
|
953
1014
|
```typescript
|
|
954
1015
|
// 1. Check organization performance limits
|
|
955
1016
|
const org = await ctx.db
|
|
956
|
-
.query(
|
|
957
|
-
.filter(q => q.eq(q.field(
|
|
958
|
-
.first()
|
|
1017
|
+
.query("organizations")
|
|
1018
|
+
.filter((q) => q.eq(q.field("_id"), organizationId))
|
|
1019
|
+
.first();
|
|
959
1020
|
|
|
960
|
-
const limits = org.limits
|
|
1021
|
+
const limits = org.limits;
|
|
961
1022
|
// { maxRequestTime: 10000, apiCallsPerMinute: 60 }
|
|
962
1023
|
|
|
963
1024
|
// 2. Search for similar performance issues (returns empty - new issue)
|
|
964
1025
|
const similarPerformanceIssues = await ctx.db
|
|
965
|
-
.query(
|
|
966
|
-
.withIndex(
|
|
967
|
-
.filter(q =>
|
|
1026
|
+
.query("knowledge")
|
|
1027
|
+
.withIndex("by_type", (q) => q.eq("knowledgeType", "chunk"))
|
|
1028
|
+
.filter((q) =>
|
|
968
1029
|
q.and(
|
|
969
|
-
q.eq(q.field(
|
|
970
|
-
q.eq(q.field(
|
|
971
|
-
)
|
|
1030
|
+
q.eq(q.field("labels"), "topic:performance"),
|
|
1031
|
+
q.eq(q.field("labels"), "status:failed"),
|
|
1032
|
+
),
|
|
972
1033
|
)
|
|
973
|
-
.collect()
|
|
1034
|
+
.collect();
|
|
974
1035
|
// Returns: [] (no similar issues)
|
|
975
1036
|
|
|
976
1037
|
// 3. Create NEW lesson since this is novel
|
|
977
|
-
const lessonId = await ctx.db.insert(
|
|
978
|
-
type:
|
|
979
|
-
name:
|
|
1038
|
+
const lessonId = await ctx.db.insert("things", {
|
|
1039
|
+
type: "lesson",
|
|
1040
|
+
name: "Validate Client-Side Before API Calls",
|
|
980
1041
|
properties: {
|
|
981
|
-
category:
|
|
982
|
-
problemType:
|
|
983
|
-
rootCause:
|
|
984
|
-
solution:
|
|
985
|
-
impact:
|
|
1042
|
+
category: "integration",
|
|
1043
|
+
problemType: "performance_sequential_calls",
|
|
1044
|
+
rootCause: "Unnecessary API roundtrips",
|
|
1045
|
+
solution: "Client-side validation + minimal API calls",
|
|
1046
|
+
impact: "high", // 53% performance improvement
|
|
986
1047
|
occurrences: 1, // First time
|
|
987
1048
|
metrics: {
|
|
988
1049
|
before: 15300,
|
|
989
1050
|
after: 6000,
|
|
990
|
-
improvement:
|
|
1051
|
+
improvement: "60%",
|
|
991
1052
|
},
|
|
992
|
-
codePattern:
|
|
1053
|
+
codePattern: "validate-before-api.md",
|
|
993
1054
|
},
|
|
994
|
-
status:
|
|
995
|
-
createdAt: Date.now()
|
|
996
|
-
})
|
|
1055
|
+
status: "draft", // Draft until validated by fix
|
|
1056
|
+
createdAt: Date.now(),
|
|
1057
|
+
});
|
|
997
1058
|
|
|
998
1059
|
// 4. Create knowledge chunk with embedding
|
|
999
|
-
const knowledgeId = await ctx.db.insert(
|
|
1000
|
-
knowledgeType:
|
|
1001
|
-
text:
|
|
1002
|
-
embedding: await generateEmbedding(
|
|
1003
|
-
|
|
1060
|
+
const knowledgeId = await ctx.db.insert("knowledge", {
|
|
1061
|
+
knowledgeType: "chunk",
|
|
1062
|
+
text: "When making multiple API calls in sequence, evaluate each call: Is it necessary? Can it be client-side? Minimize roundtrips.",
|
|
1063
|
+
embedding: await generateEmbedding(
|
|
1064
|
+
"performance optimization sequential api calls",
|
|
1065
|
+
),
|
|
1066
|
+
embeddingModel: "text-embedding-3-large",
|
|
1004
1067
|
sourceThingId: lessonId,
|
|
1005
1068
|
labels: [
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1069
|
+
"skill:integration",
|
|
1070
|
+
"topic:performance",
|
|
1071
|
+
"topic:optimization",
|
|
1072
|
+
"category:pattern",
|
|
1073
|
+
"status:draft", // Becomes validated after fix succeeds
|
|
1011
1074
|
],
|
|
1012
1075
|
metadata: {
|
|
1013
|
-
performanceGain:
|
|
1014
|
-
pattern:
|
|
1015
|
-
firstOccurrence: true
|
|
1076
|
+
performanceGain: "60%",
|
|
1077
|
+
pattern: "validate-before-api",
|
|
1078
|
+
firstOccurrence: true,
|
|
1016
1079
|
},
|
|
1017
|
-
createdAt: Date.now()
|
|
1018
|
-
})
|
|
1080
|
+
createdAt: Date.now(),
|
|
1081
|
+
});
|
|
1019
1082
|
|
|
1020
1083
|
// 5. Link lesson to feature
|
|
1021
|
-
await ctx.db.insert(
|
|
1084
|
+
await ctx.db.insert("connections", {
|
|
1022
1085
|
fromThingId: featureId,
|
|
1023
1086
|
toThingId: lessonId,
|
|
1024
|
-
relationshipType:
|
|
1087
|
+
relationshipType: "learned_from",
|
|
1025
1088
|
metadata: {
|
|
1026
|
-
problemType:
|
|
1027
|
-
status:
|
|
1089
|
+
problemType: "performance",
|
|
1090
|
+
status: "pending_fix",
|
|
1028
1091
|
},
|
|
1029
|
-
createdAt: Date.now()
|
|
1030
|
-
})
|
|
1092
|
+
createdAt: Date.now(),
|
|
1093
|
+
});
|
|
1031
1094
|
|
|
1032
1095
|
// 6. Find integration specialist
|
|
1033
1096
|
const specialist = await ctx.db
|
|
1034
|
-
.query(
|
|
1035
|
-
.withIndex(
|
|
1036
|
-
.filter(q =>
|
|
1037
|
-
|
|
1038
|
-
)
|
|
1039
|
-
.first()
|
|
1097
|
+
.query("things")
|
|
1098
|
+
.withIndex("by_type", (q) => q.eq("type", "creator"))
|
|
1099
|
+
.filter((q) => q.eq(q.field("properties.specialization"), "integration"))
|
|
1100
|
+
.first();
|
|
1040
1101
|
|
|
1041
1102
|
// 7. Log complete problem-solving workflow
|
|
1042
|
-
await logProblemSolvingWorkflow(problemId, featureId, lessonId)
|
|
1103
|
+
await logProblemSolvingWorkflow(problemId, featureId, lessonId);
|
|
1043
1104
|
```
|
|
1044
1105
|
|
|
1045
1106
|
**Output (Solution Proposal):**
|
|
1046
|
-
|
|
1107
|
+
|
|
1108
|
+
````markdown
|
|
1047
1109
|
# Problem: Performance Target Missed
|
|
1048
1110
|
|
|
1049
1111
|
**Feature:** 2-4-enrollment-flow
|
|
@@ -1075,6 +1137,7 @@ await logProblemSolvingWorkflow(problemId, featureId, lessonId)
|
|
|
1075
1137
|
This is a **NEW pattern** that will be added to knowledge base.
|
|
1076
1138
|
|
|
1077
1139
|
**Search performed:**
|
|
1140
|
+
|
|
1078
1141
|
- Labels: `topic:performance`, `skill:optimization`
|
|
1079
1142
|
- Vector search: "performance sequential api calls"
|
|
1080
1143
|
- Result: First occurrence of this performance anti-pattern
|
|
@@ -1141,48 +1204,50 @@ const handleEnroll = async () => {
|
|
|
1141
1204
|
|
|
1142
1205
|
// Backend: enroll.ts mutation
|
|
1143
1206
|
export const enroll = mutation({
|
|
1144
|
-
args: { courseId: v.id(
|
|
1207
|
+
args: { courseId: v.id("things") },
|
|
1145
1208
|
handler: async (ctx, args) => {
|
|
1146
|
-
const identity = await ctx.auth.getUserIdentity()
|
|
1147
|
-
if (!identity) throw new Error(
|
|
1209
|
+
const identity = await ctx.auth.getUserIdentity();
|
|
1210
|
+
if (!identity) throw new Error("Not authenticated");
|
|
1148
1211
|
|
|
1149
1212
|
// Server-side validation (authoritative)
|
|
1150
|
-
const course = await ctx.db.get(args.courseId)
|
|
1151
|
-
if (!course) throw new Error(
|
|
1213
|
+
const course = await ctx.db.get(args.courseId);
|
|
1214
|
+
if (!course) throw new Error("Course not found");
|
|
1152
1215
|
|
|
1153
1216
|
const existing = await ctx.db
|
|
1154
|
-
.query(
|
|
1155
|
-
.withIndex(
|
|
1156
|
-
q
|
|
1157
|
-
|
|
1217
|
+
.query("connections")
|
|
1218
|
+
.withIndex("from_type", (q) =>
|
|
1219
|
+
q
|
|
1220
|
+
.eq("fromThingId", identity.subject)
|
|
1221
|
+
.eq("relationshipType", "enrolled_in"),
|
|
1158
1222
|
)
|
|
1159
|
-
.filter(q => q.eq(q.field(
|
|
1160
|
-
.first()
|
|
1223
|
+
.filter((q) => q.eq(q.field("toThingId"), args.courseId))
|
|
1224
|
+
.first();
|
|
1161
1225
|
|
|
1162
|
-
if (existing) throw new Error(
|
|
1226
|
+
if (existing) throw new Error("Already enrolled");
|
|
1163
1227
|
|
|
1164
1228
|
// Create connection (dimension 4 - connections)
|
|
1165
|
-
const connectionId = await ctx.db.insert(
|
|
1229
|
+
const connectionId = await ctx.db.insert("connections", {
|
|
1166
1230
|
fromThingId: identity.subject,
|
|
1167
1231
|
toThingId: args.courseId,
|
|
1168
|
-
relationshipType:
|
|
1232
|
+
relationshipType: "enrolled_in",
|
|
1169
1233
|
metadata: { enrolledAt: Date.now() },
|
|
1170
|
-
createdAt: Date.now()
|
|
1171
|
-
})
|
|
1234
|
+
createdAt: Date.now(),
|
|
1235
|
+
});
|
|
1172
1236
|
|
|
1173
1237
|
// Log event (dimension 5 - events)
|
|
1174
|
-
await ctx.db.insert(
|
|
1175
|
-
type:
|
|
1238
|
+
await ctx.db.insert("events", {
|
|
1239
|
+
type: "course_enrolled",
|
|
1176
1240
|
actorId: identity.subject,
|
|
1177
1241
|
targetId: args.courseId,
|
|
1178
1242
|
timestamp: Date.now(),
|
|
1179
|
-
metadata: { connectionId }
|
|
1180
|
-
})
|
|
1243
|
+
metadata: { connectionId },
|
|
1244
|
+
});
|
|
1181
1245
|
|
|
1182
|
-
return connectionId
|
|
1183
|
-
}
|
|
1184
|
-
})
|
|
1246
|
+
return connectionId;
|
|
1247
|
+
},
|
|
1248
|
+
});
|
|
1185
1249
|
```
|
|
1250
|
+
````
|
|
1186
1251
|
|
|
1187
1252
|
## Delegation
|
|
1188
1253
|
|
|
@@ -1198,6 +1263,7 @@ export const enroll = mutation({
|
|
|
1198
1263
|
This is a **NEW lesson**. Integration specialist must create lesson (thing with type: lesson):
|
|
1199
1264
|
|
|
1200
1265
|
**Lesson Details:**
|
|
1266
|
+
|
|
1201
1267
|
- **Title:** "Validate Client-Side Before API Calls"
|
|
1202
1268
|
- **Category:** integration
|
|
1203
1269
|
- **Problem Type:** performance_sequential_calls
|
|
@@ -1206,12 +1272,14 @@ This is a **NEW lesson**. Integration specialist must create lesson (thing with
|
|
|
1206
1272
|
- **Status:** draft → published (after fix validation)
|
|
1207
1273
|
|
|
1208
1274
|
**Knowledge Update:**
|
|
1275
|
+
|
|
1209
1276
|
- Create embedding: "performance optimization sequential api calls"
|
|
1210
1277
|
- Labels: `skill:integration`, `topic:performance`, `topic:optimization`, `category:pattern`
|
|
1211
1278
|
- Link to feature: `learned_from` connection
|
|
1212
1279
|
- Create pattern doc: `validate-before-api.md`
|
|
1213
1280
|
|
|
1214
1281
|
**Event to Emit:**
|
|
1282
|
+
|
|
1215
1283
|
```typescript
|
|
1216
1284
|
{
|
|
1217
1285
|
type: 'lesson_learned_added',
|
|
@@ -1235,7 +1303,8 @@ This is a **NEW lesson**. Integration specialist must create lesson (thing with
|
|
|
1235
1303
|
- [ ] Lesson captured with embedding
|
|
1236
1304
|
- [ ] Pattern doc created
|
|
1237
1305
|
- [ ] Re-test passes
|
|
1238
|
-
|
|
1306
|
+
|
|
1307
|
+
````
|
|
1239
1308
|
|
|
1240
1309
|
---
|
|
1241
1310
|
|
|
@@ -1295,13 +1364,14 @@ OR
|
|
|
1295
1364
|
- Link to feature via `learned_from` connection
|
|
1296
1365
|
- Add labels for taxonomy
|
|
1297
1366
|
- Emit `lesson_learned_added` event
|
|
1298
|
-
|
|
1367
|
+
````
|
|
1299
1368
|
|
|
1300
1369
|
---
|
|
1301
1370
|
|
|
1302
1371
|
## Common Mistakes to Avoid
|
|
1303
1372
|
|
|
1304
1373
|
### Anti-Patterns
|
|
1374
|
+
|
|
1305
1375
|
- ❌ **Rushing to solutions** → Use ultrathink mode for deep analysis
|
|
1306
1376
|
- ❌ **Not searching knowledge base** → Might solve same problem twice
|
|
1307
1377
|
- ❌ **Ignoring ontology structure** → Solutions must align with 6 dimensions
|
|
@@ -1313,6 +1383,7 @@ OR
|
|
|
1313
1383
|
- ❌ **Missing event logs** → All problem-solving must have audit trail
|
|
1314
1384
|
|
|
1315
1385
|
### Correct Approach (Ontology-Aligned)
|
|
1386
|
+
|
|
1316
1387
|
- ✅ Take time for deep analysis (ultrathink mode - highest context budget)
|
|
1317
1388
|
- ✅ Search knowledge with vector similarity + labels
|
|
1318
1389
|
- ✅ Validate against 6-dimension structure
|
|
@@ -1330,6 +1401,7 @@ OR
|
|
|
1330
1401
|
## Success Criteria
|
|
1331
1402
|
|
|
1332
1403
|
### Immediate (Per Problem)
|
|
1404
|
+
|
|
1333
1405
|
- [ ] Root cause correctly identified using ontology analysis
|
|
1334
1406
|
- [ ] Solutions specific and minimal
|
|
1335
1407
|
- [ ] Knowledge base always searched (vector + labels)
|
|
@@ -1339,6 +1411,7 @@ OR
|
|
|
1339
1411
|
- [ ] Embeddings created for semantic search
|
|
1340
1412
|
|
|
1341
1413
|
### Near-term (Per Sprint)
|
|
1414
|
+
|
|
1342
1415
|
- [ ] Average analysis time < 2 minutes
|
|
1343
1416
|
- [ ] 95%+ proposed solutions work on first attempt
|
|
1344
1417
|
- [ ] Knowledge base grows with validated patterns
|
|
@@ -1346,6 +1419,7 @@ OR
|
|
|
1346
1419
|
- [ ] Event logs enable workflow tracking
|
|
1347
1420
|
|
|
1348
1421
|
### Long-term (System-wide)
|
|
1422
|
+
|
|
1349
1423
|
- [ ] Knowledge graph enables autonomous problem-solving
|
|
1350
1424
|
- [ ] Patterns promoted after 3+ occurrences
|
|
1351
1425
|
- [ ] Zero repeated problems (knowledge base prevents)
|
|
@@ -1357,20 +1431,24 @@ OR
|
|
|
1357
1431
|
## Coordination with Other Agents
|
|
1358
1432
|
|
|
1359
1433
|
### With Quality Agent
|
|
1434
|
+
|
|
1360
1435
|
- **Receives:** `test_failed` events with complete metadata
|
|
1361
1436
|
- **Sends:** `solution_proposed` events with root cause analysis
|
|
1362
1437
|
- **Shared:** Test criteria (things with type: test)
|
|
1363
1438
|
|
|
1364
1439
|
### With Specialist Agents
|
|
1440
|
+
|
|
1365
1441
|
- **Receives:** `implementation_complete` events for pre-emptive analysis
|
|
1366
1442
|
- **Sends:** `fix_delegated` events with specific solutions
|
|
1367
1443
|
- **Shared:** Feature specifications, code, patterns
|
|
1368
1444
|
|
|
1369
1445
|
### With Documenter Agent
|
|
1446
|
+
|
|
1370
1447
|
- **Sends:** `lesson_learned_added` events to trigger documentation
|
|
1371
1448
|
- **Shared:** Lessons (things with type: lesson) and knowledge chunks
|
|
1372
1449
|
|
|
1373
1450
|
### With Director Agent
|
|
1451
|
+
|
|
1374
1452
|
- **Sends:** Problem reports for recurring issues (escalation)
|
|
1375
1453
|
- **Receives:** Priority changes based on business impact
|
|
1376
1454
|
|