@sparkleideas/agentic-flow 2.0.2-alpha-patch.1
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/README.md +2026 -0
- package/agentic-flow/.claude/agents/MIGRATION_SUMMARY.md +222 -0
- package/agentic-flow/.claude/agents/README.md +89 -0
- package/agentic-flow/.claude/agents/analysis/analyze-code-quality.md +180 -0
- package/agentic-flow/.claude/agents/analysis/code-analyzer.md +209 -0
- package/agentic-flow/.claude/agents/architecture/arch-system-design.md +156 -0
- package/agentic-flow/.claude/agents/base-template-generator.md +268 -0
- package/agentic-flow/.claude/agents/consensus/README.md +253 -0
- package/agentic-flow/.claude/agents/consensus/byzantine-coordinator.md +63 -0
- package/agentic-flow/.claude/agents/consensus/crdt-synchronizer.md +997 -0
- package/agentic-flow/.claude/agents/consensus/gossip-coordinator.md +63 -0
- package/agentic-flow/.claude/agents/consensus/performance-benchmarker.md +851 -0
- package/agentic-flow/.claude/agents/consensus/quorum-manager.md +823 -0
- package/agentic-flow/.claude/agents/consensus/raft-manager.md +63 -0
- package/agentic-flow/.claude/agents/consensus/security-manager.md +622 -0
- package/agentic-flow/.claude/agents/core/coder.md +416 -0
- package/agentic-flow/.claude/agents/core/planner.md +337 -0
- package/agentic-flow/.claude/agents/core/researcher.md +331 -0
- package/agentic-flow/.claude/agents/core/reviewer.md +483 -0
- package/agentic-flow/.claude/agents/core/tester.md +476 -0
- package/agentic-flow/.claude/agents/custom/test-long-runner.md +44 -0
- package/agentic-flow/.claude/agents/data/data-ml-model.md +444 -0
- package/agentic-flow/.claude/agents/development/dev-backend-api.md +345 -0
- package/agentic-flow/.claude/agents/devops/ops-cicd-github.md +164 -0
- package/agentic-flow/.claude/agents/documentation/docs-api-openapi.md +354 -0
- package/agentic-flow/.claude/agents/flow-nexus/app-store.md +88 -0
- package/agentic-flow/.claude/agents/flow-nexus/authentication.md +69 -0
- package/agentic-flow/.claude/agents/flow-nexus/challenges.md +81 -0
- package/agentic-flow/.claude/agents/flow-nexus/neural-network.md +88 -0
- package/agentic-flow/.claude/agents/flow-nexus/payments.md +83 -0
- package/agentic-flow/.claude/agents/flow-nexus/sandbox.md +76 -0
- package/agentic-flow/.claude/agents/flow-nexus/swarm.md +76 -0
- package/agentic-flow/.claude/agents/flow-nexus/user-tools.md +96 -0
- package/agentic-flow/.claude/agents/flow-nexus/workflow.md +84 -0
- package/agentic-flow/.claude/agents/github/code-review-swarm.md +377 -0
- package/agentic-flow/.claude/agents/github/github-modes.md +173 -0
- package/agentic-flow/.claude/agents/github/issue-tracker.md +576 -0
- package/agentic-flow/.claude/agents/github/multi-repo-swarm.md +553 -0
- package/agentic-flow/.claude/agents/github/pr-manager.md +438 -0
- package/agentic-flow/.claude/agents/github/project-board-sync.md +509 -0
- package/agentic-flow/.claude/agents/github/release-manager.md +605 -0
- package/agentic-flow/.claude/agents/github/release-swarm.md +583 -0
- package/agentic-flow/.claude/agents/github/repo-architect.md +398 -0
- package/agentic-flow/.claude/agents/github/swarm-issue.md +573 -0
- package/agentic-flow/.claude/agents/github/swarm-pr.md +428 -0
- package/agentic-flow/.claude/agents/github/sync-coordinator.md +452 -0
- package/agentic-flow/.claude/agents/github/workflow-automation.md +903 -0
- package/agentic-flow/.claude/agents/goal/agent.md +816 -0
- package/agentic-flow/.claude/agents/goal/goal-planner.md +73 -0
- package/agentic-flow/.claude/agents/optimization/README.md +250 -0
- package/agentic-flow/.claude/agents/optimization/benchmark-suite.md +665 -0
- package/agentic-flow/.claude/agents/optimization/load-balancer.md +431 -0
- package/agentic-flow/.claude/agents/optimization/performance-monitor.md +672 -0
- package/agentic-flow/.claude/agents/optimization/resource-allocator.md +674 -0
- package/agentic-flow/.claude/agents/optimization/topology-optimizer.md +808 -0
- package/agentic-flow/.claude/agents/payments/agentic-payments.md +126 -0
- package/agentic-flow/.claude/agents/sona/sona-learning-optimizer.md +496 -0
- package/agentic-flow/.claude/agents/sparc/architecture.md +699 -0
- package/agentic-flow/.claude/agents/sparc/pseudocode.md +520 -0
- package/agentic-flow/.claude/agents/sparc/refinement.md +802 -0
- package/agentic-flow/.claude/agents/sparc/specification.md +478 -0
- package/agentic-flow/.claude/agents/specialized/spec-mobile-react-native.md +226 -0
- package/agentic-flow/.claude/agents/sublinear/consensus-coordinator.md +338 -0
- package/agentic-flow/.claude/agents/sublinear/matrix-optimizer.md +185 -0
- package/agentic-flow/.claude/agents/sublinear/pagerank-analyzer.md +299 -0
- package/agentic-flow/.claude/agents/sublinear/performance-optimizer.md +368 -0
- package/agentic-flow/.claude/agents/sublinear/trading-predictor.md +246 -0
- package/agentic-flow/.claude/agents/swarm/README.md +190 -0
- package/agentic-flow/.claude/agents/swarm/adaptive-coordinator.md +1127 -0
- package/agentic-flow/.claude/agents/swarm/hierarchical-coordinator.md +710 -0
- package/agentic-flow/.claude/agents/swarm/mesh-coordinator.md +963 -0
- package/agentic-flow/.claude/agents/templates/automation-smart-agent.md +205 -0
- package/agentic-flow/.claude/agents/templates/coordinator-swarm-init.md +90 -0
- package/agentic-flow/.claude/agents/templates/github-pr-manager.md +177 -0
- package/agentic-flow/.claude/agents/templates/implementer-sparc-coder.md +259 -0
- package/agentic-flow/.claude/agents/templates/memory-coordinator.md +187 -0
- package/agentic-flow/.claude/agents/templates/migration-plan.md +746 -0
- package/agentic-flow/.claude/agents/templates/orchestrator-task.md +139 -0
- package/agentic-flow/.claude/agents/templates/performance-analyzer.md +199 -0
- package/agentic-flow/.claude/agents/templates/sparc-coordinator.md +514 -0
- package/agentic-flow/.claude/agents/testing/production-validator.md +395 -0
- package/agentic-flow/.claude/agents/testing/tdd-london-swarm.md +244 -0
- package/agentic-flow/.claude/answer.md +1 -0
- package/agentic-flow/.claude/commands/agents/README.md +10 -0
- package/agentic-flow/.claude/commands/agents/agent-capabilities.md +21 -0
- package/agentic-flow/.claude/commands/agents/agent-coordination.md +28 -0
- package/agentic-flow/.claude/commands/agents/agent-spawning.md +28 -0
- package/agentic-flow/.claude/commands/agents/agent-types.md +26 -0
- package/agentic-flow/.claude/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +54 -0
- package/agentic-flow/.claude/commands/analysis/README.md +9 -0
- package/agentic-flow/.claude/commands/analysis/bottleneck-detect.md +162 -0
- package/agentic-flow/.claude/commands/analysis/performance-bottlenecks.md +59 -0
- package/agentic-flow/.claude/commands/analysis/performance-report.md +25 -0
- package/agentic-flow/.claude/commands/analysis/token-efficiency.md +45 -0
- package/agentic-flow/.claude/commands/analysis/token-usage.md +25 -0
- package/agentic-flow/.claude/commands/automation/README.md +9 -0
- package/agentic-flow/.claude/commands/automation/auto-agent.md +122 -0
- package/agentic-flow/.claude/commands/automation/self-healing.md +106 -0
- package/agentic-flow/.claude/commands/automation/session-memory.md +90 -0
- package/agentic-flow/.claude/commands/automation/smart-agents.md +73 -0
- package/agentic-flow/.claude/commands/automation/smart-spawn.md +25 -0
- package/agentic-flow/.claude/commands/automation/workflow-select.md +25 -0
- package/agentic-flow/.claude/commands/claude-flow-help.md +103 -0
- package/agentic-flow/.claude/commands/claude-flow-memory.md +107 -0
- package/agentic-flow/.claude/commands/claude-flow-swarm.md +205 -0
- package/agentic-flow/.claude/commands/flow-nexus/app-store.md +124 -0
- package/agentic-flow/.claude/commands/flow-nexus/challenges.md +120 -0
- package/agentic-flow/.claude/commands/flow-nexus/login-registration.md +65 -0
- package/agentic-flow/.claude/commands/flow-nexus/neural-network.md +134 -0
- package/agentic-flow/.claude/commands/flow-nexus/payments.md +116 -0
- package/agentic-flow/.claude/commands/flow-nexus/sandbox.md +83 -0
- package/agentic-flow/.claude/commands/flow-nexus/swarm.md +87 -0
- package/agentic-flow/.claude/commands/flow-nexus/user-tools.md +152 -0
- package/agentic-flow/.claude/commands/flow-nexus/workflow.md +115 -0
- package/agentic-flow/.claude/commands/github/README.md +11 -0
- package/agentic-flow/.claude/commands/github/code-review-swarm.md +514 -0
- package/agentic-flow/.claude/commands/github/code-review.md +25 -0
- package/agentic-flow/.claude/commands/github/github-modes.md +147 -0
- package/agentic-flow/.claude/commands/github/github-swarm.md +121 -0
- package/agentic-flow/.claude/commands/github/issue-tracker.md +292 -0
- package/agentic-flow/.claude/commands/github/issue-triage.md +25 -0
- package/agentic-flow/.claude/commands/github/multi-repo-swarm.md +519 -0
- package/agentic-flow/.claude/commands/github/pr-enhance.md +26 -0
- package/agentic-flow/.claude/commands/github/pr-manager.md +170 -0
- package/agentic-flow/.claude/commands/github/project-board-sync.md +471 -0
- package/agentic-flow/.claude/commands/github/release-manager.md +338 -0
- package/agentic-flow/.claude/commands/github/release-swarm.md +544 -0
- package/agentic-flow/.claude/commands/github/repo-analyze.md +25 -0
- package/agentic-flow/.claude/commands/github/repo-architect.md +367 -0
- package/agentic-flow/.claude/commands/github/swarm-issue.md +482 -0
- package/agentic-flow/.claude/commands/github/swarm-pr.md +285 -0
- package/agentic-flow/.claude/commands/github/sync-coordinator.md +301 -0
- package/agentic-flow/.claude/commands/github/workflow-automation.md +442 -0
- package/agentic-flow/.claude/commands/hive-mind/README.md +17 -0
- package/agentic-flow/.claude/commands/hive-mind/hive-mind-consensus.md +8 -0
- package/agentic-flow/.claude/commands/hive-mind/hive-mind-init.md +18 -0
- package/agentic-flow/.claude/commands/hive-mind/hive-mind-memory.md +8 -0
- package/agentic-flow/.claude/commands/hive-mind/hive-mind-metrics.md +8 -0
- package/agentic-flow/.claude/commands/hive-mind/hive-mind-resume.md +8 -0
- package/agentic-flow/.claude/commands/hive-mind/hive-mind-sessions.md +8 -0
- package/agentic-flow/.claude/commands/hive-mind/hive-mind-spawn.md +21 -0
- package/agentic-flow/.claude/commands/hive-mind/hive-mind-status.md +8 -0
- package/agentic-flow/.claude/commands/hive-mind/hive-mind-stop.md +8 -0
- package/agentic-flow/.claude/commands/hive-mind/hive-mind-wizard.md +8 -0
- package/agentic-flow/.claude/commands/hive-mind/hive-mind.md +27 -0
- package/agentic-flow/.claude/commands/hooks/README.md +11 -0
- package/agentic-flow/.claude/commands/hooks/overview.md +58 -0
- package/agentic-flow/.claude/commands/hooks/post-edit.md +117 -0
- package/agentic-flow/.claude/commands/hooks/post-task.md +112 -0
- package/agentic-flow/.claude/commands/hooks/pre-edit.md +113 -0
- package/agentic-flow/.claude/commands/hooks/pre-task.md +111 -0
- package/agentic-flow/.claude/commands/hooks/session-end.md +118 -0
- package/agentic-flow/.claude/commands/hooks/setup.md +103 -0
- package/agentic-flow/.claude/commands/monitoring/README.md +9 -0
- package/agentic-flow/.claude/commands/monitoring/agent-metrics.md +25 -0
- package/agentic-flow/.claude/commands/monitoring/agents.md +44 -0
- package/agentic-flow/.claude/commands/monitoring/real-time-view.md +25 -0
- package/agentic-flow/.claude/commands/monitoring/status.md +46 -0
- package/agentic-flow/.claude/commands/monitoring/swarm-monitor.md +25 -0
- package/agentic-flow/.claude/commands/optimization/README.md +9 -0
- package/agentic-flow/.claude/commands/optimization/auto-topology.md +62 -0
- package/agentic-flow/.claude/commands/optimization/cache-manage.md +25 -0
- package/agentic-flow/.claude/commands/optimization/parallel-execute.md +25 -0
- package/agentic-flow/.claude/commands/optimization/parallel-execution.md +50 -0
- package/agentic-flow/.claude/commands/optimization/topology-optimize.md +25 -0
- package/agentic-flow/.claude/commands/pair/README.md +261 -0
- package/agentic-flow/.claude/commands/pair/commands.md +546 -0
- package/agentic-flow/.claude/commands/pair/config.md +510 -0
- package/agentic-flow/.claude/commands/pair/examples.md +512 -0
- package/agentic-flow/.claude/commands/pair/modes.md +348 -0
- package/agentic-flow/.claude/commands/pair/session.md +407 -0
- package/agentic-flow/.claude/commands/pair/start.md +209 -0
- package/agentic-flow/.claude/commands/sparc/analyzer.md +52 -0
- package/agentic-flow/.claude/commands/sparc/architect.md +53 -0
- package/agentic-flow/.claude/commands/sparc/ask.md +97 -0
- package/agentic-flow/.claude/commands/sparc/batch-executor.md +54 -0
- package/agentic-flow/.claude/commands/sparc/code.md +89 -0
- package/agentic-flow/.claude/commands/sparc/coder.md +54 -0
- package/agentic-flow/.claude/commands/sparc/debug.md +83 -0
- package/agentic-flow/.claude/commands/sparc/debugger.md +54 -0
- package/agentic-flow/.claude/commands/sparc/designer.md +53 -0
- package/agentic-flow/.claude/commands/sparc/devops.md +109 -0
- package/agentic-flow/.claude/commands/sparc/docs-writer.md +80 -0
- package/agentic-flow/.claude/commands/sparc/documenter.md +54 -0
- package/agentic-flow/.claude/commands/sparc/innovator.md +54 -0
- package/agentic-flow/.claude/commands/sparc/integration.md +83 -0
- package/agentic-flow/.claude/commands/sparc/mcp.md +117 -0
- package/agentic-flow/.claude/commands/sparc/memory-manager.md +54 -0
- package/agentic-flow/.claude/commands/sparc/optimizer.md +54 -0
- package/agentic-flow/.claude/commands/sparc/orchestrator.md +132 -0
- package/agentic-flow/.claude/commands/sparc/post-deployment-monitoring-mode.md +83 -0
- package/agentic-flow/.claude/commands/sparc/refinement-optimization-mode.md +83 -0
- package/agentic-flow/.claude/commands/sparc/researcher.md +54 -0
- package/agentic-flow/.claude/commands/sparc/reviewer.md +54 -0
- package/agentic-flow/.claude/commands/sparc/security-review.md +80 -0
- package/agentic-flow/.claude/commands/sparc/sparc-modes.md +174 -0
- package/agentic-flow/.claude/commands/sparc/sparc.md +111 -0
- package/agentic-flow/.claude/commands/sparc/spec-pseudocode.md +80 -0
- package/agentic-flow/.claude/commands/sparc/supabase-admin.md +348 -0
- package/agentic-flow/.claude/commands/sparc/swarm-coordinator.md +54 -0
- package/agentic-flow/.claude/commands/sparc/tdd.md +54 -0
- package/agentic-flow/.claude/commands/sparc/tester.md +54 -0
- package/agentic-flow/.claude/commands/sparc/tutorial.md +79 -0
- package/agentic-flow/.claude/commands/sparc/workflow-manager.md +54 -0
- package/agentic-flow/.claude/commands/sparc.md +166 -0
- package/agentic-flow/.claude/commands/stream-chain/pipeline.md +121 -0
- package/agentic-flow/.claude/commands/stream-chain/run.md +70 -0
- package/agentic-flow/.claude/commands/swarm/README.md +15 -0
- package/agentic-flow/.claude/commands/swarm/analysis.md +95 -0
- package/agentic-flow/.claude/commands/swarm/development.md +96 -0
- package/agentic-flow/.claude/commands/swarm/examples.md +168 -0
- package/agentic-flow/.claude/commands/swarm/maintenance.md +102 -0
- package/agentic-flow/.claude/commands/swarm/optimization.md +117 -0
- package/agentic-flow/.claude/commands/swarm/research.md +136 -0
- package/agentic-flow/.claude/commands/swarm/swarm-analysis.md +8 -0
- package/agentic-flow/.claude/commands/swarm/swarm-background.md +8 -0
- package/agentic-flow/.claude/commands/swarm/swarm-init.md +19 -0
- package/agentic-flow/.claude/commands/swarm/swarm-modes.md +8 -0
- package/agentic-flow/.claude/commands/swarm/swarm-monitor.md +8 -0
- package/agentic-flow/.claude/commands/swarm/swarm-spawn.md +19 -0
- package/agentic-flow/.claude/commands/swarm/swarm-status.md +8 -0
- package/agentic-flow/.claude/commands/swarm/swarm-strategies.md +8 -0
- package/agentic-flow/.claude/commands/swarm/swarm.md +27 -0
- package/agentic-flow/.claude/commands/swarm/testing.md +131 -0
- package/agentic-flow/.claude/commands/training/README.md +9 -0
- package/agentic-flow/.claude/commands/training/model-update.md +25 -0
- package/agentic-flow/.claude/commands/training/neural-patterns.md +74 -0
- package/agentic-flow/.claude/commands/training/neural-train.md +25 -0
- package/agentic-flow/.claude/commands/training/pattern-learn.md +25 -0
- package/agentic-flow/.claude/commands/training/specialization.md +63 -0
- package/agentic-flow/.claude/commands/truth/start.md +143 -0
- package/agentic-flow/.claude/commands/verify/check.md +50 -0
- package/agentic-flow/.claude/commands/verify/start.md +128 -0
- package/agentic-flow/.claude/commands/workflows/README.md +9 -0
- package/agentic-flow/.claude/commands/workflows/development.md +78 -0
- package/agentic-flow/.claude/commands/workflows/research.md +63 -0
- package/agentic-flow/.claude/commands/workflows/workflow-create.md +25 -0
- package/agentic-flow/.claude/commands/workflows/workflow-execute.md +25 -0
- package/agentic-flow/.claude/commands/workflows/workflow-export.md +25 -0
- package/agentic-flow/.claude/helpers/checkpoint-manager.sh +251 -0
- package/agentic-flow/.claude/helpers/github-safe.js +106 -0
- package/agentic-flow/.claude/helpers/github-setup.sh +28 -0
- package/agentic-flow/.claude/helpers/quick-start.sh +19 -0
- package/agentic-flow/.claude/helpers/setup-mcp.sh +18 -0
- package/agentic-flow/.claude/helpers/standard-checkpoint-hooks.sh +179 -0
- package/agentic-flow/.claude/mcp.json +13 -0
- package/agentic-flow/.claude/openrouter-models-research.md +411 -0
- package/agentic-flow/.claude/openrouter-quick-reference.md +113 -0
- package/agentic-flow/.claude/settings-backup.json +130 -0
- package/agentic-flow/.claude/settings-optimized.json +116 -0
- package/agentic-flow/.claude/settings-simple.json +78 -0
- package/agentic-flow/.claude/settings.json +238 -0
- package/agentic-flow/.claude/settings.local.json +14 -0
- package/agentic-flow/.claude/skills/agentic-flow-quickstart/skill.md +69 -0
- package/agentic-flow/.claude/skills/hooks-automation/skill.md +155 -0
- package/agentic-flow/.claude/skills/memory-patterns/skill.md +110 -0
- package/agentic-flow/.claude/skills/sparc-methodology/skill.md +137 -0
- package/agentic-flow/.claude/skills/swarm-coordination/skill.md +94 -0
- package/agentic-flow/.claude/skills/worker-benchmarks/skill.md +135 -0
- package/agentic-flow/.claude/skills/worker-integration/skill.md +154 -0
- package/agentic-flow/.claude/statusline.mjs +109 -0
- package/agentic-flow/.claude/statusline.sh +71 -0
- package/agentic-flow/CHANGELOG.md +68 -0
- package/agentic-flow/README.md +2047 -0
- package/agentic-flow/dist/reasoningbank/config/reasoningbank.yaml +145 -0
- package/agentic-flow/dist/reasoningbank/prompts/distill-failure.json +111 -0
- package/agentic-flow/dist/reasoningbank/prompts/distill-success.json +74 -0
- package/agentic-flow/dist/reasoningbank/prompts/judge.json +101 -0
- package/agentic-flow/dist/reasoningbank/prompts/matts-aggregate.json +119 -0
- package/agentic-flow/docs/CLAUDE.md +352 -0
- package/agentic-flow/docs/DOCKER-VERIFICATION.md +207 -0
- package/agentic-flow/docs/IMPROVEMENT_ROADMAP.md +184 -0
- package/agentic-flow/docs/ISSUE-55-VALIDATION.md +171 -0
- package/agentic-flow/docs/LICENSE +21 -0
- package/agentic-flow/docs/NPX_AGENTDB_SETUP.md +175 -0
- package/agentic-flow/docs/OPTIMIZATIONS.md +460 -0
- package/agentic-flow/docs/PUBLISH_GUIDE.md +438 -0
- package/agentic-flow/docs/README.md +217 -0
- package/agentic-flow/docs/RELEASE-v1.10.0-COMPLETE.md +382 -0
- package/agentic-flow/docs/architecture/EXECUTIVE_SUMMARY.md +310 -0
- package/agentic-flow/docs/architecture/FEDERATION-DATA-LIFECYCLE.md +520 -0
- package/agentic-flow/docs/architecture/IMPROVEMENT_PLAN.md +11 -0
- package/agentic-flow/docs/architecture/INTEGRATION-STATUS.md +290 -0
- package/agentic-flow/docs/architecture/MULTI_MODEL_ROUTER_PLAN.md +620 -0
- package/agentic-flow/docs/architecture/PACKAGE_STRUCTURE.md +199 -0
- package/agentic-flow/docs/architecture/QUIC-IMPLEMENTATION-SUMMARY.md +490 -0
- package/agentic-flow/docs/architecture/QUIC-SWARM-INTEGRATION.md +593 -0
- package/agentic-flow/docs/architecture/QUICK_WINS.md +333 -0
- package/agentic-flow/docs/architecture/README.md +15 -0
- package/agentic-flow/docs/architecture/RESEARCH_SUMMARY.md +652 -0
- package/agentic-flow/docs/archive/.agentdb-instructions.md +66 -0
- package/agentic-flow/docs/archive/AGENT-BOOSTER-STATUS.md +292 -0
- package/agentic-flow/docs/archive/CHANGELOG-v1.3.0.md +120 -0
- package/agentic-flow/docs/archive/COMPLETION_REPORT_v1.7.1.md +335 -0
- package/agentic-flow/docs/archive/IMPLEMENTATION_SUMMARY_v1.7.1.md +241 -0
- package/agentic-flow/docs/archive/SUPABASE-INTEGRATION-COMPLETE.md +357 -0
- package/agentic-flow/docs/archive/TESTING_QUICK_START.md +223 -0
- package/agentic-flow/docs/archive/TOOL-EMULATION-INTEGRATION-ISSUE.md +669 -0
- package/agentic-flow/docs/archive/VALIDATION_v1.7.1.md +234 -0
- package/agentic-flow/docs/archived/COMPLETE_VALIDATION_SUMMARY.md +405 -0
- package/agentic-flow/docs/archived/DOCKER_MCP_VALIDATION.md +358 -0
- package/agentic-flow/docs/archived/DOCKER_OPENROUTER_VALIDATION.md +443 -0
- package/agentic-flow/docs/archived/FASTMCP_COMPLETE.md +428 -0
- package/agentic-flow/docs/archived/FASTMCP_INTEGRATION_STATUS.md +288 -0
- package/agentic-flow/docs/archived/FINAL_SDK_VALIDATION.md +328 -0
- package/agentic-flow/docs/archived/FINAL_SYSTEM_VALIDATION.md +458 -0
- package/agentic-flow/docs/archived/FINAL_VALIDATION_SUMMARY.md +409 -0
- package/agentic-flow/docs/archived/FIXES-APPLIED-STATUS.md +331 -0
- package/agentic-flow/docs/archived/FLOW-NEXUS-COMPLETE.md +269 -0
- package/agentic-flow/docs/archived/HOTFIX_1.1.7.md +133 -0
- package/agentic-flow/docs/archived/INTEGRATION_CONFIRMED.md +351 -0
- package/agentic-flow/docs/archived/MCP_CLI_TOOLS_VALIDATION.md +266 -0
- package/agentic-flow/docs/archived/MCP_INTEGRATION_SUCCESS.md +305 -0
- package/agentic-flow/docs/archived/MCP_PROXY_VALIDATION.md +185 -0
- package/agentic-flow/docs/archived/MODEL_VALIDATION_REPORT.md +386 -0
- package/agentic-flow/docs/archived/ONNX_ENV_VARS.md +564 -0
- package/agentic-flow/docs/archived/ONNX_FINAL_REPORT.md +312 -0
- package/agentic-flow/docs/archived/ONNX_IMPLEMENTATION_COMPLETE.md +215 -0
- package/agentic-flow/docs/archived/ONNX_IMPLEMENTATION_SUMMARY.md +197 -0
- package/agentic-flow/docs/archived/ONNX_INTEGRATION.md +422 -0
- package/agentic-flow/docs/archived/ONNX_OPTIMIZATION_SUMMARY.md +374 -0
- package/agentic-flow/docs/archived/ONNX_PHI4_RESEARCH.md +220 -0
- package/agentic-flow/docs/archived/ONNX_RUNTIME_INTEGRATION_PLAN.md +866 -0
- package/agentic-flow/docs/archived/ONNX_SUCCESS_REPORT.md +271 -0
- package/agentic-flow/docs/archived/ONNX_VS_CLAUDE_QUALITY.md +442 -0
- package/agentic-flow/docs/archived/OPENROUTER-FIX-VALIDATION.md +333 -0
- package/agentic-flow/docs/archived/OPENROUTER-SUCCESS-REPORT.md +520 -0
- package/agentic-flow/docs/archived/OPENROUTER_ISSUES_AND_FIXES.md +277 -0
- package/agentic-flow/docs/archived/OPENROUTER_PROXY_COMPLETE.md +494 -0
- package/agentic-flow/docs/archived/OPENROUTER_VALIDATION_COMPLETE.md +382 -0
- package/agentic-flow/docs/archived/OPTIMIZATION_SUMMARY.md +181 -0
- package/agentic-flow/docs/archived/PACKAGE-COMPLETE.md +138 -0
- package/agentic-flow/docs/archived/PHI4_HYPEROPTIMIZATION_PLAN.md +2488 -0
- package/agentic-flow/docs/archived/PROVIDER_INSTRUCTION_OPTIMIZATION.md +139 -0
- package/agentic-flow/docs/archived/PROXY_VALIDATION.md +239 -0
- package/agentic-flow/docs/archived/README.md +20 -0
- package/agentic-flow/docs/archived/README_SDK_VALIDATION.md +356 -0
- package/agentic-flow/docs/archived/README_V1.1.11.md +280 -0
- package/agentic-flow/docs/archived/RELEASE-NOTES-v1.1.13.md +392 -0
- package/agentic-flow/docs/archived/RELEASE-SUMMARY-v1.1.14-beta.1.md +336 -0
- package/agentic-flow/docs/archived/RESEARCH_COMPLETE.txt +335 -0
- package/agentic-flow/docs/archived/ROUTER_VALIDATION.md +311 -0
- package/agentic-flow/docs/archived/SDK-SETUP-COMPLETE.md +252 -0
- package/agentic-flow/docs/archived/SDK_INTEGRATION_COMPLETE.md +336 -0
- package/agentic-flow/docs/archived/TOOL_INSTRUCTION_ENHANCEMENT.md +200 -0
- package/agentic-flow/docs/archived/V1.1.10_VALIDATION.md +194 -0
- package/agentic-flow/docs/archived/V1.1.11_COMPLETE_VALIDATION.md +308 -0
- package/agentic-flow/docs/archived/V1.1.11_MCP_PROXY_FIX.md +374 -0
- package/agentic-flow/docs/archived/V1.1.14-BETA-READY.md +418 -0
- package/agentic-flow/docs/archived/VALIDATION-RESULTS.md +279 -0
- package/agentic-flow/docs/archived/VALIDATION_COMPLETE.md +178 -0
- package/agentic-flow/docs/archived/VALIDATION_SUMMARY.md +224 -0
- package/agentic-flow/docs/archived/claude-flow-integration.md +463 -0
- package/agentic-flow/docs/archived/docker-cli-validation.md +289 -0
- package/agentic-flow/docs/archived/docker-memory-coordination-status.md +261 -0
- package/agentic-flow/docs/archived/mcp-validation-summary.md +264 -0
- package/agentic-flow/docs/archived/quick-wins-validation.md +377 -0
- package/agentic-flow/docs/benchmarks/optimization-guide.md +531 -0
- package/agentic-flow/docs/benchmarks/quic-results.md +494 -0
- package/agentic-flow/docs/docker-tests/TEST-V1.7.8.Dockerfile +13 -0
- package/agentic-flow/docs/docker-tests/TEST-V1.7.9-NODE20.Dockerfile +13 -0
- package/agentic-flow/docs/docker-tests/TEST-V1.7.9.Dockerfile +14 -0
- package/agentic-flow/docs/embeddings/EMBEDDING_GEOMETRY.md +935 -0
- package/agentic-flow/docs/federation/AGENT-DEBUG-STREAMING.md +403 -0
- package/agentic-flow/docs/federation/DEBUG-STREAMING-COMPLETE.md +432 -0
- package/agentic-flow/docs/federation/DEBUG-STREAMING.md +537 -0
- package/agentic-flow/docs/federation/DEPLOYMENT-VALIDATION-SUCCESS.md +394 -0
- package/agentic-flow/docs/federation/DOCKER-FEDERATION-DEEP-REVIEW.md +478 -0
- package/agentic-flow/docs/guides/ADDING-MCP-SERVERS-CLI.md +515 -0
- package/agentic-flow/docs/guides/ADDING-MCP-SERVERS.md +642 -0
- package/agentic-flow/docs/guides/AGENT-BOOSTER.md +435 -0
- package/agentic-flow/docs/guides/ALTERNATIVE_LLM_MODELS.md +524 -0
- package/agentic-flow/docs/guides/CLAUDE-CODE-INTEGRATION.md +403 -0
- package/agentic-flow/docs/guides/DEPLOYMENT.md +906 -0
- package/agentic-flow/docs/guides/DOCKER_AGENT_USAGE.md +352 -0
- package/agentic-flow/docs/guides/IMPLEMENTATION_EXAMPLES.md +960 -0
- package/agentic-flow/docs/guides/MCP-TOOLS.md +1166 -0
- package/agentic-flow/docs/guides/MODEL-ID-MAPPING.md +193 -0
- package/agentic-flow/docs/guides/MULTI-MODEL-ROUTER.md +702 -0
- package/agentic-flow/docs/guides/NPM-PUBLISH.md +218 -0
- package/agentic-flow/docs/guides/ONNX-PROXY-IMPLEMENTATION.md +254 -0
- package/agentic-flow/docs/guides/ONNX_CLI_USAGE.md +344 -0
- package/agentic-flow/docs/guides/ONNX_OPTIMIZATION_GUIDE.md +665 -0
- package/agentic-flow/docs/guides/OPENROUTER_DEPLOYMENT.md +495 -0
- package/agentic-flow/docs/guides/PROXY-ARCHITECTURE-AND-EXTENSION.md +708 -0
- package/agentic-flow/docs/guides/QUIC-SWARM-QUICKSTART.md +543 -0
- package/agentic-flow/docs/guides/QUICK-START-v1.7.1.md +399 -0
- package/agentic-flow/docs/guides/README.md +17 -0
- package/agentic-flow/docs/guides/REASONINGBANK.md +721 -0
- package/agentic-flow/docs/guides/STANDALONE_PROXY_GUIDE.md +437 -0
- package/agentic-flow/docs/guides/agent-sdk.md +234 -0
- package/agentic-flow/docs/integration-docs/AGENT-BOOSTER-INTEGRATION.md +379 -0
- package/agentic-flow/docs/integration-docs/CLAUDE-FLOW-INTEGRATION-ANALYSIS.md +653 -0
- package/agentic-flow/docs/integration-docs/CLI-INTEGRATION-COMPLETE.md +283 -0
- package/agentic-flow/docs/integration-docs/IMPLEMENTATION_SUMMARY.md +369 -0
- package/agentic-flow/docs/integration-docs/INTEGRATION-COMPLETE.md +291 -0
- package/agentic-flow/docs/integration-docs/INTEGRATION-QUICK-SUMMARY.md +249 -0
- package/agentic-flow/docs/integration-docs/INTEGRATION-STATUS-CORRECTED.md +488 -0
- package/agentic-flow/docs/integration-docs/INTEGRATION_COMPLETE_SUMMARY.md +780 -0
- package/agentic-flow/docs/integration-docs/QUIC-WASM-INTEGRATION.md +537 -0
- package/agentic-flow/docs/integration-docs/README.md +61 -0
- package/agentic-flow/docs/integration-docs/WASM_ESM_FIX.md +180 -0
- package/agentic-flow/docs/integration-docs/WASM_INTEGRATION_COMPLETE.md +344 -0
- package/agentic-flow/docs/integrations/CLAUDE_AGENTS_INTEGRATION.md +356 -0
- package/agentic-flow/docs/integrations/CLAUDE_FLOW_INTEGRATION.md +535 -0
- package/agentic-flow/docs/integrations/FASTMCP_CLI_INTEGRATION.md +503 -0
- package/agentic-flow/docs/integrations/FLOW-NEXUS-INTEGRATION.md +319 -0
- package/agentic-flow/docs/integrations/README.md +18 -0
- package/agentic-flow/docs/integrations/fastmcp-implementation-plan.md +2516 -0
- package/agentic-flow/docs/integrations/fastmcp-poc-integration.md +198 -0
- package/agentic-flow/docs/issues/ISSUE-SUPABASE-INTEGRATION.md +536 -0
- package/agentic-flow/docs/issues/ISSUE-xenova-transformers-dependency.md +380 -0
- package/agentic-flow/docs/mcp-validation/IMPLEMENTATION-SUMMARY.md +493 -0
- package/agentic-flow/docs/mcp-validation/MCP-CLI-VALIDATION-REPORT.md +322 -0
- package/agentic-flow/docs/mcp-validation/README.md +43 -0
- package/agentic-flow/docs/mcp-validation/strange-loops-test.md +63 -0
- package/agentic-flow/docs/plans/QUIC/BUILD_INSTRUCTIONS.md +220 -0
- package/agentic-flow/docs/plans/QUIC/IMPLEMENTATION_STATUS.md +234 -0
- package/agentic-flow/docs/plans/QUIC/QUIC-INTEGRATION-SUMMARY.md +545 -0
- package/agentic-flow/docs/plans/QUIC/QUIC-INTEGRATION.md +502 -0
- package/agentic-flow/docs/plans/QUIC/QUIC-README.md +226 -0
- package/agentic-flow/docs/plans/QUIC/QUIC_IMPLEMENTATION_SUMMARY.md +607 -0
- package/agentic-flow/docs/plans/QUIC/README-CONDENSED.md +447 -0
- package/agentic-flow/docs/plans/QUIC/quic-research.md +1415 -0
- package/agentic-flow/docs/plans/QUIC/quic-tutorial.md +485 -0
- package/agentic-flow/docs/plans/agent-booster/00-INDEX.md +230 -0
- package/agentic-flow/docs/plans/agent-booster/00-OVERVIEW.md +454 -0
- package/agentic-flow/docs/plans/agent-booster/01-ARCHITECTURE.md +699 -0
- package/agentic-flow/docs/plans/agent-booster/02-INTEGRATION.md +771 -0
- package/agentic-flow/docs/plans/agent-booster/03-BENCHMARKS.md +616 -0
- package/agentic-flow/docs/plans/agent-booster/04-NPM-SDK.md +673 -0
- package/agentic-flow/docs/plans/agent-booster/GITHUB-ISSUE.md +523 -0
- package/agentic-flow/docs/plans/agent-booster/README.md +576 -0
- package/agentic-flow/docs/plans/agent-booster-cli-integration.md +317 -0
- package/agentic-flow/docs/plans/requesty/00-overview.md +176 -0
- package/agentic-flow/docs/plans/requesty/01-api-research.md +573 -0
- package/agentic-flow/docs/plans/requesty/02-architecture.md +1076 -0
- package/agentic-flow/docs/plans/requesty/03-implementation-phases.md +1129 -0
- package/agentic-flow/docs/plans/requesty/04-testing-strategy.md +905 -0
- package/agentic-flow/docs/plans/requesty/05-migration-guide.md +576 -0
- package/agentic-flow/docs/plans/requesty/README.md +290 -0
- package/agentic-flow/docs/providers/LANDING-PAGE-PROVIDER-CONTENT.md +204 -0
- package/agentic-flow/docs/providers/PROVIDER-FALLBACK-GUIDE.md +619 -0
- package/agentic-flow/docs/providers/PROVIDER-FALLBACK-SUMMARY.md +418 -0
- package/agentic-flow/docs/quantum-goap/DEPENDENCY_GRAPH.mermaid +133 -0
- package/agentic-flow/docs/quantum-goap/EXECUTION_SUMMARY.md +199 -0
- package/agentic-flow/docs/quantum-goap/GOAP_IMPLEMENTATION_PLAN.md +2406 -0
- package/agentic-flow/docs/quantum-goap/QUICK_START.md +301 -0
- package/agentic-flow/docs/quantum-research/QUANTUM_RESEARCH_LITERATURE_REVIEW.md +2071 -0
- package/agentic-flow/docs/quantum-research/README.md +94 -0
- package/agentic-flow/docs/quic/FINAL-VALIDATION.md +336 -0
- package/agentic-flow/docs/quic/IMPLEMENTATION-COMPLETE-SUMMARY.md +349 -0
- package/agentic-flow/docs/quic/PERFORMANCE-VALIDATION.md +282 -0
- package/agentic-flow/docs/quic/QUIC-STATUS-OLD.md +513 -0
- package/agentic-flow/docs/quic/QUIC-STATUS.md +451 -0
- package/agentic-flow/docs/quic/QUIC-VALIDATION-REPORT.md +370 -0
- package/agentic-flow/docs/quic/QUIC_FINAL_STATUS.md +399 -0
- package/agentic-flow/docs/quic/README_QUIC_PHASE1.md +117 -0
- package/agentic-flow/docs/quic/WASM-INTEGRATION-COMPLETE.md +382 -0
- package/agentic-flow/docs/reasoningbank/MEMORY_VALIDATION_REPORT.md +417 -0
- package/agentic-flow/docs/reasoningbank/README.md +43 -0
- package/agentic-flow/docs/reasoningbank/REASONING-AGENTS.md +482 -0
- package/agentic-flow/docs/reasoningbank/REASONINGBANK-BENCHMARK-RESULTS.md +166 -0
- package/agentic-flow/docs/reasoningbank/REASONINGBANK-BENCHMARK.md +396 -0
- package/agentic-flow/docs/reasoningbank/REASONINGBANK-CLI-INTEGRATION.md +455 -0
- package/agentic-flow/docs/reasoningbank/REASONINGBANK-DEMO.md +419 -0
- package/agentic-flow/docs/reasoningbank/REASONINGBANK-VALIDATION.md +532 -0
- package/agentic-flow/docs/reasoningbank/REASONINGBANK_ARCHITECTURE.md +663 -0
- package/agentic-flow/docs/reasoningbank/REASONINGBANK_BACKENDS.md +375 -0
- package/agentic-flow/docs/reasoningbank/REASONINGBANK_FIXES.md +455 -0
- package/agentic-flow/docs/reasoningbank/REASONINGBANK_IMPLEMENTATION_STATUS.md +478 -0
- package/agentic-flow/docs/reasoningbank/REASONINGBANK_INTEGRATION_PLAN.md +1059 -0
- package/agentic-flow/docs/reasoningbank/REASONINGBANK_INVESTIGATION.md +380 -0
- package/agentic-flow/docs/releases/GITHUB-ISSUE-ADDENDUM-v1.4.6.md +1529 -0
- package/agentic-flow/docs/releases/GITHUB-ISSUE-REASONINGBANK-BENCHMARK.md +643 -0
- package/agentic-flow/docs/releases/GITHUB-ISSUE-v1.4.6.md +1453 -0
- package/agentic-flow/docs/releases/GITHUB-ISSUE-v1.5.0.md +468 -0
- package/agentic-flow/docs/releases/HOTFIX-v1.2.1.md +315 -0
- package/agentic-flow/docs/releases/NPM-PUBLISH-GUIDE-v1.2.0.md +440 -0
- package/agentic-flow/docs/releases/PUBLISH-COMPLETE-v1.2.0.md +308 -0
- package/agentic-flow/docs/releases/PUBLISH_CHECKLIST_v1.10.0.md +396 -0
- package/agentic-flow/docs/releases/PUBLISH_SUMMARY_v1.7.1.md +198 -0
- package/agentic-flow/docs/releases/README.md +18 -0
- package/agentic-flow/docs/releases/RELEASE-v1.2.0.md +339 -0
- package/agentic-flow/docs/releases/RELEASE-v1.8.13.md +426 -0
- package/agentic-flow/docs/releases/RELEASE_NOTES_v1.10.0.md +464 -0
- package/agentic-flow/docs/releases/RELEASE_NOTES_v1.7.0.md +297 -0
- package/agentic-flow/docs/releases/RELEASE_v1.7.1.md +327 -0
- package/agentic-flow/docs/releases/v1.4.6-reasoningbank-release.md +541 -0
- package/agentic-flow/docs/releases/v1.4.7-bugfix.md +212 -0
- package/agentic-flow/docs/releases/v1.5.14-QUIC-TRANSPORT.md +201 -0
- package/agentic-flow/docs/reports/QUIC_PHASE1_COMPLETE.md +409 -0
- package/agentic-flow/docs/reports/QUIC_PHASE1_COMPLETION.md +323 -0
- package/agentic-flow/docs/reviews/quic-implementation-review.md +1076 -0
- package/agentic-flow/docs/router/README.md +552 -0
- package/agentic-flow/docs/router/ROUTER_CONFIG_REFERENCE.md +577 -0
- package/agentic-flow/docs/router/ROUTER_USER_GUIDE.md +865 -0
- package/agentic-flow/docs/router/TOP20_MODELS_MATRIX.md +80 -0
- package/agentic-flow/docs/supabase/IMPLEMENTATION-SUMMARY.md +498 -0
- package/agentic-flow/docs/supabase/INDEX.md +358 -0
- package/agentic-flow/docs/supabase/QUICKSTART.md +365 -0
- package/agentic-flow/docs/supabase/README.md +318 -0
- package/agentic-flow/docs/supabase/SUPABASE-REALTIME-FEDERATION.md +575 -0
- package/agentic-flow/docs/supabase/TEST-REPORT.md +446 -0
- package/agentic-flow/docs/supabase/migrations/001_create_federation_tables.sql +339 -0
- package/agentic-flow/docs/testing/AGENT-SYSTEM-VALIDATION.md +517 -0
- package/agentic-flow/docs/testing/AGENTDB_TESTING.md +411 -0
- package/agentic-flow/docs/testing/FINAL-TESTING-SUMMARY.md +362 -0
- package/agentic-flow/docs/testing/README.md +46 -0
- package/agentic-flow/docs/testing/REGRESSION-TEST-RESULTS.md +269 -0
- package/agentic-flow/docs/testing/STREAMING-AND-MCP-VALIDATION.md +517 -0
- package/agentic-flow/docs/validation-reports/BENCHMARK_AND_OPTIMIZATION_REPORT.md +470 -0
- package/agentic-flow/docs/validation-reports/DOCKER_VALIDATION_RESULTS.md +391 -0
- package/agentic-flow/docs/validation-reports/NO_REGRESSIONS_CONFIRMED.md +384 -0
- package/agentic-flow/docs/validation-reports/NPM-PACKAGE-ANALYSIS-FINAL.md +543 -0
- package/agentic-flow/docs/validation-reports/README.md +43 -0
- package/agentic-flow/docs/validation-reports/V2.7.0-ALPHA.10_FINAL_VALIDATION.md +817 -0
- package/agentic-flow/docs/validation-reports/V2.7.0-ALPHA.9_VALIDATION.md +546 -0
- package/agentic-flow/docs/validation-reports/v1.6.0-QUIC-CLI-VALIDATION.md +558 -0
- package/agentic-flow/docs/validation-reports/v1.6.1-NPM-PUBLISH-VALIDATION.md +532 -0
- package/agentic-flow/docs/version-releases/PUBLICATION_REPORT_v1.5.11.md +421 -0
- package/agentic-flow/docs/version-releases/README.md +82 -0
- package/agentic-flow/docs/version-releases/v1.5.9-DOCKER-VERIFICATION.md +263 -0
- package/agentic-flow/docs/version-releases/v1.5.9-RELEASE-SUMMARY.md +222 -0
- package/agentic-flow/scripts/build.sh +30 -0
- package/agentic-flow/scripts/claude +31 -0
- package/agentic-flow/scripts/claude-code +56 -0
- package/agentic-flow/scripts/claude-flow +81 -0
- package/agentic-flow/scripts/claude-flow.bat +18 -0
- package/agentic-flow/scripts/claude-flow.ps1 +24 -0
- package/agentic-flow/scripts/postinstall.js +139 -0
- package/agentic-flow/scripts/run-validation.sh +165 -0
- package/agentic-flow/scripts/test-agentdb.sh +153 -0
- package/agentic-flow/scripts/test-all-commands.sh +46 -0
- package/agentic-flow/scripts/test-claude-flow-sdk.sh +46 -0
- package/agentic-flow/scripts/test-fastmcp-docker.sh +132 -0
- package/agentic-flow/scripts/test-fastmcp-poc.sh +26 -0
- package/agentic-flow/scripts/test-functionality.sh +50 -0
- package/agentic-flow/scripts/test-onnx-docker.sh +176 -0
- package/agentic-flow/scripts/test-router-docker.sh +105 -0
- package/agentic-flow/scripts/validate-mcp-cli-tools.sh +104 -0
- package/agentic-flow/scripts/validate-providers.sh +50 -0
- package/agentic-flow/wasm/quic/README.md +75 -0
- package/agentic-flow/wasm/quic/agentic_flow_quic.js +779 -0
- package/agentic-flow/wasm/quic/agentic_flow_quic_bg.wasm +0 -0
- package/agentic-flow/wasm/quic/package.json +20 -0
- package/agentic-flow/wasm/reasoningbank/package.json +34 -0
- package/agentic-flow/wasm/reasoningbank/reasoningbank_wasm.js +5 -0
- package/agentic-flow/wasm/reasoningbank/reasoningbank_wasm_bg.js +555 -0
- package/agentic-flow/wasm/reasoningbank/reasoningbank_wasm_bg.wasm +0 -0
- package/docs/CHANGELOG.md +272 -0
- package/docs/LICENSE +21 -0
- package/docs/README.md +127 -0
- package/package.json +279 -0
- package/packages/agentic-jujutsu/.cargo/config.toml +14 -0
- package/packages/agentic-jujutsu/BUILD.md +292 -0
- package/packages/agentic-jujutsu/CHANGELOG.md +143 -0
- package/packages/agentic-jujutsu/CHANGELOG_v2.2.0.md +203 -0
- package/packages/agentic-jujutsu/CRATE_README.md +269 -0
- package/packages/agentic-jujutsu/Dockerfile +8 -0
- package/packages/agentic-jujutsu/Dockerfile.test +81 -0
- package/packages/agentic-jujutsu/FUNCTIONALITY_VERIFICATION.md +377 -0
- package/packages/agentic-jujutsu/LICENSE +21 -0
- package/packages/agentic-jujutsu/NAPI_CI_CD_FILES.txt +162 -0
- package/packages/agentic-jujutsu/QUANTUM_INTEGRATION_SUMMARY.txt +67 -0
- package/packages/agentic-jujutsu/README.md +2248 -0
- package/packages/agentic-jujutsu/README_QUANTUM_INTEGRATION.md +195 -0
- package/packages/agentic-jujutsu/agentic-jujutsu-2.0.0.tgz +0 -0
- package/packages/agentic-jujutsu/agentic-jujutsu-2.0.1.tgz +0 -0
- package/packages/agentic-jujutsu/agentic-jujutsu-2.0.2.tgz +0 -0
- package/packages/agentic-jujutsu/agentic-jujutsu-2.0.3.tgz +0 -0
- package/packages/agentic-jujutsu/agentic-jujutsu.linux-x64-gnu.node +0 -0
- package/packages/agentic-jujutsu/benchmarks/README.md +403 -0
- package/packages/agentic-jujutsu/benchmarks/docker/.env.example +24 -0
- package/packages/agentic-jujutsu/benchmarks/docker/Dockerfile.git +55 -0
- package/packages/agentic-jujutsu/benchmarks/docker/Dockerfile.jujutsu +67 -0
- package/packages/agentic-jujutsu/benchmarks/docker/Dockerfile.swarm-coordinator +45 -0
- package/packages/agentic-jujutsu/benchmarks/docker/config/prometheus.yml +20 -0
- package/packages/agentic-jujutsu/benchmarks/docker/docker-compose.yml +152 -0
- package/packages/agentic-jujutsu/benchmarks/docker/scripts/collect-metrics.sh +143 -0
- package/packages/agentic-jujutsu/benchmarks/docker/scripts/generate-reports.sh +150 -0
- package/packages/agentic-jujutsu/benchmarks/docker/scripts/run-benchmarks.sh +80 -0
- package/packages/agentic-jujutsu/benchmarks/docker/scripts/setup-repos.sh +88 -0
- package/packages/agentic-jujutsu/bin/cli.js +286 -0
- package/packages/agentic-jujutsu/bin/mcp-server.js +20 -0
- package/packages/agentic-jujutsu/build.rs +134 -0
- package/packages/agentic-jujutsu/check-methods.js +26 -0
- package/packages/agentic-jujutsu/helpers/encryption.js +234 -0
- package/packages/agentic-jujutsu/index.d.ts +853 -0
- package/packages/agentic-jujutsu/index.js +321 -0
- package/packages/agentic-jujutsu/package-lock.json +1163 -0
- package/packages/agentic-jujutsu/package.json +108 -0
- package/packages/agentic-jujutsu/pkg/bundler/LICENSE +21 -0
- package/packages/agentic-jujutsu/pkg/bundler/README.md +361 -0
- package/packages/agentic-jujutsu/pkg/bundler/agentic_jujutsu.d.ts +554 -0
- package/packages/agentic-jujutsu/pkg/bundler/agentic_jujutsu.js +5 -0
- package/packages/agentic-jujutsu/pkg/bundler/agentic_jujutsu_bg.js +1821 -0
- package/packages/agentic-jujutsu/pkg/bundler/agentic_jujutsu_bg.wasm +0 -0
- package/packages/agentic-jujutsu/pkg/bundler/agentic_jujutsu_bg.wasm.d.ts +113 -0
- package/packages/agentic-jujutsu/pkg/bundler/package.json +34 -0
- package/packages/agentic-jujutsu/pkg/deno/LICENSE +21 -0
- package/packages/agentic-jujutsu/pkg/deno/README.md +361 -0
- package/packages/agentic-jujutsu/pkg/deno/agentic_jujutsu.d.ts +554 -0
- package/packages/agentic-jujutsu/pkg/deno/agentic_jujutsu.js +1802 -0
- package/packages/agentic-jujutsu/pkg/deno/agentic_jujutsu_bg.wasm +0 -0
- package/packages/agentic-jujutsu/pkg/deno/agentic_jujutsu_bg.wasm.d.ts +113 -0
- package/packages/agentic-jujutsu/pkg/node/LICENSE +21 -0
- package/packages/agentic-jujutsu/pkg/node/README.md +361 -0
- package/packages/agentic-jujutsu/pkg/node/agentic_jujutsu.d.ts +554 -0
- package/packages/agentic-jujutsu/pkg/node/agentic_jujutsu.js +1830 -0
- package/packages/agentic-jujutsu/pkg/node/agentic_jujutsu_bg.wasm +0 -0
- package/packages/agentic-jujutsu/pkg/node/agentic_jujutsu_bg.wasm.d.ts +113 -0
- package/packages/agentic-jujutsu/pkg/node/package.json +28 -0
- package/packages/agentic-jujutsu/pkg/web/LICENSE +21 -0
- package/packages/agentic-jujutsu/pkg/web/README.md +361 -0
- package/packages/agentic-jujutsu/pkg/web/agentic_jujutsu.d.ts +691 -0
- package/packages/agentic-jujutsu/pkg/web/agentic_jujutsu.js +1913 -0
- package/packages/agentic-jujutsu/pkg/web/agentic_jujutsu_bg.wasm +0 -0
- package/packages/agentic-jujutsu/pkg/web/agentic_jujutsu_bg.wasm.d.ts +113 -0
- package/packages/agentic-jujutsu/pkg/web/package.json +32 -0
- package/packages/agentic-jujutsu/quantum-bridge.d.ts +115 -0
- package/packages/agentic-jujutsu/scripts/agentic-flow-integration.js +178 -0
- package/packages/agentic-jujutsu/scripts/analyze-size.sh +23 -0
- package/packages/agentic-jujutsu/scripts/coverage.sh +57 -0
- package/packages/agentic-jujutsu/scripts/docker-test.sh +56 -0
- package/packages/agentic-jujutsu/scripts/final-validation.sh +85 -0
- package/packages/agentic-jujutsu/scripts/install-jj.js +197 -0
- package/packages/agentic-jujutsu/scripts/mcp-server.js +98 -0
- package/packages/agentic-jujutsu/scripts/test-all.sh +68 -0
- package/packages/agentic-jujutsu/scripts/verify-build.sh +32 -0
- package/packages/agentic-jujutsu/scripts/verify-napi-config.sh +122 -0
- package/packages/agentic-jujutsu/scripts/wasm-pack-build.sh +76 -0
- package/packages/agentic-jujutsu/test-agentdb-cli.js +119 -0
- package/packages/agentic-jujutsu/test-agentdb.js +105 -0
- package/packages/agentic-jujutsu/test-failures.js +53 -0
- package/packages/agentic-jujutsu/test-napi.js +40 -0
- package/packages/agentic-jujutsu/test-quick.js +61 -0
- package/packages/agentic-jujutsu/test-repo/test-file.txt +1 -0
- package/packages/agentic-jujutsu/typescript/hooks-integration.ts +370 -0
- package/packages/agentic-jujutsu/typescript/index.d.ts +415 -0
- package/reasoningbank/README.md +217 -0
|
@@ -0,0 +1,935 @@
|
|
|
1
|
+
# Embeddings as Geometric Intelligence
|
|
2
|
+
|
|
3
|
+
> Once embeddings are cheap, adaptable, and ubiquitous, intelligence moves from models to geometry.
|
|
4
|
+
|
|
5
|
+
Search was just the first accidental use case. Everything else flows from treating embedding space as **the substrate intelligence lives on**, not a feature extractor.
|
|
6
|
+
|
|
7
|
+
## The Core Shift
|
|
8
|
+
|
|
9
|
+
Embeddings stopped being "search vectors" about a year ago. At the edge now, they are turning into a **general purpose geometric control layer**.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## 1. Embeddings as Control Signals, Not Representations
|
|
14
|
+
|
|
15
|
+
Instead of asking *what is similar*, systems ask *how far did we move*.
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { getOptimizedEmbedder, cosineSimilarity } from 'agentic-flow/embeddings';
|
|
19
|
+
|
|
20
|
+
const embedder = getOptimizedEmbedder();
|
|
21
|
+
await embedder.init();
|
|
22
|
+
|
|
23
|
+
// Semantic Drift Detection
|
|
24
|
+
class SemanticDriftMonitor {
|
|
25
|
+
private baseline: Float32Array | null = null;
|
|
26
|
+
private threshold = 0.15; // Drift threshold
|
|
27
|
+
|
|
28
|
+
async setBaseline(context: string) {
|
|
29
|
+
this.baseline = await embedder.embed(context);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
async checkDrift(current: string): Promise<{
|
|
33
|
+
drift: number;
|
|
34
|
+
shouldEscalate: boolean;
|
|
35
|
+
shouldTriggerReasoning: boolean;
|
|
36
|
+
}> {
|
|
37
|
+
const currentEmb = await embedder.embed(current);
|
|
38
|
+
const similarity = cosineSimilarity(this.baseline!, currentEmb);
|
|
39
|
+
const drift = 1 - similarity;
|
|
40
|
+
|
|
41
|
+
return {
|
|
42
|
+
drift,
|
|
43
|
+
shouldEscalate: drift > this.threshold,
|
|
44
|
+
shouldTriggerReasoning: drift > this.threshold * 2
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// Usage: Gating expensive reasoning
|
|
50
|
+
const monitor = new SemanticDriftMonitor();
|
|
51
|
+
await monitor.setBaseline("User is asking about API authentication");
|
|
52
|
+
|
|
53
|
+
const result = await monitor.checkDrift("How do I hack into the system?");
|
|
54
|
+
if (result.shouldEscalate) {
|
|
55
|
+
// Trigger security review - semantic drift detected
|
|
56
|
+
}
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
**Applications:**
|
|
60
|
+
- Triggering escalation only when semantic drift exceeds threshold
|
|
61
|
+
- Gating expensive reasoning or learning
|
|
62
|
+
- Detecting instability long before explicit errors
|
|
63
|
+
- Fraud detection, infra monitoring, agent orchestration
|
|
64
|
+
|
|
65
|
+
The embedding distance becomes a **reflex**, not a query.
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## 2. Embeddings as Memory Physics
|
|
70
|
+
|
|
71
|
+
Embeddings define how memory behaves:
|
|
72
|
+
- What is recalled easily
|
|
73
|
+
- What fades
|
|
74
|
+
- What interferes
|
|
75
|
+
|
|
76
|
+
```typescript
|
|
77
|
+
import { getOptimizedEmbedder, cosineSimilarity, euclideanDistance } from 'agentic-flow/embeddings';
|
|
78
|
+
|
|
79
|
+
// Memory with decay and interference
|
|
80
|
+
class GeometricMemory {
|
|
81
|
+
private memories: Array<{
|
|
82
|
+
embedding: Float32Array;
|
|
83
|
+
content: string;
|
|
84
|
+
strength: number;
|
|
85
|
+
timestamp: number;
|
|
86
|
+
}> = [];
|
|
87
|
+
|
|
88
|
+
private embedder = getOptimizedEmbedder();
|
|
89
|
+
private decayRate = 0.01;
|
|
90
|
+
private interferenceRadius = 0.3;
|
|
91
|
+
|
|
92
|
+
async store(content: string) {
|
|
93
|
+
const embedding = await this.embedder.embed(content);
|
|
94
|
+
|
|
95
|
+
// Check for interference with existing memories
|
|
96
|
+
for (const mem of this.memories) {
|
|
97
|
+
const distance = euclideanDistance(embedding, mem.embedding);
|
|
98
|
+
if (distance < this.interferenceRadius) {
|
|
99
|
+
// Nearby memories interfere - reduce their strength
|
|
100
|
+
mem.strength *= (1 - (this.interferenceRadius - distance));
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
this.memories.push({
|
|
105
|
+
embedding,
|
|
106
|
+
content,
|
|
107
|
+
strength: 1.0,
|
|
108
|
+
timestamp: Date.now()
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
async recall(query: string, topK = 5): Promise<string[]> {
|
|
113
|
+
const queryEmb = await this.embedder.embed(query);
|
|
114
|
+
|
|
115
|
+
// Apply temporal decay
|
|
116
|
+
const now = Date.now();
|
|
117
|
+
for (const mem of this.memories) {
|
|
118
|
+
const age = (now - mem.timestamp) / 3600000; // hours
|
|
119
|
+
mem.strength *= Math.exp(-this.decayRate * age);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// Score by similarity * strength (geometric + temporal)
|
|
123
|
+
const scored = this.memories
|
|
124
|
+
.filter(m => m.strength > 0.1) // Forgotten threshold
|
|
125
|
+
.map(m => ({
|
|
126
|
+
content: m.content,
|
|
127
|
+
score: cosineSimilarity(queryEmb, m.embedding) * m.strength
|
|
128
|
+
}))
|
|
129
|
+
.sort((a, b) => b.score - a.score);
|
|
130
|
+
|
|
131
|
+
return scored.slice(0, topK).map(s => s.content);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// Consolidation: merge similar memories (like sleep)
|
|
135
|
+
async consolidate() {
|
|
136
|
+
const consolidated: typeof this.memories = [];
|
|
137
|
+
const used = new Set<number>();
|
|
138
|
+
|
|
139
|
+
for (let i = 0; i < this.memories.length; i++) {
|
|
140
|
+
if (used.has(i)) continue;
|
|
141
|
+
|
|
142
|
+
const cluster = [this.memories[i]];
|
|
143
|
+
for (let j = i + 1; j < this.memories.length; j++) {
|
|
144
|
+
if (used.has(j)) continue;
|
|
145
|
+
|
|
146
|
+
const sim = cosineSimilarity(
|
|
147
|
+
this.memories[i].embedding,
|
|
148
|
+
this.memories[j].embedding
|
|
149
|
+
);
|
|
150
|
+
|
|
151
|
+
if (sim > 0.9) {
|
|
152
|
+
cluster.push(this.memories[j]);
|
|
153
|
+
used.add(j);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
// Merge cluster into strongest memory
|
|
158
|
+
const strongest = cluster.reduce((a, b) =>
|
|
159
|
+
a.strength > b.strength ? a : b
|
|
160
|
+
);
|
|
161
|
+
strongest.strength = Math.min(1.0,
|
|
162
|
+
cluster.reduce((sum, m) => sum + m.strength, 0)
|
|
163
|
+
);
|
|
164
|
+
consolidated.push(strongest);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
this.memories = consolidated;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
By shaping embedding space, you are engineering:
|
|
173
|
+
- **Forgetting** - Temporal decay
|
|
174
|
+
- **Generalization** - Memory consolidation
|
|
175
|
+
- **Interference resistance** - Spatial separation
|
|
176
|
+
|
|
177
|
+
This turns vector stores into **designed memory systems**, closer to hippocampal dynamics than databases.
|
|
178
|
+
|
|
179
|
+
---
|
|
180
|
+
|
|
181
|
+
## 3. Embeddings as Compression and Distillation Layers
|
|
182
|
+
|
|
183
|
+
Large models increasingly emit embeddings as their *real output*.
|
|
184
|
+
Smaller systems operate only on those embeddings.
|
|
185
|
+
|
|
186
|
+
```typescript
|
|
187
|
+
// Cross-model communication via embeddings
|
|
188
|
+
class EmbeddingBridge {
|
|
189
|
+
private embedder = getOptimizedEmbedder();
|
|
190
|
+
|
|
191
|
+
// Large model emits embedding as "thought"
|
|
192
|
+
async encodeThought(thought: string): Promise<Float32Array> {
|
|
193
|
+
return this.embedder.embed(thought);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
// Small edge model receives only embedding
|
|
197
|
+
async decodeIntent(embedding: Float32Array, actions: string[]): Promise<string> {
|
|
198
|
+
const actionEmbeddings = await this.embedder.embedBatch(actions);
|
|
199
|
+
|
|
200
|
+
let bestAction = actions[0];
|
|
201
|
+
let bestSim = -1;
|
|
202
|
+
|
|
203
|
+
for (let i = 0; i < actions.length; i++) {
|
|
204
|
+
const sim = cosineSimilarity(embedding, actionEmbeddings[i]);
|
|
205
|
+
if (sim > bestSim) {
|
|
206
|
+
bestSim = sim;
|
|
207
|
+
bestAction = actions[i];
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
return bestAction;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
// Privacy-preserving pipeline
|
|
216
|
+
class PrivacyPreservingPipeline {
|
|
217
|
+
private embedder = getOptimizedEmbedder();
|
|
218
|
+
|
|
219
|
+
// Raw text never leaves the device
|
|
220
|
+
async processLocally(sensitiveText: string): Promise<Float32Array> {
|
|
221
|
+
// Only embedding crosses the boundary
|
|
222
|
+
return this.embedder.embed(sensitiveText);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
// Server only sees embedding, never text
|
|
226
|
+
async serverProcess(embedding: Float32Array): Promise<string> {
|
|
227
|
+
// Classification, routing, etc. on embedding only
|
|
228
|
+
const categories = ['support', 'sales', 'technical', 'billing'];
|
|
229
|
+
const categoryEmbeddings = await this.embedder.embedBatch(categories);
|
|
230
|
+
|
|
231
|
+
let best = categories[0];
|
|
232
|
+
let bestSim = -1;
|
|
233
|
+
for (let i = 0; i < categories.length; i++) {
|
|
234
|
+
const sim = cosineSimilarity(embedding, categoryEmbeddings[i]);
|
|
235
|
+
if (sim > bestSim) {
|
|
236
|
+
bestSim = sim;
|
|
237
|
+
best = categories[i];
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
return best;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
**Applications:**
|
|
246
|
+
- Tiny edge models that never see raw text
|
|
247
|
+
- Privacy preserving pipelines where embeddings are the boundary
|
|
248
|
+
- Cross model communication where embeddings are the lingua franca
|
|
249
|
+
|
|
250
|
+
The model is no longer the unit of intelligence. The **embedding manifold** is.
|
|
251
|
+
|
|
252
|
+
---
|
|
253
|
+
|
|
254
|
+
## 4. Embeddings as Alignment Surfaces
|
|
255
|
+
|
|
256
|
+
User-specific embedding adapters learn *how someone means things*.
|
|
257
|
+
|
|
258
|
+
```typescript
|
|
259
|
+
// Personal semantic adapter
|
|
260
|
+
class SemanticAdapter {
|
|
261
|
+
private embedder = getOptimizedEmbedder();
|
|
262
|
+
private userMappings: Map<string, Float32Array> = new Map();
|
|
263
|
+
private adaptationStrength = 0.3;
|
|
264
|
+
|
|
265
|
+
// Learn user's personal semantics
|
|
266
|
+
async learn(userPhrase: string, intendedMeaning: string) {
|
|
267
|
+
const phraseEmb = await this.embedder.embed(userPhrase);
|
|
268
|
+
const meaningEmb = await this.embedder.embed(intendedMeaning);
|
|
269
|
+
|
|
270
|
+
// Store the delta (how user means vs standard meaning)
|
|
271
|
+
const delta = new Float32Array(phraseEmb.length);
|
|
272
|
+
for (let i = 0; i < phraseEmb.length; i++) {
|
|
273
|
+
delta[i] = meaningEmb[i] - phraseEmb[i];
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
this.userMappings.set(userPhrase.toLowerCase(), delta);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
// Adapt new input using learned mappings
|
|
280
|
+
async adapt(input: string): Promise<Float32Array> {
|
|
281
|
+
const inputEmb = await this.embedder.embed(input);
|
|
282
|
+
|
|
283
|
+
// Find similar learned phrases and apply their deltas
|
|
284
|
+
const inputLower = input.toLowerCase();
|
|
285
|
+
let totalWeight = 0;
|
|
286
|
+
const adapted = new Float32Array(inputEmb);
|
|
287
|
+
|
|
288
|
+
for (const [phrase, delta] of this.userMappings) {
|
|
289
|
+
const phraseEmb = await this.embedder.embed(phrase);
|
|
290
|
+
const similarity = cosineSimilarity(inputEmb, phraseEmb);
|
|
291
|
+
|
|
292
|
+
if (similarity > 0.7) {
|
|
293
|
+
const weight = similarity * this.adaptationStrength;
|
|
294
|
+
for (let i = 0; i < adapted.length; i++) {
|
|
295
|
+
adapted[i] += delta[i] * weight;
|
|
296
|
+
}
|
|
297
|
+
totalWeight += weight;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
// Normalize
|
|
302
|
+
if (totalWeight > 0) {
|
|
303
|
+
const norm = Math.sqrt(adapted.reduce((s, v) => s + v * v, 0));
|
|
304
|
+
for (let i = 0; i < adapted.length; i++) {
|
|
305
|
+
adapted[i] /= norm;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
return adapted;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
// Usage: Accessibility adapter
|
|
314
|
+
const adapter = new SemanticAdapter();
|
|
315
|
+
|
|
316
|
+
// User who types abbreviated due to motor difficulties
|
|
317
|
+
await adapter.learn("pls hlp", "please help me");
|
|
318
|
+
await adapter.learn("cant typ", "I have difficulty typing");
|
|
319
|
+
await adapter.learn("u", "you");
|
|
320
|
+
|
|
321
|
+
// Now system understands user's personal language
|
|
322
|
+
const adapted = await adapter.adapt("pls hlp me u");
|
|
323
|
+
// Geometric alignment to intended meaning
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
Not personalization like recommendations, but:
|
|
327
|
+
- Interpreting intent for disabled users
|
|
328
|
+
- Mapping ambiguous language to personal semantics
|
|
329
|
+
- Adapting interfaces to cognition, not syntax
|
|
330
|
+
|
|
331
|
+
This is an alignment layer between humans and machines that does not require retraining large models.
|
|
332
|
+
|
|
333
|
+
---
|
|
334
|
+
|
|
335
|
+
## 5. Embeddings as Program State
|
|
336
|
+
|
|
337
|
+
Agents increasingly treat embeddings as state, context, and policy inputs.
|
|
338
|
+
|
|
339
|
+
```typescript
|
|
340
|
+
// Geometric State Machine
|
|
341
|
+
class GeometricAgent {
|
|
342
|
+
private embedder = getOptimizedEmbedder();
|
|
343
|
+
private state: Float32Array;
|
|
344
|
+
private momentum: Float32Array;
|
|
345
|
+
|
|
346
|
+
// State regions (learned or defined)
|
|
347
|
+
private stateRegions = {
|
|
348
|
+
exploring: null as Float32Array | null,
|
|
349
|
+
executing: null as Float32Array | null,
|
|
350
|
+
waiting: null as Float32Array | null,
|
|
351
|
+
error: null as Float32Array | null
|
|
352
|
+
};
|
|
353
|
+
|
|
354
|
+
async init() {
|
|
355
|
+
await this.embedder.init();
|
|
356
|
+
|
|
357
|
+
// Initialize state regions
|
|
358
|
+
this.stateRegions.exploring = await this.embedder.embed(
|
|
359
|
+
"exploring options, gathering information, uncertain, searching"
|
|
360
|
+
);
|
|
361
|
+
this.stateRegions.executing = await this.embedder.embed(
|
|
362
|
+
"executing task, confident, taking action, progressing"
|
|
363
|
+
);
|
|
364
|
+
this.stateRegions.waiting = await this.embedder.embed(
|
|
365
|
+
"waiting for input, paused, blocked, need information"
|
|
366
|
+
);
|
|
367
|
+
this.stateRegions.error = await this.embedder.embed(
|
|
368
|
+
"error state, confused, failed, need help, recovery"
|
|
369
|
+
);
|
|
370
|
+
|
|
371
|
+
// Start in exploring state
|
|
372
|
+
this.state = new Float32Array(this.stateRegions.exploring!);
|
|
373
|
+
this.momentum = new Float32Array(this.state.length).fill(0);
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
// Update state based on observation
|
|
377
|
+
async observe(observation: string) {
|
|
378
|
+
const obsEmb = await this.embedder.embed(observation);
|
|
379
|
+
|
|
380
|
+
// State update with momentum (smooth transitions)
|
|
381
|
+
const learningRate = 0.3;
|
|
382
|
+
const momentumRate = 0.1;
|
|
383
|
+
|
|
384
|
+
for (let i = 0; i < this.state.length; i++) {
|
|
385
|
+
const gradient = obsEmb[i] - this.state[i];
|
|
386
|
+
this.momentum[i] = momentumRate * this.momentum[i] + gradient;
|
|
387
|
+
this.state[i] += learningRate * this.momentum[i];
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
// Normalize
|
|
391
|
+
const norm = Math.sqrt(this.state.reduce((s, v) => s + v * v, 0));
|
|
392
|
+
for (let i = 0; i < this.state.length; i++) {
|
|
393
|
+
this.state[i] /= norm;
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
// Get current state as region proximity
|
|
398
|
+
getCurrentState(): Record<string, number> {
|
|
399
|
+
const result: Record<string, number> = {};
|
|
400
|
+
|
|
401
|
+
for (const [name, region] of Object.entries(this.stateRegions)) {
|
|
402
|
+
if (region) {
|
|
403
|
+
result[name] = cosineSimilarity(this.state, region);
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
return result;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
// Decide action geometrically
|
|
411
|
+
async decideAction(actions: string[]): Promise<string> {
|
|
412
|
+
const actionEmbeddings = await this.embedder.embedBatch(actions);
|
|
413
|
+
|
|
414
|
+
// Action selection based on state alignment
|
|
415
|
+
let bestAction = actions[0];
|
|
416
|
+
let bestScore = -Infinity;
|
|
417
|
+
|
|
418
|
+
for (let i = 0; i < actions.length; i++) {
|
|
419
|
+
// Score = alignment with current state
|
|
420
|
+
const score = cosineSimilarity(this.state, actionEmbeddings[i]);
|
|
421
|
+
if (score > bestScore) {
|
|
422
|
+
bestScore = score;
|
|
423
|
+
bestAction = actions[i];
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
return bestAction;
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
```
|
|
431
|
+
|
|
432
|
+
Instead of symbolic state machines, agents drift through semantic space.
|
|
433
|
+
Decisions become geometric.
|
|
434
|
+
|
|
435
|
+
This collapses memory, perception, and planning into one substrate.
|
|
436
|
+
|
|
437
|
+
---
|
|
438
|
+
|
|
439
|
+
## 6. Embeddings as Coordination Primitives
|
|
440
|
+
|
|
441
|
+
Multiple agents align behavior by sharing embeddings rather than messages.
|
|
442
|
+
|
|
443
|
+
```typescript
|
|
444
|
+
// Swarm coordination via shared embedding space
|
|
445
|
+
class EmbeddingSwarm {
|
|
446
|
+
private embedder = getOptimizedEmbedder();
|
|
447
|
+
private agents: Map<string, {
|
|
448
|
+
position: Float32Array; // Current semantic position
|
|
449
|
+
velocity: Float32Array; // Movement direction
|
|
450
|
+
role: string;
|
|
451
|
+
}> = new Map();
|
|
452
|
+
|
|
453
|
+
async addAgent(id: string, role: string) {
|
|
454
|
+
const roleEmb = await this.embedder.embed(role);
|
|
455
|
+
this.agents.set(id, {
|
|
456
|
+
position: roleEmb,
|
|
457
|
+
velocity: new Float32Array(roleEmb.length).fill(0),
|
|
458
|
+
role
|
|
459
|
+
});
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
// Agents share positions, not messages
|
|
463
|
+
broadcastPosition(agentId: string): Float32Array {
|
|
464
|
+
return this.agents.get(agentId)!.position;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
// Coordination through geometric alignment
|
|
468
|
+
async coordinate(agentId: string, task: string) {
|
|
469
|
+
const agent = this.agents.get(agentId)!;
|
|
470
|
+
const taskEmb = await this.embedder.embed(task);
|
|
471
|
+
|
|
472
|
+
// Calculate alignment with other agents
|
|
473
|
+
const alignments: Array<{ id: string; alignment: number }> = [];
|
|
474
|
+
|
|
475
|
+
for (const [otherId, other] of this.agents) {
|
|
476
|
+
if (otherId === agentId) continue;
|
|
477
|
+
|
|
478
|
+
const taskAlignment = cosineSimilarity(other.position, taskEmb);
|
|
479
|
+
alignments.push({ id: otherId, alignment: taskAlignment });
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
// Sort by alignment - find best collaborator
|
|
483
|
+
alignments.sort((a, b) => b.alignment - a.alignment);
|
|
484
|
+
|
|
485
|
+
// Move toward task, influenced by best collaborator
|
|
486
|
+
const collaborator = alignments[0];
|
|
487
|
+
const collabPos = this.agents.get(collaborator.id)!.position;
|
|
488
|
+
|
|
489
|
+
// Flocking behavior: alignment + cohesion + separation
|
|
490
|
+
const alignment = 0.3;
|
|
491
|
+
const cohesion = 0.2;
|
|
492
|
+
const taskPull = 0.5;
|
|
493
|
+
|
|
494
|
+
for (let i = 0; i < agent.position.length; i++) {
|
|
495
|
+
agent.velocity[i] =
|
|
496
|
+
alignment * collabPos[i] +
|
|
497
|
+
cohesion * (collabPos[i] - agent.position[i]) +
|
|
498
|
+
taskPull * (taskEmb[i] - agent.position[i]);
|
|
499
|
+
|
|
500
|
+
agent.position[i] += agent.velocity[i] * 0.1;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
// Normalize
|
|
504
|
+
const norm = Math.sqrt(agent.position.reduce((s, v) => s + v * v, 0));
|
|
505
|
+
for (let i = 0; i < agent.position.length; i++) {
|
|
506
|
+
agent.position[i] /= norm;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
return {
|
|
510
|
+
bestCollaborator: collaborator.id,
|
|
511
|
+
alignment: collaborator.alignment,
|
|
512
|
+
newPosition: agent.position
|
|
513
|
+
};
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
// Emergent specialization through repulsion
|
|
517
|
+
specialize() {
|
|
518
|
+
const repulsionStrength = 0.1;
|
|
519
|
+
const positions = Array.from(this.agents.values()).map(a => a.position);
|
|
520
|
+
|
|
521
|
+
for (const agent of this.agents.values()) {
|
|
522
|
+
for (const other of positions) {
|
|
523
|
+
if (agent.position === other) continue;
|
|
524
|
+
|
|
525
|
+
const similarity = cosineSimilarity(agent.position, other);
|
|
526
|
+
if (similarity > 0.8) {
|
|
527
|
+
// Too similar - repel
|
|
528
|
+
for (let i = 0; i < agent.position.length; i++) {
|
|
529
|
+
agent.position[i] -= repulsionStrength * (other[i] - agent.position[i]);
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
// Normalize
|
|
535
|
+
const norm = Math.sqrt(agent.position.reduce((s, v) => s + v * v, 0));
|
|
536
|
+
for (let i = 0; i < agent.position.length; i++) {
|
|
537
|
+
agent.position[i] /= norm;
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
```
|
|
543
|
+
|
|
544
|
+
This enables:
|
|
545
|
+
- Low bandwidth coordination
|
|
546
|
+
- Emergent specialization
|
|
547
|
+
- Semantic routing without explicit schemas
|
|
548
|
+
|
|
549
|
+
Swarm behavior emerges from geometry, not protocol.
|
|
550
|
+
|
|
551
|
+
---
|
|
552
|
+
|
|
553
|
+
## 7. Embeddings as Safety and Coherence Monitors
|
|
554
|
+
|
|
555
|
+
Embedding drift reveals system health even when outputs look "reasonable".
|
|
556
|
+
|
|
557
|
+
```typescript
|
|
558
|
+
// System coherence monitor
|
|
559
|
+
class CoherenceMonitor {
|
|
560
|
+
private embedder = getOptimizedEmbedder();
|
|
561
|
+
private baselineDistribution: Float32Array[] = [];
|
|
562
|
+
private centroid: Float32Array | null = null;
|
|
563
|
+
|
|
564
|
+
// Establish baseline from known-good outputs
|
|
565
|
+
async calibrate(goodOutputs: string[]) {
|
|
566
|
+
this.baselineDistribution = await this.embedder.embedBatch(goodOutputs);
|
|
567
|
+
|
|
568
|
+
// Calculate centroid
|
|
569
|
+
const dim = this.baselineDistribution[0].length;
|
|
570
|
+
this.centroid = new Float32Array(dim).fill(0);
|
|
571
|
+
|
|
572
|
+
for (const emb of this.baselineDistribution) {
|
|
573
|
+
for (let i = 0; i < dim; i++) {
|
|
574
|
+
this.centroid[i] += emb[i];
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
for (let i = 0; i < dim; i++) {
|
|
579
|
+
this.centroid[i] /= this.baselineDistribution.length;
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
// Check for drift/poisoning/degradation
|
|
584
|
+
async check(output: string): Promise<{
|
|
585
|
+
isCoherent: boolean;
|
|
586
|
+
centroidDistance: number;
|
|
587
|
+
nearestNeighborSim: number;
|
|
588
|
+
anomalyScore: number;
|
|
589
|
+
warnings: string[];
|
|
590
|
+
}> {
|
|
591
|
+
const outputEmb = await this.embedder.embed(output);
|
|
592
|
+
const warnings: string[] = [];
|
|
593
|
+
|
|
594
|
+
// Distance from centroid
|
|
595
|
+
const centroidDistance = euclideanDistance(outputEmb, this.centroid!);
|
|
596
|
+
|
|
597
|
+
// Nearest neighbor similarity
|
|
598
|
+
let nearestSim = -1;
|
|
599
|
+
for (const baseline of this.baselineDistribution) {
|
|
600
|
+
const sim = cosineSimilarity(outputEmb, baseline);
|
|
601
|
+
if (sim > nearestSim) nearestSim = sim;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
// Anomaly detection
|
|
605
|
+
const avgDistance = this.baselineDistribution.reduce((sum, b) =>
|
|
606
|
+
sum + euclideanDistance(b, this.centroid!), 0
|
|
607
|
+
) / this.baselineDistribution.length;
|
|
608
|
+
|
|
609
|
+
const anomalyScore = centroidDistance / avgDistance;
|
|
610
|
+
|
|
611
|
+
// Generate warnings
|
|
612
|
+
if (anomalyScore > 2.0) {
|
|
613
|
+
warnings.push('CRITICAL: Output significantly outside baseline distribution');
|
|
614
|
+
} else if (anomalyScore > 1.5) {
|
|
615
|
+
warnings.push('WARNING: Output drifting from baseline');
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
if (nearestSim < 0.5) {
|
|
619
|
+
warnings.push('WARNING: Output dissimilar to all known-good examples');
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
return {
|
|
623
|
+
isCoherent: anomalyScore < 1.5 && nearestSim > 0.5,
|
|
624
|
+
centroidDistance,
|
|
625
|
+
nearestNeighborSim: nearestSim,
|
|
626
|
+
anomalyScore,
|
|
627
|
+
warnings
|
|
628
|
+
};
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
// Detect gradual drift over time
|
|
632
|
+
async detectGradualDrift(
|
|
633
|
+
recentOutputs: string[],
|
|
634
|
+
windowSize = 10
|
|
635
|
+
): Promise<{
|
|
636
|
+
driftRate: number;
|
|
637
|
+
driftDirection: string;
|
|
638
|
+
isAlarming: boolean;
|
|
639
|
+
}> {
|
|
640
|
+
const recentEmbeddings = await this.embedder.embedBatch(recentOutputs);
|
|
641
|
+
|
|
642
|
+
// Calculate drift as average distance from centroid over time
|
|
643
|
+
const distances = recentEmbeddings.map(e =>
|
|
644
|
+
euclideanDistance(e, this.centroid!)
|
|
645
|
+
);
|
|
646
|
+
|
|
647
|
+
// Linear regression on distances
|
|
648
|
+
const n = distances.length;
|
|
649
|
+
const xMean = (n - 1) / 2;
|
|
650
|
+
const yMean = distances.reduce((a, b) => a + b, 0) / n;
|
|
651
|
+
|
|
652
|
+
let numerator = 0, denominator = 0;
|
|
653
|
+
for (let i = 0; i < n; i++) {
|
|
654
|
+
numerator += (i - xMean) * (distances[i] - yMean);
|
|
655
|
+
denominator += (i - xMean) ** 2;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
const driftRate = denominator !== 0 ? numerator / denominator : 0;
|
|
659
|
+
|
|
660
|
+
return {
|
|
661
|
+
driftRate,
|
|
662
|
+
driftDirection: driftRate > 0 ? 'away from baseline' : 'toward baseline',
|
|
663
|
+
isAlarming: driftRate > 0.1 // Rapid drift
|
|
664
|
+
};
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
```
|
|
668
|
+
|
|
669
|
+
**Detects:**
|
|
670
|
+
- Model degradation
|
|
671
|
+
- Dataset poisoning
|
|
672
|
+
- Agent misalignment
|
|
673
|
+
- System level incoherence
|
|
674
|
+
|
|
675
|
+
This works even when outputs still look "reasonable".
|
|
676
|
+
It is one of the few safety signals that scales across architectures.
|
|
677
|
+
|
|
678
|
+
---
|
|
679
|
+
|
|
680
|
+
## 8. Exotic: Embeddings as Synthetic Nervous System
|
|
681
|
+
|
|
682
|
+
At the extreme end, embeddings act like biological neural systems.
|
|
683
|
+
|
|
684
|
+
```typescript
|
|
685
|
+
// Synthetic nervous system
|
|
686
|
+
class SyntheticNervousSystem {
|
|
687
|
+
private embedder = getOptimizedEmbedder();
|
|
688
|
+
|
|
689
|
+
// Sensory encoding
|
|
690
|
+
private sensoryBuffer: Float32Array[] = [];
|
|
691
|
+
private attentionWeights: Float32Array | null = null;
|
|
692
|
+
|
|
693
|
+
// Reflex thresholds
|
|
694
|
+
private reflexes: Map<string, {
|
|
695
|
+
trigger: Float32Array;
|
|
696
|
+
threshold: number;
|
|
697
|
+
response: () => void;
|
|
698
|
+
}> = new Map();
|
|
699
|
+
|
|
700
|
+
// Associative memory
|
|
701
|
+
private associations: Map<string, Float32Array[]> = new Map();
|
|
702
|
+
|
|
703
|
+
async init() {
|
|
704
|
+
await this.embedder.init();
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
// Sensory encoding - continuous stream
|
|
708
|
+
async sense(input: string) {
|
|
709
|
+
const encoded = await this.embedder.embed(input);
|
|
710
|
+
|
|
711
|
+
// Maintain sliding window (sensory buffer)
|
|
712
|
+
this.sensoryBuffer.push(encoded);
|
|
713
|
+
if (this.sensoryBuffer.length > 10) {
|
|
714
|
+
this.sensoryBuffer.shift();
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
// Check reflexes
|
|
718
|
+
await this.checkReflexes(encoded);
|
|
719
|
+
|
|
720
|
+
// Update attention based on novelty
|
|
721
|
+
this.updateAttention(encoded);
|
|
722
|
+
|
|
723
|
+
return encoded;
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
// Reflex registration
|
|
727
|
+
async registerReflex(
|
|
728
|
+
name: string,
|
|
729
|
+
triggerConcept: string,
|
|
730
|
+
threshold: number,
|
|
731
|
+
response: () => void
|
|
732
|
+
) {
|
|
733
|
+
const triggerEmb = await this.embedder.embed(triggerConcept);
|
|
734
|
+
this.reflexes.set(name, { trigger: triggerEmb, threshold, response });
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
// Fast reflex checking (no reasoning)
|
|
738
|
+
private async checkReflexes(input: Float32Array) {
|
|
739
|
+
for (const [name, reflex] of this.reflexes) {
|
|
740
|
+
const activation = cosineSimilarity(input, reflex.trigger);
|
|
741
|
+
if (activation > reflex.threshold) {
|
|
742
|
+
// Immediate response - no deliberation
|
|
743
|
+
console.log(`Reflex triggered: ${name} (activation: ${activation.toFixed(3)})`);
|
|
744
|
+
reflex.response();
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
// Attention routing based on novelty
|
|
750
|
+
private updateAttention(input: Float32Array) {
|
|
751
|
+
if (this.sensoryBuffer.length < 2) {
|
|
752
|
+
this.attentionWeights = input;
|
|
753
|
+
return;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
// Calculate novelty (distance from recent average)
|
|
757
|
+
const recentAvg = new Float32Array(input.length).fill(0);
|
|
758
|
+
for (const past of this.sensoryBuffer.slice(0, -1)) {
|
|
759
|
+
for (let i = 0; i < input.length; i++) {
|
|
760
|
+
recentAvg[i] += past[i];
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
for (let i = 0; i < input.length; i++) {
|
|
764
|
+
recentAvg[i] /= (this.sensoryBuffer.length - 1);
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
const novelty = 1 - cosineSimilarity(input, recentAvg);
|
|
768
|
+
|
|
769
|
+
// High novelty = high attention
|
|
770
|
+
this.attentionWeights = new Float32Array(input.length);
|
|
771
|
+
for (let i = 0; i < input.length; i++) {
|
|
772
|
+
this.attentionWeights[i] = input[i] * (1 + novelty);
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
// Associative recall
|
|
777
|
+
async associate(concept: string, relatedConcepts: string[]) {
|
|
778
|
+
const conceptEmb = await this.embedder.embed(concept);
|
|
779
|
+
const relatedEmbs = await this.embedder.embedBatch(relatedConcepts);
|
|
780
|
+
this.associations.set(concept, relatedEmbs);
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
async recall(cue: string, topK = 3): Promise<Float32Array[]> {
|
|
784
|
+
const cueEmb = await this.embedder.embed(cue);
|
|
785
|
+
|
|
786
|
+
// Spread activation through associations
|
|
787
|
+
const activated: Array<{ emb: Float32Array; strength: number }> = [];
|
|
788
|
+
|
|
789
|
+
for (const [concept, related] of this.associations) {
|
|
790
|
+
const conceptEmb = await this.embedder.embed(concept);
|
|
791
|
+
const similarity = cosineSimilarity(cueEmb, conceptEmb);
|
|
792
|
+
|
|
793
|
+
if (similarity > 0.5) {
|
|
794
|
+
for (const relEmb of related) {
|
|
795
|
+
activated.push({
|
|
796
|
+
emb: relEmb,
|
|
797
|
+
strength: similarity * cosineSimilarity(cueEmb, relEmb)
|
|
798
|
+
});
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
// Return top activated
|
|
804
|
+
return activated
|
|
805
|
+
.sort((a, b) => b.strength - a.strength)
|
|
806
|
+
.slice(0, topK)
|
|
807
|
+
.map(a => a.emb);
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
// Continuous regulation loop
|
|
811
|
+
async regulate(
|
|
812
|
+
perception: string,
|
|
813
|
+
internalState: Float32Array
|
|
814
|
+
): Promise<Float32Array> {
|
|
815
|
+
const percEmb = await this.embedder.embed(perception);
|
|
816
|
+
|
|
817
|
+
// Blend perception with internal state (homeostasis)
|
|
818
|
+
const regulated = new Float32Array(percEmb.length);
|
|
819
|
+
const externalWeight = 0.6;
|
|
820
|
+
const internalWeight = 0.4;
|
|
821
|
+
|
|
822
|
+
for (let i = 0; i < regulated.length; i++) {
|
|
823
|
+
regulated[i] =
|
|
824
|
+
externalWeight * percEmb[i] +
|
|
825
|
+
internalWeight * internalState[i];
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
// Apply attention gating
|
|
829
|
+
if (this.attentionWeights) {
|
|
830
|
+
for (let i = 0; i < regulated.length; i++) {
|
|
831
|
+
regulated[i] *= this.attentionWeights[i];
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
// Normalize
|
|
836
|
+
const norm = Math.sqrt(regulated.reduce((s, v) => s + v * v, 0));
|
|
837
|
+
for (let i = 0; i < regulated.length; i++) {
|
|
838
|
+
regulated[i] /= norm;
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
return regulated;
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
// Usage
|
|
846
|
+
const nervous = new SyntheticNervousSystem();
|
|
847
|
+
await nervous.init();
|
|
848
|
+
|
|
849
|
+
// Register reflexes
|
|
850
|
+
await nervous.registerReflex(
|
|
851
|
+
'danger',
|
|
852
|
+
'threat danger emergency attack harm',
|
|
853
|
+
0.7,
|
|
854
|
+
() => console.log('DANGER RESPONSE: Immediate protective action')
|
|
855
|
+
);
|
|
856
|
+
|
|
857
|
+
await nervous.registerReflex(
|
|
858
|
+
'opportunity',
|
|
859
|
+
'opportunity benefit reward gain success',
|
|
860
|
+
0.8,
|
|
861
|
+
() => console.log('OPPORTUNITY RESPONSE: Engage approach behavior')
|
|
862
|
+
);
|
|
863
|
+
|
|
864
|
+
// Continuous sensing
|
|
865
|
+
await nervous.sense("The user seems happy with the progress");
|
|
866
|
+
await nervous.sense("Warning: unusual activity detected"); // Triggers reflex
|
|
867
|
+
```
|
|
868
|
+
|
|
869
|
+
**Capabilities:**
|
|
870
|
+
- Sensory encoding
|
|
871
|
+
- Reflex thresholds
|
|
872
|
+
- Associative recall
|
|
873
|
+
- Attention routing
|
|
874
|
+
- Continuous geometric regulation
|
|
875
|
+
|
|
876
|
+
No explicit reasoning. No prompts. Just continuous geometric regulation.
|
|
877
|
+
|
|
878
|
+
This is where machines stop feeling like tools and start feeling **responsive**.
|
|
879
|
+
|
|
880
|
+
---
|
|
881
|
+
|
|
882
|
+
## Integration with Agentic-Flow
|
|
883
|
+
|
|
884
|
+
These patterns integrate naturally with agentic-flow's existing architecture:
|
|
885
|
+
|
|
886
|
+
```typescript
|
|
887
|
+
import { getOptimizedEmbedder } from 'agentic-flow/embeddings';
|
|
888
|
+
import { ReasoningBank } from 'agentic-flow/reasoningbank';
|
|
889
|
+
|
|
890
|
+
// Memory Physics + ReasoningBank
|
|
891
|
+
const bank = new ReasoningBank();
|
|
892
|
+
const embedder = getOptimizedEmbedder();
|
|
893
|
+
|
|
894
|
+
// Store experiences with geometric memory properties
|
|
895
|
+
async function storeExperience(task: string, outcome: string, success: boolean) {
|
|
896
|
+
const taskEmb = await embedder.embed(task);
|
|
897
|
+
const outcomeEmb = await embedder.embed(outcome);
|
|
898
|
+
|
|
899
|
+
// ReasoningBank stores with embedding metadata
|
|
900
|
+
await bank.recordOutcome({
|
|
901
|
+
task,
|
|
902
|
+
outcome,
|
|
903
|
+
success,
|
|
904
|
+
embedding: Array.from(taskEmb), // Geometric signature
|
|
905
|
+
similarity_threshold: 0.8 // For future retrieval
|
|
906
|
+
});
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
// Swarm Coordination via Embeddings
|
|
910
|
+
import { SwarmCoordinator } from 'agentic-flow/swarm';
|
|
911
|
+
|
|
912
|
+
const swarm = new SwarmCoordinator({
|
|
913
|
+
topology: 'mesh',
|
|
914
|
+
coordinationMethod: 'embedding', // New: geometric coordination
|
|
915
|
+
embedder: getOptimizedEmbedder()
|
|
916
|
+
});
|
|
917
|
+
|
|
918
|
+
// Agents coordinate via position sharing, not messages
|
|
919
|
+
await swarm.init();
|
|
920
|
+
```
|
|
921
|
+
|
|
922
|
+
---
|
|
923
|
+
|
|
924
|
+
## The Future
|
|
925
|
+
|
|
926
|
+
> Intelligence moves from models to geometry.
|
|
927
|
+
|
|
928
|
+
The embedding manifold becomes:
|
|
929
|
+
- The communication channel
|
|
930
|
+
- The memory substrate
|
|
931
|
+
- The coordination primitive
|
|
932
|
+
- The safety monitor
|
|
933
|
+
- The nervous system
|
|
934
|
+
|
|
935
|
+
We're building the infrastructure for this shift.
|