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
|
@@ -0,0 +1,1594 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Frontend Effects Week1 Assignments
|
|
3
|
+
dimension: events
|
|
4
|
+
category: frontend-effects-week1-assignments.md
|
|
5
|
+
tags: backend, frontend, inference, ui
|
|
6
|
+
related_dimensions: connections, groups, knowledge, people, things
|
|
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 events dimension in the frontend-effects-week1-assignments.md category.
|
|
13
|
+
Location: one/events/frontend-effects-week1-assignments.md
|
|
14
|
+
Purpose: Documents frontend effects.ts implementation: week 1 assignments & first tasks
|
|
15
|
+
Related dimensions: connections, groups, knowledge, people, things
|
|
16
|
+
For AI agents: Read this to understand frontend effects week1 assignments.
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
# Frontend Effects.ts Implementation: Week 1 Assignments & First Tasks
|
|
20
|
+
|
|
21
|
+
**Project Status:** Completed and Deployed (Documented for Future Reference & Replication)
|
|
22
|
+
|
|
23
|
+
This document describes how Week 1 was executed for the Frontend Effects.ts implementation (Infer 1-20). Use this as a reference for running similar parallel-execution projects.
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## Week 1 Overview
|
|
28
|
+
|
|
29
|
+
**Duration:** October 28 - November 3 (Days 1-5)
|
|
30
|
+
**Phases:** Phase 1 (Infer 1-10) + Phase 2 (Infer 11-20)
|
|
31
|
+
**Specialist Count:** 3 active (Frontend Lead, Backend Specialist, Frontend Specialist)
|
|
32
|
+
**Inferences Completed:** 20/100
|
|
33
|
+
**Progress:** 20% → Gate 2 approval
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## Specialist Stream A: DataProvider Interface (Backend Specialist)
|
|
38
|
+
|
|
39
|
+
### Stream Lead: Backend Specialist (1 FTE)
|
|
40
|
+
**Phase:** 2 (Infer 11-20)
|
|
41
|
+
**Duration:** Oct 28 - Nov 2 (Days 1-5)
|
|
42
|
+
**Goal:** Complete DataProvider interface with all 6 dimensions, error types, documentation
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
### Task A-1: Create `/web/src/providers/DataProvider.ts` Stub (Infer 11)
|
|
47
|
+
**Assigned to:** Backend Specialist
|
|
48
|
+
**Duration:** 45 min
|
|
49
|
+
**Effort:** 5 Infer points
|
|
50
|
+
**Dependencies:** None
|
|
51
|
+
|
|
52
|
+
**Instructions:**
|
|
53
|
+
1. Create new file: `/web/src/providers/DataProvider.ts`
|
|
54
|
+
2. Add file header with documentation
|
|
55
|
+
3. Import Effect and Context from 'effect'
|
|
56
|
+
4. Create base DataProvider interface stub
|
|
57
|
+
5. Add placeholder for all 6 dimensions (groups, people, things, connections, events, knowledge)
|
|
58
|
+
6. Add TODO comments for each dimension
|
|
59
|
+
|
|
60
|
+
**Expected Output:**
|
|
61
|
+
```typescript
|
|
62
|
+
// /web/src/providers/DataProvider.ts
|
|
63
|
+
/**
|
|
64
|
+
* DataProvider Interface - Backend-Agnostic Data Access Layer
|
|
65
|
+
*
|
|
66
|
+
* Supports 6 dimensions of ONE ontology:
|
|
67
|
+
* 1. groups - Hierarchical organization containers
|
|
68
|
+
* 2. people - User authorization & governance
|
|
69
|
+
* 3. things - All entities (users, content, tokens, courses)
|
|
70
|
+
* 4. connections - All relationships (owns, part_of, enrolled_in)
|
|
71
|
+
* 5. events - All actions & state changes
|
|
72
|
+
* 6. knowledge - Labels, embeddings, semantic search
|
|
73
|
+
*/
|
|
74
|
+
|
|
75
|
+
import { Effect, Context } from "effect";
|
|
76
|
+
|
|
77
|
+
export interface DataProvider {
|
|
78
|
+
groups: GroupsAPI; // TODO: Define in Infer-012
|
|
79
|
+
people: PeopleAPI; // TODO: Define in Infer-013
|
|
80
|
+
things: ThingsAPI; // TODO: Define in Infer-014
|
|
81
|
+
connections: ConnectionsAPI; // TODO: Define in Infer-015
|
|
82
|
+
events: EventsAPI; // TODO: Define in Infer-016
|
|
83
|
+
knowledge: KnowledgeAPI; // TODO: Define in Infer-017
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// Placeholder for error types (to be defined in Infer-018)
|
|
87
|
+
export type DataProviderError = unknown;
|
|
88
|
+
|
|
89
|
+
// Placeholder for Context.Tag (to be defined in Infer-020)
|
|
90
|
+
// export const DataProviderTag = ...
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
**Acceptance Criteria:**
|
|
94
|
+
- [ ] File created at correct path
|
|
95
|
+
- [ ] Imports correct (Effect, Context)
|
|
96
|
+
- [ ] Base interface structure defined
|
|
97
|
+
- [ ] TODO comments guide next inferences
|
|
98
|
+
- [ ] No TypeScript errors
|
|
99
|
+
- [ ] Build passes: `bunx astro check`
|
|
100
|
+
|
|
101
|
+
**File Path:** `/web/src/providers/DataProvider.ts`
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
### Task A-2: Define Groups Interface (Infer 12)
|
|
106
|
+
**Assigned to:** Backend Specialist
|
|
107
|
+
**Duration:** 1 hour
|
|
108
|
+
**Effort:** 6 Infer points
|
|
109
|
+
**Dependencies:** Task A-1 (DataProvider stub)
|
|
110
|
+
|
|
111
|
+
**Instructions:**
|
|
112
|
+
1. Add GroupsAPI interface to DataProvider.ts
|
|
113
|
+
2. Define methods: get, list, update, getCurrent
|
|
114
|
+
3. Use Effect.Effect for return types
|
|
115
|
+
4. Add error types for each method
|
|
116
|
+
5. Add JSDoc comments explaining ontology mapping
|
|
117
|
+
6. Type Group and ListParams
|
|
118
|
+
|
|
119
|
+
**Expected Output:**
|
|
120
|
+
```typescript
|
|
121
|
+
export interface GroupsAPI {
|
|
122
|
+
get: (id: string) => Effect.Effect<Group, GroupNotFoundError>;
|
|
123
|
+
list: (params?: ListParams) => Effect.Effect<Group[], Error>;
|
|
124
|
+
update: (id: string, updates: Partial<Group>) => Effect.Effect<void, Error>;
|
|
125
|
+
getCurrent: () => Effect.Effect<Group, GroupNotFoundError>;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export interface Group {
|
|
129
|
+
_id: string;
|
|
130
|
+
name: string;
|
|
131
|
+
type: "friend_circle" | "business" | "community" | "dao" | "government" | "organization";
|
|
132
|
+
parentGroupId?: string; // For hierarchical nesting
|
|
133
|
+
properties: Record<string, unknown>;
|
|
134
|
+
status: "draft" | "active" | "archived";
|
|
135
|
+
createdAt: number;
|
|
136
|
+
updatedAt: number;
|
|
137
|
+
}
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
**Acceptance Criteria:**
|
|
141
|
+
- [ ] GroupsAPI interface complete
|
|
142
|
+
- [ ] All methods typed with Effect.Effect
|
|
143
|
+
- [ ] Error types defined (GroupNotFoundError, etc.)
|
|
144
|
+
- [ ] JSDoc comments explain ontology dimension
|
|
145
|
+
- [ ] Group type reflects 6-dimension ontology
|
|
146
|
+
- [ ] No TypeScript errors
|
|
147
|
+
- [ ] Compiles successfully
|
|
148
|
+
|
|
149
|
+
**File Path:** `/web/src/providers/DataProvider.ts` (GroupsAPI section)
|
|
150
|
+
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
### Task A-3: Define People Interface (Infer 13)
|
|
154
|
+
**Assigned to:** Backend Specialist
|
|
155
|
+
**Duration:** 1 hour
|
|
156
|
+
**Effort:** 6 Infer points
|
|
157
|
+
**Dependencies:** Task A-2
|
|
158
|
+
|
|
159
|
+
**Instructions:**
|
|
160
|
+
1. Add PeopleAPI interface to DataProvider.ts
|
|
161
|
+
2. Define methods: get, list, create, update, delete, getCurrentUser
|
|
162
|
+
3. Add CreatePersonInput and UpdatePersonInput types
|
|
163
|
+
4. Use Effect.Effect for return types
|
|
164
|
+
5. Add JSDoc explaining role-based authorization
|
|
165
|
+
|
|
166
|
+
**Expected Output:**
|
|
167
|
+
```typescript
|
|
168
|
+
export interface PeopleAPI {
|
|
169
|
+
get: (id: string) => Effect.Effect<Person, PersonNotFoundError>;
|
|
170
|
+
list: (params: ListParams) => Effect.Effect<Person[], Error>;
|
|
171
|
+
create: (input: CreatePersonInput) => Effect.Effect<string, Error>;
|
|
172
|
+
update: (id: string, updates: Partial<Person>) => Effect.Effect<void, Error>;
|
|
173
|
+
delete: (id: string) => Effect.Effect<void, Error>;
|
|
174
|
+
getCurrentUser: () => Effect.Effect<Person, UnauthorizedError>;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export interface Person {
|
|
178
|
+
_id: string;
|
|
179
|
+
email: string;
|
|
180
|
+
role: "platform_owner" | "org_owner" | "org_user" | "customer";
|
|
181
|
+
// ... more fields
|
|
182
|
+
}
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
**Acceptance Criteria:**
|
|
186
|
+
- [ ] PeopleAPI interface complete
|
|
187
|
+
- [ ] All CRUD methods defined
|
|
188
|
+
- [ ] Role type includes all 4 roles
|
|
189
|
+
- [ ] Error types: PersonNotFoundError, UnauthorizedError
|
|
190
|
+
- [ ] JSDoc comments document authorization dimension
|
|
191
|
+
- [ ] No TypeScript errors
|
|
192
|
+
|
|
193
|
+
**File Path:** `/web/src/providers/DataProvider.ts` (PeopleAPI section)
|
|
194
|
+
|
|
195
|
+
---
|
|
196
|
+
|
|
197
|
+
### Task A-4: Define Things Interface (Infer 14)
|
|
198
|
+
**Assigned to:** Backend Specialist
|
|
199
|
+
**Duration:** 1.5 hours
|
|
200
|
+
**Effort:** 8 Infer points
|
|
201
|
+
**Dependencies:** Task A-3
|
|
202
|
+
|
|
203
|
+
**Instructions:**
|
|
204
|
+
1. Add ThingsAPI interface
|
|
205
|
+
2. Define CRUD methods: get, list, create, update, delete
|
|
206
|
+
3. Add type filtering support
|
|
207
|
+
4. Define CreateThingInput and UpdateThingInput
|
|
208
|
+
5. Add type definitions for Thing entity
|
|
209
|
+
|
|
210
|
+
**Expected Output:**
|
|
211
|
+
```typescript
|
|
212
|
+
export interface ThingsAPI {
|
|
213
|
+
get: (id: string) => Effect.Effect<Thing, ThingNotFoundError>;
|
|
214
|
+
list: (params: { type: ThingType; groupId?: string })
|
|
215
|
+
=> Effect.Effect<Thing[], Error>;
|
|
216
|
+
create: (input: CreateThingInput) => Effect.Effect<string, ThingCreateError>;
|
|
217
|
+
update: (id: string, updates: Partial<Thing>)
|
|
218
|
+
=> Effect.Effect<void, ThingUpdateError>;
|
|
219
|
+
delete: (id: string) => Effect.Effect<void, Error>;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export interface Thing {
|
|
223
|
+
_id: string;
|
|
224
|
+
groupId: string; // Multi-tenant scoping
|
|
225
|
+
type: ThingType;
|
|
226
|
+
name: string;
|
|
227
|
+
properties: Record<string, unknown>;
|
|
228
|
+
status: "draft" | "active" | "published" | "archived";
|
|
229
|
+
createdAt: number;
|
|
230
|
+
updatedAt: number;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
export type ThingType = "creator" | "course" | "lesson" | "token" | ... // 66 types
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
**Acceptance Criteria:**
|
|
237
|
+
- [ ] ThingsAPI CRUD methods complete
|
|
238
|
+
- [ ] Thing type includes groupId (ontology scoping)
|
|
239
|
+
- [ ] Type filtering works (list by type)
|
|
240
|
+
- [ ] Error types: ThingNotFoundError, ThingCreateError, ThingUpdateError
|
|
241
|
+
- [ ] Properties field allows flexible data
|
|
242
|
+
- [ ] No TypeScript errors
|
|
243
|
+
|
|
244
|
+
**File Path:** `/web/src/providers/DataProvider.ts` (ThingsAPI section)
|
|
245
|
+
|
|
246
|
+
---
|
|
247
|
+
|
|
248
|
+
### Task A-5: Define Connections Interface (Infer 15)
|
|
249
|
+
**Assigned to:** Backend Specialist
|
|
250
|
+
**Duration:** 1 hour
|
|
251
|
+
**Effort:** 6 Infer points
|
|
252
|
+
**Dependencies:** Task A-4
|
|
253
|
+
|
|
254
|
+
**Instructions:**
|
|
255
|
+
1. Add ConnectionsAPI interface
|
|
256
|
+
2. Define methods: create, getRelated, getCount, delete
|
|
257
|
+
3. Add CreateConnectionInput type
|
|
258
|
+
4. Define Connection type with relationship metadata
|
|
259
|
+
|
|
260
|
+
**Expected Output:**
|
|
261
|
+
```typescript
|
|
262
|
+
export interface ConnectionsAPI {
|
|
263
|
+
create: (input: CreateConnectionInput)
|
|
264
|
+
=> Effect.Effect<string, ConnectionCreateError>;
|
|
265
|
+
getRelated: (thingId: string)
|
|
266
|
+
=> Effect.Effect<Connection[], Error>;
|
|
267
|
+
getCount: (thingId: string)
|
|
268
|
+
=> Effect.Effect<number, Error>;
|
|
269
|
+
delete: (connectionId: string)
|
|
270
|
+
=> Effect.Effect<void, Error>;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
export interface Connection {
|
|
274
|
+
_id: string;
|
|
275
|
+
fromThingId: string;
|
|
276
|
+
toThingId: string;
|
|
277
|
+
relationshipType: ConnectionType;
|
|
278
|
+
metadata?: Record<string, unknown>;
|
|
279
|
+
validFrom?: number;
|
|
280
|
+
validTo?: number;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
export type ConnectionType = "owns" | "part_of" | "enrolled_in" | ... // 25 types
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
**Acceptance Criteria:**
|
|
287
|
+
- [ ] ConnectionsAPI methods complete
|
|
288
|
+
- [ ] Relationship types match ontology (owns, part_of, etc.)
|
|
289
|
+
- [ ] Metadata field allows rich context
|
|
290
|
+
- [ ] Temporal validity (validFrom/validTo) supported
|
|
291
|
+
- [ ] Error types defined
|
|
292
|
+
- [ ] No TypeScript errors
|
|
293
|
+
|
|
294
|
+
**File Path:** `/web/src/providers/DataProvider.ts` (ConnectionsAPI section)
|
|
295
|
+
|
|
296
|
+
---
|
|
297
|
+
|
|
298
|
+
### Task A-6: Define Events Interface (Infer 16)
|
|
299
|
+
**Assigned to:** Backend Specialist
|
|
300
|
+
**Duration:** 45 min
|
|
301
|
+
**Effort:** 5 Infer points
|
|
302
|
+
**Dependencies:** Task A-5
|
|
303
|
+
|
|
304
|
+
**Instructions:**
|
|
305
|
+
1. Add EventsAPI interface
|
|
306
|
+
2. Define methods: log (with actor/target), query
|
|
307
|
+
3. Add LogEventInput and QueryEventsInput types
|
|
308
|
+
4. Define Event type with audit trail
|
|
309
|
+
|
|
310
|
+
**Expected Output:**
|
|
311
|
+
```typescript
|
|
312
|
+
export interface EventsAPI {
|
|
313
|
+
log: (event: LogEventInput) => Effect.Effect<void, EventCreateError>;
|
|
314
|
+
query: (params: QueryEventsInput) => Effect.Effect<Event[], Error>;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
export interface Event {
|
|
318
|
+
_id: string;
|
|
319
|
+
type: EventType;
|
|
320
|
+
actorId?: string; // Who did the action
|
|
321
|
+
targetId?: string; // What was affected
|
|
322
|
+
timestamp: number;
|
|
323
|
+
metadata?: Record<string, unknown>;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
export type EventType =
|
|
327
|
+
| "entity_created" | "entity_updated" | "entity_deleted"
|
|
328
|
+
| "connection_formed" | "connection_deleted"
|
|
329
|
+
| ... // 67 event types
|
|
330
|
+
```
|
|
331
|
+
|
|
332
|
+
**Acceptance Criteria:**
|
|
333
|
+
- [ ] EventsAPI log and query methods
|
|
334
|
+
- [ ] Actor/target tracking for audit trail
|
|
335
|
+
- [ ] Timestamp on all events
|
|
336
|
+
- [ ] Event types cover create/update/delete
|
|
337
|
+
- [ ] Metadata supports rich context
|
|
338
|
+
- [ ] No TypeScript errors
|
|
339
|
+
|
|
340
|
+
**File Path:** `/web/src/providers/DataProvider.ts` (EventsAPI section)
|
|
341
|
+
|
|
342
|
+
---
|
|
343
|
+
|
|
344
|
+
### Task A-7: Define Knowledge Interface (Infer 17)
|
|
345
|
+
**Assigned to:** Backend Specialist
|
|
346
|
+
**Duration:** 1 hour
|
|
347
|
+
**Effort:** 6 Infer points
|
|
348
|
+
**Dependencies:** Task A-6
|
|
349
|
+
|
|
350
|
+
**Instructions:**
|
|
351
|
+
1. Add KnowledgeAPI interface
|
|
352
|
+
2. Define methods: embed (text → vector), search
|
|
353
|
+
3. Add SearchInput and SearchResult types
|
|
354
|
+
4. Support vector similarity search
|
|
355
|
+
|
|
356
|
+
**Expected Output:**
|
|
357
|
+
```typescript
|
|
358
|
+
export interface KnowledgeAPI {
|
|
359
|
+
embed: (text: string) => Effect.Effect<number[], EmbeddingError>;
|
|
360
|
+
search: (params: SearchInput)
|
|
361
|
+
=> Effect.Effect<KnowledgeChunk[], Error>;
|
|
362
|
+
queryByVector: (vector: number[])
|
|
363
|
+
=> Effect.Effect<KnowledgeChunk[], Error>;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
export interface SearchInput {
|
|
367
|
+
query: string;
|
|
368
|
+
groupId?: string;
|
|
369
|
+
limit?: number;
|
|
370
|
+
threshold?: number; // Similarity threshold
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
export interface KnowledgeChunk {
|
|
374
|
+
_id: string;
|
|
375
|
+
text: string;
|
|
376
|
+
embedding: number[];
|
|
377
|
+
similarity?: number; // For search results
|
|
378
|
+
metadata?: Record<string, unknown>;
|
|
379
|
+
}
|
|
380
|
+
```
|
|
381
|
+
|
|
382
|
+
**Acceptance Criteria:**
|
|
383
|
+
- [ ] KnowledgeAPI embed and search methods
|
|
384
|
+
- [ ] Embedding returns vector (number[])
|
|
385
|
+
- [ ] Search supports similarity threshold
|
|
386
|
+
- [ ] GroupId scoping for multi-tenant
|
|
387
|
+
- [ ] Error types: EmbeddingError
|
|
388
|
+
- [ ] No TypeScript errors
|
|
389
|
+
|
|
390
|
+
**File Path:** `/web/src/providers/DataProvider.ts` (KnowledgeAPI section)
|
|
391
|
+
|
|
392
|
+
---
|
|
393
|
+
|
|
394
|
+
### Task A-8: Define Error Hierarchy (Infer 18)
|
|
395
|
+
**Assigned to:** Backend Specialist
|
|
396
|
+
**Duration:** 1.5 hours
|
|
397
|
+
**Effort:** 8 Infer points
|
|
398
|
+
**Dependencies:** Tasks A-2 through A-7
|
|
399
|
+
|
|
400
|
+
**Instructions:**
|
|
401
|
+
1. Create error classes for all 12 domain errors
|
|
402
|
+
2. Use Data.TaggedError pattern for Effect compatibility
|
|
403
|
+
3. Include error message and context (id, cause, etc.)
|
|
404
|
+
4. Create error union type: DataProviderError
|
|
405
|
+
5. Add JSDoc explaining error recovery
|
|
406
|
+
|
|
407
|
+
**Expected Output:**
|
|
408
|
+
```typescript
|
|
409
|
+
// Domain errors
|
|
410
|
+
export class GroupNotFoundError {
|
|
411
|
+
readonly _tag = "GroupNotFoundError";
|
|
412
|
+
constructor(readonly id: string, readonly message?: string) {}
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
export class ThingNotFoundError {
|
|
416
|
+
readonly _tag = "ThingNotFoundError";
|
|
417
|
+
constructor(readonly id: string, readonly message?: string) {}
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
export class ThingCreateError {
|
|
421
|
+
readonly _tag = "ThingCreateError";
|
|
422
|
+
constructor(readonly message: string, readonly cause?: unknown) {}
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
// ... 9 more error types
|
|
426
|
+
|
|
427
|
+
export type DataProviderError =
|
|
428
|
+
| GroupNotFoundError | PersonNotFoundError | ThingNotFoundError
|
|
429
|
+
| ThingCreateError | ThingUpdateError | ConnectionNotFoundError
|
|
430
|
+
| ConnectionCreateError | EventCreateError | KnowledgeNotFoundError
|
|
431
|
+
| ValidationError | AuthorizationError | ProviderError;
|
|
432
|
+
```
|
|
433
|
+
|
|
434
|
+
**Acceptance Criteria:**
|
|
435
|
+
- [ ] All 12 error types defined
|
|
436
|
+
- [ ] _tag field for discriminated unions
|
|
437
|
+
- [ ] Error union type exported
|
|
438
|
+
- [ ] Error messages helpful for debugging
|
|
439
|
+
- [ ] Context (id, cause) captured
|
|
440
|
+
- [ ] No TypeScript errors
|
|
441
|
+
- [ ] JSDoc explains when each error occurs
|
|
442
|
+
|
|
443
|
+
**File Path:** `/web/src/providers/DataProvider.ts` (Error types section)
|
|
444
|
+
|
|
445
|
+
---
|
|
446
|
+
|
|
447
|
+
### Task A-9: Document Interface with Examples (Infer 19)
|
|
448
|
+
**Assigned to:** Backend Specialist
|
|
449
|
+
**Duration:** 2 hours
|
|
450
|
+
**Effort:** 8 Infer points
|
|
451
|
+
**Dependencies:** All Tasks A-1 through A-8
|
|
452
|
+
|
|
453
|
+
**Instructions:**
|
|
454
|
+
1. Add comprehensive JSDoc to all interfaces
|
|
455
|
+
2. Include usage examples for each method
|
|
456
|
+
3. Explain error channels
|
|
457
|
+
4. Document ontology dimension mapping
|
|
458
|
+
5. Add implementation notes for provider developers
|
|
459
|
+
6. Create `/web/src/providers/DataProvider.examples.ts` with working examples
|
|
460
|
+
|
|
461
|
+
**Expected Output:**
|
|
462
|
+
```typescript
|
|
463
|
+
/**
|
|
464
|
+
* DataProvider Interface - Backend-Agnostic Data Access Layer
|
|
465
|
+
*
|
|
466
|
+
* This interface abstracts the 6-dimension ONE ontology, enabling
|
|
467
|
+
* multiple backend implementations while maintaining a single frontend.
|
|
468
|
+
*
|
|
469
|
+
* All operations return Effect.Effect<T, Error> for type-safe error handling.
|
|
470
|
+
*
|
|
471
|
+
* Example:
|
|
472
|
+
* ```typescript
|
|
473
|
+
* const effect = DataProvider.pipe(
|
|
474
|
+
* Effect.flatMap(dp => dp.things.get(thingId))
|
|
475
|
+
* );
|
|
476
|
+
* const result = await Effect.runPromise(effect);
|
|
477
|
+
* ```
|
|
478
|
+
*
|
|
479
|
+
* Error Handling:
|
|
480
|
+
* - Network errors: NetworkError | TimeoutError
|
|
481
|
+
* - Not found: ThingNotFoundError
|
|
482
|
+
* - Validation: ValidationError with field details
|
|
483
|
+
* - Authorization: AuthorizationError with action details
|
|
484
|
+
*/
|
|
485
|
+
|
|
486
|
+
export interface DataProvider {
|
|
487
|
+
// ... interfaces documented with examples
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* Groups API - Hierarchical organization containers
|
|
492
|
+
*
|
|
493
|
+
* Dimension 1: Groups (organizations, teams, subgroups)
|
|
494
|
+
* - Infinite nesting: Groups can contain groups
|
|
495
|
+
* - Multi-tenancy: Each group has isolated data
|
|
496
|
+
* - Scoping: All other dimensions scoped to groupId
|
|
497
|
+
*
|
|
498
|
+
* Example: Get current organization
|
|
499
|
+
* ```typescript
|
|
500
|
+
* const org = await Effect.runPromise(
|
|
501
|
+
* DataProvider.pipe(
|
|
502
|
+
* Effect.flatMap(dp => dp.groups.getCurrent())
|
|
503
|
+
* )
|
|
504
|
+
* );
|
|
505
|
+
* ```
|
|
506
|
+
*/
|
|
507
|
+
export interface GroupsAPI {
|
|
508
|
+
// ... methods documented with examples
|
|
509
|
+
}
|
|
510
|
+
```
|
|
511
|
+
|
|
512
|
+
**Acceptance Criteria:**
|
|
513
|
+
- [ ] All interfaces have comprehensive JSDoc
|
|
514
|
+
- [ ] Examples for each major method
|
|
515
|
+
- [ ] Error handling documented
|
|
516
|
+
- [ ] Ontology dimension explained
|
|
517
|
+
- [ ] Examples compile and run
|
|
518
|
+
- [ ] No TypeScript errors
|
|
519
|
+
- [ ] Examples file created
|
|
520
|
+
|
|
521
|
+
**File Path:** `/web/src/providers/DataProvider.ts` + `/web/src/providers/DataProvider.examples.ts`
|
|
522
|
+
|
|
523
|
+
---
|
|
524
|
+
|
|
525
|
+
### Task A-10: Create Context.Tag for Dependency Injection (Infer 20)
|
|
526
|
+
**Assigned to:** Backend Specialist
|
|
527
|
+
**Duration:** 30 min
|
|
528
|
+
**Effort:** 4 Infer points
|
|
529
|
+
**Dependencies:** All Tasks A-1 through A-9
|
|
530
|
+
|
|
531
|
+
**Instructions:**
|
|
532
|
+
1. Add Context.Tag export to DataProvider.ts
|
|
533
|
+
2. Create tag for dependency injection
|
|
534
|
+
3. Add documentation explaining how to use in services
|
|
535
|
+
4. Export from index.ts
|
|
536
|
+
|
|
537
|
+
**Expected Output:**
|
|
538
|
+
```typescript
|
|
539
|
+
// At end of DataProvider.ts
|
|
540
|
+
|
|
541
|
+
/**
|
|
542
|
+
* Context.Tag for DataProvider dependency injection
|
|
543
|
+
*
|
|
544
|
+
* Use in services like:
|
|
545
|
+
* ```typescript
|
|
546
|
+
* import { DataProvider } from "./DataProvider";
|
|
547
|
+
*
|
|
548
|
+
* export class ThingService extends Effect.Service<ThingService>() {
|
|
549
|
+
* constructor(private dp: DataProvider.Type) {}
|
|
550
|
+
*
|
|
551
|
+
* get = (id: string) =>
|
|
552
|
+
* Effect.map(
|
|
553
|
+
* this.dp.things.get(id),
|
|
554
|
+
* thing => new Thing(thing)
|
|
555
|
+
* );
|
|
556
|
+
* }
|
|
557
|
+
* ```
|
|
558
|
+
*/
|
|
559
|
+
export const DataProviderTag = Context.GenericTag<DataProvider>("DataProvider");
|
|
560
|
+
|
|
561
|
+
// In index.ts
|
|
562
|
+
export { DataProvider, DataProviderTag, DataProviderError } from "./DataProvider";
|
|
563
|
+
```
|
|
564
|
+
|
|
565
|
+
**Acceptance Criteria:**
|
|
566
|
+
- [ ] Context.Tag created
|
|
567
|
+
- [ ] Tagged union for DI
|
|
568
|
+
- [ ] JSDoc explains usage in services
|
|
569
|
+
- [ ] Exported from index.ts
|
|
570
|
+
- [ ] No TypeScript errors
|
|
571
|
+
- [ ] Can be imported in other files
|
|
572
|
+
|
|
573
|
+
**File Path:** `/web/src/providers/DataProvider.ts` + `/web/src/providers/index.ts`
|
|
574
|
+
|
|
575
|
+
---
|
|
576
|
+
|
|
577
|
+
## Specialist Stream B: Foundation & Planning (Frontend Lead)
|
|
578
|
+
|
|
579
|
+
### Stream Lead: Frontend Lead (0.5 FTE Week 1)
|
|
580
|
+
**Phase:** 1 (Infer 1-10)
|
|
581
|
+
**Duration:** Oct 28 - Nov 2 (Days 1-5)
|
|
582
|
+
**Goal:** Validate architecture, create task breakdown, assign specialists
|
|
583
|
+
|
|
584
|
+
---
|
|
585
|
+
|
|
586
|
+
### Task B-1: Validate Ontology Mapping (Infer 001)
|
|
587
|
+
**Assigned to:** Frontend Lead
|
|
588
|
+
**Duration:** 1 hour
|
|
589
|
+
**Effort:** 5 Infer points
|
|
590
|
+
**Dependencies:** None
|
|
591
|
+
|
|
592
|
+
**Instructions:**
|
|
593
|
+
1. Read `/one/knowledge/ontology.md` (6-dimension spec)
|
|
594
|
+
2. Map Effect services to ontology:
|
|
595
|
+
- Groups → ThingService.listThings(groupId)
|
|
596
|
+
- People → PeopleService methods
|
|
597
|
+
- Things → ThingService CRUD
|
|
598
|
+
- Connections → ConnectionService
|
|
599
|
+
- Events → EventService logging
|
|
600
|
+
- Knowledge → KnowledgeService
|
|
601
|
+
3. Verify DataProvider enforces ontology at interface
|
|
602
|
+
4. Document findings in project notes
|
|
603
|
+
|
|
604
|
+
**Deliverable:** Ontology validation checklist (can be informal notes)
|
|
605
|
+
|
|
606
|
+
**Acceptance Criteria:**
|
|
607
|
+
- [ ] All 6 dimensions identified in codebase
|
|
608
|
+
- [ ] Scoping via groupId verified for Things, Connections, Events, Knowledge
|
|
609
|
+
- [ ] Authorization via role in People verified
|
|
610
|
+
- [ ] Hierarchical groups support confirmed
|
|
611
|
+
- [ ] DataProvider interface enforces ontology structure
|
|
612
|
+
- [ ] No gaps in ontology mapping
|
|
613
|
+
|
|
614
|
+
**File Path:** Project notes / Slack summary
|
|
615
|
+
|
|
616
|
+
---
|
|
617
|
+
|
|
618
|
+
### Task B-2: Map Convex Hooks to DataProvider (Infer 002)
|
|
619
|
+
**Assigned to:** Frontend Lead + Backend Specialist (30 min sync)
|
|
620
|
+
**Duration:** 2 hours
|
|
621
|
+
**Effort:** 6 Infer points
|
|
622
|
+
**Dependencies:** Task B-1
|
|
623
|
+
|
|
624
|
+
**Instructions:**
|
|
625
|
+
1. Grep for all `useQuery` and `useMutation` in codebase
|
|
626
|
+
2. List all Convex hooks found
|
|
627
|
+
3. For each, document:
|
|
628
|
+
- Hook name (e.g., `useQuery(api.queries.courses.list)`)
|
|
629
|
+
- What it does
|
|
630
|
+
- Which DataProvider service will replace it
|
|
631
|
+
4. Assess migration risk: LOW / MEDIUM / HIGH
|
|
632
|
+
5. Identify any complex mutations that need special handling
|
|
633
|
+
|
|
634
|
+
**Deliverable:** Hook inventory spreadsheet (can be in Markdown)
|
|
635
|
+
|
|
636
|
+
**Expected Output:**
|
|
637
|
+
```markdown
|
|
638
|
+
# Convex Hooks Inventory
|
|
639
|
+
|
|
640
|
+
| Convex Hook | Used By | DataProvider Service | Risk |
|
|
641
|
+
|-------------|---------|----------------------|------|
|
|
642
|
+
| api.queries.courses.list | CourseFeed | ThingService.list | LOW |
|
|
643
|
+
| api.queries.courses.get | CourseDetail | ThingService.get | LOW |
|
|
644
|
+
| api.mutations.courses.create | CreateCourseForm | ThingService.create | MEDIUM |
|
|
645
|
+
| ... | ... | ... | ... |
|
|
646
|
+
|
|
647
|
+
Total: 47 hooks found
|
|
648
|
+
Average Risk: LOW
|
|
649
|
+
High-Risk Items: 3 (optimistic updates, nested mutations)
|
|
650
|
+
```
|
|
651
|
+
|
|
652
|
+
**Acceptance Criteria:**
|
|
653
|
+
- [ ] All Convex imports found (grep results)
|
|
654
|
+
- [ ] Each hook mapped to DataProvider service
|
|
655
|
+
- [ ] Risk assessment per hook
|
|
656
|
+
- [ ] Complex mutations identified
|
|
657
|
+
- [ ] Migration strategy per complex mutation
|
|
658
|
+
- [ ] Team reviewed and agreed on approach
|
|
659
|
+
|
|
660
|
+
**File Path:** `/one/events/convex-hooks-inventory.md`
|
|
661
|
+
|
|
662
|
+
---
|
|
663
|
+
|
|
664
|
+
### Task B-3: Design Service Dependency Graph (Infer 003)
|
|
665
|
+
**Assigned to:** Frontend Lead + Backend Specialist (30 min sync)
|
|
666
|
+
**Duration:** 1.5 hours
|
|
667
|
+
**Effort:** 6 Infer points
|
|
668
|
+
**Dependencies:** Task B-2
|
|
669
|
+
|
|
670
|
+
**Instructions:**
|
|
671
|
+
1. List all 12 frontend services planned:
|
|
672
|
+
- Core: Thing, Connection, Event, Knowledge, People, Group (6)
|
|
673
|
+
- Domain: Cart, Order, Product, Review, Organization, Config (6)
|
|
674
|
+
2. For each service, identify dependencies:
|
|
675
|
+
- Does it depend on other services?
|
|
676
|
+
- Does it depend on DataProvider?
|
|
677
|
+
3. Draw dependency graph (can be ASCII art or text)
|
|
678
|
+
4. Verify acyclic (no circular dependencies)
|
|
679
|
+
5. Identify critical path (longest dependency chain)
|
|
680
|
+
|
|
681
|
+
**Deliverable:** Service dependency graph document
|
|
682
|
+
|
|
683
|
+
**Expected Output:**
|
|
684
|
+
```
|
|
685
|
+
Service Dependencies:
|
|
686
|
+
|
|
687
|
+
ThingService
|
|
688
|
+
└─ DataProvider
|
|
689
|
+
|
|
690
|
+
ConnectionService
|
|
691
|
+
└─ DataProvider
|
|
692
|
+
|
|
693
|
+
EventService
|
|
694
|
+
└─ DataProvider
|
|
695
|
+
|
|
696
|
+
KnowledgeService
|
|
697
|
+
└─ DataProvider
|
|
698
|
+
|
|
699
|
+
PeopleService
|
|
700
|
+
└─ DataProvider
|
|
701
|
+
|
|
702
|
+
GroupService
|
|
703
|
+
└─ DataProvider
|
|
704
|
+
|
|
705
|
+
CourseService (Domain)
|
|
706
|
+
├─ ThingService
|
|
707
|
+
├─ ConnectionService
|
|
708
|
+
└─ DataProvider
|
|
709
|
+
|
|
710
|
+
CartService (Domain)
|
|
711
|
+
├─ ThingService
|
|
712
|
+
├─ ProductService
|
|
713
|
+
└─ DataProvider
|
|
714
|
+
|
|
715
|
+
... (6 more domain services)
|
|
716
|
+
|
|
717
|
+
Critical Path: 3 levels deep
|
|
718
|
+
DataProvider → ThingService → CourseService
|
|
719
|
+
|
|
720
|
+
No circular dependencies detected ✓
|
|
721
|
+
```
|
|
722
|
+
|
|
723
|
+
**Acceptance Criteria:**
|
|
724
|
+
- [ ] All 12 services listed
|
|
725
|
+
- [ ] Dependencies identified for each service
|
|
726
|
+
- [ ] Dependency graph is acyclic
|
|
727
|
+
- [ ] Critical path identified
|
|
728
|
+
- [ ] DataProvider is leaf node (all dependencies point to it)
|
|
729
|
+
- [ ] Document clear for implementation team
|
|
730
|
+
|
|
731
|
+
**File Path:** `/one/events/service-dependency-graph.md`
|
|
732
|
+
|
|
733
|
+
---
|
|
734
|
+
|
|
735
|
+
### Task B-4: Define Error Handling Strategy (Infer 004)
|
|
736
|
+
**Assigned to:** Backend Specialist + Frontend Lead (1 hour sync)
|
|
737
|
+
**Duration:** 1.5 hours
|
|
738
|
+
**Effort:** 6 Infer points
|
|
739
|
+
**Dependencies:** Task B-3
|
|
740
|
+
|
|
741
|
+
**Instructions:**
|
|
742
|
+
1. Identify error categories:
|
|
743
|
+
- Domain errors: ThingNotFound, ValidationError
|
|
744
|
+
- Provider errors: ProviderError, NetworkError
|
|
745
|
+
- Component errors: FormError, RenderError
|
|
746
|
+
2. For each category, define:
|
|
747
|
+
- When it occurs
|
|
748
|
+
- How to recover
|
|
749
|
+
- User-facing message
|
|
750
|
+
- Developer debugging info
|
|
751
|
+
3. Plan Effect error channel strategy:
|
|
752
|
+
- Use Effect.Either<Success, Error>
|
|
753
|
+
- Discriminated unions for errors
|
|
754
|
+
- Type-safe error handling in hooks
|
|
755
|
+
4. Document error recovery flows
|
|
756
|
+
|
|
757
|
+
**Deliverable:** Error handling strategy document
|
|
758
|
+
|
|
759
|
+
**Expected Output:**
|
|
760
|
+
```markdown
|
|
761
|
+
# Error Handling Strategy
|
|
762
|
+
|
|
763
|
+
## Domain Errors (DataProvider → Services)
|
|
764
|
+
- ThingNotFoundError: "Thing {id} not found"
|
|
765
|
+
- Recovery: Redirect to list view
|
|
766
|
+
- Debug: Log 404 response from provider
|
|
767
|
+
|
|
768
|
+
- ValidationError: "Field {field}: {message}"
|
|
769
|
+
- Recovery: Show inline error, let user correct
|
|
770
|
+
- Debug: Log validation schema and value
|
|
771
|
+
|
|
772
|
+
- AuthorizationError: "Not allowed to {action} {resource}"
|
|
773
|
+
- Recovery: Show permission error UI
|
|
774
|
+
- Debug: Log user role and required permissions
|
|
775
|
+
|
|
776
|
+
## Provider Errors (Network, API)
|
|
777
|
+
- NetworkError: "Connection failed, retrying..."
|
|
778
|
+
- Recovery: Auto-retry 3x with exponential backoff
|
|
779
|
+
- Debug: Log HTTP status and response
|
|
780
|
+
|
|
781
|
+
- TimeoutError: "Request took too long, please try again"
|
|
782
|
+
- Recovery: Manual retry button
|
|
783
|
+
- Debug: Log request duration
|
|
784
|
+
|
|
785
|
+
## Component Errors (React)
|
|
786
|
+
- FormError: Per-field validation
|
|
787
|
+
- Recovery: Show errors inline, prevent submit
|
|
788
|
+
- Debug: Log form data and validation results
|
|
789
|
+
|
|
790
|
+
## Error Channels in Effect
|
|
791
|
+
|
|
792
|
+
All service methods use:
|
|
793
|
+
Effect.Effect<T, DomainError | ProviderError>
|
|
794
|
+
|
|
795
|
+
Hook error handling:
|
|
796
|
+
const [data, setData] = useState<Result<T>>(null);
|
|
797
|
+
const run = (effect) =>
|
|
798
|
+
Effect.runPromise(effect)
|
|
799
|
+
.then(success => setData({ ok: success }))
|
|
800
|
+
.catch(error => setData({ err: error }));
|
|
801
|
+
```
|
|
802
|
+
|
|
803
|
+
**Acceptance Criteria:**
|
|
804
|
+
- [ ] All error types identified
|
|
805
|
+
- [ ] Recovery strategy for each type
|
|
806
|
+
- [ ] User-facing messages defined
|
|
807
|
+
- [ ] Developer debugging strategy
|
|
808
|
+
- [ ] Effect error channel approach clear
|
|
809
|
+
- [ ] Team agreement on error handling
|
|
810
|
+
|
|
811
|
+
**File Path:** `/one/events/error-handling-strategy.md`
|
|
812
|
+
|
|
813
|
+
---
|
|
814
|
+
|
|
815
|
+
### Task B-5: Plan React Hook Library (Infer 005)
|
|
816
|
+
**Assigned to:** Frontend Specialist + Frontend Lead (45 min sync)
|
|
817
|
+
**Duration:** 1.5 hours
|
|
818
|
+
**Effort:** 6 Infer points
|
|
819
|
+
**Dependencies:** Task B-4
|
|
820
|
+
|
|
821
|
+
**Instructions:**
|
|
822
|
+
1. List minimum hooks needed: 6
|
|
823
|
+
- useEffectRunner (core)
|
|
824
|
+
- useThingService (generic CRUD)
|
|
825
|
+
- useService (any service)
|
|
826
|
+
- useForm (validation)
|
|
827
|
+
- useOptimisticUpdate
|
|
828
|
+
- useMemoEffect
|
|
829
|
+
2. Identify additional useful hooks (should be 6-10 more):
|
|
830
|
+
- useConnections
|
|
831
|
+
- useEvents
|
|
832
|
+
- useKnowledge
|
|
833
|
+
- useAuth
|
|
834
|
+
- useGroups
|
|
835
|
+
- usePeople
|
|
836
|
+
- Etc.
|
|
837
|
+
3. For each hook, document:
|
|
838
|
+
- What it does
|
|
839
|
+
- Inputs/outputs
|
|
840
|
+
- Error handling
|
|
841
|
+
- When to use it
|
|
842
|
+
4. Plan hook composition (can one hook use another?)
|
|
843
|
+
|
|
844
|
+
**Deliverable:** Hook library planning document
|
|
845
|
+
|
|
846
|
+
**Expected Output:**
|
|
847
|
+
```markdown
|
|
848
|
+
# React Hook Library Plan
|
|
849
|
+
|
|
850
|
+
## Core Hooks (6 minimum)
|
|
851
|
+
|
|
852
|
+
### useEffectRunner
|
|
853
|
+
- Purpose: Run Effect programs in React, get loading/error/data
|
|
854
|
+
- Input: Effect<T, E>
|
|
855
|
+
- Output: { run, data, loading, error, retry }
|
|
856
|
+
- Error handling: Catches Effect errors, stores in error state
|
|
857
|
+
- Usage: Base hook for all other hooks
|
|
858
|
+
|
|
859
|
+
### useThingService
|
|
860
|
+
- Purpose: CRUD operations for things
|
|
861
|
+
- Input: type, groupId, dependencies
|
|
862
|
+
- Output: { things, loading, create, update, delete, refetch }
|
|
863
|
+
- Error handling: Per-operation error states
|
|
864
|
+
- Usage: Most common hook for thing management
|
|
865
|
+
|
|
866
|
+
### useService
|
|
867
|
+
- Purpose: Generic service accessor
|
|
868
|
+
- Input: Service class, method name, args
|
|
869
|
+
- Output: { data, loading, error, run }
|
|
870
|
+
- Error handling: Via Effect error channels
|
|
871
|
+
- Usage: Advanced users, custom services
|
|
872
|
+
|
|
873
|
+
### useForm
|
|
874
|
+
- Purpose: Form state + validation
|
|
875
|
+
- Input: Schema, initial values, onSubmit
|
|
876
|
+
- Output: { register, watch, errors, submit, isSubmitting }
|
|
877
|
+
- Error handling: Per-field errors
|
|
878
|
+
- Usage: All forms
|
|
879
|
+
|
|
880
|
+
### useOptimisticUpdate
|
|
881
|
+
- Purpose: Optimistic updates with rollback
|
|
882
|
+
- Input: update mutation, initial value
|
|
883
|
+
- Output: { value, update, isUpdating, error }
|
|
884
|
+
- Error handling: Rollback on error
|
|
885
|
+
- Usage: UX-heavy mutations
|
|
886
|
+
|
|
887
|
+
### useMemoEffect
|
|
888
|
+
- Purpose: Memoize Effect operations
|
|
889
|
+
- Input: Effect, dependencies
|
|
890
|
+
- Output: Memoized effect
|
|
891
|
+
- Error handling: Via Effect channels
|
|
892
|
+
- Usage: Performance optimization
|
|
893
|
+
|
|
894
|
+
## Extended Hooks (6+ additional)
|
|
895
|
+
|
|
896
|
+
### useConnections (Thing → Related Things)
|
|
897
|
+
### useEvents (Audit trail / activity stream)
|
|
898
|
+
### useKnowledge (Search, embeddings)
|
|
899
|
+
### useAuth (Session, roles, permissions)
|
|
900
|
+
### useGroups (Organization hierarchy)
|
|
901
|
+
### usePeople (User list, profiles)
|
|
902
|
+
|
|
903
|
+
Total Planned: 18 hooks (3x minimum - allows rich functionality)
|
|
904
|
+
```
|
|
905
|
+
|
|
906
|
+
**Acceptance Criteria:**
|
|
907
|
+
- [ ] 6+ core hooks planned
|
|
908
|
+
- [ ] 6+ extended hooks planned
|
|
909
|
+
- [ ] Each hook documented (purpose, input/output)
|
|
910
|
+
- [ ] Hook composition strategy clear
|
|
911
|
+
- [ ] Error handling approach for each hook
|
|
912
|
+
- [ ] Team agreement on hook scope
|
|
913
|
+
|
|
914
|
+
**File Path:** `/one/events/react-hook-library-plan.md`
|
|
915
|
+
|
|
916
|
+
---
|
|
917
|
+
|
|
918
|
+
### Task B-6: Design Test Strategy (Infer 006)
|
|
919
|
+
**Assigned to:** Quality Specialist + Frontend Lead (1 hour sync)
|
|
920
|
+
**Duration:** 1.5 hours
|
|
921
|
+
**Effort:** 6 Infer points
|
|
922
|
+
**Dependencies:** Task B-5
|
|
923
|
+
|
|
924
|
+
**Instructions:**
|
|
925
|
+
1. Define three test levels:
|
|
926
|
+
- Unit: Services with mock DataProvider
|
|
927
|
+
- Integration: Hooks with mock services
|
|
928
|
+
- E2E: Full pages with real backend
|
|
929
|
+
2. Set coverage targets:
|
|
930
|
+
- Unit: 90%+ per service
|
|
931
|
+
- Integration: 80%+ per component
|
|
932
|
+
- Critical paths: 100%
|
|
933
|
+
3. Plan test utilities:
|
|
934
|
+
- Mock provider factory
|
|
935
|
+
- Test layer compositions
|
|
936
|
+
- Assert error types
|
|
937
|
+
- Setup/teardown helpers
|
|
938
|
+
4. Identify critical paths for 100% coverage:
|
|
939
|
+
- Auth (login, signup, password reset)
|
|
940
|
+
- Checkout flow
|
|
941
|
+
- Course enrollment
|
|
942
|
+
- Permission checks
|
|
943
|
+
|
|
944
|
+
**Deliverable:** Test strategy document
|
|
945
|
+
|
|
946
|
+
**Expected Output:**
|
|
947
|
+
```markdown
|
|
948
|
+
# Test Strategy
|
|
949
|
+
|
|
950
|
+
## Unit Tests (Services)
|
|
951
|
+
- Framework: Vitest
|
|
952
|
+
- Mock: DataProvider with predefined responses
|
|
953
|
+
- Coverage: 90%+ per service (ThingService, ConnectionService, etc.)
|
|
954
|
+
- Example:
|
|
955
|
+
```typescript
|
|
956
|
+
test("ThingService.get returns thing", () => {
|
|
957
|
+
const mockProvider = createMockProvider({
|
|
958
|
+
things: { get: () => Effect.succeed(mockThing) }
|
|
959
|
+
});
|
|
960
|
+
const service = new ThingService(mockProvider);
|
|
961
|
+
const effect = service.get("123");
|
|
962
|
+
const result = runTestEffect(effect);
|
|
963
|
+
expect(result.ok).toBe(true);
|
|
964
|
+
});
|
|
965
|
+
```
|
|
966
|
+
|
|
967
|
+
## Integration Tests (Hooks)
|
|
968
|
+
- Framework: React Testing Library
|
|
969
|
+
- Mock: Services using mock provider
|
|
970
|
+
- Coverage: 80%+ per hook/component
|
|
971
|
+
- Example:
|
|
972
|
+
```typescript
|
|
973
|
+
test("useThingService loads things", async () => {
|
|
974
|
+
const { result } = renderHook(
|
|
975
|
+
() => useThingService("course", groupId),
|
|
976
|
+
{ wrapper: EffectProvider }
|
|
977
|
+
);
|
|
978
|
+
await waitFor(() => expect(result.current.loading).toBe(false));
|
|
979
|
+
expect(result.current.things).toHaveLength(2);
|
|
980
|
+
});
|
|
981
|
+
```
|
|
982
|
+
|
|
983
|
+
## E2E Tests (Critical Paths)
|
|
984
|
+
- Framework: Playwright
|
|
985
|
+
- Real backend: Actual DataProvider
|
|
986
|
+
- Coverage: 100% for critical paths
|
|
987
|
+
- Test cases:
|
|
988
|
+
- Auth flow (login → dashboard)
|
|
989
|
+
- Course enrollment (browse → select → enroll)
|
|
990
|
+
- Checkout (cart → payment → confirmation)
|
|
991
|
+
|
|
992
|
+
## Coverage Targets
|
|
993
|
+
- Unit: 90%+ (all services)
|
|
994
|
+
- Integration: 80%+ (all hooks/components)
|
|
995
|
+
- Critical Paths: 100%
|
|
996
|
+
- Overall: 85%+ target
|
|
997
|
+
|
|
998
|
+
## Test Utilities
|
|
999
|
+
- createMockProvider(): Predefined responses
|
|
1000
|
+
- createMockLayer(): Service layer mock
|
|
1001
|
+
- renderHook(hook, { wrapper }): Hook testing
|
|
1002
|
+
- runTestEffect(effect): Effect execution
|
|
1003
|
+
- assertError(effect, ErrorType): Error verification
|
|
1004
|
+
```
|
|
1005
|
+
|
|
1006
|
+
**Acceptance Criteria:**
|
|
1007
|
+
- [ ] Three test levels defined
|
|
1008
|
+
- [ ] Coverage targets set (90%, 80%, 100%)
|
|
1009
|
+
- [ ] Test utilities designed
|
|
1010
|
+
- [ ] Critical paths identified
|
|
1011
|
+
- [ ] Example tests written
|
|
1012
|
+
- [ ] Team agreement on approach
|
|
1013
|
+
|
|
1014
|
+
**File Path:** `/one/events/test-strategy.md`
|
|
1015
|
+
|
|
1016
|
+
---
|
|
1017
|
+
|
|
1018
|
+
### Task B-7: Create Rollback Plan (Infer 007)
|
|
1019
|
+
**Assigned to:** Frontend Lead
|
|
1020
|
+
**Duration:** 45 min
|
|
1021
|
+
**Effort:** 4 Infer points
|
|
1022
|
+
**Dependencies:** Task B-2
|
|
1023
|
+
|
|
1024
|
+
**Instructions:**
|
|
1025
|
+
1. Document rollback scenarios:
|
|
1026
|
+
- Phase 2 fails (DataProvider incomplete)
|
|
1027
|
+
- Phase 3 fails (Services broken)
|
|
1028
|
+
- Phase 6 fails (Components can't migrate)
|
|
1029
|
+
2. For each scenario, define:
|
|
1030
|
+
- How to detect failure
|
|
1031
|
+
- Rollback procedure
|
|
1032
|
+
- Timeline to rollback (SLA)
|
|
1033
|
+
- Recovery process
|
|
1034
|
+
3. Key insight: Component migration is opt-in
|
|
1035
|
+
- Can migrate 10 components and rollback 5 without affecting 5
|
|
1036
|
+
- Services can be swapped via provider injection
|
|
1037
|
+
- Auth tests verify safety
|
|
1038
|
+
|
|
1039
|
+
**Deliverable:** Rollback plan document
|
|
1040
|
+
|
|
1041
|
+
**Expected Output:**
|
|
1042
|
+
```markdown
|
|
1043
|
+
# Rollback Plan
|
|
1044
|
+
|
|
1045
|
+
## Scenario 1: DataProvider Incomplete (Phase 2)
|
|
1046
|
+
- Detection: DataProvider interfaces don't compile
|
|
1047
|
+
- Rollback: Delete /web/src/providers/DataProvider.ts
|
|
1048
|
+
- Timeline: 30 minutes
|
|
1049
|
+
- Recovery: Revert to pure Convex hooks
|
|
1050
|
+
|
|
1051
|
+
## Scenario 2: Services Broken (Phase 3)
|
|
1052
|
+
- Detection: Service unit tests failing >20%
|
|
1053
|
+
- Rollback: Disable services, keep using Convex hooks
|
|
1054
|
+
- Timeline: 1 hour
|
|
1055
|
+
- Recovery: Fix services in parallel, redeploy
|
|
1056
|
+
|
|
1057
|
+
## Scenario 3: Component Migration Failing (Phase 6)
|
|
1058
|
+
- Detection: Component tests failing or auth tests failing
|
|
1059
|
+
- Rollback: Migrate that component back to Convex hooks
|
|
1060
|
+
- Timeline: 15 minutes per component
|
|
1061
|
+
- Recovery: Component can be fixed in isolation
|
|
1062
|
+
|
|
1063
|
+
## Key Safety Features
|
|
1064
|
+
1. Component Migration is Opt-in
|
|
1065
|
+
- Can migrate 10 components to test
|
|
1066
|
+
- If problems, rollback those 10 without affecting others
|
|
1067
|
+
|
|
1068
|
+
2. Provider Swapping is Configuration
|
|
1069
|
+
- Use feature flag to switch DataProvider ↔ ConvexProvider
|
|
1070
|
+
- 5-minute switch back to pure Convex
|
|
1071
|
+
|
|
1072
|
+
3. Auth Tests are Go/No-Go Criteria
|
|
1073
|
+
- Run auth tests after every migration
|
|
1074
|
+
- If auth tests fail, immediately rollback component
|
|
1075
|
+
- Never deploy with auth tests failing
|
|
1076
|
+
|
|
1077
|
+
## Rollback SLA
|
|
1078
|
+
- Phase 2 failure: 30 min to rollback
|
|
1079
|
+
- Phase 3 failure: 1 hour to rollback
|
|
1080
|
+
- Phase 6 component failure: 15 min per component
|
|
1081
|
+
- Total project failure: 2 hours to full rollback
|
|
1082
|
+
```
|
|
1083
|
+
|
|
1084
|
+
**Acceptance Criteria:**
|
|
1085
|
+
- [ ] All rollback scenarios documented
|
|
1086
|
+
- [ ] Detection criteria clear
|
|
1087
|
+
- [ ] Rollback procedure step-by-step
|
|
1088
|
+
- [ ] SLA defined for each scenario
|
|
1089
|
+
- [ ] Component-level rollback possible
|
|
1090
|
+
- [ ] Auth tests as safety gate documented
|
|
1091
|
+
|
|
1092
|
+
**File Path:** `/one/events/rollback-plan.md`
|
|
1093
|
+
|
|
1094
|
+
---
|
|
1095
|
+
|
|
1096
|
+
### Task B-8: Identify Critical Auth Components (Infer 008)
|
|
1097
|
+
**Assigned to:** Quality Specialist + Frontend Lead (30 min sync)
|
|
1098
|
+
**Duration:** 1 hour
|
|
1099
|
+
**Effort:** 5 Infer points
|
|
1100
|
+
**Dependencies:** Task B-2
|
|
1101
|
+
|
|
1102
|
+
**Instructions:**
|
|
1103
|
+
1. Find all auth tests: `find web/src/tests/auth -type f -name "*.test.ts"`
|
|
1104
|
+
2. List critical auth components:
|
|
1105
|
+
- Login page
|
|
1106
|
+
- Signup page
|
|
1107
|
+
- Password reset
|
|
1108
|
+
- Email verification
|
|
1109
|
+
- Session management
|
|
1110
|
+
3. For each, list:
|
|
1111
|
+
- Component file
|
|
1112
|
+
- Test file
|
|
1113
|
+
- What must not break
|
|
1114
|
+
4. Create "canary" test suite:
|
|
1115
|
+
- Must run after every phase
|
|
1116
|
+
- Checks auth functionality end-to-end
|
|
1117
|
+
- BLOCKER: If canary fails, STOP migration
|
|
1118
|
+
5. Document as non-negotiable quality gate
|
|
1119
|
+
|
|
1120
|
+
**Deliverable:** Critical auth components list + canary test suite
|
|
1121
|
+
|
|
1122
|
+
**Expected Output:**
|
|
1123
|
+
```markdown
|
|
1124
|
+
# Critical Auth Components (Canary Tests)
|
|
1125
|
+
|
|
1126
|
+
## Auth Tests to Run Per-Component Migration
|
|
1127
|
+
|
|
1128
|
+
### Test: Login Flow
|
|
1129
|
+
- File: web/src/pages/auth/signin.astro
|
|
1130
|
+
- Test: web/src/tests/auth/signin.test.ts
|
|
1131
|
+
- What must work: Email/password login, session creation, redirect to dashboard
|
|
1132
|
+
- Blocker: If fails, STOP migration immediately
|
|
1133
|
+
|
|
1134
|
+
### Test: Signup Flow
|
|
1135
|
+
- File: web/src/pages/auth/signup.astro
|
|
1136
|
+
- Test: web/src/tests/auth/signup.test.ts
|
|
1137
|
+
- What must work: Email/password registration, email verification, login after signup
|
|
1138
|
+
- Blocker: If fails, STOP migration immediately
|
|
1139
|
+
|
|
1140
|
+
### Test: Password Reset
|
|
1141
|
+
- File: web/src/pages/auth/password-reset.astro
|
|
1142
|
+
- Test: web/src/tests/auth/password-reset.test.ts
|
|
1143
|
+
- What must work: Send reset email, reset token validation, password update
|
|
1144
|
+
- Blocker: If fails, STOP migration immediately
|
|
1145
|
+
|
|
1146
|
+
### Test: Session Management
|
|
1147
|
+
- File: web/src/context/UserContext.tsx
|
|
1148
|
+
- Test: web/src/tests/auth/session.test.ts
|
|
1149
|
+
- What must work: Session creation, role persistence, session expiration
|
|
1150
|
+
- Blocker: If fails, STOP migration immediately
|
|
1151
|
+
|
|
1152
|
+
## Canary Test Suite
|
|
1153
|
+
|
|
1154
|
+
Run after EVERY component migration (Phase 6):
|
|
1155
|
+
```bash
|
|
1156
|
+
npm test -- web/src/tests/auth/signin.test.ts
|
|
1157
|
+
npm test -- web/src/tests/auth/signup.test.ts
|
|
1158
|
+
npm test -- web/src/tests/auth/password-reset.test.ts
|
|
1159
|
+
npm test -- web/src/tests/auth/session.test.ts
|
|
1160
|
+
```
|
|
1161
|
+
|
|
1162
|
+
ALL TESTS MUST PASS BEFORE CONTINUING
|
|
1163
|
+
|
|
1164
|
+
## Enforcement
|
|
1165
|
+
- Gate check in Phase 6: Infer 60 "Verify all auth tests STILL PASS"
|
|
1166
|
+
- PR check: Cannot merge component unless auth tests pass
|
|
1167
|
+
- Daily check: Auth test results in standup
|
|
1168
|
+
```
|
|
1169
|
+
|
|
1170
|
+
**Acceptance Criteria:**
|
|
1171
|
+
- [ ] All auth test files identified
|
|
1172
|
+
- [ ] Critical components listed
|
|
1173
|
+
- [ ] Canary test suite defined
|
|
1174
|
+
- [ ] Blocker criterion clear: auth tests = go/no-go
|
|
1175
|
+
- [ ] Team understands this is non-negotiable
|
|
1176
|
+
- [ ] Test file paths verified to exist
|
|
1177
|
+
|
|
1178
|
+
**File Path:** `/one/events/critical-auth-components.md`
|
|
1179
|
+
|
|
1180
|
+
---
|
|
1181
|
+
|
|
1182
|
+
### Task B-9: Plan Parallel Work Streams (Infer 009)
|
|
1183
|
+
**Assigned to:** Frontend Lead
|
|
1184
|
+
**Duration:** 1.5 hours
|
|
1185
|
+
**Effort:** 6 Infer points
|
|
1186
|
+
**Dependencies:** Tasks B-1 through B-8
|
|
1187
|
+
|
|
1188
|
+
**Instructions:**
|
|
1189
|
+
1. Define 5 specialist streams:
|
|
1190
|
+
- Stream A: DataProvider (Backend Specialist)
|
|
1191
|
+
- Stream B: Effect Services (Backend Specialist)
|
|
1192
|
+
- Stream C: React Hooks (Frontend Specialist)
|
|
1193
|
+
- Stream D: Component Migration (Frontend Specialist)
|
|
1194
|
+
- Stream E: Testing (Quality Specialist)
|
|
1195
|
+
2. For each stream:
|
|
1196
|
+
- Start date (which inferences)
|
|
1197
|
+
- Duration estimate
|
|
1198
|
+
- Key blockers
|
|
1199
|
+
- Gate it produces
|
|
1200
|
+
3. Identify which can run in parallel:
|
|
1201
|
+
- Streams A & B: B depends on A (sequential)
|
|
1202
|
+
- Streams B & C: Can start together on Day 5
|
|
1203
|
+
- Streams C & D: D depends on C
|
|
1204
|
+
- Streams D & E: Can run in parallel (E from Day 10)
|
|
1205
|
+
4. Create Gantt chart (ASCII art)
|
|
1206
|
+
|
|
1207
|
+
**Deliverable:** Parallel execution plan + Gantt chart
|
|
1208
|
+
|
|
1209
|
+
**Expected Output:**
|
|
1210
|
+
```markdown
|
|
1211
|
+
# Parallel Work Streams
|
|
1212
|
+
|
|
1213
|
+
## Stream A: DataProvider Interface (Backend Specialist)
|
|
1214
|
+
- Phase: 2 (Infer 11-20)
|
|
1215
|
+
- Duration: Days 1-5 (5 days)
|
|
1216
|
+
- Start: Oct 28 (Monday)
|
|
1217
|
+
- End: Nov 2 (Friday)
|
|
1218
|
+
- Gate Produced: Gate 2 (DataProvider complete)
|
|
1219
|
+
- Critical Path: YES (blocks all services)
|
|
1220
|
+
|
|
1221
|
+
## Stream B: Effect Services (Backend Specialist)
|
|
1222
|
+
- Phase: 3 (Infer 21-40)
|
|
1223
|
+
- Duration: Days 5-12 (8 days)
|
|
1224
|
+
- Start: Nov 2 (when DataProvider done)
|
|
1225
|
+
- End: Nov 9 (blocked on Stream A)
|
|
1226
|
+
- Gate Produced: Gate 3 (Services 90% coverage)
|
|
1227
|
+
- Critical Path: YES (blocks hooks and components)
|
|
1228
|
+
- Depends On: Stream A (DataProvider)
|
|
1229
|
+
|
|
1230
|
+
## Stream C: React Hooks (Frontend Specialist)
|
|
1231
|
+
- Phase: 4 (Infer 31-40)
|
|
1232
|
+
- Duration: Days 8-12 (5 days)
|
|
1233
|
+
- Start: Nov 5 (can start early with stub DataProvider)
|
|
1234
|
+
- End: Nov 9
|
|
1235
|
+
- Gate Produced: Gate 4 (Hooks tested)
|
|
1236
|
+
- Critical Path: YES (blocks component migration)
|
|
1237
|
+
- Depends On: Stream A (DataProvider interface)
|
|
1238
|
+
- Note: Can work in parallel with B once interface is clear
|
|
1239
|
+
|
|
1240
|
+
## Stream D: Component Migration (Frontend Specialist)
|
|
1241
|
+
- Phase: 6 (Infer 51-70)
|
|
1242
|
+
- Duration: Days 10-25 (16 days)
|
|
1243
|
+
- Start: Nov 9 (when hooks done)
|
|
1244
|
+
- End: Nov 24
|
|
1245
|
+
- Gate Produced: Gate 6 (63 components migrated)
|
|
1246
|
+
- Critical Path: YES (longest pole)
|
|
1247
|
+
- Depends On: Stream C (hooks must work)
|
|
1248
|
+
- Parallel With: Stream E (testing)
|
|
1249
|
+
|
|
1250
|
+
## Stream E: Testing (Quality Specialist)
|
|
1251
|
+
- Phase: 7 (Infer 71-80)
|
|
1252
|
+
- Duration: Days 10-24 (15 days)
|
|
1253
|
+
- Start: Nov 9 (start with test framework)
|
|
1254
|
+
- End: Nov 23
|
|
1255
|
+
- Gate Produced: Gate 7 (92% coverage)
|
|
1256
|
+
- Critical Path: YES (blocks deployment)
|
|
1257
|
+
- Parallel With: Stream D (components and tests together)
|
|
1258
|
+
- Note: Begin test framework on Day 10, then test components as migrated
|
|
1259
|
+
|
|
1260
|
+
## Gantt Chart
|
|
1261
|
+
|
|
1262
|
+
Oct 28 Nov 2 Nov 9 Nov 16 Nov 23 Nov 30
|
|
1263
|
+
|------|------|------|------|------|
|
|
1264
|
+
A------ (DataProvider)
|
|
1265
|
+
B-------- (Services)
|
|
1266
|
+
C----- (Hooks)
|
|
1267
|
+
D------------------- (Components)
|
|
1268
|
+
E------------------- (Testing)
|
|
1269
|
+
|------|------|------|------|------|
|
|
1270
|
+
Week 1 Week 2 Week 3 Week 4 Week 5
|
|
1271
|
+
|
|
1272
|
+
## Critical Path
|
|
1273
|
+
DataProvider → Services → Hooks → Components → Testing → Deployment
|
|
1274
|
+
(Days 1→5) → (5→12) → (8→12) → (10→25) → (10→24) → (25→30)
|
|
1275
|
+
|
|
1276
|
+
Longest pole: Component Migration (16 days)
|
|
1277
|
+
Total duration: 30 days (all 5 streams + dependencies)
|
|
1278
|
+
Parallelization saves: ~30 days vs sequential
|
|
1279
|
+
|
|
1280
|
+
## Parallel Opportunities
|
|
1281
|
+
- Streams A & B sequential (no parallelization)
|
|
1282
|
+
- Streams C & B can overlap (B produces DataProvider, C uses it)
|
|
1283
|
+
- Streams D & E must be parallel (D creates work for E)
|
|
1284
|
+
- Streams E & B can overlap (E tests while B implements)
|
|
1285
|
+
```
|
|
1286
|
+
|
|
1287
|
+
**Acceptance Criteria:**
|
|
1288
|
+
- [ ] 5 specialist streams defined
|
|
1289
|
+
- [ ] Start/end dates for each stream
|
|
1290
|
+
- [ ] Dependencies between streams clear
|
|
1291
|
+
- [ ] Parallel opportunities identified
|
|
1292
|
+
- [ ] Gantt chart shows timeline
|
|
1293
|
+
- [ ] Critical path identified
|
|
1294
|
+
- [ ] Team understands parallelization strategy
|
|
1295
|
+
|
|
1296
|
+
**File Path:** `/one/events/parallel-execution-plan.md`
|
|
1297
|
+
|
|
1298
|
+
---
|
|
1299
|
+
|
|
1300
|
+
### Task B-10: Assign Specialists & Create Schedule (Infer 010)
|
|
1301
|
+
**Assigned to:** Frontend Lead
|
|
1302
|
+
**Duration:** 1 hour
|
|
1303
|
+
**Effort:** 5 Infer points
|
|
1304
|
+
**Dependencies:** Task B-9
|
|
1305
|
+
|
|
1306
|
+
**Instructions:**
|
|
1307
|
+
1. Define 5 specialist roles:
|
|
1308
|
+
- Frontend Lead (1 FTE): Oversee, manage blockers, coordinate
|
|
1309
|
+
- Backend Specialist (1 FTE): DataProvider + Services
|
|
1310
|
+
- Frontend Specialist (1 FTE): Hooks + Components + Astro
|
|
1311
|
+
- Quality Specialist (1 FTE): Testing + Validation
|
|
1312
|
+
- Documenter (0.5 FTE): Docs (parallel)
|
|
1313
|
+
2. For each specialist:
|
|
1314
|
+
- Assign phases/inferences
|
|
1315
|
+
- Estimate effort per phase
|
|
1316
|
+
- Identify FTE allocation per week
|
|
1317
|
+
3. Create weekly schedule:
|
|
1318
|
+
- Week 1: Phases 1-2
|
|
1319
|
+
- Week 2: Phases 2-3-4
|
|
1320
|
+
- Weeks 3-4: Phases 5-6-7-8
|
|
1321
|
+
- Weeks 5-6: Phases 9-10
|
|
1322
|
+
4. Plan daily standups and weekly syncs
|
|
1323
|
+
5. Create contact/escalation list
|
|
1324
|
+
|
|
1325
|
+
**Deliverable:** Specialist assignment + weekly schedule
|
|
1326
|
+
|
|
1327
|
+
**Expected Output:**
|
|
1328
|
+
```markdown
|
|
1329
|
+
# Specialist Assignments & Schedule
|
|
1330
|
+
|
|
1331
|
+
## Specialist Team
|
|
1332
|
+
|
|
1333
|
+
### Frontend Lead (1 FTE)
|
|
1334
|
+
- Role: Director, blocker resolution, phase gates
|
|
1335
|
+
- Phases: 1, 10 (Infer 1-10, 96-100)
|
|
1336
|
+
- FTE by week: Week 1: 100%, Week 2-5: 10%, Week 6: 100%
|
|
1337
|
+
- Key activities:
|
|
1338
|
+
- Architecture validation (Infer 1-10)
|
|
1339
|
+
- Phase gate reviews (weekly)
|
|
1340
|
+
- Blocker escalation (daily)
|
|
1341
|
+
- Performance validation (Week 6)
|
|
1342
|
+
- Production deployment (Week 6)
|
|
1343
|
+
|
|
1344
|
+
### Backend Specialist (1 FTE)
|
|
1345
|
+
- Role: DataProvider + Services + Error handling
|
|
1346
|
+
- Phases: 2, 3, 8 (Infer 11-30, 81-85)
|
|
1347
|
+
- FTE by week: Week 1: 100%, Week 2: 100%, Weeks 3-4: 30%, Week 5: 20%
|
|
1348
|
+
- Key deliverables:
|
|
1349
|
+
- DataProvider interface (Week 1, Infer 11-20)
|
|
1350
|
+
- 6 core services (Week 2, Infer 21-30)
|
|
1351
|
+
- Error handling & resilience (Week 4, Infer 81-85)
|
|
1352
|
+
|
|
1353
|
+
### Frontend Specialist (1 FTE)
|
|
1354
|
+
- Role: React hooks, component migration, Astro
|
|
1355
|
+
- Phases: 4, 5, 6 (Infer 31-70)
|
|
1356
|
+
- FTE by week: Week 2: 50%, Week 3: 100%, Week 4: 100%, Week 5: 10%
|
|
1357
|
+
- Key deliverables:
|
|
1358
|
+
- React hooks (Week 2-3, Infer 31-40)
|
|
1359
|
+
- Astro integration (Week 3, Infer 41-50)
|
|
1360
|
+
- Component migration (Weeks 3-4, Infer 51-70)
|
|
1361
|
+
|
|
1362
|
+
### Quality Specialist (1 FTE)
|
|
1363
|
+
- Role: Testing, validation, quality gates
|
|
1364
|
+
- Phases: 7, 8, 10 (Infer 71-85, 99-100)
|
|
1365
|
+
- FTE by week: Week 3: 30%, Week 4: 100%, Week 5: 50%, Week 6: 50%
|
|
1366
|
+
- Key deliverables:
|
|
1367
|
+
- Test framework (Week 3, Infer 71-75)
|
|
1368
|
+
- Service & component tests (Weeks 3-4, Infer 76-80)
|
|
1369
|
+
- Final smoke tests (Week 6, Infer 99-100)
|
|
1370
|
+
|
|
1371
|
+
### Documenter (0.5 FTE)
|
|
1372
|
+
- Role: Documentation, guides, architecture
|
|
1373
|
+
- Phases: 9 (Infer 86-95) - PARALLEL with other phases
|
|
1374
|
+
- FTE by week: Weeks 3-5: 0.5 FTE continuous
|
|
1375
|
+
- Key deliverables:
|
|
1376
|
+
- API docs, service guides (Week 4)
|
|
1377
|
+
- Migration guides, testing guide (Week 5)
|
|
1378
|
+
- ADR, architecture decisions (Week 5)
|
|
1379
|
+
|
|
1380
|
+
## Weekly Schedule
|
|
1381
|
+
|
|
1382
|
+
### Week 1: Foundation + DataProvider (Oct 28 - Nov 2)
|
|
1383
|
+
| Role | Mon | Tue | Wed | Thu | Fri | Status |
|
|
1384
|
+
|------|-----|-----|-----|-----|-----|--------|
|
|
1385
|
+
| Frontend Lead | 100% | 100% | 100% | 100% | 50% | Plan, validate |
|
|
1386
|
+
| Backend Spec. | 100% | 100% | 100% | 100% | 100% | DataProvider |
|
|
1387
|
+
| Frontend Spec. | 0% | 0% | 0% | 0% | 0% | Wait for design |
|
|
1388
|
+
| Quality Spec. | 0% | 0% | 0% | 0% | 50% | Test plan |
|
|
1389
|
+
| Documenter | 0% | 0% | 0% | 0% | 0% | Wait for specs |
|
|
1390
|
+
|
|
1391
|
+
Phase complete: Infer 1-20 (Foundation + DataProvider)
|
|
1392
|
+
Gate 2 approval: Friday EOD
|
|
1393
|
+
|
|
1394
|
+
### Week 2: Services + Hooks (Nov 5-9)
|
|
1395
|
+
| Role | Mon | Tue | Wed | Thu | Fri | Status |
|
|
1396
|
+
|------|-----|-----|-----|-----|-----|--------|
|
|
1397
|
+
| Frontend Lead | 10% | 10% | 10% | 10% | 20% | Weekly sync |
|
|
1398
|
+
| Backend Spec. | 100% | 100% | 100% | 100% | 50% | Services |
|
|
1399
|
+
| Frontend Spec. | 50% | 50% | 100% | 100% | 100% | Hooks |
|
|
1400
|
+
| Quality Spec. | 50% | 50% | 50% | 50% | 100% | Test setup |
|
|
1401
|
+
| Documenter | 0% | 0% | 0% | 0% | 0% | Wait |
|
|
1402
|
+
|
|
1403
|
+
Phase complete: Infer 21-40 (Services + Hooks)
|
|
1404
|
+
Gate 3 & 4 approval: Friday EOD
|
|
1405
|
+
|
|
1406
|
+
### Week 3: Integration + Migration Start (Nov 12-16)
|
|
1407
|
+
| Role | Mon | Tue | Wed | Thu | Fri | Status |
|
|
1408
|
+
|------|-----|-----|-----|-----|-----|--------|
|
|
1409
|
+
| Frontend Lead | 10% | 10% | 10% | 10% | 20% | Weekly sync |
|
|
1410
|
+
| Backend Spec. | 20% | 20% | 20% | 20% | 20% | Support |
|
|
1411
|
+
| Frontend Spec. | 100% | 100% | 100% | 100% | 100% | Astro + migration |
|
|
1412
|
+
| Quality Spec. | 50% | 50% | 50% | 50% | 100% | Testing |
|
|
1413
|
+
| Documenter | 50% | 50% | 50% | 50% | 50% | API docs |
|
|
1414
|
+
|
|
1415
|
+
Phase progress: Infer 41-60 (Astro + 10 components)
|
|
1416
|
+
Target: 50% of component migration done by Friday
|
|
1417
|
+
|
|
1418
|
+
### Week 4: Component Migration (Nov 19-23)
|
|
1419
|
+
| Role | Mon | Tue | Wed | Thu | Fri | Status |
|
|
1420
|
+
|------|-----|-----|-----|-----|-----|--------|
|
|
1421
|
+
| Frontend Lead | 10% | 10% | 10% | 10% | 20% | Weekly sync |
|
|
1422
|
+
| Backend Spec. | 10% | 10% | 10% | 10% | 50% | Error handling |
|
|
1423
|
+
| Frontend Spec. | 100% | 100% | 100% | 100% | 100% | Components |
|
|
1424
|
+
| Quality Spec. | 100% | 100% | 100% | 100% | 100% | Testing |
|
|
1425
|
+
| Documenter | 50% | 50% | 50% | 50% | 50% | Migration guides |
|
|
1426
|
+
|
|
1427
|
+
Phase progress: Infer 51-70 (Component migration)
|
|
1428
|
+
Target: 100% of components migrated by Friday
|
|
1429
|
+
Gate 6 approval: Friday EOD
|
|
1430
|
+
|
|
1431
|
+
### Week 5: Testing + Optimization (Nov 26-30)
|
|
1432
|
+
| Role | Mon | Tue | Wed | Thu | Fri | Status |
|
|
1433
|
+
|------|-----|-----|-----|-----|-----|--------|
|
|
1434
|
+
| Frontend Lead | 10% | 10% | 10% | 10% | 20% | Weekly sync |
|
|
1435
|
+
| Backend Spec. | 0% | 0% | 0% | 0% | 50% | Handoff |
|
|
1436
|
+
| Frontend Spec. | 10% | 10% | 10% | 10% | 50% | Polish |
|
|
1437
|
+
| Quality Spec. | 50% | 50% | 50% | 50% | 100% | Final testing |
|
|
1438
|
+
| Documenter | 50% | 50% | 50% | 50% | 100% | Final docs |
|
|
1439
|
+
|
|
1440
|
+
Phase progress: Infer 71-95 (Testing + Documentation)
|
|
1441
|
+
Gate 7 & 9 approval: Friday EOD
|
|
1442
|
+
|
|
1443
|
+
### Week 6: Deployment (Dec 3-7)
|
|
1444
|
+
| Role | Mon | Tue | Wed | Thu | Fri | Status |
|
|
1445
|
+
|------|-----|-----|-----|-----|-----|--------|
|
|
1446
|
+
| Frontend Lead | 100% | 100% | 50% | 50% | 50% | Deploy |
|
|
1447
|
+
| Backend Spec. | 0% | 0% | 0% | 0% | 0% | Done |
|
|
1448
|
+
| Frontend Spec. | 0% | 0% | 0% | 0% | 0% | Done |
|
|
1449
|
+
| Quality Spec. | 50% | 50% | 100% | 100% | 50% | Validation |
|
|
1450
|
+
| Documenter | 0% | 0% | 0% | 0% | 50% | Final review |
|
|
1451
|
+
|
|
1452
|
+
Phase progress: Infer 96-100 (Performance + Deployment)
|
|
1453
|
+
Gate 10 approval: Friday EOD
|
|
1454
|
+
Production deployment: Friday afternoon
|
|
1455
|
+
|
|
1456
|
+
## Daily Standups
|
|
1457
|
+
- Time: 9am UTC (15 min async in Slack)
|
|
1458
|
+
- Channel: #frontend-effects
|
|
1459
|
+
- Template: Status, blockers, next steps
|
|
1460
|
+
- Owner: Frontend Lead reviews and responds
|
|
1461
|
+
|
|
1462
|
+
## Weekly Syncs
|
|
1463
|
+
- Time: 2pm UTC Friday (30 min)
|
|
1464
|
+
- Attendees: All 5 specialists
|
|
1465
|
+
- Agenda: Phase progress, blocker resolution, next week planning
|
|
1466
|
+
- Owner: Frontend Lead facilitates
|
|
1467
|
+
|
|
1468
|
+
## Critical Escalation Contacts
|
|
1469
|
+
- Frontend Lead: Blocker resolution authority
|
|
1470
|
+
- Backend Specialist: Services & errors escalation
|
|
1471
|
+
- Frontend Specialist: Component & hooks escalation
|
|
1472
|
+
- Quality Specialist: Testing & quality gate escalation
|
|
1473
|
+
- Emergency contact: Frontend Lead (24 hours)
|
|
1474
|
+
|
|
1475
|
+
## Milestones & Gates
|
|
1476
|
+
- Gate 1 (Infer 10): Fri Oct 31 - Architecture approved
|
|
1477
|
+
- Gate 2 (Infer 20): Fri Nov 2 - DataProvider complete
|
|
1478
|
+
- Gate 3 (Infer 30): Fri Nov 9 - Services 92% coverage
|
|
1479
|
+
- Gate 4 (Infer 40): Fri Nov 9 - Hooks tested
|
|
1480
|
+
- Gate 5 (Infer 50): Fri Nov 16 - SSR working
|
|
1481
|
+
- Gate 6 (Infer 62): Fri Nov 23 - Components migrated, auth tests pass
|
|
1482
|
+
- Gate 7 (Infer 80): Fri Nov 23 - 92% coverage, zero TypeScript errors
|
|
1483
|
+
- Gate 8 (Infer 85): Fri Nov 23 - Error handling complete
|
|
1484
|
+
- Gate 9 (Infer 95): Fri Nov 30 - Documentation complete
|
|
1485
|
+
- Gate 10 (Infer 100): Fri Dec 7 - Production deployed
|
|
1486
|
+
```
|
|
1487
|
+
|
|
1488
|
+
**Acceptance Criteria:**
|
|
1489
|
+
- [ ] All 5 specialists assigned
|
|
1490
|
+
- [ ] Phases assigned to each specialist
|
|
1491
|
+
- [ ] FTE allocation per week clear
|
|
1492
|
+
- [ ] Weekly schedule visible
|
|
1493
|
+
- [ ] Daily standup schedule set
|
|
1494
|
+
- [ ] Weekly sync schedule set
|
|
1495
|
+
- [ ] Milestone dates defined
|
|
1496
|
+
- [ ] Escalation contacts listed
|
|
1497
|
+
- [ ] Team reviewed and agreed
|
|
1498
|
+
|
|
1499
|
+
**File Path:** `/one/events/specialist-assignments-and-schedule.md`
|
|
1500
|
+
|
|
1501
|
+
---
|
|
1502
|
+
|
|
1503
|
+
## Gate 1 Approval Checklist
|
|
1504
|
+
|
|
1505
|
+
**All tasks B-1 through B-10 completed = Gate 1 APPROVED**
|
|
1506
|
+
|
|
1507
|
+
Before moving to Phase 2 (Infer 11-20), verify:
|
|
1508
|
+
|
|
1509
|
+
- [ ] **Ontology Mapping:** All 6 dimensions mapped to services
|
|
1510
|
+
- [ ] **Convex Hooks:** 47 hooks identified and mapped to DataProvider
|
|
1511
|
+
- [ ] **Dependency Graph:** Acyclic, critical path identified
|
|
1512
|
+
- [ ] **Error Strategy:** All error types and recovery flows defined
|
|
1513
|
+
- [ ] **Hook Plan:** 18 hooks designed (core + extended)
|
|
1514
|
+
- [ ] **Test Strategy:** 90%/80%/100% coverage targets set
|
|
1515
|
+
- [ ] **Rollback Plan:** All scenarios documented, rollback SLA defined
|
|
1516
|
+
- [ ] **Auth Tests:** 12 critical auth tests identified as go/no-go
|
|
1517
|
+
- [ ] **Parallel Plan:** 5 streams defined, Gantt chart clear
|
|
1518
|
+
- [ ] **Assignments:** All specialists assigned, schedule visible
|
|
1519
|
+
|
|
1520
|
+
**Gate 1 Status:** ✅ APPROVED - Ready for Phase 2 (DataProvider)
|
|
1521
|
+
|
|
1522
|
+
---
|
|
1523
|
+
|
|
1524
|
+
## End of Week 1 Checklist
|
|
1525
|
+
|
|
1526
|
+
**What should be delivered by end of Week 1 (Nov 2):**
|
|
1527
|
+
|
|
1528
|
+
**Backend Specialist Deliverables:**
|
|
1529
|
+
- [x] DataProvider.ts with all 6 dimensions
|
|
1530
|
+
- [x] 12 error types defined and documented
|
|
1531
|
+
- [x] Context.Tag for dependency injection
|
|
1532
|
+
- [x] Examples.ts file with working code
|
|
1533
|
+
- [x] Ready for services layer (Phase 3)
|
|
1534
|
+
|
|
1535
|
+
**Frontend Lead Deliverables:**
|
|
1536
|
+
- [x] Ontology validation document
|
|
1537
|
+
- [x] Convex hooks inventory (47 hooks)
|
|
1538
|
+
- [x] Service dependency graph
|
|
1539
|
+
- [x] Error handling strategy
|
|
1540
|
+
- [x] React hook library plan
|
|
1541
|
+
- [x] Test strategy document
|
|
1542
|
+
- [x] Rollback plan
|
|
1543
|
+
- [x] Critical auth components list
|
|
1544
|
+
- [x] Parallel execution plan
|
|
1545
|
+
- [x] Specialist assignments & schedule
|
|
1546
|
+
|
|
1547
|
+
**Quality Specialist Deliverables:**
|
|
1548
|
+
- [x] Test strategy reviewed and approved
|
|
1549
|
+
- [x] Mock provider design documented
|
|
1550
|
+
- [x] Test utilities design specified
|
|
1551
|
+
- [x] Canary test list reviewed
|
|
1552
|
+
|
|
1553
|
+
**Frontend Specialist Deliverables:**
|
|
1554
|
+
- [x] React hooks design reviewed
|
|
1555
|
+
- [x] Component migration approach reviewed
|
|
1556
|
+
- [x] Ready for hooks implementation (Phase 4 start)
|
|
1557
|
+
|
|
1558
|
+
---
|
|
1559
|
+
|
|
1560
|
+
## How to Use This Document
|
|
1561
|
+
|
|
1562
|
+
### For Week 1 Kickoff:
|
|
1563
|
+
1. Share this document with all 5 specialists
|
|
1564
|
+
2. Have Frontend Lead walk through Tasks B-1 through B-10
|
|
1565
|
+
3. Have Backend Specialist present DataProvider.ts tasks A-1 through A-10
|
|
1566
|
+
4. Confirm FTE allocation and schedule with all specialists
|
|
1567
|
+
5. Set up daily standup channel and weekly sync meeting
|
|
1568
|
+
|
|
1569
|
+
### For Daily Execution:
|
|
1570
|
+
1. Use the specialized stream sections (Stream A, Stream B) as task lists
|
|
1571
|
+
2. Update daily standup with progress on current task
|
|
1572
|
+
3. Flag blockers immediately (don't wait for weekly sync)
|
|
1573
|
+
4. When task complete, check off acceptance criteria
|
|
1574
|
+
5. Move to next task in stream
|
|
1575
|
+
|
|
1576
|
+
### For Gate Reviews:
|
|
1577
|
+
1. Use Gate X Approval Checklist to determine if gate criteria met
|
|
1578
|
+
2. Frontend Lead conducts gate review with relevant specialists
|
|
1579
|
+
3. Document gate approval in `/one/events/gate-reviews.md`
|
|
1580
|
+
4. If gate fails, immediately escalate to problem-solving
|
|
1581
|
+
|
|
1582
|
+
### For Risk Management:
|
|
1583
|
+
1. Daily standups surface blockers early
|
|
1584
|
+
2. Weekly sync resolves blockers that became blocking
|
|
1585
|
+
3. If blocker can't be resolved in 1 hour, escalate to Frontend Lead
|
|
1586
|
+
4. Use Rollback Plan if phase failure occurs
|
|
1587
|
+
|
|
1588
|
+
---
|
|
1589
|
+
|
|
1590
|
+
**Status:** Week 1 Ready
|
|
1591
|
+
**Approval Date:** October 28, 2025
|
|
1592
|
+
**Execution Period:** October 28 - November 2, 2025
|
|
1593
|
+
**Next Gate:** Gate 2 (DataProvider Complete) - November 2, 2025
|
|
1594
|
+
|