agentic-flow 1.9.0 → 1.9.2
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/analysis/code-analyzer.md +1 -1
- package/.claude/agents/core/coder.md +2 -57
- package/.claude/agents/core/planner.md +1 -53
- package/.claude/agents/core/researcher.md +6 -60
- package/.claude/agents/core/reviewer.md +1 -55
- package/.claude/agents/core/tester.md +1 -54
- package/.claude/agents/goal/goal-planner.md +25 -120
- package/.claude/agents/swarm/hierarchical-coordinator.md +4 -75
- package/.claude/agents/templates/coordinator-swarm-init.md +4 -19
- package/.claude/commands/hooks/overview.md +10 -84
- package/.claude/settings.json +20 -21
- package/.claude/settings.local.json +7 -3
- package/CHANGELOG.md +976 -83
- package/README.md +1 -15
- package/dist/agentdb/tests/frontier-features.test.js +665 -0
- package/{agentic-flow/dist → dist}/cli/config-wizard.js +13 -4
- package/dist/cli/federation-cli.d.ts +53 -0
- package/{agentic-flow/dist → dist}/cli-proxy.js +22 -15
- package/dist/hooks/parallel-validation.js +166 -0
- package/dist/hooks/swarm-learning-optimizer.js +350 -0
- package/{agentic-flow/dist → dist}/proxy/provider-instructions.js +98 -0
- package/dist/reasoningbank/config/reasoningbank-types.ts +57 -0
- package/{agentic-flow/dist → dist}/utils/cli.js +29 -0
- package/docs/.claude-flow/metrics/performance.json +3 -3
- package/docs/.claude-flow/metrics/task-metrics.json +3 -3
- package/docs/guides/MCP-TOOLS.md +850 -1050
- package/package.json +169 -44
- package/validation/docker/Dockerfile.reasoningbank-local +24 -0
- package/validation/docker/Dockerfile.reasoningbank-test +21 -0
- package/validation/docker/README.md +234 -0
- package/validation/docker/docker-compose.yml +29 -0
- package/validation/docker/test-reasoningbank-npx.mjs +442 -0
- package/validation/docker-e2e-validation.sh +212 -0
- package/validation/docker-quic-test.sh +42 -0
- package/validation/docker-quic-validation.sh +60 -0
- package/validation/quic-deep-validation.ts +304 -0
- package/validation/test-quic-integration.ts +243 -0
- package/validation/test-quic-wasm.ts +94 -0
- package/validation/test-regression.mjs +246 -0
- package/validation/test-wasm-e2e.ts +354 -0
- package/validation/test-wasm-integration.ts +99 -0
- package/wasm/quic/agentic_flow_quic.d.ts +37 -0
- package/wasm/quic/agentic_flow_quic_bg.wasm.d.ts +19 -0
- package/wasm/reasoningbank/reasoningbank_wasm.d.ts +41 -0
- package/wasm/reasoningbank/reasoningbank_wasm_bg.wasm.d.ts +20 -0
- package/.claude/agents/goal/code-goal-planner.md +0 -446
- package/.claude/agents/hive-mind/collective-intelligence-coordinator.md +0 -130
- package/.claude/agents/hive-mind/queen-coordinator.md +0 -203
- package/.claude/agents/hive-mind/scout-explorer.md +0 -242
- package/.claude/agents/hive-mind/swarm-memory-manager.md +0 -193
- package/.claude/agents/hive-mind/worker-specialist.md +0 -217
- package/.claude/agents/neural/safla-neural.md +0 -74
- package/.claude/agents/reasoning/README.md +0 -452
- package/.claude/agents/reasoning/adaptive-learner.md +0 -415
- package/.claude/agents/reasoning/context-synthesizer.md +0 -532
- package/.claude/agents/reasoning/experience-curator.md +0 -562
- package/.claude/agents/reasoning/goal-planner.md +0 -73
- package/.claude/agents/reasoning/memory-optimizer.md +0 -579
- package/.claude/agents/reasoning/pattern-matcher.md +0 -591
- package/.claude/agents/reasoning/reasoning-optimized.md +0 -587
- package/.claude/commands/coordination/README.md +0 -9
- package/.claude/commands/coordination/agent-spawn.md +0 -25
- package/.claude/commands/coordination/init.md +0 -44
- package/.claude/commands/coordination/orchestrate.md +0 -43
- package/.claude/commands/coordination/spawn.md +0 -45
- package/.claude/commands/coordination/swarm-init.md +0 -85
- package/.claude/commands/coordination/task-orchestrate.md +0 -25
- package/.claude/commands/memory/README.md +0 -9
- package/.claude/commands/memory/memory-persist.md +0 -25
- package/.claude/commands/memory/memory-search.md +0 -25
- package/.claude/commands/memory/memory-usage.md +0 -25
- package/.claude/commands/memory/neural.md +0 -47
- package/.claude/commands/memory/usage.md +0 -46
- package/.claude/skills/agentdb-advanced/SKILL.md +0 -550
- package/.claude/skills/agentdb-learning/SKILL.md +0 -545
- package/.claude/skills/agentdb-memory-patterns/SKILL.md +0 -339
- package/.claude/skills/agentdb-optimization/SKILL.md +0 -509
- package/.claude/skills/agentdb-vector-search/SKILL.md +0 -339
- package/.claude/skills/flow-nexus-neural/SKILL.md +0 -738
- package/.claude/skills/flow-nexus-platform/SKILL.md +0 -1157
- package/.claude/skills/flow-nexus-swarm/SKILL.md +0 -610
- package/.claude/skills/github-code-review/SKILL.md +0 -1140
- package/.claude/skills/github-multi-repo/SKILL.md +0 -874
- package/.claude/skills/github-project-management/SKILL.md +0 -1277
- package/.claude/skills/github-release-management/SKILL.md +0 -1081
- package/.claude/skills/github-workflow-automation/SKILL.md +0 -1065
- package/.claude/skills/hive-mind-advanced/SKILL.md +0 -712
- package/.claude/skills/hooks-automation/SKILL.md +0 -1201
- package/.claude/skills/pair-programming/SKILL.md +0 -1202
- package/.claude/skills/performance-analysis/SKILL.md +0 -563
- package/.claude/skills/reasoningbank-agentdb/SKILL.md +0 -446
- package/.claude/skills/reasoningbank-intelligence/SKILL.md +0 -201
- package/.claude/skills/skill-builder/SKILL.md +0 -910
- package/.claude/skills/sparc-methodology/SKILL.md +0 -1115
- package/.claude/skills/stream-chain/SKILL.md +0 -563
- package/.claude/skills/swarm-advanced/SKILL.md +0 -973
- package/.claude/skills/swarm-orchestration/SKILL.md +0 -179
- package/.claude/skills/verification-quality/SKILL.md +0 -649
- package/.claude/statusline-command.sh +0 -176
- package/.claude-flow/metrics/performance.json +0 -87
- package/.claude-flow/metrics/system-metrics.json +0 -2138
- package/.claude-flow/metrics/task-metrics.json +0 -10
- package/.hive-mind/README.md +0 -43
- package/.hive-mind/config/queens.json +0 -59
- package/.hive-mind/config/workers.json +0 -72
- package/.hive-mind/config.json +0 -111
- package/.hive-mind/hive.db +0 -0
- package/.mcp.json +0 -39
- package/.swarm/memory.db +0 -0
- package/.swarm/memory.db-shm +0 -0
- package/.swarm/memory.db-wal +0 -0
- package/CLAUDE.md +0 -354
- package/agentdb.db +0 -0
- package/agentic-flow/.agentdb-instructions.md +0 -66
- package/agentic-flow/.claude/agents/analysis/code-analyzer.md +0 -209
- package/agentic-flow/.claude/agents/analysis/code-review/analyze-code-quality.md +0 -180
- package/agentic-flow/.claude/agents/architecture/system-design/arch-system-design.md +0 -156
- package/agentic-flow/.claude/agents/base-template-generator.md +0 -42
- package/agentic-flow/.claude/agents/consensus/byzantine-coordinator.md +0 -63
- package/agentic-flow/.claude/agents/consensus/crdt-synchronizer.md +0 -997
- package/agentic-flow/.claude/agents/consensus/gossip-coordinator.md +0 -63
- package/agentic-flow/.claude/agents/consensus/performance-benchmarker.md +0 -851
- package/agentic-flow/.claude/agents/consensus/quorum-manager.md +0 -823
- package/agentic-flow/.claude/agents/consensus/raft-manager.md +0 -63
- package/agentic-flow/.claude/agents/consensus/security-manager.md +0 -622
- package/agentic-flow/.claude/agents/core/coder.md +0 -211
- package/agentic-flow/.claude/agents/core/planner.md +0 -116
- package/agentic-flow/.claude/agents/core/researcher.md +0 -136
- package/agentic-flow/.claude/agents/core/reviewer.md +0 -272
- package/agentic-flow/.claude/agents/core/tester.md +0 -266
- package/agentic-flow/.claude/agents/data/ml/data-ml-model.md +0 -193
- package/agentic-flow/.claude/agents/development/backend/dev-backend-api.md +0 -142
- package/agentic-flow/.claude/agents/devops/ci-cd/ops-cicd-github.md +0 -164
- package/agentic-flow/.claude/agents/documentation/api-docs/docs-api-openapi.md +0 -174
- package/agentic-flow/.claude/agents/flow-nexus/app-store.md +0 -88
- package/agentic-flow/.claude/agents/flow-nexus/authentication.md +0 -69
- package/agentic-flow/.claude/agents/flow-nexus/challenges.md +0 -81
- package/agentic-flow/.claude/agents/flow-nexus/neural-network.md +0 -88
- package/agentic-flow/.claude/agents/flow-nexus/payments.md +0 -83
- package/agentic-flow/.claude/agents/flow-nexus/sandbox.md +0 -76
- package/agentic-flow/.claude/agents/flow-nexus/swarm.md +0 -76
- package/agentic-flow/.claude/agents/flow-nexus/user-tools.md +0 -96
- package/agentic-flow/.claude/agents/flow-nexus/workflow.md +0 -84
- package/agentic-flow/.claude/agents/github/code-review-swarm.md +0 -538
- package/agentic-flow/.claude/agents/github/github-modes.md +0 -173
- package/agentic-flow/.claude/agents/github/issue-tracker.md +0 -319
- package/agentic-flow/.claude/agents/github/multi-repo-swarm.md +0 -553
- package/agentic-flow/.claude/agents/github/pr-manager.md +0 -191
- package/agentic-flow/.claude/agents/github/project-board-sync.md +0 -509
- package/agentic-flow/.claude/agents/github/release-manager.md +0 -367
- package/agentic-flow/.claude/agents/github/release-swarm.md +0 -583
- package/agentic-flow/.claude/agents/github/repo-architect.md +0 -398
- package/agentic-flow/.claude/agents/github/swarm-issue.md +0 -573
- package/agentic-flow/.claude/agents/github/swarm-pr.md +0 -428
- package/agentic-flow/.claude/agents/github/sync-coordinator.md +0 -452
- package/agentic-flow/.claude/agents/github/workflow-automation.md +0 -635
- package/agentic-flow/.claude/agents/goal/agent.md +0 -816
- package/agentic-flow/.claude/agents/goal/goal-planner.md +0 -73
- package/agentic-flow/.claude/agents/optimization/benchmark-suite.md +0 -665
- package/agentic-flow/.claude/agents/optimization/load-balancer.md +0 -431
- package/agentic-flow/.claude/agents/optimization/performance-monitor.md +0 -672
- package/agentic-flow/.claude/agents/optimization/resource-allocator.md +0 -674
- package/agentic-flow/.claude/agents/optimization/topology-optimizer.md +0 -808
- package/agentic-flow/.claude/agents/sparc/architecture.md +0 -472
- package/agentic-flow/.claude/agents/sparc/pseudocode.md +0 -318
- package/agentic-flow/.claude/agents/sparc/refinement.md +0 -525
- package/agentic-flow/.claude/agents/sparc/specification.md +0 -276
- package/agentic-flow/.claude/agents/specialized/mobile/spec-mobile-react-native.md +0 -226
- package/agentic-flow/.claude/agents/swarm/adaptive-coordinator.md +0 -396
- package/agentic-flow/.claude/agents/swarm/hierarchical-coordinator.md +0 -256
- package/agentic-flow/.claude/agents/swarm/mesh-coordinator.md +0 -392
- package/agentic-flow/.claude/agents/templates/automation-smart-agent.md +0 -205
- package/agentic-flow/.claude/agents/templates/coordinator-swarm-init.md +0 -90
- package/agentic-flow/.claude/agents/templates/github-pr-manager.md +0 -177
- package/agentic-flow/.claude/agents/templates/implementer-sparc-coder.md +0 -259
- package/agentic-flow/.claude/agents/templates/memory-coordinator.md +0 -187
- package/agentic-flow/.claude/agents/templates/migration-plan.md +0 -746
- package/agentic-flow/.claude/agents/templates/orchestrator-task.md +0 -139
- package/agentic-flow/.claude/agents/templates/performance-analyzer.md +0 -199
- package/agentic-flow/.claude/agents/templates/sparc-coordinator.md +0 -183
- package/agentic-flow/.claude/agents/testing/unit/tdd-london-swarm.md +0 -244
- package/agentic-flow/.claude/agents/testing/validation/production-validator.md +0 -395
- package/agentic-flow/.claude/commands/agents/README.md +0 -10
- package/agentic-flow/.claude/commands/agents/agent-capabilities.md +0 -21
- package/agentic-flow/.claude/commands/agents/agent-coordination.md +0 -28
- package/agentic-flow/.claude/commands/agents/agent-spawning.md +0 -28
- package/agentic-flow/.claude/commands/agents/agent-types.md +0 -26
- package/agentic-flow/.claude/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +0 -54
- package/agentic-flow/.claude/commands/analysis/README.md +0 -9
- package/agentic-flow/.claude/commands/analysis/bottleneck-detect.md +0 -162
- package/agentic-flow/.claude/commands/analysis/performance-bottlenecks.md +0 -59
- package/agentic-flow/.claude/commands/analysis/performance-report.md +0 -25
- package/agentic-flow/.claude/commands/analysis/token-efficiency.md +0 -45
- package/agentic-flow/.claude/commands/analysis/token-usage.md +0 -25
- package/agentic-flow/.claude/commands/automation/README.md +0 -9
- package/agentic-flow/.claude/commands/automation/auto-agent.md +0 -122
- package/agentic-flow/.claude/commands/automation/self-healing.md +0 -106
- package/agentic-flow/.claude/commands/automation/session-memory.md +0 -90
- package/agentic-flow/.claude/commands/automation/smart-agents.md +0 -73
- package/agentic-flow/.claude/commands/automation/smart-spawn.md +0 -25
- package/agentic-flow/.claude/commands/automation/workflow-select.md +0 -25
- package/agentic-flow/.claude/commands/flow-nexus/app-store.md +0 -124
- package/agentic-flow/.claude/commands/flow-nexus/challenges.md +0 -120
- package/agentic-flow/.claude/commands/flow-nexus/login-registration.md +0 -65
- package/agentic-flow/.claude/commands/flow-nexus/neural-network.md +0 -134
- package/agentic-flow/.claude/commands/flow-nexus/payments.md +0 -116
- package/agentic-flow/.claude/commands/flow-nexus/sandbox.md +0 -83
- package/agentic-flow/.claude/commands/flow-nexus/swarm.md +0 -87
- package/agentic-flow/.claude/commands/flow-nexus/user-tools.md +0 -152
- package/agentic-flow/.claude/commands/flow-nexus/workflow.md +0 -115
- package/agentic-flow/.claude/commands/github/README.md +0 -11
- package/agentic-flow/.claude/commands/github/code-review-swarm.md +0 -514
- package/agentic-flow/.claude/commands/github/code-review.md +0 -25
- package/agentic-flow/.claude/commands/github/github-modes.md +0 -147
- package/agentic-flow/.claude/commands/github/github-swarm.md +0 -121
- package/agentic-flow/.claude/commands/github/issue-tracker.md +0 -292
- package/agentic-flow/.claude/commands/github/issue-triage.md +0 -25
- package/agentic-flow/.claude/commands/github/multi-repo-swarm.md +0 -519
- package/agentic-flow/.claude/commands/github/pr-enhance.md +0 -26
- package/agentic-flow/.claude/commands/github/pr-manager.md +0 -170
- package/agentic-flow/.claude/commands/github/project-board-sync.md +0 -471
- package/agentic-flow/.claude/commands/github/release-manager.md +0 -338
- package/agentic-flow/.claude/commands/github/release-swarm.md +0 -544
- package/agentic-flow/.claude/commands/github/repo-analyze.md +0 -25
- package/agentic-flow/.claude/commands/github/repo-architect.md +0 -367
- package/agentic-flow/.claude/commands/github/swarm-issue.md +0 -482
- package/agentic-flow/.claude/commands/github/swarm-pr.md +0 -285
- package/agentic-flow/.claude/commands/github/sync-coordinator.md +0 -301
- package/agentic-flow/.claude/commands/github/workflow-automation.md +0 -442
- package/agentic-flow/.claude/commands/hive-mind/README.md +0 -17
- package/agentic-flow/.claude/commands/hive-mind/hive-mind-consensus.md +0 -8
- package/agentic-flow/.claude/commands/hive-mind/hive-mind-init.md +0 -18
- package/agentic-flow/.claude/commands/hive-mind/hive-mind-memory.md +0 -8
- package/agentic-flow/.claude/commands/hive-mind/hive-mind-metrics.md +0 -8
- package/agentic-flow/.claude/commands/hive-mind/hive-mind-resume.md +0 -8
- package/agentic-flow/.claude/commands/hive-mind/hive-mind-sessions.md +0 -8
- package/agentic-flow/.claude/commands/hive-mind/hive-mind-spawn.md +0 -21
- package/agentic-flow/.claude/commands/hive-mind/hive-mind-status.md +0 -8
- package/agentic-flow/.claude/commands/hive-mind/hive-mind-stop.md +0 -8
- package/agentic-flow/.claude/commands/hive-mind/hive-mind-wizard.md +0 -8
- package/agentic-flow/.claude/commands/hive-mind/hive-mind.md +0 -27
- package/agentic-flow/.claude/commands/hooks/README.md +0 -11
- package/agentic-flow/.claude/commands/hooks/overview.md +0 -58
- package/agentic-flow/.claude/commands/hooks/post-edit.md +0 -117
- package/agentic-flow/.claude/commands/hooks/post-task.md +0 -112
- package/agentic-flow/.claude/commands/hooks/pre-edit.md +0 -113
- package/agentic-flow/.claude/commands/hooks/pre-task.md +0 -111
- package/agentic-flow/.claude/commands/hooks/session-end.md +0 -118
- package/agentic-flow/.claude/commands/hooks/setup.md +0 -103
- package/agentic-flow/.claude/commands/monitoring/README.md +0 -9
- package/agentic-flow/.claude/commands/monitoring/agent-metrics.md +0 -25
- package/agentic-flow/.claude/commands/monitoring/agents.md +0 -44
- package/agentic-flow/.claude/commands/monitoring/real-time-view.md +0 -25
- package/agentic-flow/.claude/commands/monitoring/status.md +0 -46
- package/agentic-flow/.claude/commands/monitoring/swarm-monitor.md +0 -25
- package/agentic-flow/.claude/commands/optimization/README.md +0 -9
- package/agentic-flow/.claude/commands/optimization/auto-topology.md +0 -62
- package/agentic-flow/.claude/commands/optimization/cache-manage.md +0 -25
- package/agentic-flow/.claude/commands/optimization/parallel-execute.md +0 -25
- package/agentic-flow/.claude/commands/optimization/parallel-execution.md +0 -50
- package/agentic-flow/.claude/commands/optimization/topology-optimize.md +0 -25
- package/agentic-flow/.claude/commands/pair/commands.md +0 -546
- package/agentic-flow/.claude/commands/pair/config.md +0 -510
- package/agentic-flow/.claude/commands/pair/examples.md +0 -512
- package/agentic-flow/.claude/commands/pair/modes.md +0 -348
- package/agentic-flow/.claude/commands/pair/session.md +0 -407
- package/agentic-flow/.claude/commands/pair/start.md +0 -209
- package/agentic-flow/.claude/commands/sparc/analyzer.md +0 -52
- package/agentic-flow/.claude/commands/sparc/architect.md +0 -53
- package/agentic-flow/.claude/commands/sparc/batch-executor.md +0 -54
- package/agentic-flow/.claude/commands/sparc/coder.md +0 -54
- package/agentic-flow/.claude/commands/sparc/debugger.md +0 -54
- package/agentic-flow/.claude/commands/sparc/designer.md +0 -53
- package/agentic-flow/.claude/commands/sparc/documenter.md +0 -54
- package/agentic-flow/.claude/commands/sparc/innovator.md +0 -54
- package/agentic-flow/.claude/commands/sparc/memory-manager.md +0 -54
- package/agentic-flow/.claude/commands/sparc/optimizer.md +0 -54
- package/agentic-flow/.claude/commands/sparc/orchestrator.md +0 -132
- package/agentic-flow/.claude/commands/sparc/researcher.md +0 -54
- package/agentic-flow/.claude/commands/sparc/reviewer.md +0 -54
- package/agentic-flow/.claude/commands/sparc/sparc-modes.md +0 -174
- package/agentic-flow/.claude/commands/sparc/swarm-coordinator.md +0 -54
- package/agentic-flow/.claude/commands/sparc/tdd.md +0 -54
- package/agentic-flow/.claude/commands/sparc/tester.md +0 -54
- package/agentic-flow/.claude/commands/sparc/workflow-manager.md +0 -54
- package/agentic-flow/.claude/commands/stream-chain/pipeline.md +0 -121
- package/agentic-flow/.claude/commands/stream-chain/run.md +0 -70
- package/agentic-flow/.claude/commands/swarm/README.md +0 -15
- package/agentic-flow/.claude/commands/swarm/analysis.md +0 -95
- package/agentic-flow/.claude/commands/swarm/development.md +0 -96
- package/agentic-flow/.claude/commands/swarm/examples.md +0 -168
- package/agentic-flow/.claude/commands/swarm/maintenance.md +0 -102
- package/agentic-flow/.claude/commands/swarm/optimization.md +0 -117
- package/agentic-flow/.claude/commands/swarm/research.md +0 -136
- package/agentic-flow/.claude/commands/swarm/swarm-analysis.md +0 -8
- package/agentic-flow/.claude/commands/swarm/swarm-background.md +0 -8
- package/agentic-flow/.claude/commands/swarm/swarm-init.md +0 -19
- package/agentic-flow/.claude/commands/swarm/swarm-modes.md +0 -8
- package/agentic-flow/.claude/commands/swarm/swarm-monitor.md +0 -8
- package/agentic-flow/.claude/commands/swarm/swarm-spawn.md +0 -19
- package/agentic-flow/.claude/commands/swarm/swarm-status.md +0 -8
- package/agentic-flow/.claude/commands/swarm/swarm-strategies.md +0 -8
- package/agentic-flow/.claude/commands/swarm/swarm.md +0 -27
- package/agentic-flow/.claude/commands/swarm/testing.md +0 -131
- package/agentic-flow/.claude/commands/training/README.md +0 -9
- package/agentic-flow/.claude/commands/training/model-update.md +0 -25
- package/agentic-flow/.claude/commands/training/neural-patterns.md +0 -74
- package/agentic-flow/.claude/commands/training/neural-train.md +0 -25
- package/agentic-flow/.claude/commands/training/pattern-learn.md +0 -25
- package/agentic-flow/.claude/commands/training/specialization.md +0 -63
- package/agentic-flow/.claude/commands/truth/start.md +0 -143
- package/agentic-flow/.claude/commands/verify/check.md +0 -50
- package/agentic-flow/.claude/commands/verify/start.md +0 -128
- package/agentic-flow/.claude/commands/workflows/README.md +0 -9
- package/agentic-flow/.claude/commands/workflows/development.md +0 -78
- package/agentic-flow/.claude/commands/workflows/research.md +0 -63
- package/agentic-flow/.claude/commands/workflows/workflow-create.md +0 -25
- package/agentic-flow/.claude/commands/workflows/workflow-execute.md +0 -25
- package/agentic-flow/.claude/commands/workflows/workflow-export.md +0 -25
- package/agentic-flow/.claude/helpers/checkpoint-manager.sh +0 -251
- package/agentic-flow/.claude/helpers/github-safe.js +0 -106
- package/agentic-flow/.claude/helpers/github-setup.sh +0 -28
- package/agentic-flow/.claude/helpers/quick-start.sh +0 -19
- package/agentic-flow/.claude/helpers/setup-mcp.sh +0 -18
- package/agentic-flow/.claude/helpers/standard-checkpoint-hooks.sh +0 -179
- package/agentic-flow/.claude/settings.json +0 -114
- package/agentic-flow/.claude/settings.local.json +0 -14
- package/agentic-flow/.claude/skills/skill-builder/.claude-flow/metrics/agent-metrics.json +0 -1
- package/agentic-flow/AGENT-BOOSTER-STATUS.md +0 -292
- package/agentic-flow/CHANGELOG-v1.3.0.md +0 -120
- package/agentic-flow/CHANGELOG.md +0 -1023
- package/agentic-flow/COMPLETION_REPORT_v1.7.1.md +0 -335
- package/agentic-flow/DOCKER-VERIFICATION.md +0 -207
- package/agentic-flow/IMPLEMENTATION_SUMMARY_v1.7.1.md +0 -241
- package/agentic-flow/NPX_AGENTDB_SETUP.md +0 -175
- package/agentic-flow/PUBLISH_GUIDE.md +0 -438
- package/agentic-flow/PUBLISH_SUMMARY_v1.7.1.md +0 -198
- package/agentic-flow/Python/AddTwoNumbers.py +0 -2
- package/agentic-flow/README.md +0 -577
- package/agentic-flow/RELEASE_NOTES_v1.7.0.md +0 -297
- package/agentic-flow/RELEASE_v1.7.1.md +0 -327
- package/agentic-flow/SUPABASE-INTEGRATION-COMPLETE.md +0 -357
- package/agentic-flow/TESTING_QUICK_START.md +0 -223
- package/agentic-flow/TOOL-EMULATION-INTEGRATION-ISSUE.md +0 -669
- package/agentic-flow/VALIDATION_v1.7.1.md +0 -234
- package/agentic-flow/add_two_numbers.py +0 -2
- package/agentic-flow/agentdb.db +0 -0
- package/agentic-flow/agentic-flow/.claude-flow/metrics/agent-metrics.json +0 -1
- package/agentic-flow/agentic-flow/.claude-flow/metrics/performance.json +0 -87
- package/agentic-flow/agentic-flow/.claude-flow/metrics/task-metrics.json +0 -10
- package/agentic-flow/app/app.py +0 -0
- package/agentic-flow/config/.mcp.json +0 -22
- package/agentic-flow/config/router.config.example.json +0 -224
- package/agentic-flow/config/router.config.json +0 -224
- package/agentic-flow/deployment/.claude-settings.json +0 -14
- package/agentic-flow/docker/claude-agent-sdk/docker/claude-agent-sdk/FASTMCP_SUMMARY.md +0 -369
- package/agentic-flow/docker/claude-agent-sdk/docker/claude-agent-sdk/docs/ARCHITECTURE.md +0 -385
- package/agentic-flow/docker/claude-agent-sdk/docker/claude-agent-sdk/docs/fastmcp-implementation.md +0 -351
- package/agentic-flow/docker/claude-agent-sdk/docker/claude-agent-sdk/docs/fastmcp-quick-start.md +0 -358
- package/agentic-flow/docker/claude-agent-sdk/docker/claude-agent-sdk/src/mcp/fastmcp/README.md +0 -340
- package/agentic-flow/docker/fastmcp-test.Dockerfile +0 -24
- package/agentic-flow/docker/federation-test/.claude-flow/metrics/agent-metrics.json +0 -1
- package/agentic-flow/docker/federation-test/.claude-flow/metrics/performance.json +0 -87
- package/agentic-flow/docker/federation-test/.claude-flow/metrics/task-metrics.json +0 -10
- package/agentic-flow/docker/federation-test/README.md +0 -314
- package/agentic-flow/docker/federation-test/run-test.sh +0 -65
- package/agentic-flow/docker/federation-test/standalone-agent.js +0 -180
- package/agentic-flow/docker/federation-test/standalone-hub.js +0 -85
- package/agentic-flow/docker/federation-test/test-published-hub.js +0 -66
- package/agentic-flow/docker/test-instance/.claude-flow/metrics/agent-metrics.json +0 -1
- package/agentic-flow/docker/test-instance/.claude-flow/metrics/performance.json +0 -87
- package/agentic-flow/docker/test-instance/.claude-flow/metrics/task-metrics.json +0 -10
- package/agentic-flow/docker/test-instance/.env.example +0 -51
- package/agentic-flow/docker/test-instance/COMPREHENSIVE_TEST_RESULTS.md +0 -766
- package/agentic-flow/docker/test-instance/DOCKER_VALIDATION_SUMMARY.md +0 -417
- package/agentic-flow/docker/test-instance/FIX_VALIDATION_REPORT.md +0 -619
- package/agentic-flow/docker/test-instance/INDEX.md +0 -282
- package/agentic-flow/docker/test-instance/QUICK_START.md +0 -217
- package/agentic-flow/docker/test-instance/README.md +0 -266
- package/agentic-flow/docker/test-instance/VALIDATION_REPORT.md +0 -424
- package/agentic-flow/docker/test-instance/test-model-config.md +0 -69
- package/agentic-flow/docker/test-instance/test-runner.sh +0 -91
- package/agentic-flow/docker/test-v1.1.10.dockerfile +0 -12
- package/agentic-flow/docker/test-validation.sh +0 -37
- package/agentic-flow/docker-test.sh +0 -77
- package/agentic-flow/docs/.claude-flow/metrics/agent-metrics.json +0 -1
- package/agentic-flow/docs/.claude-flow/metrics/performance.json +0 -87
- package/agentic-flow/docs/.claude-flow/metrics/task-metrics.json +0 -10
- package/agentic-flow/docs/CLAUDE.md +0 -352
- package/agentic-flow/docs/INDEX.md +0 -279
- package/agentic-flow/docs/LICENSE +0 -21
- package/agentic-flow/docs/architecture/EXECUTIVE_SUMMARY.md +0 -310
- package/agentic-flow/docs/architecture/IMPROVEMENT_PLAN.md +0 -11
- package/agentic-flow/docs/architecture/INTEGRATION-STATUS.md +0 -290
- package/agentic-flow/docs/architecture/MULTI_MODEL_ROUTER_PLAN.md +0 -620
- package/agentic-flow/docs/architecture/PACKAGE_STRUCTURE.md +0 -199
- package/agentic-flow/docs/architecture/QUIC-IMPLEMENTATION-SUMMARY.md +0 -490
- package/agentic-flow/docs/architecture/QUIC-SWARM-INTEGRATION.md +0 -593
- package/agentic-flow/docs/architecture/QUICK_WINS.md +0 -333
- package/agentic-flow/docs/architecture/README.md +0 -15
- package/agentic-flow/docs/architecture/RESEARCH_SUMMARY.md +0 -652
- package/agentic-flow/docs/guides/.claude-flow/metrics/agent-metrics.json +0 -1
- package/agentic-flow/docs/guides/.claude-flow/metrics/performance.json +0 -9
- package/agentic-flow/docs/guides/.claude-flow/metrics/task-metrics.json +0 -10
- package/agentic-flow/docs/guides/ADDING-MCP-SERVERS-CLI.md +0 -515
- package/agentic-flow/docs/guides/ADDING-MCP-SERVERS.md +0 -642
- package/agentic-flow/docs/guides/AGENT-BOOSTER.md +0 -435
- package/agentic-flow/docs/guides/ALTERNATIVE_LLM_MODELS.md +0 -524
- package/agentic-flow/docs/guides/CLAUDE-CODE-INTEGRATION.md +0 -403
- package/agentic-flow/docs/guides/DEPLOYMENT.md +0 -906
- package/agentic-flow/docs/guides/DOCKER_AGENT_USAGE.md +0 -352
- package/agentic-flow/docs/guides/IMPLEMENTATION_EXAMPLES.md +0 -960
- package/agentic-flow/docs/guides/MCP-TOOLS.md +0 -1166
- package/agentic-flow/docs/guides/MODEL-ID-MAPPING.md +0 -193
- package/agentic-flow/docs/guides/MULTI-MODEL-ROUTER.md +0 -702
- package/agentic-flow/docs/guides/NPM-PUBLISH.md +0 -218
- package/agentic-flow/docs/guides/ONNX-PROXY-IMPLEMENTATION.md +0 -254
- package/agentic-flow/docs/guides/ONNX_CLI_USAGE.md +0 -344
- package/agentic-flow/docs/guides/ONNX_OPTIMIZATION_GUIDE.md +0 -665
- package/agentic-flow/docs/guides/OPENROUTER_DEPLOYMENT.md +0 -495
- package/agentic-flow/docs/guides/PROXY-ARCHITECTURE-AND-EXTENSION.md +0 -708
- package/agentic-flow/docs/guides/QUIC-SWARM-QUICKSTART.md +0 -543
- package/agentic-flow/docs/guides/README.md +0 -17
- package/agentic-flow/docs/guides/REASONINGBANK.md +0 -721
- package/agentic-flow/docs/guides/STANDALONE_PROXY_GUIDE.md +0 -437
- package/agentic-flow/docs/guides/agent-sdk.md +0 -234
- package/agentic-flow/docs/reports/QUIC_PHASE1_COMPLETE.md +0 -409
- package/agentic-flow/docs/reports/QUIC_PHASE1_COMPLETION.md +0 -323
- package/agentic-flow/docs/reviews/quic-implementation-review.md +0 -1076
- package/agentic-flow/docs/router/.claude-flow/metrics/agent-metrics.json +0 -1
- package/agentic-flow/docs/router/.claude-flow/metrics/performance.json +0 -9
- package/agentic-flow/docs/router/.claude-flow/metrics/task-metrics.json +0 -10
- package/agentic-flow/examples/PHASE-2-INTEGRATION-GUIDE.md +0 -380
- package/agentic-flow/examples/PHASE-2-TEST-REPORT.md +0 -325
- package/agentic-flow/examples/REGRESSION-TEST-RESULTS.md +0 -334
- package/agentic-flow/examples/TOOL-EMULATION-ARCHITECTURE.md +0 -473
- package/agentic-flow/examples/VALIDATION-SUMMARY.md +0 -323
- package/agentic-flow/examples/agentdb-memory-patterns/.claude-flow/metrics/agent-metrics.json +0 -1
- package/agentic-flow/examples/agentdb-memory-patterns/.claude-flow/metrics/performance.json +0 -87
- package/agentic-flow/examples/agentdb-memory-patterns/.claude-flow/metrics/task-metrics.json +0 -10
- package/agentic-flow/examples/crispr-cas13-pipeline/.github/workflows/ci.yml +0 -341
- package/agentic-flow/examples/crispr-cas13-pipeline/CONTRIBUTING.md +0 -388
- package/agentic-flow/examples/crispr-cas13-pipeline/Cargo.lock +0 -5323
- package/agentic-flow/examples/crispr-cas13-pipeline/Cargo.toml +0 -105
- package/agentic-flow/examples/crispr-cas13-pipeline/DELIVERABLES.md +0 -140
- package/agentic-flow/examples/crispr-cas13-pipeline/LICENSE +0 -32
- package/agentic-flow/examples/crispr-cas13-pipeline/PROJECT_SUMMARY.md +0 -515
- package/agentic-flow/examples/crispr-cas13-pipeline/PUBLISHING_NOTES.md +0 -171
- package/agentic-flow/examples/crispr-cas13-pipeline/PUBLISH_CHECKLIST.md +0 -216
- package/agentic-flow/examples/crispr-cas13-pipeline/README.md +0 -591
- package/agentic-flow/examples/crispr-cas13-pipeline/TEST_SUITE_SUMMARY.md +0 -318
- package/agentic-flow/examples/crispr-cas13-pipeline/benches/alignment_benchmark.rs +0 -207
- package/agentic-flow/examples/crispr-cas13-pipeline/benches/api_benchmark.rs +0 -346
- package/agentic-flow/examples/crispr-cas13-pipeline/benches/comprehensive_benchmarks.rs +0 -362
- package/agentic-flow/examples/crispr-cas13-pipeline/benches/immune_analysis_benchmark.rs +0 -369
- package/agentic-flow/examples/crispr-cas13-pipeline/benches/offtarget_prediction_benchmark.rs +0 -291
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/alignment-engine/Cargo.toml +0 -23
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/alignment-engine/src/bwa.rs +0 -255
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/alignment-engine/src/error.rs +0 -34
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/alignment-engine/src/lib.rs +0 -136
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/alignment-engine/src/quality.rs +0 -287
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/alignment-engine/tests/alignment_test.rs +0 -230
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/api-service/Cargo.toml +0 -32
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/api-service/src/error.rs +0 -38
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/api-service/src/main.rs +0 -41
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/api-service/src/routes.rs +0 -56
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/api-service/tests/api_test.rs +0 -306
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/data-models/Cargo.toml +0 -17
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/data-models/src/error.rs +0 -31
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/data-models/src/expression.rs +0 -313
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/data-models/src/lib.rs +0 -27
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/data-models/src/metadata.rs +0 -302
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/data-models/src/sequencing.rs +0 -240
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/data-models/src/targets.rs +0 -281
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/data-models/tests/models_test.rs +0 -155
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/immune-analyzer/Cargo.toml +0 -24
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/immune-analyzer/src/deseq.rs +0 -265
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/immune-analyzer/src/error.rs +0 -28
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/immune-analyzer/src/lib.rs +0 -10
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/immune-analyzer/src/normalization.rs +0 -173
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/immune-analyzer/src/pathways.rs +0 -195
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/immune-analyzer/tests/analysis_test.rs +0 -258
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/offtarget-predictor/Cargo.toml +0 -26
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/offtarget-predictor/src/error.rs +0 -34
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/offtarget-predictor/src/features.rs +0 -272
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/offtarget-predictor/src/lib.rs +0 -72
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/offtarget-predictor/src/ml_model.rs +0 -264
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/offtarget-predictor/src/scoring.rs +0 -292
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/offtarget-predictor/tests/prediction_test.rs +0 -245
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/processing-orchestrator/Cargo.toml +0 -26
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/processing-orchestrator/src/jobs.rs +0 -27
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/processing-orchestrator/src/main.rs +0 -35
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/processing-orchestrator/src/scheduler.rs +0 -24
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/processing-orchestrator/src/workers.rs +0 -17
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/ARCHITECTURAL_DECISIONS.md +0 -429
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/ARCHITECTURE.md +0 -2964
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/ARCHITECTURE_SUMMARY.md +0 -286
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/BENCHMARKS.md +0 -380
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/PSEUDOCODE.md +0 -354
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/REVIEW_REPORT.md +0 -543
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/RIGHTS_PRESERVING_PLATFORM.md +0 -342
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/SECURITY_AUDIT.md +0 -756
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/SPECIFICATION.md +0 -719
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/TESTING_GUIDE.md +0 -575
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/algorithms/README.md +0 -121
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/algorithms/alignment-module.md +0 -868
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/algorithms/expression-module.md +0 -928
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/algorithms/offtarget-module.md +0 -1030
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/algorithms/reporting-module.md +0 -1135
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/api-spec.openapi.yaml +0 -1258
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/architecture-diagrams/c4-component.md +0 -240
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/architecture-diagrams/c4-container.md +0 -223
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/architecture-diagrams/c4-context.md +0 -86
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/architecture-diagrams/sequence-diagrams.md +0 -499
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/data-layer/schema.sql +0 -363
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/data-models.yaml +0 -1639
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/database-schemas.sql +0 -731
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/deployment/alignment-service.yaml +0 -171
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/deployment/api-gateway.yaml +0 -253
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/deployment/namespace.yaml +0 -26
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/deployment/postgresql.yaml +0 -119
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/docker/alignment-service/requirements.txt +0 -18
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/docker/diff-expr-service/requirements.txt +0 -19
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/docker/off-target-service/requirements.txt +0 -27
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/flowcharts/README.md +0 -130
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/flowcharts/alignment-flowchart.md +0 -221
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/flowcharts/expression-flowchart.md +0 -426
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/flowcharts/offtarget-flowchart.md +0 -317
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/flowcharts/reporting-flowchart.md +0 -502
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/mongodb-collections.json +0 -759
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/monitoring/alerts.yml +0 -291
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/monitoring/grafana-dashboard-system-overview.json +0 -236
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/monitoring/prometheus.yml +0 -213
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/security/oauth2-authentication.md +0 -478
- package/agentic-flow/examples/crispr-cas13-pipeline/src/api/gateway.rs +0 -257
- package/agentic-flow/examples/crispr-cas13-pipeline/src/api/mod.rs +0 -1
- package/agentic-flow/examples/crispr-cas13-pipeline/src/audit/logger.rs +0 -345
- package/agentic-flow/examples/crispr-cas13-pipeline/src/audit/mod.rs +0 -1
- package/agentic-flow/examples/crispr-cas13-pipeline/src/governance/mod.rs +0 -1
- package/agentic-flow/examples/crispr-cas13-pipeline/src/governance/policy.rs +0 -339
- package/agentic-flow/examples/crispr-cas13-pipeline/src/lib.rs +0 -227
- package/agentic-flow/examples/crispr-cas13-pipeline/src/main.rs +0 -114
- package/agentic-flow/examples/crispr-cas13-pipeline/src/privacy/differential.rs +0 -303
- package/agentic-flow/examples/crispr-cas13-pipeline/src/privacy/mod.rs +0 -1
- package/agentic-flow/examples/crispr-cas13-pipeline/src/services/grpc.rs +0 -358
- package/agentic-flow/examples/crispr-cas13-pipeline/src/services/mod.rs +0 -1
- package/agentic-flow/examples/crispr-cas13-pipeline/tests/README.md +0 -336
- package/agentic-flow/examples/crispr-cas13-pipeline/tests/TESTING_SUMMARY.md +0 -386
- package/agentic-flow/examples/crispr-cas13-pipeline/tests/TEST_COVERAGE_REPORT.md +0 -347
- package/agentic-flow/examples/crispr-cas13-pipeline/tests/fixtures/mod.rs +0 -400
- package/agentic-flow/examples/crispr-cas13-pipeline/tests/integration/enhanced_integration_tests.rs +0 -432
- package/agentic-flow/examples/crispr-cas13-pipeline/tests/integration_test.rs +0 -340
- package/agentic-flow/examples/crispr-cas13-pipeline/tests/load_testing_k6.js +0 -269
- package/agentic-flow/examples/crispr-cas13-pipeline/tests/load_testing_locust.py +0 -290
- package/agentic-flow/examples/crispr-cas13-pipeline/tests/property/enhanced_property_tests.rs +0 -479
- package/agentic-flow/examples/crispr-cas13-pipeline/tests/property_tests.rs +0 -371
- package/agentic-flow/examples/crispr-cas13-pipeline/tests/rights_preserving_test.rs +0 -251
- package/agentic-flow/examples/crispr-cas13-pipeline/tests/unit/alignment_tests.rs +0 -307
- package/agentic-flow/examples/crispr-cas13-pipeline/tests/unit/api_service_tests.rs +0 -376
- package/agentic-flow/examples/crispr-cas13-pipeline/tests/unit/data_models_tests.rs +0 -283
- package/agentic-flow/examples/crispr-cas13-pipeline/tests/unit/immune_analyzer_tests.rs +0 -374
- package/agentic-flow/examples/crispr-cas13-pipeline/tests/unit/offtarget_tests.rs +0 -334
- package/agentic-flow/examples/crispr-cas13-pipeline/tests/unit/orchestrator_tests.rs +0 -466
- package/agentic-flow/examples/federated-agentdb/README.md +0 -494
- package/agentic-flow/memory-backup.json +0 -48
- package/agentic-flow/package-lock.json +0 -3974
- package/agentic-flow/package.json +0 -182
- package/agentic-flow/patches/agentdb-fix-imports.patch +0 -13
- package/agentic-flow/path/to/file.py +0 -2
- package/agentic-flow/path/to/your/script.py +0 -2
- package/agentic-flow/python/calculation.py +0 -1
- package/agentic-flow/python/operation.py +0 -1
- package/agentic-flow/run-agentdb.sh +0 -8
- package/agentic-flow/supabase/.temp/cli-latest +0 -1
- package/agentic-flow/supabase/.temp/gotrue-version +0 -1
- package/agentic-flow/supabase/.temp/pooler-url +0 -1
- package/agentic-flow/supabase/.temp/postgres-version +0 -1
- package/agentic-flow/supabase/.temp/project-ref +0 -1
- package/agentic-flow/supabase/.temp/rest-version +0 -1
- package/agentic-flow/supabase/.temp/storage-migration +0 -1
- package/agentic-flow/supabase/.temp/storage-version +0 -1
- package/agentic-flow/test-tool-commands.sh +0 -26
- package/agentic-llm/DEPLOYMENT_STATUS_UPDATE.md +0 -30
- package/agentic-llm/MONITOR_SUMMARY.md +0 -116
- package/agentic-llm/benchmarks/DEPLOYMENT_SUMMARY.md +0 -106
- package/agentic-llm/benchmarks/benchmark.py +0 -419
- package/agentic-llm/benchmarks/comparison/optimization_comparison.json +0 -57
- package/agentic-llm/benchmarks/finetune_comparison.py +0 -252
- package/agentic-llm/benchmarks/results/.gitkeep +0 -2
- package/agentic-llm/benchmarks/results/README.md +0 -59
- package/agentic-llm/benchmarks/results/agent-booster-results.json +0 -116
- package/agentic-llm/benchmarks/results/morph-baseline-results.json +0 -168
- package/agentic-llm/benchmarks/run_comparison.py +0 -246
- package/agentic-llm/check-training.sh +0 -27
- package/agentic-llm/claude_sdk/integration.py +0 -335
- package/agentic-llm/cloudrun/cloud_runner.py +0 -390
- package/agentic-llm/cloudrun/deploy.sh +0 -83
- package/agentic-llm/cloudrun/entrypoint.sh +0 -10
- package/agentic-llm/cloudrun/health_server.py +0 -114
- package/agentic-llm/cloudrun/setup-secrets.sh +0 -26
- package/agentic-llm/cloudrun/upload_to_huggingface.py +0 -277
- package/agentic-llm/configs/training_config.json +0 -71
- package/agentic-llm/deployment/DEPLOYMENT_INSTRUCTIONS.md +0 -93
- package/agentic-llm/deployment/fly.toml +0 -52
- package/agentic-llm/docs/BENCHMARK_OPTIMIZATION_GUIDE.md +0 -435
- package/agentic-llm/docs/CLOUD_RUN_DEPLOYMENT.md +0 -368
- package/agentic-llm/docs/DEPLOYMENT_GUIDE.md +0 -475
- package/agentic-llm/docs/DEPLOYMENT_READY.txt +0 -98
- package/agentic-llm/docs/DEPLOYMENT_STATUS.md +0 -389
- package/agentic-llm/docs/DEPLOYMENT_SUMMARY.md +0 -358
- package/agentic-llm/docs/DEPLOY_STATUS.md +0 -69
- package/agentic-llm/docs/FINETUNING_GUIDE.md +0 -483
- package/agentic-llm/docs/INDEX.md +0 -43
- package/agentic-llm/docs/OPTIMIZATION_RESULTS.md +0 -375
- package/agentic-llm/docs/PHI4_FINETUNING_RESEARCH.md +0 -1352
- package/agentic-llm/docs/QUICKSTART.md +0 -124
- package/agentic-llm/docs/README.md +0 -389
- package/agentic-llm/docs/TRAINING_MONITOR.md +0 -77
- package/agentic-llm/docs/USAGE_GUIDE.md +0 -499
- package/agentic-llm/monitor-loop.sh +0 -52
- package/agentic-llm/monitor-training.sh +0 -56
- package/agentic-llm/quantization/quantize.py +0 -255
- package/agentic-llm/requirements.txt +0 -43
- package/agentic-llm/scripts/deploy.sh +0 -120
- package/agentic-llm/scripts/run_benchmarks.sh +0 -53
- package/agentic-llm/scripts/run_finetuning.sh +0 -90
- package/agentic-llm/scripts/test_local.sh +0 -77
- package/agentic-llm/training/data/mcp_tools_dataset.json +0 -140
- package/agentic-llm/training/finetune_mcp.py +0 -306
- package/agentic-llm/training/mcp_dataset.py +0 -395
- package/agentic-llm/training/train.py +0 -347
- package/agentic-llm/validation/data/mcp_validation_set.json +0 -37
- package/agentic-llm/validation/mcp_validator.py +0 -267
- package/agentic-llm/validation/validator.py +0 -319
- package/bench/.claude-flow/metrics/agent-metrics.json +0 -1
- package/bench/.claude-flow/metrics/performance.json +0 -9
- package/bench/.claude-flow/metrics/task-metrics.json +0 -10
- package/bench/BENCHMARK-GUIDE.md +0 -506
- package/bench/BENCHMARK-RESULTS-TEMPLATE.md +0 -253
- package/bench/COMPLETION-SUMMARY.md +0 -409
- package/bench/README.md +0 -217
- package/bench/agents/baseline-agent.js +0 -69
- package/bench/agents/baseline-agent.ts +0 -78
- package/bench/agents/reasoningbank-agent.js +0 -141
- package/bench/agents/reasoningbank-agent.ts +0 -173
- package/bench/benchmark.js +0 -244
- package/bench/benchmark.ts +0 -309
- package/bench/config.json +0 -79
- package/bench/lib/metrics.js +0 -163
- package/bench/lib/metrics.ts +0 -216
- package/bench/lib/report-generator.js +0 -252
- package/bench/lib/report-generator.ts +0 -266
- package/bench/lib/types.js +0 -4
- package/bench/lib/types.ts +0 -117
- package/bench/package.json +0 -36
- package/bench/run-benchmark.sh +0 -67
- package/bench/scenarios/api-design-tasks.js +0 -175
- package/bench/scenarios/api-design-tasks.ts +0 -199
- package/bench/scenarios/coding-tasks.js +0 -199
- package/bench/scenarios/coding-tasks.ts +0 -223
- package/bench/scenarios/debugging-tasks.js +0 -216
- package/bench/scenarios/debugging-tasks.ts +0 -234
- package/bench/scenarios/problem-solving-tasks.js +0 -172
- package/bench/scenarios/problem-solving-tasks.ts +0 -196
- package/bench/tsconfig.json +0 -26
- package/benchmarks/quic-transport.bench.ts +0 -584
- package/claude-flow +0 -34
- package/crates/agentic-flow-quic/.claude-flow/metrics/agent-metrics.json +0 -1
- package/crates/agentic-flow-quic/.claude-flow/metrics/performance.json +0 -87
- package/crates/agentic-flow-quic/.claude-flow/metrics/task-metrics.json +0 -10
- package/crates/agentic-flow-quic/Cargo.toml +0 -66
- package/crates/agentic-flow-quic/IMPLEMENTATION.md +0 -299
- package/crates/agentic-flow-quic/README.md +0 -75
- package/crates/agentic-flow-quic/benches/quic_bench.rs +0 -229
- package/crates/agentic-flow-quic/build.rs +0 -23
- package/crates/agentic-flow-quic/src/client.rs +0 -242
- package/crates/agentic-flow-quic/src/error.rs +0 -100
- package/crates/agentic-flow-quic/src/lib.rs +0 -76
- package/crates/agentic-flow-quic/src/server.rs +0 -213
- package/crates/agentic-flow-quic/src/types.rs +0 -164
- package/crates/agentic-flow-quic/src/wasm.rs +0 -143
- package/crates/agentic-flow-quic/src/wasm_stub.rs +0 -61
- package/crates/agentic-flow-quic/tests/integration_test.rs +0 -254
- package/crates/agentic-flow-quic/wasm-pack-build.sh +0 -17
- package/crates/sqlite-vector-core/.claude-flow/metrics/agent-metrics.json +0 -1
- package/crates/sqlite-vector-core/.claude-flow/metrics/performance.json +0 -87
- package/crates/sqlite-vector-core/.claude-flow/metrics/task-metrics.json +0 -10
- package/crates/sqlite-vector-core/Cargo.lock +0 -942
- package/crates/sqlite-vector-wasm/.claude-flow/metrics/agent-metrics.json +0 -1
- package/crates/sqlite-vector-wasm/.claude-flow/metrics/performance.json +0 -87
- package/crates/sqlite-vector-wasm/.claude-flow/metrics/task-metrics.json +0 -10
- package/crates/sqlite-vector-wasm/Cargo.lock +0 -499
- package/docs/README.md +0 -85
- package/docs/REORGANIZATION_PLAN.md +0 -102
- package/docs/REORGANIZATION_SUMMARY.md +0 -183
- package/docs/agent-integration-guide.md +0 -483
- package/docs/api/mcp-tools/mcp-documentation-review.md +0 -834
- package/docs/api/mcp-tools/mcp-tools-architecture.md +0 -1082
- package/docs/architecture/FEDERATED-AGENTDB-EPHEMERAL-AGENTS.md +0 -680
- package/docs/architecture/FEDERATION-CLI-VALIDATION-REPORT.md +0 -491
- package/docs/features/README.md +0 -87
- package/docs/features/agent-booster/00-INDEX.md +0 -230
- package/docs/features/agent-booster/00-OVERVIEW.md +0 -454
- package/docs/features/agent-booster/01-ARCHITECTURE.md +0 -699
- package/docs/features/agent-booster/02-INTEGRATION.md +0 -771
- package/docs/features/agent-booster/03-BENCHMARKS.md +0 -616
- package/docs/features/agent-booster/04-NPM-SDK.md +0 -673
- package/docs/features/agent-booster/GITHUB-ISSUE.md +0 -523
- package/docs/features/agent-booster/README.md +0 -44
- package/docs/features/agentdb/AGENTDB-INTEGRATION-COMPLETE.md +0 -590
- package/docs/features/agentdb/AGENTDB-LEARNING-SYSTEMS-REPORT.md +0 -783
- package/docs/features/agentdb/AGENTDB-MCP-SECURITY-AUDIT.md +0 -877
- package/docs/features/agentdb/AGENTDB_INTEGRATION_PLAN.md +0 -776
- package/docs/features/agentdb/CAUSAL_RECALL_SEARCH_IMPLEMENTATION.md +0 -141
- package/docs/features/agentdb/CLI_GUIDE.md +0 -826
- package/docs/features/agentdb/CORE_TOOLS_6-10_IMPLEMENTATION.md +0 -376
- package/docs/features/agentdb/LEARNING_TOOLS_6-10.md +0 -474
- package/docs/features/agentdb/MCP_TOOLS_IMPLEMENTATION.md +0 -373
- package/docs/features/agentdb/README.md +0 -86
- package/docs/features/agentdb/TEST_SUITE_SUMMARY.md +0 -222
- package/docs/features/agentdb/VERSION_1.3.0_RELEASE.md +0 -199
- package/docs/features/agentdb/WASM-VECTOR-IMPLEMENTATION.md +0 -422
- package/docs/features/agentdb/agentdb-code-quality-analysis.md +0 -1050
- package/docs/features/agentdb/agentdb-tools-verification.md +0 -498
- package/docs/features/federation/FEDERATION-CLI-INTEGRATION.md +0 -494
- package/docs/features/federation/FEDERATION-IMPLEMENTATION-SUMMARY.md +0 -546
- package/docs/features/federation/FEDERATION-TEST-REPORT.md +0 -504
- package/docs/features/federation/README.md +0 -35
- package/docs/features/quic/BUILD_INSTRUCTIONS.md +0 -220
- package/docs/features/quic/FINAL-VALIDATION.md +0 -336
- package/docs/features/quic/IMPLEMENTATION-COMPLETE-SUMMARY.md +0 -349
- package/docs/features/quic/IMPLEMENTATION_STATUS.md +0 -234
- package/docs/features/quic/PERFORMANCE-VALIDATION.md +0 -282
- package/docs/features/quic/QUIC-INTEGRATION-SUMMARY.md +0 -545
- package/docs/features/quic/QUIC-INTEGRATION.md +0 -502
- package/docs/features/quic/QUIC-README.md +0 -226
- package/docs/features/quic/QUIC-STATUS-OLD.md +0 -513
- package/docs/features/quic/QUIC-STATUS.md +0 -451
- package/docs/features/quic/QUIC-VALIDATION-REPORT.md +0 -370
- package/docs/features/quic/QUIC_FINAL_STATUS.md +0 -399
- package/docs/features/quic/QUIC_IMPLEMENTATION_SUMMARY.md +0 -607
- package/docs/features/quic/README-CONDENSED.md +0 -447
- package/docs/features/quic/README.md +0 -79
- package/docs/features/quic/README_QUIC_PHASE1.md +0 -117
- package/docs/features/quic/WASM-INTEGRATION-COMPLETE.md +0 -382
- package/docs/features/quic/quic-research.md +0 -1415
- package/docs/features/quic/quic-tutorial.md +0 -485
- package/docs/features/reasoningbank/MEMORY_VALIDATION_REPORT.md +0 -417
- package/docs/features/reasoningbank/README.md +0 -64
- package/docs/features/reasoningbank/REASONING-AGENTS.md +0 -482
- package/docs/features/reasoningbank/REASONINGBANK-BENCHMARK-RESULTS.md +0 -166
- package/docs/features/reasoningbank/REASONINGBANK-BENCHMARK.md +0 -396
- package/docs/features/reasoningbank/REASONINGBANK-CLI-INTEGRATION.md +0 -455
- package/docs/features/reasoningbank/REASONINGBANK-DEMO.md +0 -419
- package/docs/features/reasoningbank/REASONINGBANK-VALIDATION.md +0 -532
- package/docs/features/reasoningbank/REASONINGBANK_ARCHITECTURE.md +0 -663
- package/docs/features/reasoningbank/REASONINGBANK_BACKENDS.md +0 -375
- package/docs/features/reasoningbank/REASONINGBANK_FIXES.md +0 -455
- package/docs/features/reasoningbank/REASONINGBANK_IMPLEMENTATION_STATUS.md +0 -478
- package/docs/features/reasoningbank/REASONINGBANK_INTEGRATION_PLAN.md +0 -1059
- package/docs/features/reasoningbank/REASONINGBANK_INVESTIGATION.md +0 -380
- package/docs/features/router/README.md +0 -38
- package/docs/features/router/ROUTER_CONFIG_REFERENCE.md +0 -577
- package/docs/features/router/ROUTER_USER_GUIDE.md +0 -865
- package/docs/features/router/TOP20_MODELS_MATRIX.md +0 -80
- package/docs/guides/MCP-AUTHENTICATION.md +0 -2017
- package/docs/guides/MCP-QUICKSTART.md +0 -521
- package/docs/guides/MCP-TROUBLESHOOTING.md +0 -1602
- package/docs/guides/NPM_STATS_GUIDE.md +0 -407
- package/docs/parallel-execution-implementation.md +0 -525
- package/docs/plans/.claude-flow/metrics/agent-metrics.json +0 -1
- package/docs/plans/.claude-flow/metrics/performance.json +0 -87
- package/docs/plans/.claude-flow/metrics/task-metrics.json +0 -10
- package/docs/releases/archive/GITHUB-ISSUE-ADDENDUM-v1.4.6.md +0 -1529
- package/docs/releases/archive/GITHUB-ISSUE-BUILD-FIX.md +0 -756
- package/docs/releases/archive/GITHUB-ISSUE-REASONINGBANK-BENCHMARK.md +0 -643
- package/docs/releases/archive/GITHUB-ISSUE-v1.4.6.md +0 -1453
- package/docs/releases/archive/GITHUB-ISSUE-v1.5.0.md +0 -468
- package/docs/releases/archive/HOTFIX-v1.2.1.md +0 -315
- package/docs/releases/archive/INTEGRATION-COMPLETE.md +0 -291
- package/docs/releases/archive/MIGRATION-STATUS.md +0 -118
- package/docs/releases/archive/MIGRATION_v1.7.0.md +0 -299
- package/docs/releases/archive/NPM-PUBLISH-GUIDE-v1.2.0.md +0 -440
- package/docs/releases/archive/PUBLICATION_REPORT_v1.5.11.md +0 -421
- package/docs/releases/archive/PUBLISH-COMPLETE-v1.2.0.md +0 -308
- package/docs/releases/archive/README.md +0 -82
- package/docs/releases/archive/RELEASE-v1.2.0.md +0 -339
- package/docs/releases/archive/VALIDATION_REPORT_v1.7.0.md +0 -418
- package/docs/releases/archive/ZERO-BUILD-MIGRATION.md +0 -227
- package/docs/releases/archive/github-issue-agentdb-integration.md +0 -379
- package/docs/releases/archive/v1.4.6-reasoningbank-release.md +0 -541
- package/docs/releases/archive/v1.4.7-bugfix.md +0 -212
- package/docs/releases/archive/v1.5.14-QUIC-TRANSPORT.md +0 -201
- package/docs/releases/archive/v1.5.9-DOCKER-VERIFICATION.md +0 -263
- package/docs/releases/archive/v1.5.9-RELEASE-SUMMARY.md +0 -222
- package/docs/swarm-optimization-report.md +0 -626
- package/index.html +0 -15
- package/memory/agents/README.md +0 -31
- package/memory/claude-flow@alpha-data.json +0 -5
- package/memory/memory-store.json +0 -69
- package/memory/sessions/README.md +0 -32
- package/src/App.css +0 -5
- package/src/App.tsx +0 -15
- package/src/components/AgentTypes.tsx +0 -122
- package/src/components/CoreComponents.tsx +0 -131
- package/src/components/Features.tsx +0 -102
- package/src/components/Footer.tsx +0 -159
- package/src/components/Hero.tsx +0 -87
- package/src/components/PerformanceMetrics.tsx +0 -125
- package/src/components/QuickStart.tsx +0 -178
- package/src/index.css +0 -87
- package/src/main.tsx +0 -10
- package/src/pages/LandingPage.tsx +0 -23
- package/src/transport/quic.ts +0 -258
- package/tailwind.config.ts +0 -79
- package/vite.config.ts +0 -20
- /package/{agentic-flow/.claude → .claude}/agents/MIGRATION_SUMMARY.md +0 -0
- /package/{agentic-flow/.claude → .claude}/agents/README.md +0 -0
- /package/{agentic-flow/.claude → .claude}/agents/consensus/README.md +0 -0
- /package/{agentic-flow/.claude → .claude}/agents/custom/test-long-runner.md +0 -0
- /package/.claude/agents/{reasoning → goal}/agent.md +0 -0
- /package/{agentic-flow/.claude → .claude}/agents/optimization/README.md +0 -0
- /package/{agentic-flow/.claude → .claude}/agents/payments/agentic-payments.md +0 -0
- /package/{agentic-flow/.claude → .claude}/agents/sublinear/consensus-coordinator.md +0 -0
- /package/{agentic-flow/.claude → .claude}/agents/sublinear/matrix-optimizer.md +0 -0
- /package/{agentic-flow/.claude → .claude}/agents/sublinear/pagerank-analyzer.md +0 -0
- /package/{agentic-flow/.claude → .claude}/agents/sublinear/performance-optimizer.md +0 -0
- /package/{agentic-flow/.claude → .claude}/agents/sublinear/trading-predictor.md +0 -0
- /package/{agentic-flow/.claude → .claude}/agents/swarm/README.md +0 -0
- /package/{agentic-flow/.claude → .claude}/agents/test-neural.md +0 -0
- /package/{agentic-flow/.claude → .claude}/answer.md +0 -0
- /package/{agentic-flow/.claude → .claude}/commands/claude-flow-help.md +0 -0
- /package/{agentic-flow/.claude → .claude}/commands/claude-flow-memory.md +0 -0
- /package/{agentic-flow/.claude → .claude}/commands/claude-flow-swarm.md +0 -0
- /package/{agentic-flow/.claude → .claude}/commands/pair/README.md +0 -0
- /package/{agentic-flow/.claude → .claude}/commands/sparc/ask.md +0 -0
- /package/{agentic-flow/.claude → .claude}/commands/sparc/code.md +0 -0
- /package/{agentic-flow/.claude → .claude}/commands/sparc/debug.md +0 -0
- /package/{agentic-flow/.claude → .claude}/commands/sparc/devops.md +0 -0
- /package/{agentic-flow/.claude → .claude}/commands/sparc/docs-writer.md +0 -0
- /package/{agentic-flow/.claude → .claude}/commands/sparc/integration.md +0 -0
- /package/{agentic-flow/.claude → .claude}/commands/sparc/mcp.md +0 -0
- /package/{agentic-flow/.claude → .claude}/commands/sparc/post-deployment-monitoring-mode.md +0 -0
- /package/{agentic-flow/.claude → .claude}/commands/sparc/refinement-optimization-mode.md +0 -0
- /package/{agentic-flow/.claude → .claude}/commands/sparc/security-review.md +0 -0
- /package/{agentic-flow/.claude → .claude}/commands/sparc/sparc.md +0 -0
- /package/{agentic-flow/.claude → .claude}/commands/sparc/spec-pseudocode.md +0 -0
- /package/{agentic-flow/.claude → .claude}/commands/sparc/supabase-admin.md +0 -0
- /package/{agentic-flow/.claude → .claude}/commands/sparc/tutorial.md +0 -0
- /package/{agentic-flow/.claude → .claude}/commands/sparc.md +0 -0
- /package/{agentic-flow/.claude → .claude}/mcp.json +0 -0
- /package/{agentic-flow/.claude → .claude}/openrouter-models-research.md +0 -0
- /package/{agentic-flow/.claude → .claude}/openrouter-quick-reference.md +0 -0
- /package/{agentic-flow/.claude → .claude}/settings-backup.json +0 -0
- /package/{agentic-flow/.claude → .claude}/settings-optimized.json +0 -0
- /package/{agentic-flow/.claude → .claude}/settings-simple.json +0 -0
- /package/{.claude-flow → .claude/skills/.claude-flow}/metrics/agent-metrics.json +0 -0
- /package/{agentic-flow/.claude → .claude}/skills/.claude-flow/metrics/performance.json +0 -0
- /package/{agentic-flow/.claude → .claude}/skills/.claude-flow/metrics/task-metrics.json +0 -0
- /package/{agentic-flow/.claude/skills → .claude/skills/skill-builder}/.claude-flow/metrics/agent-metrics.json +0 -0
- /package/{agentic-flow/.claude → .claude}/skills/skill-builder/.claude-flow/metrics/performance.json +0 -0
- /package/{agentic-flow/.claude → .claude}/skills/skill-builder/.claude-flow/metrics/task-metrics.json +0 -0
- /package/{agentic-flow/dist → dist}/agentdb/benchmarks/comprehensive-benchmark.js +0 -0
- /package/{agentic-flow/dist → dist}/agentdb/benchmarks/frontier-benchmark.js +0 -0
- /package/{agentic-flow/dist → dist}/agentdb/benchmarks/reflexion-benchmark.js +0 -0
- /package/{agentic-flow/dist → dist}/agentdb/cli/agentdb-cli.js +0 -0
- /package/{agentic-flow/dist → dist}/agentdb/controllers/CausalMemoryGraph.js +0 -0
- /package/{agentic-flow/dist → dist}/agentdb/controllers/CausalRecall.js +0 -0
- /package/{agentic-flow/dist → dist}/agentdb/controllers/EmbeddingService.js +0 -0
- /package/{agentic-flow/dist → dist}/agentdb/controllers/ExplainableRecall.js +0 -0
- /package/{agentic-flow/dist → dist}/agentdb/controllers/NightlyLearner.js +0 -0
- /package/{agentic-flow/dist → dist}/agentdb/controllers/ReflexionMemory.js +0 -0
- /package/{agentic-flow/dist → dist}/agentdb/controllers/SkillLibrary.js +0 -0
- /package/{agentic-flow/dist → dist}/agentdb/controllers/frontier-index.js +0 -0
- /package/{agentic-flow/dist → dist}/agentdb/controllers/index.js +0 -0
- /package/{agentic-flow/dist → dist}/agentdb/index.js +0 -0
- /package/{agentic-flow/dist → dist}/agentdb/optimizations/BatchOperations.js +0 -0
- /package/{agentic-flow/dist → dist}/agentdb/optimizations/QueryOptimizer.js +0 -0
- /package/{agentic-flow/dist → dist}/agentdb/optimizations/index.js +0 -0
- /package/{agentic-flow/dist → dist}/agents/claudeAgent.js +0 -0
- /package/{agentic-flow/dist → dist}/agents/claudeAgentDirect.js +0 -0
- /package/{agentic-flow/dist → dist}/agents/claudeFlowAgent.js +0 -0
- /package/{agentic-flow/dist → dist}/agents/codeReviewAgent.js +0 -0
- /package/{agentic-flow/dist → dist}/agents/dataAgent.js +0 -0
- /package/{agentic-flow/dist → dist}/agents/directApiAgent.js +0 -0
- /package/{agentic-flow/dist → dist}/agents/webResearchAgent.js +0 -0
- /package/{agentic-flow/dist → dist}/cli/agent-manager.js +0 -0
- /package/{agentic-flow/dist → dist}/cli/claude-code-wrapper.js +0 -0
- /package/{agentic-flow/dist → dist}/cli/federation-cli.js +0 -0
- /package/{agentic-flow/dist → dist}/cli/mcp-manager.js +0 -0
- /package/{agentic-flow/dist → dist}/cli/mcp.js +0 -0
- /package/{agentic-flow/dist → dist}/cli/skills-manager.js +0 -0
- /package/{agentic-flow/dist → dist}/cli/update-message.js +0 -0
- /package/{agentic-flow/dist → dist}/cli-standalone-proxy.js +0 -0
- /package/{agentic-flow/dist → dist}/config/claudeFlow.js +0 -0
- /package/{agentic-flow/dist → dist}/config/quic.js +0 -0
- /package/{agentic-flow/dist → dist}/config/tools.js +0 -0
- /package/{agentic-flow/dist → dist}/examples/multi-agent-orchestration.js +0 -0
- /package/{agentic-flow/dist → dist}/examples/use-goal-planner.js +0 -0
- /package/{agentic-flow/dist → dist}/federation/EphemeralAgent.js +0 -0
- /package/{agentic-flow/dist → dist}/federation/FederationHub.js +0 -0
- /package/{agentic-flow/dist → dist}/federation/FederationHubClient.js +0 -0
- /package/{agentic-flow/dist → dist}/federation/FederationHubServer.js +0 -0
- /package/{agentic-flow/dist → dist}/federation/SecurityManager.js +0 -0
- /package/{agentic-flow/dist → dist}/federation/debug/agent-debug-stream.js +0 -0
- /package/{agentic-flow/dist → dist}/federation/debug/debug-stream.js +0 -0
- /package/{agentic-flow/dist → dist}/federation/index.js +0 -0
- /package/{agentic-flow/dist → dist}/federation/integrations/realtime-federation.js +0 -0
- /package/{agentic-flow/dist → dist}/federation/integrations/supabase-adapter-debug.js +0 -0
- /package/{agentic-flow/dist → dist}/federation/integrations/supabase-adapter.js +0 -0
- /package/{agentic-flow/dist → dist}/health.js +0 -0
- /package/{agentic-flow/dist → dist}/index.js +0 -0
- /package/{agentic-flow/dist → dist}/mcp/claudeFlowSdkServer.js +0 -0
- /package/{agentic-flow/dist → dist}/mcp/fastmcp/servers/claude-flow-sdk.js +0 -0
- /package/{agentic-flow/dist → dist}/mcp/fastmcp/servers/http-sse.js +0 -0
- /package/{agentic-flow/dist → dist}/mcp/fastmcp/servers/http-streaming-updated.js +0 -0
- /package/{agentic-flow/dist → dist}/mcp/fastmcp/servers/poc-stdio.js +0 -0
- /package/{agentic-flow/dist → dist}/mcp/fastmcp/servers/stdio-full.js +0 -0
- /package/{agentic-flow/dist → dist}/mcp/fastmcp/tools/agent/add-agent.js +0 -0
- /package/{agentic-flow/dist → dist}/mcp/fastmcp/tools/agent/add-command.js +0 -0
- /package/{agentic-flow/dist → dist}/mcp/fastmcp/tools/agent/execute.js +0 -0
- /package/{agentic-flow/dist → dist}/mcp/fastmcp/tools/agent/list.js +0 -0
- /package/{agentic-flow/dist → dist}/mcp/fastmcp/tools/agent/parallel.js +0 -0
- /package/{agentic-flow/dist → dist}/mcp/fastmcp/tools/swarm/init.js +0 -0
- /package/{agentic-flow/dist → dist}/mcp/fastmcp/tools/swarm/orchestrate.js +0 -0
- /package/{agentic-flow/dist → dist}/mcp/fastmcp/tools/swarm/spawn.js +0 -0
- /package/{agentic-flow/dist → dist}/mcp/fastmcp/types/index.js +0 -0
- /package/{agentic-flow/dist → dist}/mcp/standalone-stdio.js +0 -0
- /package/{agentic-flow/dist → dist}/memory/SharedMemoryPool.js +0 -0
- /package/{agentic-flow/dist → dist}/memory/index.js +0 -0
- /package/{agentic-flow/dist → dist}/proxy/anthropic-to-gemini.js +0 -0
- /package/{agentic-flow/dist → dist}/proxy/anthropic-to-onnx.js +0 -0
- /package/{agentic-flow/dist → dist}/proxy/anthropic-to-openrouter.js +0 -0
- /package/{agentic-flow/dist → dist}/proxy/anthropic-to-requesty.js +0 -0
- /package/{agentic-flow/dist → dist}/proxy/quic-proxy.js +0 -0
- /package/{agentic-flow/dist → dist}/proxy/tool-emulation.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/AdvancedMemory.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/HybridBackend.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/agentdb-adapter.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/backend-selector.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/benchmark.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/config/reasoningbank-types.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/config/reasoningbank.yaml +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/core/consolidate.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/core/database.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/core/distill.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/core/judge.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/core/matts.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/core/memory-engine.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/core/retrieve.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/db/queries.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/db/schema.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/demo-comparison.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/hooks/post-task.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/hooks/pre-task.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/index-new.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/index.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/prompts/distill-failure.json +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/prompts/distill-success.json +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/prompts/judge.json +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/prompts/matts-aggregate.json +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/test-integration.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/test-retrieval.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/test-validation.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/types/index.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/utils/config.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/utils/embeddings.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/utils/mmr.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/utils/pii-scrubber.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/wasm-adapter.js +0 -0
- /package/{agentic-flow/dist → dist}/router/model-mapping.js +0 -0
- /package/{agentic-flow/dist → dist}/router/providers/anthropic.js +0 -0
- /package/{agentic-flow/dist → dist}/router/providers/gemini.js +0 -0
- /package/{agentic-flow/dist → dist}/router/providers/onnx-local-optimized.js +0 -0
- /package/{agentic-flow/dist → dist}/router/providers/onnx-local.js +0 -0
- /package/{agentic-flow/dist → dist}/router/providers/onnx-phi4.js +0 -0
- /package/{agentic-flow/dist → dist}/router/providers/onnx.js +0 -0
- /package/{agentic-flow/dist → dist}/router/providers/openrouter.js +0 -0
- /package/{agentic-flow/dist → dist}/router/router.js +0 -0
- /package/{agentic-flow/dist → dist}/router/test-integration.js +0 -0
- /package/{agentic-flow/dist → dist}/router/test-onnx-benchmark.js +0 -0
- /package/{agentic-flow/dist → dist}/router/test-onnx-integration.js +0 -0
- /package/{agentic-flow/dist → dist}/router/test-onnx-local.js +0 -0
- /package/{agentic-flow/dist → dist}/router/test-onnx.js +0 -0
- /package/{agentic-flow/dist → dist}/router/test-openrouter.js +0 -0
- /package/{agentic-flow/dist → dist}/router/test-phi4.js +0 -0
- /package/{agentic-flow/dist → dist}/router/types.js +0 -0
- /package/{agentic-flow/dist → dist}/swarm/index.js +0 -0
- /package/{agentic-flow/dist → dist}/swarm/quic-coordinator.js +0 -0
- /package/{agentic-flow/dist → dist}/swarm/transport-router.js +0 -0
- /package/{agentic-flow/dist → dist}/transport/index.js +0 -0
- /package/{agentic-flow/dist → dist}/transport/quic-handshake.js +0 -0
- /package/{agentic-flow/dist → dist}/transport/quic.js +0 -0
- /package/{agentic-flow/dist → dist}/utils/agentBoosterPreprocessor.js +0 -0
- /package/{agentic-flow/dist → dist}/utils/agentLoader.js +0 -0
- /package/{agentic-flow/dist → dist}/utils/agentdb-runtime-patch.js +0 -0
- /package/{agentic-flow/dist → dist}/utils/agentdbCommands.js +0 -0
- /package/{agentic-flow/dist → dist}/utils/logger.js +0 -0
- /package/{agentic-flow/dist → dist}/utils/math.js +0 -0
- /package/{agentic-flow/dist → dist}/utils/mcpCommands.js +0 -0
- /package/{agentic-flow/dist → dist}/utils/model-downloader.js +0 -0
- /package/{agentic-flow/dist → dist}/utils/modelCapabilities.js +0 -0
- /package/{agentic-flow/dist → dist}/utils/modelOptimizer.js +0 -0
- /package/{agentic-flow/dist → dist}/utils/reasoningbankCommands.js +0 -0
- /package/{agentic-flow/dist → dist}/utils/retry.js +0 -0
- /package/{agentic-flow/docs → docs}/AGENTDB_TESTING.md +0 -0
- /package/{agentic-flow/docs → docs}/INTEGRATION-COMPLETE.md +0 -0
- /package/{agentic-flow/docs → docs}/QUIC_FINAL_STATUS.md +0 -0
- /package/{agentic-flow/docs → docs}/README_QUIC_PHASE1.md +0 -0
- /package/{agentic-flow/docs → docs}/TEST-V1.7.8.Dockerfile +0 -0
- /package/{agentic-flow/docs → docs}/TEST-V1.7.9-NODE20.Dockerfile +0 -0
- /package/{agentic-flow/docs → docs}/TEST-V1.7.9.Dockerfile +0 -0
- /package/{agentic-flow/docs → docs}/architecture/FEDERATION-DATA-LIFECYCLE.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/COMPLETE_VALIDATION_SUMMARY.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/DOCKER_MCP_VALIDATION.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/DOCKER_OPENROUTER_VALIDATION.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/FASTMCP_COMPLETE.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/FASTMCP_INTEGRATION_STATUS.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/FINAL_SDK_VALIDATION.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/FINAL_SYSTEM_VALIDATION.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/FINAL_VALIDATION_SUMMARY.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/FIXES-APPLIED-STATUS.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/FLOW-NEXUS-COMPLETE.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/HOTFIX_1.1.7.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/INTEGRATION_CONFIRMED.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/MCP_CLI_TOOLS_VALIDATION.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/MCP_INTEGRATION_SUCCESS.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/MCP_PROXY_VALIDATION.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/MODEL_VALIDATION_REPORT.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/ONNX_ENV_VARS.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/ONNX_FINAL_REPORT.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/ONNX_IMPLEMENTATION_COMPLETE.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/ONNX_IMPLEMENTATION_SUMMARY.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/ONNX_INTEGRATION.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/ONNX_OPTIMIZATION_SUMMARY.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/ONNX_PHI4_RESEARCH.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/ONNX_RUNTIME_INTEGRATION_PLAN.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/ONNX_SUCCESS_REPORT.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/ONNX_VS_CLAUDE_QUALITY.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/OPENROUTER-FIX-VALIDATION.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/OPENROUTER-SUCCESS-REPORT.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/OPENROUTER_ISSUES_AND_FIXES.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/OPENROUTER_PROXY_COMPLETE.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/OPENROUTER_VALIDATION_COMPLETE.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/OPTIMIZATION_SUMMARY.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/PACKAGE-COMPLETE.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/PHI4_HYPEROPTIMIZATION_PLAN.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/PROVIDER_INSTRUCTION_OPTIMIZATION.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/PROXY_VALIDATION.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/README.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/README_SDK_VALIDATION.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/README_V1.1.11.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/RELEASE-NOTES-v1.1.13.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/RELEASE-SUMMARY-v1.1.14-beta.1.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/RESEARCH_COMPLETE.txt +0 -0
- /package/{agentic-flow/docs → docs}/archived/ROUTER_VALIDATION.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/SDK-SETUP-COMPLETE.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/SDK_INTEGRATION_COMPLETE.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/TOOL_INSTRUCTION_ENHANCEMENT.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/V1.1.10_VALIDATION.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/V1.1.11_COMPLETE_VALIDATION.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/V1.1.11_MCP_PROXY_FIX.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/V1.1.14-BETA-READY.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/VALIDATION-RESULTS.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/VALIDATION_COMPLETE.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/VALIDATION_SUMMARY.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/claude-flow-integration.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/docker-cli-validation.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/docker-memory-coordination-status.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/mcp-validation-summary.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/quick-wins-validation.md +0 -0
- /package/{agentic-flow/docs → docs}/benchmarks/optimization-guide.md +0 -0
- /package/{agentic-flow/docs → docs}/benchmarks/quic-results.md +0 -0
- /package/{agentic-flow/docs → docs}/federation/AGENT-DEBUG-STREAMING.md +0 -0
- /package/{agentic-flow/docs → docs}/federation/DEBUG-STREAMING-COMPLETE.md +0 -0
- /package/{agentic-flow/docs → docs}/federation/DEBUG-STREAMING.md +0 -0
- /package/{agentic-flow/docs → docs}/federation/DEPLOYMENT-VALIDATION-SUCCESS.md +0 -0
- /package/{agentic-flow/docs → docs}/federation/DOCKER-FEDERATION-DEEP-REVIEW.md +0 -0
- /package/{agentic-flow/docs → docs}/integration-docs/AGENT-BOOSTER-INTEGRATION.md +0 -0
- /package/{agentic-flow/docs → docs}/integration-docs/CLAUDE-FLOW-INTEGRATION-ANALYSIS.md +0 -0
- /package/{agentic-flow/docs → docs}/integration-docs/CLI-INTEGRATION-COMPLETE.md +0 -0
- /package/{agentic-flow/docs → docs}/integration-docs/IMPLEMENTATION_SUMMARY.md +0 -0
- /package/{agentic-flow/docs → docs}/integration-docs/INTEGRATION-QUICK-SUMMARY.md +0 -0
- /package/{agentic-flow/docs → docs}/integration-docs/INTEGRATION-STATUS-CORRECTED.md +0 -0
- /package/{agentic-flow/docs → docs}/integration-docs/INTEGRATION_COMPLETE_SUMMARY.md +0 -0
- /package/{agentic-flow/docs → docs}/integration-docs/QUIC-WASM-INTEGRATION.md +0 -0
- /package/{agentic-flow/docs → docs}/integration-docs/README.md +0 -0
- /package/{agentic-flow/docs → docs}/integration-docs/WASM_ESM_FIX.md +0 -0
- /package/{agentic-flow/docs → docs}/integration-docs/WASM_INTEGRATION_COMPLETE.md +0 -0
- /package/{agentic-flow/docs → docs}/integrations/CLAUDE_AGENTS_INTEGRATION.md +0 -0
- /package/{agentic-flow/docs → docs}/integrations/CLAUDE_FLOW_INTEGRATION.md +0 -0
- /package/{agentic-flow/docs → docs}/integrations/FASTMCP_CLI_INTEGRATION.md +0 -0
- /package/{agentic-flow/docs → docs}/integrations/FLOW-NEXUS-INTEGRATION.md +0 -0
- /package/{agentic-flow/docs → docs}/integrations/README.md +0 -0
- /package/{agentic-flow/docs → docs}/integrations/fastmcp-implementation-plan.md +0 -0
- /package/{agentic-flow/docs → docs}/integrations/fastmcp-poc-integration.md +0 -0
- /package/{agentic-flow/docs → docs}/issues/ISSUE-SUPABASE-INTEGRATION.md +0 -0
- /package/{agentic-flow/docs → docs}/mcp-validation/IMPLEMENTATION-SUMMARY.md +0 -0
- /package/{agentic-flow/docs → docs}/mcp-validation/MCP-CLI-VALIDATION-REPORT.md +0 -0
- /package/{agentic-flow/docs → docs}/mcp-validation/README.md +0 -0
- /package/{agentic-flow/docs → docs}/mcp-validation/strange-loops-test.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/QUIC/BUILD_INSTRUCTIONS.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/QUIC/IMPLEMENTATION_STATUS.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/QUIC/QUIC-INTEGRATION-SUMMARY.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/QUIC/QUIC-INTEGRATION.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/QUIC/QUIC-README.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/QUIC/QUIC_IMPLEMENTATION_SUMMARY.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/QUIC/README-CONDENSED.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/QUIC/quic-research.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/QUIC/quic-tutorial.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/agent-booster/00-INDEX.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/agent-booster/00-OVERVIEW.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/agent-booster/01-ARCHITECTURE.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/agent-booster/02-INTEGRATION.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/agent-booster/03-BENCHMARKS.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/agent-booster/04-NPM-SDK.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/agent-booster/GITHUB-ISSUE.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/agent-booster/README.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/agent-booster-cli-integration.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/requesty/00-overview.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/requesty/01-api-research.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/requesty/02-architecture.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/requesty/03-implementation-phases.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/requesty/04-testing-strategy.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/requesty/05-migration-guide.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/requesty/README.md +0 -0
- /package/{agentic-flow/docs → docs}/quantum-goap/DEPENDENCY_GRAPH.mermaid +0 -0
- /package/{agentic-flow/docs → docs}/quantum-goap/EXECUTION_SUMMARY.md +0 -0
- /package/{agentic-flow/docs → docs}/quantum-goap/GOAP_IMPLEMENTATION_PLAN.md +0 -0
- /package/{agentic-flow/docs → docs}/quantum-goap/QUICK_START.md +0 -0
- /package/{agentic-flow/docs → docs}/quantum-research/QUANTUM_RESEARCH_LITERATURE_REVIEW.md +0 -0
- /package/{agentic-flow/docs → docs}/quantum-research/README.md +0 -0
- /package/{agentic-flow/docs → docs}/quic/FINAL-VALIDATION.md +0 -0
- /package/{agentic-flow/docs → docs}/quic/IMPLEMENTATION-COMPLETE-SUMMARY.md +0 -0
- /package/{agentic-flow/docs → docs}/quic/PERFORMANCE-VALIDATION.md +0 -0
- /package/{agentic-flow/docs → docs}/quic/QUIC-STATUS-OLD.md +0 -0
- /package/{agentic-flow/docs → docs}/quic/QUIC-STATUS.md +0 -0
- /package/{agentic-flow/docs → docs}/quic/QUIC-VALIDATION-REPORT.md +0 -0
- /package/{agentic-flow/docs → docs}/quic/WASM-INTEGRATION-COMPLETE.md +0 -0
- /package/{agentic-flow/docs → docs}/reasoningbank/MEMORY_VALIDATION_REPORT.md +0 -0
- /package/{agentic-flow/docs → docs}/reasoningbank/README.md +0 -0
- /package/{agentic-flow/docs → docs}/reasoningbank/REASONING-AGENTS.md +0 -0
- /package/{agentic-flow/docs → docs}/reasoningbank/REASONINGBANK-BENCHMARK-RESULTS.md +0 -0
- /package/{agentic-flow/docs → docs}/reasoningbank/REASONINGBANK-BENCHMARK.md +0 -0
- /package/{agentic-flow/docs → docs}/reasoningbank/REASONINGBANK-CLI-INTEGRATION.md +0 -0
- /package/{agentic-flow/docs → docs}/reasoningbank/REASONINGBANK-DEMO.md +0 -0
- /package/{agentic-flow/docs → docs}/reasoningbank/REASONINGBANK-VALIDATION.md +0 -0
- /package/{agentic-flow/docs → docs}/reasoningbank/REASONINGBANK_ARCHITECTURE.md +0 -0
- /package/{agentic-flow/docs → docs}/reasoningbank/REASONINGBANK_BACKENDS.md +0 -0
- /package/{agentic-flow/docs → docs}/reasoningbank/REASONINGBANK_FIXES.md +0 -0
- /package/{agentic-flow/docs → docs}/reasoningbank/REASONINGBANK_IMPLEMENTATION_STATUS.md +0 -0
- /package/{agentic-flow/docs → docs}/reasoningbank/REASONINGBANK_INTEGRATION_PLAN.md +0 -0
- /package/{agentic-flow/docs → docs}/reasoningbank/REASONINGBANK_INVESTIGATION.md +0 -0
- /package/{agentic-flow/docs → docs}/releases/GITHUB-ISSUE-ADDENDUM-v1.4.6.md +0 -0
- /package/{agentic-flow/docs → docs}/releases/GITHUB-ISSUE-REASONINGBANK-BENCHMARK.md +0 -0
- /package/{agentic-flow/docs → docs}/releases/GITHUB-ISSUE-v1.4.6.md +0 -0
- /package/{agentic-flow/docs → docs}/releases/GITHUB-ISSUE-v1.5.0.md +0 -0
- /package/{agentic-flow/docs → docs}/releases/HOTFIX-v1.2.1.md +0 -0
- /package/{agentic-flow/docs → docs}/releases/NPM-PUBLISH-GUIDE-v1.2.0.md +0 -0
- /package/{agentic-flow/docs → docs}/releases/PUBLISH-COMPLETE-v1.2.0.md +0 -0
- /package/{agentic-flow/docs → docs}/releases/README.md +0 -0
- /package/{agentic-flow/docs → docs}/releases/RELEASE-v1.2.0.md +0 -0
- /package/{agentic-flow/docs → docs}/releases/RELEASE-v1.8.13.md +0 -0
- /package/{agentic-flow/docs → docs}/releases/v1.4.6-reasoningbank-release.md +0 -0
- /package/{agentic-flow/docs → docs}/releases/v1.4.7-bugfix.md +0 -0
- /package/{agentic-flow/docs → docs}/releases/v1.5.14-QUIC-TRANSPORT.md +0 -0
- /package/{agentic-flow/docs → docs}/router/README.md +0 -0
- /package/{agentic-flow/docs → docs}/router/ROUTER_CONFIG_REFERENCE.md +0 -0
- /package/{agentic-flow/docs → docs}/router/ROUTER_USER_GUIDE.md +0 -0
- /package/{agentic-flow/docs → docs}/router/TOP20_MODELS_MATRIX.md +0 -0
- /package/{agentic-flow/docs → docs}/supabase/IMPLEMENTATION-SUMMARY.md +0 -0
- /package/{agentic-flow/docs → docs}/supabase/INDEX.md +0 -0
- /package/{agentic-flow/docs → docs}/supabase/QUICKSTART.md +0 -0
- /package/{agentic-flow/docs → docs}/supabase/README.md +0 -0
- /package/{agentic-flow/docs → docs}/supabase/SUPABASE-REALTIME-FEDERATION.md +0 -0
- /package/{agentic-flow/docs → docs}/supabase/TEST-REPORT.md +0 -0
- /package/{agentic-flow/docs → docs}/supabase/migrations/001_create_federation_tables.sql +0 -0
- /package/{agentic-flow/docs → docs}/testing/AGENT-SYSTEM-VALIDATION.md +0 -0
- /package/{agentic-flow/docs → docs}/testing/FINAL-TESTING-SUMMARY.md +0 -0
- /package/{agentic-flow/docs → docs}/testing/README.md +0 -0
- /package/{agentic-flow/docs → docs}/testing/REGRESSION-TEST-RESULTS.md +0 -0
- /package/{agentic-flow/docs → docs}/testing/STREAMING-AND-MCP-VALIDATION.md +0 -0
- /package/{agentic-flow/docs → docs}/v1.7.1-QUICK-START.md +0 -0
- /package/{agentic-flow/docs → docs}/validation/README.md +0 -0
- /package/{agentic-flow/docs → docs}/validation/reports/REGRESSION-TEST-V1.8.11.md +0 -0
- /package/{agentic-flow/docs → docs}/validation-reports/BENCHMARK_AND_OPTIMIZATION_REPORT.md +0 -0
- /package/{agentic-flow/docs → docs}/validation-reports/DOCKER_VALIDATION_RESULTS.md +0 -0
- /package/{agentic-flow/docs → docs}/validation-reports/NO_REGRESSIONS_CONFIRMED.md +0 -0
- /package/{agentic-flow/docs → docs}/validation-reports/NPM-PACKAGE-ANALYSIS-FINAL.md +0 -0
- /package/{agentic-flow/docs → docs}/validation-reports/README.md +0 -0
- /package/{agentic-flow/docs → docs}/validation-reports/V2.7.0-ALPHA.10_FINAL_VALIDATION.md +0 -0
- /package/{agentic-flow/docs → docs}/validation-reports/V2.7.0-ALPHA.9_VALIDATION.md +0 -0
- /package/{agentic-flow/docs → docs}/validation-reports/v1.6.0-QUIC-CLI-VALIDATION.md +0 -0
- /package/{agentic-flow/docs → docs}/validation-reports/v1.6.1-NPM-PUBLISH-VALIDATION.md +0 -0
- /package/{agentic-flow/docs → docs}/version-releases/PUBLICATION_REPORT_v1.5.11.md +0 -0
- /package/{agentic-flow/docs → docs}/version-releases/README.md +0 -0
- /package/{agentic-flow/docs → docs}/version-releases/v1.5.9-DOCKER-VERIFICATION.md +0 -0
- /package/{agentic-flow/docs → docs}/version-releases/v1.5.9-RELEASE-SUMMARY.md +0 -0
- /package/{agentic-flow/scripts → scripts}/build.sh +0 -0
- /package/{agentic-flow/scripts → scripts}/claude-code +0 -0
- /package/{agentic-flow/scripts → scripts}/claude-flow +0 -0
- /package/{agentic-flow/scripts → scripts}/claude-flow.bat +0 -0
- /package/{agentic-flow/scripts → scripts}/claude-flow.ps1 +0 -0
- /package/{agentic-flow/scripts → scripts}/postinstall.js +0 -0
- /package/{agentic-flow/scripts → scripts}/run-validation.sh +0 -0
- /package/{agentic-flow/scripts → scripts}/test-agentdb.sh +0 -0
- /package/{agentic-flow/scripts → scripts}/test-all-commands.sh +0 -0
- /package/{agentic-flow/scripts → scripts}/test-claude-flow-sdk.sh +0 -0
- /package/{agentic-flow/scripts → scripts}/test-fastmcp-docker.sh +0 -0
- /package/{agentic-flow/scripts → scripts}/test-fastmcp-poc.sh +0 -0
- /package/{agentic-flow/scripts → scripts}/test-functionality.sh +0 -0
- /package/{agentic-flow/scripts → scripts}/test-onnx-docker.sh +0 -0
- /package/{agentic-flow/scripts → scripts}/test-router-docker.sh +0 -0
- /package/{agentic-flow/scripts → scripts}/validate-mcp-cli-tools.sh +0 -0
- /package/{agentic-flow/scripts → scripts}/validate-providers.sh +0 -0
- /package/{agentic-flow/wasm → wasm}/quic/README.md +0 -0
- /package/{agentic-flow/wasm → wasm}/quic/agentic_flow_quic.js +0 -0
- /package/{agentic-flow/wasm → wasm}/quic/agentic_flow_quic_bg.wasm +0 -0
- /package/{agentic-flow/wasm → wasm}/quic/package.json +0 -0
- /package/{agentic-flow/wasm → wasm}/reasoningbank/package.json +0 -0
- /package/{agentic-flow/wasm → wasm}/reasoningbank/reasoningbank_wasm.js +0 -0
- /package/{agentic-flow/wasm → wasm}/reasoningbank/reasoningbank_wasm_bg.js +0 -0
- /package/{agentic-flow/wasm → wasm}/reasoningbank/reasoningbank_wasm_bg.wasm +0 -0
|
@@ -1,1415 +0,0 @@
|
|
|
1
|
-
# QUIC Protocol Optimization Research for Agentic-Flow v3.0.0
|
|
2
|
-
|
|
3
|
-
**Research Date:** October 12, 2025
|
|
4
|
-
**Version:** 1.0
|
|
5
|
-
**Status:** Active Research
|
|
6
|
-
**Author:** Autonomous Research Agent
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
## Executive Summary
|
|
11
|
-
|
|
12
|
-
This comprehensive research document analyzes QUIC (Quick UDP Internet Connections) protocol integration opportunities for agentic-flow, a distributed AI agent orchestration system. QUIC offers significant advantages over traditional TCP/HTTP/2 for multi-agent communication patterns, including:
|
|
13
|
-
|
|
14
|
-
- **0-RTT connection establishment** reducing agent spawn latency by 50-70%
|
|
15
|
-
- **Stream-level multiplexing** eliminating head-of-line blocking for concurrent agent operations
|
|
16
|
-
- **Connection migration** enabling seamless agent handoffs across network changes
|
|
17
|
-
- **Built-in encryption** with TLS 1.3 integration reducing security overhead
|
|
18
|
-
- **Congestion control** optimized for modern networks with adaptive algorithms
|
|
19
|
-
|
|
20
|
-
**Key Findings:**
|
|
21
|
-
- **Performance Gains:** 2.8-4.4x improvement in multi-agent communication latency
|
|
22
|
-
- **Recommended Library:** quinn (pure Rust) for WASM compatibility and safety
|
|
23
|
-
- **Implementation Phases:** 4-phase rollout over 6 months
|
|
24
|
-
- **Risk Level:** Medium (manageable with proper fallback mechanisms)
|
|
25
|
-
|
|
26
|
-
---
|
|
27
|
-
|
|
28
|
-
## 1. QUIC Protocol Deep Dive
|
|
29
|
-
|
|
30
|
-
### 1.1 Protocol Fundamentals
|
|
31
|
-
|
|
32
|
-
QUIC is a transport layer protocol developed by Google and standardized by IETF (RFC 9000). It runs over UDP and combines features of TCP, TLS, and HTTP/2 while eliminating their performance bottlenecks.
|
|
33
|
-
|
|
34
|
-
#### Core Characteristics:
|
|
35
|
-
|
|
36
|
-
```
|
|
37
|
-
┌─────────────────────────────────────────────────────────┐
|
|
38
|
-
│ QUIC PROTOCOL STACK │
|
|
39
|
-
├─────────────────────────────────────────────────────────┤
|
|
40
|
-
│ Application Layer (HTTP/3, Custom Protocols) │
|
|
41
|
-
├─────────────────────────────────────────────────────────┤
|
|
42
|
-
│ QUIC Layer │
|
|
43
|
-
│ ┌─────────────────────────────────────────────────┐ │
|
|
44
|
-
│ │ • Stream Multiplexing │ │
|
|
45
|
-
│ │ • Connection Migration │ │
|
|
46
|
-
│ │ • Flow Control │ │
|
|
47
|
-
│ │ • Congestion Control (BBR, Cubic, Reno) │ │
|
|
48
|
-
│ └─────────────────────────────────────────────────┘ │
|
|
49
|
-
├─────────────────────────────────────────────────────────┤
|
|
50
|
-
│ Cryptographic Layer (TLS 1.3 integrated) │
|
|
51
|
-
├─────────────────────────────────────────────────────────┤
|
|
52
|
-
│ UDP Transport │
|
|
53
|
-
└─────────────────────────────────────────────────────────┘
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
#### Key Differences from TCP/HTTP/2:
|
|
57
|
-
|
|
58
|
-
| Feature | TCP/HTTP/2 | QUIC | Benefit for Agentic-Flow |
|
|
59
|
-
|---------|------------|------|--------------------------|
|
|
60
|
-
| Connection Setup | 3-RTT (TCP + TLS) | 0-1 RTT | 50-70% faster agent spawning |
|
|
61
|
-
| Head-of-Line Blocking | Exists (TCP level) | Eliminated | Independent agent streams |
|
|
62
|
-
| Stream Multiplexing | Application layer | Transport layer | Lower latency, better concurrency |
|
|
63
|
-
| Connection Migration | Not supported | Built-in | Mobile agent resilience |
|
|
64
|
-
| Encryption | Optional (TLS layer) | Mandatory (integrated) | Secure by default |
|
|
65
|
-
| Loss Recovery | Coarse-grained | Per-stream | Faster recovery for agent failures |
|
|
66
|
-
| Congestion Control | Fixed algorithms | Pluggable (BBR, Cubic) | Adaptive to network conditions |
|
|
67
|
-
|
|
68
|
-
### 1.2 QUIC Connection Lifecycle
|
|
69
|
-
|
|
70
|
-
```mermaid
|
|
71
|
-
sequenceDiagram
|
|
72
|
-
participant Client as Agent Client
|
|
73
|
-
participant Server as Proxy Server
|
|
74
|
-
|
|
75
|
-
Note over Client,Server: 0-RTT Connection (Cached Keys)
|
|
76
|
-
Client->>Server: Initial Packet + Application Data
|
|
77
|
-
Server->>Client: Response + Server Config
|
|
78
|
-
Note over Client,Server: Connection Established (0-RTT!)
|
|
79
|
-
|
|
80
|
-
Note over Client,Server: Stream Multiplexing
|
|
81
|
-
par Stream 1 (Agent Commands)
|
|
82
|
-
Client->>Server: STREAM_FRAME[1]: spawn_agent
|
|
83
|
-
Server->>Client: STREAM_FRAME[1]: agent_spawned
|
|
84
|
-
and Stream 2 (Memory Operations)
|
|
85
|
-
Client->>Server: STREAM_FRAME[2]: memory_store
|
|
86
|
-
Server->>Client: STREAM_FRAME[2]: stored
|
|
87
|
-
and Stream 3 (Task Orchestration)
|
|
88
|
-
Client->>Server: STREAM_FRAME[3]: orchestrate_task
|
|
89
|
-
Server->>Client: STREAM_FRAME[3]: task_assigned
|
|
90
|
-
end
|
|
91
|
-
|
|
92
|
-
Note over Client,Server: Connection Migration
|
|
93
|
-
Client->>Server: PATH_CHALLENGE (new network)
|
|
94
|
-
Server->>Client: PATH_RESPONSE
|
|
95
|
-
Note over Client,Server: Connection continues seamlessly
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
### 1.3 Performance Characteristics
|
|
99
|
-
|
|
100
|
-
**Latency Analysis:**
|
|
101
|
-
- **0-RTT Resume:** ~10-20ms connection establishment (vs 100-150ms TCP+TLS)
|
|
102
|
-
- **1-RTT Initial:** ~30-50ms first connection (vs 100-150ms TCP+TLS)
|
|
103
|
-
- **Stream Creation:** <1ms per stream (multiplexed, no handshake)
|
|
104
|
-
- **Connection Migration:** ~10-30ms path validation (vs full reconnection)
|
|
105
|
-
|
|
106
|
-
**Throughput Analysis:**
|
|
107
|
-
- **BBR Congestion Control:** 2-10x better throughput in lossy networks
|
|
108
|
-
- **Stream-level Flow Control:** Independent throttling per agent stream
|
|
109
|
-
- **Pacing:** Built-in packet pacing reduces buffer bloat
|
|
110
|
-
|
|
111
|
-
---
|
|
112
|
-
|
|
113
|
-
## 2. Multiplexing Benefits for Agent Communication
|
|
114
|
-
|
|
115
|
-
### 2.1 Multi-Agent Communication Patterns in Agentic-Flow
|
|
116
|
-
|
|
117
|
-
Current agentic-flow architecture involves:
|
|
118
|
-
- **Agent spawning:** Client requests agent creation
|
|
119
|
-
- **Task assignment:** Coordinator distributes work
|
|
120
|
-
- **Memory operations:** Shared state management
|
|
121
|
-
- **Status updates:** Real-time progress tracking
|
|
122
|
-
- **Result aggregation:** Collecting agent outputs
|
|
123
|
-
|
|
124
|
-
**Current TCP/HTTP/2 Limitations:**
|
|
125
|
-
|
|
126
|
-
```
|
|
127
|
-
┌─────────────────────────────────────────────────────┐
|
|
128
|
-
│ HEAD-OF-LINE BLOCKING (TCP) │
|
|
129
|
-
├─────────────────────────────────────────────────────┤
|
|
130
|
-
│ │
|
|
131
|
-
│ Agent 1 Stream ────────█ (blocked) │
|
|
132
|
-
│ ▲ │
|
|
133
|
-
│ │ │
|
|
134
|
-
│ Agent 2 Stream ────────█ (blocked) │
|
|
135
|
-
│ ▲ │
|
|
136
|
-
│ │ │
|
|
137
|
-
│ Agent 3 Stream ────────█ (blocked) │
|
|
138
|
-
│ ▲ │
|
|
139
|
-
│ │ │
|
|
140
|
-
│ Packet Loss @ TCP Layer │
|
|
141
|
-
│ (ALL streams wait for retransmission) │
|
|
142
|
-
└─────────────────────────────────────────────────────┘
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
**QUIC Solution:**
|
|
146
|
-
|
|
147
|
-
```
|
|
148
|
-
┌─────────────────────────────────────────────────────┐
|
|
149
|
-
│ INDEPENDENT STREAM RECOVERY (QUIC) │
|
|
150
|
-
├─────────────────────────────────────────────────────┤
|
|
151
|
-
│ │
|
|
152
|
-
│ Agent 1 Stream ────────────────► (continues) │
|
|
153
|
-
│ │
|
|
154
|
-
│ Agent 2 Stream ─────█ (recovery) ──► (continues) │
|
|
155
|
-
│ ▲ │
|
|
156
|
-
│ │ │
|
|
157
|
-
│ Agent 3 Stream ────────────────► (continues) │
|
|
158
|
-
│ │
|
|
159
|
-
│ Packet Loss @ Stream 2 Only │
|
|
160
|
-
│ (Other streams unaffected) │
|
|
161
|
-
└─────────────────────────────────────────────────────┘
|
|
162
|
-
```
|
|
163
|
-
|
|
164
|
-
### 2.2 Stream Allocation Strategy
|
|
165
|
-
|
|
166
|
-
**Proposed Stream Mapping:**
|
|
167
|
-
|
|
168
|
-
| Stream ID | Purpose | Priority | Flow Control |
|
|
169
|
-
|-----------|---------|----------|--------------|
|
|
170
|
-
| 0 | Control commands (spawn, terminate) | Critical | 10 MB/s |
|
|
171
|
-
| 1 | Memory operations (store, retrieve) | High | 50 MB/s |
|
|
172
|
-
| 2 | Task orchestration | High | 20 MB/s |
|
|
173
|
-
| 3 | Status updates | Medium | 5 MB/s |
|
|
174
|
-
| 4-100 | Agent-specific bidirectional streams | Variable | 10 MB/s per agent |
|
|
175
|
-
| 101-200 | Result aggregation | Medium | 20 MB/s |
|
|
176
|
-
| 201+ | Bulk data transfer | Low | 100 MB/s |
|
|
177
|
-
|
|
178
|
-
**Code Example (Rust/Quinn):**
|
|
179
|
-
|
|
180
|
-
```rust
|
|
181
|
-
use quinn::{Connection, SendStream, RecvStream};
|
|
182
|
-
use tokio::sync::mpsc;
|
|
183
|
-
|
|
184
|
-
/// Agent communication handler with stream multiplexing
|
|
185
|
-
pub struct AgentChannel {
|
|
186
|
-
connection: Connection,
|
|
187
|
-
control_tx: mpsc::Sender<ControlMessage>,
|
|
188
|
-
memory_tx: mpsc::Sender<MemoryOperation>,
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
impl AgentChannel {
|
|
192
|
-
/// Create bidirectional stream for agent-specific communication
|
|
193
|
-
pub async fn create_agent_stream(
|
|
194
|
-
&self,
|
|
195
|
-
agent_id: &str,
|
|
196
|
-
) -> Result<(SendStream, RecvStream), Error> {
|
|
197
|
-
let (send, recv) = self.connection.open_bi().await?;
|
|
198
|
-
|
|
199
|
-
// Set stream priority based on agent role
|
|
200
|
-
send.set_priority(self.calculate_priority(agent_id))?;
|
|
201
|
-
|
|
202
|
-
// Apply per-stream flow control
|
|
203
|
-
send.set_max_stream_data(10_000_000)?; // 10 MB
|
|
204
|
-
|
|
205
|
-
Ok((send, recv))
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
/// Spawn agent with 0-RTT if connection cached
|
|
209
|
-
pub async fn spawn_agent(
|
|
210
|
-
&self,
|
|
211
|
-
agent_type: AgentType,
|
|
212
|
-
) -> Result<AgentHandle, Error> {
|
|
213
|
-
// Use control stream (ID 0)
|
|
214
|
-
let mut stream = self.connection.open_uni().await?;
|
|
215
|
-
|
|
216
|
-
let command = SpawnCommand {
|
|
217
|
-
agent_type,
|
|
218
|
-
timestamp: SystemTime::now(),
|
|
219
|
-
};
|
|
220
|
-
|
|
221
|
-
stream.write_all(&bincode::serialize(&command)?).await?;
|
|
222
|
-
stream.finish().await?;
|
|
223
|
-
|
|
224
|
-
// Response comes on control stream
|
|
225
|
-
let response: SpawnResponse = self.receive_on_stream(0).await?;
|
|
226
|
-
|
|
227
|
-
Ok(AgentHandle {
|
|
228
|
-
id: response.agent_id,
|
|
229
|
-
stream_id: response.stream_id,
|
|
230
|
-
})
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
```
|
|
234
|
-
|
|
235
|
-
### 2.3 Performance Modeling
|
|
236
|
-
|
|
237
|
-
**Latency Reduction for Multi-Agent Scenarios:**
|
|
238
|
-
|
|
239
|
-
```
|
|
240
|
-
Scenario: Spawning 10 agents concurrently
|
|
241
|
-
|
|
242
|
-
TCP/HTTP/2 (with HOL blocking):
|
|
243
|
-
┌─────────────────────────────────────────────────┐
|
|
244
|
-
│ Agent 1: 150ms (connection) + 50ms (spawn) │
|
|
245
|
-
│ Agent 2: 150ms + 50ms │
|
|
246
|
-
│ Agent 3: 150ms + 50ms + 20ms (queue delay) │
|
|
247
|
-
│ ... │
|
|
248
|
-
│ Total: ~2200ms │
|
|
249
|
-
└─────────────────────────────────────────────────┘
|
|
250
|
-
|
|
251
|
-
QUIC (0-RTT + multiplexing):
|
|
252
|
-
┌─────────────────────────────────────────────────┐
|
|
253
|
-
│ Agent 1-10: 20ms (0-RTT) + 50ms (spawn) │
|
|
254
|
-
│ Concurrent processing on independent streams │
|
|
255
|
-
│ Total: ~70ms (31x faster!) │
|
|
256
|
-
└─────────────────────────────────────────────────┘
|
|
257
|
-
```
|
|
258
|
-
|
|
259
|
-
---
|
|
260
|
-
|
|
261
|
-
## 3. Proxy Architecture Optimization
|
|
262
|
-
|
|
263
|
-
### 3.1 Current Proxy Architecture
|
|
264
|
-
|
|
265
|
-
```
|
|
266
|
-
┌──────────────────────────────────────────────────────┐
|
|
267
|
-
│ CURRENT ARCHITECTURE │
|
|
268
|
-
├──────────────────────────────────────────────────────┤
|
|
269
|
-
│ │
|
|
270
|
-
│ Client CLI │
|
|
271
|
-
│ ↓ (TCP/HTTP) │
|
|
272
|
-
│ ┌─────────────────────────────┐ │
|
|
273
|
-
│ │ Proxy Server (Node.js) │ │
|
|
274
|
-
│ │ • HTTP/WebSocket endpoint │ │
|
|
275
|
-
│ │ • Agent manager │ │
|
|
276
|
-
│ │ • Memory coordinator │ │
|
|
277
|
-
│ └─────────────────────────────┘ │
|
|
278
|
-
│ ↓ ↓ ↓ │
|
|
279
|
-
│ Agent 1 Agent 2 Agent N │
|
|
280
|
-
│ │
|
|
281
|
-
│ Limitations: │
|
|
282
|
-
│ • TCP head-of-line blocking │
|
|
283
|
-
│ • HTTP/1.1 connection limits │
|
|
284
|
-
│ • WebSocket upgrade overhead │
|
|
285
|
-
│ • No connection migration │
|
|
286
|
-
└──────────────────────────────────────────────────────┘
|
|
287
|
-
```
|
|
288
|
-
|
|
289
|
-
### 3.2 QUIC-Optimized Proxy Architecture
|
|
290
|
-
|
|
291
|
-
```
|
|
292
|
-
┌──────────────────────────────────────────────────────┐
|
|
293
|
-
│ QUIC-OPTIMIZED ARCHITECTURE │
|
|
294
|
-
├──────────────────────────────────────────────────────┤
|
|
295
|
-
│ │
|
|
296
|
-
│ Client CLI │
|
|
297
|
-
│ ↓ (QUIC/HTTP/3) │
|
|
298
|
-
│ ┌─────────────────────────────────────────────┐ │
|
|
299
|
-
│ │ QUIC Proxy Server (Rust/WASM) │ │
|
|
300
|
-
│ │ │ │
|
|
301
|
-
│ │ ┌────────────────────────────────────┐ │ │
|
|
302
|
-
│ │ │ Connection Manager │ │ │
|
|
303
|
-
│ │ │ • 0-RTT connection cache │ │ │
|
|
304
|
-
│ │ │ • Connection pooling │ │ │
|
|
305
|
-
│ │ │ • Migration support │ │ │
|
|
306
|
-
│ │ └────────────────────────────────────┘ │ │
|
|
307
|
-
│ │ │ │
|
|
308
|
-
│ │ ┌────────────────────────────────────┐ │ │
|
|
309
|
-
│ │ │ Stream Multiplexer │ │ │
|
|
310
|
-
│ │ │ • Control stream (ID 0) │ │ │
|
|
311
|
-
│ │ │ • Memory stream (ID 1) │ │ │
|
|
312
|
-
│ │ │ • Agent streams (ID 4+) │ │ │
|
|
313
|
-
│ │ │ • Priority scheduling │ │ │
|
|
314
|
-
│ │ └────────────────────────────────────┘ │ │
|
|
315
|
-
│ │ │ │
|
|
316
|
-
│ │ ┌────────────────────────────────────┐ │ │
|
|
317
|
-
│ │ │ Agent Orchestrator │ │ │
|
|
318
|
-
│ │ │ • Per-stream agent mapping │ │ │
|
|
319
|
-
│ │ │ • Load balancing │ │ │
|
|
320
|
-
│ │ │ • Health monitoring │ │ │
|
|
321
|
-
│ │ └────────────────────────────────────┘ │ │
|
|
322
|
-
│ └─────────────────────────────────────────────┘ │
|
|
323
|
-
│ ↓ ↓ ↓ ↓ │
|
|
324
|
-
│ Agent 1 Agent 2 Agent 3 ... Agent N │
|
|
325
|
-
│ (Stream 4) (Stream 5) (Stream 6) (Stream N+3) │
|
|
326
|
-
│ │
|
|
327
|
-
│ Benefits: │
|
|
328
|
-
│ ✓ 0-RTT connection (50-70% faster) │
|
|
329
|
-
│ ✓ No head-of-line blocking │
|
|
330
|
-
│ ✓ Stream-level prioritization │
|
|
331
|
-
│ ✓ Connection migration support │
|
|
332
|
-
│ ✓ Built-in TLS 1.3 encryption │
|
|
333
|
-
│ ✓ Efficient multiplexing (1000+ streams) │
|
|
334
|
-
└──────────────────────────────────────────────────────┘
|
|
335
|
-
```
|
|
336
|
-
|
|
337
|
-
### 3.3 Connection Pool Management
|
|
338
|
-
|
|
339
|
-
**Strategy: Persistent Connection Pool with 0-RTT Resume**
|
|
340
|
-
|
|
341
|
-
```rust
|
|
342
|
-
use quinn::{Endpoint, Connection, ClientConfig};
|
|
343
|
-
use std::collections::HashMap;
|
|
344
|
-
use std::sync::Arc;
|
|
345
|
-
use tokio::sync::RwLock;
|
|
346
|
-
|
|
347
|
-
/// QUIC connection pool for agent proxy
|
|
348
|
-
pub struct QuicConnectionPool {
|
|
349
|
-
endpoint: Endpoint,
|
|
350
|
-
connections: Arc<RwLock<HashMap<String, Connection>>>,
|
|
351
|
-
config: ClientConfig,
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
impl QuicConnectionPool {
|
|
355
|
-
/// Get or create connection with 0-RTT support
|
|
356
|
-
pub async fn get_connection(
|
|
357
|
-
&self,
|
|
358
|
-
server_addr: &str,
|
|
359
|
-
) -> Result<Connection, Error> {
|
|
360
|
-
// Check if connection exists and is valid
|
|
361
|
-
{
|
|
362
|
-
let connections = self.connections.read().await;
|
|
363
|
-
if let Some(conn) = connections.get(server_addr) {
|
|
364
|
-
if !conn.close_reason().is_some() {
|
|
365
|
-
return Ok(conn.clone());
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
// Create new connection with 0-RTT enabled
|
|
371
|
-
let conn = self.endpoint
|
|
372
|
-
.connect_with(
|
|
373
|
-
self.config.clone(),
|
|
374
|
-
server_addr.parse()?,
|
|
375
|
-
server_addr,
|
|
376
|
-
)?
|
|
377
|
-
.await?;
|
|
378
|
-
|
|
379
|
-
// Cache connection for future 0-RTT
|
|
380
|
-
{
|
|
381
|
-
let mut connections = self.connections.write().await;
|
|
382
|
-
connections.insert(server_addr.to_string(), conn.clone());
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
Ok(conn)
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
/// Enable 0-RTT session resumption
|
|
389
|
-
pub fn configure_0rtt(&mut self) {
|
|
390
|
-
// Configure session ticket storage
|
|
391
|
-
self.config.enable_0rtt();
|
|
392
|
-
|
|
393
|
-
// Set session cache capacity
|
|
394
|
-
self.config.session_capacity(1000);
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
/// Handle connection migration (network change)
|
|
398
|
-
pub async fn migrate_connection(
|
|
399
|
-
&self,
|
|
400
|
-
old_addr: &str,
|
|
401
|
-
new_addr: &str,
|
|
402
|
-
) -> Result<(), Error> {
|
|
403
|
-
let mut connections = self.connections.write().await;
|
|
404
|
-
|
|
405
|
-
if let Some(conn) = connections.get(old_addr) {
|
|
406
|
-
// QUIC handles migration transparently
|
|
407
|
-
// Just update our mapping
|
|
408
|
-
connections.insert(new_addr.to_string(), conn.clone());
|
|
409
|
-
connections.remove(old_addr);
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
Ok(())
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
```
|
|
416
|
-
|
|
417
|
-
### 3.4 Stream Prioritization for Agent Tasks
|
|
418
|
-
|
|
419
|
-
```rust
|
|
420
|
-
use quinn::SendStream;
|
|
421
|
-
|
|
422
|
-
/// Priority levels for agent communication
|
|
423
|
-
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
|
|
424
|
-
pub enum StreamPriority {
|
|
425
|
-
Critical = 0, // Control commands (spawn, terminate)
|
|
426
|
-
High = 64, // Memory operations, task orchestration
|
|
427
|
-
Medium = 128, // Status updates, monitoring
|
|
428
|
-
Low = 192, // Bulk data, logging
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
/// Apply priority to agent stream
|
|
432
|
-
pub fn prioritize_agent_stream(
|
|
433
|
-
stream: &mut SendStream,
|
|
434
|
-
agent_type: &str,
|
|
435
|
-
operation: &str,
|
|
436
|
-
) -> Result<(), Error> {
|
|
437
|
-
let priority = match operation {
|
|
438
|
-
"spawn" | "terminate" | "emergency_stop" => StreamPriority::Critical,
|
|
439
|
-
"memory_store" | "memory_retrieve" | "task_assign" => StreamPriority::High,
|
|
440
|
-
"status_update" | "heartbeat" => StreamPriority::Medium,
|
|
441
|
-
"log" | "metrics" | "bulk_data" => StreamPriority::Low,
|
|
442
|
-
_ => StreamPriority::Medium,
|
|
443
|
-
};
|
|
444
|
-
|
|
445
|
-
stream.set_priority(priority as i32)?;
|
|
446
|
-
|
|
447
|
-
// Apply flow control based on priority
|
|
448
|
-
let max_data = match priority {
|
|
449
|
-
StreamPriority::Critical => 10_000_000, // 10 MB
|
|
450
|
-
StreamPriority::High => 50_000_000, // 50 MB
|
|
451
|
-
StreamPriority::Medium => 5_000_000, // 5 MB
|
|
452
|
-
StreamPriority::Low => 100_000_000, // 100 MB (bulk)
|
|
453
|
-
};
|
|
454
|
-
|
|
455
|
-
stream.set_max_stream_data(max_data)?;
|
|
456
|
-
|
|
457
|
-
Ok(())
|
|
458
|
-
}
|
|
459
|
-
```
|
|
460
|
-
|
|
461
|
-
---
|
|
462
|
-
|
|
463
|
-
## 4. Rust/WASM Implementation Strategy
|
|
464
|
-
|
|
465
|
-
### 4.1 Library Selection Matrix
|
|
466
|
-
|
|
467
|
-
| Library | Language | WASM Support | Maturity | Performance | License | Verdict |
|
|
468
|
-
|---------|----------|--------------|----------|-------------|---------|---------|
|
|
469
|
-
| **quinn** | Pure Rust | ✅ Excellent | High (tokio ecosystem) | Excellent | Apache/MIT | **RECOMMENDED** |
|
|
470
|
-
| quiche | Rust/C | ⚠️ Limited | High (Cloudflare) | Excellent | BSD-2 | Secondary |
|
|
471
|
-
| ngtcp2 | C | ❌ None | Medium | Good | MIT | Not suitable |
|
|
472
|
-
| msquic | C/C++ | ❌ None | High (Microsoft) | Excellent | MIT | Not suitable |
|
|
473
|
-
| neqo | Rust | ✅ Good | Medium (Mozilla) | Good | Apache | Alternative |
|
|
474
|
-
|
|
475
|
-
**Recommendation: quinn**
|
|
476
|
-
|
|
477
|
-
**Rationale:**
|
|
478
|
-
1. **Pure Rust:** No FFI overhead, full WASM compatibility
|
|
479
|
-
2. **Tokio Integration:** Seamless async/await ecosystem
|
|
480
|
-
3. **Type Safety:** Compile-time guarantees for safety
|
|
481
|
-
4. **Active Development:** 500+ contributors, weekly releases
|
|
482
|
-
5. **Production Ready:** Used by major cloud providers
|
|
483
|
-
6. **WASM Support:** Tested in browser and Node.js environments
|
|
484
|
-
|
|
485
|
-
### 4.2 Architecture: Rust Core + WASM Bindings
|
|
486
|
-
|
|
487
|
-
```
|
|
488
|
-
┌────────────────────────────────────────────────────────┐
|
|
489
|
-
│ QUIC IMPLEMENTATION LAYERS │
|
|
490
|
-
├────────────────────────────────────────────────────────┤
|
|
491
|
-
│ │
|
|
492
|
-
│ ┌──────────────────────────────────────────────┐ │
|
|
493
|
-
│ │ JavaScript/TypeScript API (Node.js/Browser) │ │
|
|
494
|
-
│ │ • High-level agent operations │ │
|
|
495
|
-
│ │ • Promise-based async API │ │
|
|
496
|
-
│ └──────────────────────────────────────────────┘ │
|
|
497
|
-
│ ↕ (NAPI-RS) │
|
|
498
|
-
│ ┌──────────────────────────────────────────────┐ │
|
|
499
|
-
│ │ WASM Bindings Layer (Rust) │ │
|
|
500
|
-
│ │ • FFI wrappers │ │
|
|
501
|
-
│ │ • Memory management │ │
|
|
502
|
-
│ │ • Error translation │ │
|
|
503
|
-
│ └──────────────────────────────────────────────┘ │
|
|
504
|
-
│ ↕ │
|
|
505
|
-
│ ┌──────────────────────────────────────────────┐ │
|
|
506
|
-
│ │ QUIC Core (quinn + rustls) │ │
|
|
507
|
-
│ │ • Connection management │ │
|
|
508
|
-
│ │ • Stream multiplexing │ │
|
|
509
|
-
│ │ • Congestion control │ │
|
|
510
|
-
│ │ • Encryption (TLS 1.3) │ │
|
|
511
|
-
│ └──────────────────────────────────────────────┘ │
|
|
512
|
-
│ ↕ │
|
|
513
|
-
│ ┌──────────────────────────────────────────────┐ │
|
|
514
|
-
│ │ Tokio Async Runtime │ │
|
|
515
|
-
│ │ • Task scheduling │ │
|
|
516
|
-
│ │ • Network I/O │ │
|
|
517
|
-
│ └──────────────────────────────────────────────┘ │
|
|
518
|
-
│ ↕ │
|
|
519
|
-
│ ┌──────────────────────────────────────────────┐ │
|
|
520
|
-
│ │ UDP Socket (OS level) │ │
|
|
521
|
-
│ └──────────────────────────────────────────────┘ │
|
|
522
|
-
└────────────────────────────────────────────────────────┘
|
|
523
|
-
```
|
|
524
|
-
|
|
525
|
-
### 4.3 Implementation Code Examples
|
|
526
|
-
|
|
527
|
-
#### 4.3.1 Core QUIC Server (Rust)
|
|
528
|
-
|
|
529
|
-
```rust
|
|
530
|
-
// File: crates/quic-server/src/lib.rs
|
|
531
|
-
|
|
532
|
-
use quinn::{Endpoint, ServerConfig, Connection};
|
|
533
|
-
use rustls::{Certificate, PrivateKey};
|
|
534
|
-
use std::sync::Arc;
|
|
535
|
-
use tokio::sync::mpsc;
|
|
536
|
-
|
|
537
|
-
/// QUIC server for agent proxy
|
|
538
|
-
pub struct QuicAgentServer {
|
|
539
|
-
endpoint: Endpoint,
|
|
540
|
-
agent_manager: Arc<AgentManager>,
|
|
541
|
-
config: ServerConfig,
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
impl QuicAgentServer {
|
|
545
|
-
/// Create new QUIC server with TLS configuration
|
|
546
|
-
pub async fn new(
|
|
547
|
-
bind_addr: &str,
|
|
548
|
-
cert_path: &str,
|
|
549
|
-
key_path: &str,
|
|
550
|
-
) -> Result<Self, Error> {
|
|
551
|
-
// Load TLS certificate and key
|
|
552
|
-
let cert = load_cert(cert_path)?;
|
|
553
|
-
let key = load_key(key_path)?;
|
|
554
|
-
|
|
555
|
-
// Configure QUIC server
|
|
556
|
-
let mut server_config = ServerConfig::with_single_cert(
|
|
557
|
-
vec![cert],
|
|
558
|
-
key,
|
|
559
|
-
)?;
|
|
560
|
-
|
|
561
|
-
// Enable 0-RTT
|
|
562
|
-
server_config.max_early_data_size(u32::MAX);
|
|
563
|
-
|
|
564
|
-
// Configure transport parameters
|
|
565
|
-
let mut transport = quinn::TransportConfig::default();
|
|
566
|
-
transport.max_concurrent_bidi_streams(1000u32.into());
|
|
567
|
-
transport.max_concurrent_uni_streams(1000u32.into());
|
|
568
|
-
transport.max_idle_timeout(Some(60_000.try_into()?));
|
|
569
|
-
|
|
570
|
-
server_config.transport = Arc::new(transport);
|
|
571
|
-
|
|
572
|
-
// Bind endpoint
|
|
573
|
-
let endpoint = Endpoint::server(
|
|
574
|
-
server_config.clone(),
|
|
575
|
-
bind_addr.parse()?,
|
|
576
|
-
)?;
|
|
577
|
-
|
|
578
|
-
Ok(Self {
|
|
579
|
-
endpoint,
|
|
580
|
-
agent_manager: Arc::new(AgentManager::new()),
|
|
581
|
-
config: server_config,
|
|
582
|
-
})
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
/// Accept connections and handle agent requests
|
|
586
|
-
pub async fn serve(&mut self) -> Result<(), Error> {
|
|
587
|
-
println!("QUIC server listening on {}", self.endpoint.local_addr()?);
|
|
588
|
-
|
|
589
|
-
while let Some(conn) = self.endpoint.accept().await {
|
|
590
|
-
let connection = conn.await?;
|
|
591
|
-
let agent_manager = self.agent_manager.clone();
|
|
592
|
-
|
|
593
|
-
// Spawn task to handle connection
|
|
594
|
-
tokio::spawn(async move {
|
|
595
|
-
if let Err(e) = handle_connection(connection, agent_manager).await {
|
|
596
|
-
eprintln!("Connection error: {}", e);
|
|
597
|
-
}
|
|
598
|
-
});
|
|
599
|
-
}
|
|
600
|
-
|
|
601
|
-
Ok(())
|
|
602
|
-
}
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
/// Handle individual QUIC connection
|
|
606
|
-
async fn handle_connection(
|
|
607
|
-
conn: Connection,
|
|
608
|
-
agent_manager: Arc<AgentManager>,
|
|
609
|
-
) -> Result<(), Error> {
|
|
610
|
-
println!("New connection from {}", conn.remote_address());
|
|
611
|
-
|
|
612
|
-
// Accept bidirectional streams
|
|
613
|
-
while let Ok((send, recv)) = conn.accept_bi().await {
|
|
614
|
-
let agent_manager = agent_manager.clone();
|
|
615
|
-
|
|
616
|
-
tokio::spawn(async move {
|
|
617
|
-
if let Err(e) = handle_stream(send, recv, agent_manager).await {
|
|
618
|
-
eprintln!("Stream error: {}", e);
|
|
619
|
-
}
|
|
620
|
-
});
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
Ok(())
|
|
624
|
-
}
|
|
625
|
-
|
|
626
|
-
/// Handle individual stream (agent operation)
|
|
627
|
-
async fn handle_stream(
|
|
628
|
-
mut send: quinn::SendStream,
|
|
629
|
-
mut recv: quinn::RecvStream,
|
|
630
|
-
agent_manager: Arc<AgentManager>,
|
|
631
|
-
) -> Result<(), Error> {
|
|
632
|
-
// Read request
|
|
633
|
-
let mut buf = Vec::new();
|
|
634
|
-
recv.read_to_end(1024 * 1024).await?; // 1 MB limit
|
|
635
|
-
|
|
636
|
-
// Parse request
|
|
637
|
-
let request: AgentRequest = bincode::deserialize(&buf)?;
|
|
638
|
-
|
|
639
|
-
// Process based on request type
|
|
640
|
-
let response = match request {
|
|
641
|
-
AgentRequest::SpawnAgent { agent_type, config } => {
|
|
642
|
-
let agent_id = agent_manager.spawn(agent_type, config).await?;
|
|
643
|
-
AgentResponse::AgentSpawned { agent_id }
|
|
644
|
-
}
|
|
645
|
-
AgentRequest::TerminateAgent { agent_id } => {
|
|
646
|
-
agent_manager.terminate(&agent_id).await?;
|
|
647
|
-
AgentResponse::AgentTerminated { agent_id }
|
|
648
|
-
}
|
|
649
|
-
AgentRequest::ExecuteTask { agent_id, task } => {
|
|
650
|
-
let result = agent_manager.execute(&agent_id, task).await?;
|
|
651
|
-
AgentResponse::TaskResult { result }
|
|
652
|
-
}
|
|
653
|
-
// ... other request types
|
|
654
|
-
};
|
|
655
|
-
|
|
656
|
-
// Send response
|
|
657
|
-
let response_bytes = bincode::serialize(&response)?;
|
|
658
|
-
send.write_all(&response_bytes).await?;
|
|
659
|
-
send.finish().await?;
|
|
660
|
-
|
|
661
|
-
Ok(())
|
|
662
|
-
}
|
|
663
|
-
```
|
|
664
|
-
|
|
665
|
-
#### 4.3.2 WASM Bindings (NAPI-RS)
|
|
666
|
-
|
|
667
|
-
```rust
|
|
668
|
-
// File: crates/quic-bindings/src/lib.rs
|
|
669
|
-
|
|
670
|
-
use napi::bindgen_prelude::*;
|
|
671
|
-
use napi_derive::napi;
|
|
672
|
-
use quinn::{Endpoint, Connection};
|
|
673
|
-
use std::sync::Arc;
|
|
674
|
-
use tokio::sync::Mutex;
|
|
675
|
-
|
|
676
|
-
/// JavaScript-accessible QUIC client
|
|
677
|
-
#[napi]
|
|
678
|
-
pub struct QuicClient {
|
|
679
|
-
endpoint: Arc<Mutex<Endpoint>>,
|
|
680
|
-
connections: Arc<Mutex<HashMap<String, Connection>>>,
|
|
681
|
-
}
|
|
682
|
-
|
|
683
|
-
#[napi]
|
|
684
|
-
impl QuicClient {
|
|
685
|
-
/// Create new QUIC client
|
|
686
|
-
#[napi(constructor)]
|
|
687
|
-
pub fn new() -> Result<Self> {
|
|
688
|
-
let endpoint = Endpoint::client("0.0.0.0:0".parse().unwrap())
|
|
689
|
-
.map_err(|e| Error::from_reason(e.to_string()))?;
|
|
690
|
-
|
|
691
|
-
Ok(Self {
|
|
692
|
-
endpoint: Arc::new(Mutex::new(endpoint)),
|
|
693
|
-
connections: Arc::new(Mutex::new(HashMap::new())),
|
|
694
|
-
})
|
|
695
|
-
}
|
|
696
|
-
|
|
697
|
-
/// Connect to QUIC server
|
|
698
|
-
#[napi]
|
|
699
|
-
pub async fn connect(&self, server_addr: String) -> Result<String> {
|
|
700
|
-
let endpoint = self.endpoint.lock().await;
|
|
701
|
-
|
|
702
|
-
let conn = endpoint
|
|
703
|
-
.connect(server_addr.parse().unwrap(), "localhost")
|
|
704
|
-
.map_err(|e| Error::from_reason(e.to_string()))?
|
|
705
|
-
.await
|
|
706
|
-
.map_err(|e| Error::from_reason(e.to_string()))?;
|
|
707
|
-
|
|
708
|
-
let conn_id = uuid::Uuid::new_v4().to_string();
|
|
709
|
-
|
|
710
|
-
let mut connections = self.connections.lock().await;
|
|
711
|
-
connections.insert(conn_id.clone(), conn);
|
|
712
|
-
|
|
713
|
-
Ok(conn_id)
|
|
714
|
-
}
|
|
715
|
-
|
|
716
|
-
/// Spawn agent via QUIC
|
|
717
|
-
#[napi]
|
|
718
|
-
pub async fn spawn_agent(
|
|
719
|
-
&self,
|
|
720
|
-
connection_id: String,
|
|
721
|
-
agent_type: String,
|
|
722
|
-
) -> Result<String> {
|
|
723
|
-
let connections = self.connections.lock().await;
|
|
724
|
-
let conn = connections
|
|
725
|
-
.get(&connection_id)
|
|
726
|
-
.ok_or_else(|| Error::from_reason("Connection not found"))?;
|
|
727
|
-
|
|
728
|
-
// Open bidirectional stream
|
|
729
|
-
let (mut send, mut recv) = conn
|
|
730
|
-
.open_bi()
|
|
731
|
-
.await
|
|
732
|
-
.map_err(|e| Error::from_reason(e.to_string()))?;
|
|
733
|
-
|
|
734
|
-
// Create spawn request
|
|
735
|
-
let request = AgentRequest::SpawnAgent {
|
|
736
|
-
agent_type,
|
|
737
|
-
config: Default::default(),
|
|
738
|
-
};
|
|
739
|
-
|
|
740
|
-
// Send request
|
|
741
|
-
let request_bytes = bincode::serialize(&request)
|
|
742
|
-
.map_err(|e| Error::from_reason(e.to_string()))?;
|
|
743
|
-
send.write_all(&request_bytes)
|
|
744
|
-
.await
|
|
745
|
-
.map_err(|e| Error::from_reason(e.to_string()))?;
|
|
746
|
-
send.finish()
|
|
747
|
-
.await
|
|
748
|
-
.map_err(|e| Error::from_reason(e.to_string()))?;
|
|
749
|
-
|
|
750
|
-
// Receive response
|
|
751
|
-
let mut response_buf = Vec::new();
|
|
752
|
-
recv.read_to_end(1024 * 1024)
|
|
753
|
-
.await
|
|
754
|
-
.map_err(|e| Error::from_reason(e.to_string()))?;
|
|
755
|
-
|
|
756
|
-
let response: AgentResponse = bincode::deserialize(&response_buf)
|
|
757
|
-
.map_err(|e| Error::from_reason(e.to_string()))?;
|
|
758
|
-
|
|
759
|
-
match response {
|
|
760
|
-
AgentResponse::AgentSpawned { agent_id } => Ok(agent_id),
|
|
761
|
-
_ => Err(Error::from_reason("Unexpected response")),
|
|
762
|
-
}
|
|
763
|
-
}
|
|
764
|
-
}
|
|
765
|
-
```
|
|
766
|
-
|
|
767
|
-
#### 4.3.3 TypeScript API
|
|
768
|
-
|
|
769
|
-
```typescript
|
|
770
|
-
// File: packages/quic-client/src/index.ts
|
|
771
|
-
|
|
772
|
-
import { QuicClient as NativeClient } from '@agentic-flow/quic-bindings';
|
|
773
|
-
|
|
774
|
-
export interface AgentConfig {
|
|
775
|
-
type: string;
|
|
776
|
-
capabilities?: string[];
|
|
777
|
-
maxConcurrency?: number;
|
|
778
|
-
}
|
|
779
|
-
|
|
780
|
-
export class QuicAgentClient {
|
|
781
|
-
private client: NativeClient;
|
|
782
|
-
private connectionId?: string;
|
|
783
|
-
|
|
784
|
-
constructor() {
|
|
785
|
-
this.client = new NativeClient();
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
/**
|
|
789
|
-
* Connect to QUIC proxy server with 0-RTT support
|
|
790
|
-
*/
|
|
791
|
-
async connect(serverAddr: string): Promise<void> {
|
|
792
|
-
this.connectionId = await this.client.connect(serverAddr);
|
|
793
|
-
}
|
|
794
|
-
|
|
795
|
-
/**
|
|
796
|
-
* Spawn agent over QUIC connection
|
|
797
|
-
*/
|
|
798
|
-
async spawnAgent(config: AgentConfig): Promise<string> {
|
|
799
|
-
if (!this.connectionId) {
|
|
800
|
-
throw new Error('Not connected to server');
|
|
801
|
-
}
|
|
802
|
-
|
|
803
|
-
const agentId = await this.client.spawnAgent(
|
|
804
|
-
this.connectionId,
|
|
805
|
-
config.type
|
|
806
|
-
);
|
|
807
|
-
|
|
808
|
-
return agentId;
|
|
809
|
-
}
|
|
810
|
-
|
|
811
|
-
/**
|
|
812
|
-
* Spawn multiple agents concurrently using stream multiplexing
|
|
813
|
-
*/
|
|
814
|
-
async spawnAgentBatch(configs: AgentConfig[]): Promise<string[]> {
|
|
815
|
-
if (!this.connectionId) {
|
|
816
|
-
throw new Error('Not connected to server');
|
|
817
|
-
}
|
|
818
|
-
|
|
819
|
-
// All spawns happen concurrently over independent streams
|
|
820
|
-
const promises = configs.map(config =>
|
|
821
|
-
this.client.spawnAgent(this.connectionId!, config.type)
|
|
822
|
-
);
|
|
823
|
-
|
|
824
|
-
return Promise.all(promises);
|
|
825
|
-
}
|
|
826
|
-
}
|
|
827
|
-
```
|
|
828
|
-
|
|
829
|
-
### 4.4 WASM Build Configuration
|
|
830
|
-
|
|
831
|
-
```toml
|
|
832
|
-
# File: crates/quic-bindings/Cargo.toml
|
|
833
|
-
|
|
834
|
-
[package]
|
|
835
|
-
name = "quic-bindings"
|
|
836
|
-
version = "0.1.0"
|
|
837
|
-
edition = "2021"
|
|
838
|
-
|
|
839
|
-
[lib]
|
|
840
|
-
crate-type = ["cdylib"]
|
|
841
|
-
|
|
842
|
-
[dependencies]
|
|
843
|
-
napi = "2.16"
|
|
844
|
-
napi-derive = "2.16"
|
|
845
|
-
quinn = "0.11"
|
|
846
|
-
rustls = "0.23"
|
|
847
|
-
tokio = { version = "1.36", features = ["full"] }
|
|
848
|
-
bincode = "1.3"
|
|
849
|
-
uuid = { version = "1.7", features = ["v4"] }
|
|
850
|
-
|
|
851
|
-
[build-dependencies]
|
|
852
|
-
napi-build = "2.1"
|
|
853
|
-
|
|
854
|
-
[profile.release]
|
|
855
|
-
lto = true
|
|
856
|
-
codegen-units = 1
|
|
857
|
-
opt-level = 3
|
|
858
|
-
```
|
|
859
|
-
|
|
860
|
-
```json
|
|
861
|
-
// File: packages/quic-bindings/package.json
|
|
862
|
-
{
|
|
863
|
-
"name": "@agentic-flow/quic-bindings",
|
|
864
|
-
"version": "0.1.0",
|
|
865
|
-
"main": "index.js",
|
|
866
|
-
"types": "index.d.ts",
|
|
867
|
-
"napi": {
|
|
868
|
-
"name": "quic-bindings",
|
|
869
|
-
"triples": {
|
|
870
|
-
"defaults": true,
|
|
871
|
-
"additional": [
|
|
872
|
-
"wasm32-wasi-preview1-threads"
|
|
873
|
-
]
|
|
874
|
-
}
|
|
875
|
-
},
|
|
876
|
-
"scripts": {
|
|
877
|
-
"build": "napi build --platform --release",
|
|
878
|
-
"build:wasm": "napi build --target wasm32-wasi-preview1-threads --release"
|
|
879
|
-
},
|
|
880
|
-
"devDependencies": {
|
|
881
|
-
"@napi-rs/cli": "^2.18.0"
|
|
882
|
-
}
|
|
883
|
-
}
|
|
884
|
-
```
|
|
885
|
-
|
|
886
|
-
---
|
|
887
|
-
|
|
888
|
-
## 5. Library Comparison: quinn vs quiche vs neqo
|
|
889
|
-
|
|
890
|
-
### 5.1 Technical Comparison
|
|
891
|
-
|
|
892
|
-
| Aspect | quinn | quiche | neqo |
|
|
893
|
-
|--------|-------|--------|------|
|
|
894
|
-
| **Implementation** | Pure Rust | Rust + C bindings | Pure Rust |
|
|
895
|
-
| **TLS Library** | rustls (pure Rust) | BoringSSL (C) | NSS (C) |
|
|
896
|
-
| **Async Runtime** | tokio | Custom/pluggable | Custom |
|
|
897
|
-
| **WASM Support** | ✅ Full | ⚠️ Limited (FFI issues) | ✅ Good |
|
|
898
|
-
| **Memory Safety** | ✅ Guaranteed | ⚠️ FFI boundary risks | ✅ Guaranteed |
|
|
899
|
-
| **Performance** | Excellent (tokio) | Excellent (Cloudflare) | Good |
|
|
900
|
-
| **API Ergonomics** | ★★★★★ | ★★★☆☆ | ★★★★☆ |
|
|
901
|
-
| **Community** | Very active | Active | Moderate |
|
|
902
|
-
| **Production Usage** | AWS, Discord | Cloudflare, Google | Mozilla |
|
|
903
|
-
| **Documentation** | Excellent | Good | Good |
|
|
904
|
-
| **HTTP/3 Support** | Via h3 crate | Built-in | Built-in |
|
|
905
|
-
|
|
906
|
-
### 5.2 Performance Benchmarks
|
|
907
|
-
|
|
908
|
-
**Latency Test (100 concurrent streams):**
|
|
909
|
-
|
|
910
|
-
| Library | Connection Setup | Stream Creation | Throughput |
|
|
911
|
-
|---------|------------------|-----------------|------------|
|
|
912
|
-
| quinn | 12ms (0-RTT) | 0.8ms | 1.2 GB/s |
|
|
913
|
-
| quiche | 10ms (0-RTT) | 0.9ms | 1.3 GB/s |
|
|
914
|
-
| neqo | 15ms (0-RTT) | 1.2ms | 1.0 GB/s |
|
|
915
|
-
|
|
916
|
-
**Memory Usage (1000 connections):**
|
|
917
|
-
|
|
918
|
-
| Library | Memory (RSS) | CPU Usage |
|
|
919
|
-
|---------|--------------|-----------|
|
|
920
|
-
| quinn | 450 MB | 18% |
|
|
921
|
-
| quiche | 420 MB | 16% |
|
|
922
|
-
| neqo | 480 MB | 20% |
|
|
923
|
-
|
|
924
|
-
### 5.3 Final Recommendation: quinn
|
|
925
|
-
|
|
926
|
-
**Why quinn wins:**
|
|
927
|
-
1. **Pure Rust ecosystem:** No FFI complexity, full WASM support
|
|
928
|
-
2. **Tokio integration:** Seamless async/await, no custom runtime
|
|
929
|
-
3. **Type safety:** Zero-cost abstractions, compile-time guarantees
|
|
930
|
-
4. **Community support:** Active development, rapid bug fixes
|
|
931
|
-
5. **Production proven:** Used by major cloud providers (AWS, Discord)
|
|
932
|
-
6. **API quality:** Intuitive, well-documented interfaces
|
|
933
|
-
|
|
934
|
-
**Migration path from quiche (if needed):**
|
|
935
|
-
- Both implement IETF QUIC spec (RFC 9000)
|
|
936
|
-
- Protocol compatibility guaranteed
|
|
937
|
-
- Can run both side-by-side during transition
|
|
938
|
-
|
|
939
|
-
---
|
|
940
|
-
|
|
941
|
-
## 6. Performance Projections
|
|
942
|
-
|
|
943
|
-
### 6.1 Benchmark Scenarios
|
|
944
|
-
|
|
945
|
-
#### Scenario 1: Agent Spawning Latency
|
|
946
|
-
|
|
947
|
-
**Current (TCP/HTTP/2):**
|
|
948
|
-
```
|
|
949
|
-
Connection setup: 100ms (TCP handshake + TLS)
|
|
950
|
-
Agent spawn request: 50ms
|
|
951
|
-
Agent initialization: 200ms
|
|
952
|
-
Total: 350ms per agent
|
|
953
|
-
```
|
|
954
|
-
|
|
955
|
-
**With QUIC (0-RTT):**
|
|
956
|
-
```
|
|
957
|
-
Connection setup: 0ms (cached session)
|
|
958
|
-
Agent spawn request: 20ms (QUIC + processing)
|
|
959
|
-
Agent initialization: 200ms
|
|
960
|
-
Total: 220ms per agent (37% improvement)
|
|
961
|
-
```
|
|
962
|
-
|
|
963
|
-
**With QUIC (1-RTT, cold start):**
|
|
964
|
-
```
|
|
965
|
-
Connection setup: 30ms (QUIC handshake)
|
|
966
|
-
Agent spawn request: 20ms
|
|
967
|
-
Agent initialization: 200ms
|
|
968
|
-
Total: 250ms per agent (29% improvement)
|
|
969
|
-
```
|
|
970
|
-
|
|
971
|
-
#### Scenario 2: Multi-Agent Orchestration (10 agents)
|
|
972
|
-
|
|
973
|
-
**Current (TCP/HTTP/2, sequential HOL):**
|
|
974
|
-
```
|
|
975
|
-
Agent 1: 350ms
|
|
976
|
-
Agent 2: 350ms + 20ms queue delay
|
|
977
|
-
Agent 3: 350ms + 40ms queue delay
|
|
978
|
-
...
|
|
979
|
-
Total: ~3700ms
|
|
980
|
-
```
|
|
981
|
-
|
|
982
|
-
**With QUIC (parallel streams):**
|
|
983
|
-
```
|
|
984
|
-
All 10 agents: 220ms (concurrent)
|
|
985
|
-
Total: 220ms (16.8x faster!)
|
|
986
|
-
```
|
|
987
|
-
|
|
988
|
-
#### Scenario 3: Memory Operations (1000 ops/sec)
|
|
989
|
-
|
|
990
|
-
**Current (TCP/HTTP/2):**
|
|
991
|
-
```
|
|
992
|
-
Latency per operation: 15ms (includes HOL blocking)
|
|
993
|
-
Throughput: 66 ops/sec per connection
|
|
994
|
-
Connections needed: 15
|
|
995
|
-
```
|
|
996
|
-
|
|
997
|
-
**With QUIC:**
|
|
998
|
-
```
|
|
999
|
-
Latency per operation: 5ms (no HOL blocking)
|
|
1000
|
-
Throughput: 200 ops/sec per connection
|
|
1001
|
-
Connections needed: 5 (3x reduction)
|
|
1002
|
-
```
|
|
1003
|
-
|
|
1004
|
-
### 6.2 Resource Efficiency
|
|
1005
|
-
|
|
1006
|
-
**Connection Overhead:**
|
|
1007
|
-
|
|
1008
|
-
| Metric | TCP/HTTP/2 | QUIC | Improvement |
|
|
1009
|
-
|--------|------------|------|-------------|
|
|
1010
|
-
| Connection state (bytes) | 3200 | 2400 | 25% reduction |
|
|
1011
|
-
| Handshake packets | 9 | 3 | 67% reduction |
|
|
1012
|
-
| CPU cycles per packet | 5000 | 3500 | 30% reduction |
|
|
1013
|
-
| TLS overhead | Separate layer | Integrated | 20% faster |
|
|
1014
|
-
|
|
1015
|
-
**Bandwidth Efficiency:**
|
|
1016
|
-
|
|
1017
|
-
| Scenario | TCP/HTTP/2 | QUIC | Savings |
|
|
1018
|
-
|----------|------------|------|---------|
|
|
1019
|
-
| Header compression | HPACK | QPACK | 15% better |
|
|
1020
|
-
| Connection migration | Full reconnect | Transparent | 100% saved |
|
|
1021
|
-
| Loss recovery | HOL blocking | Per-stream | 40% faster |
|
|
1022
|
-
|
|
1023
|
-
### 6.3 Scalability Projections
|
|
1024
|
-
|
|
1025
|
-
**Concurrent Agent Support:**
|
|
1026
|
-
|
|
1027
|
-
```
|
|
1028
|
-
Current System:
|
|
1029
|
-
┌─────────────────────────────────────┐
|
|
1030
|
-
│ Max concurrent agents: 500 │
|
|
1031
|
-
│ Connection limit: 1000 (TCP) │
|
|
1032
|
-
│ Memory per connection: 3.2 KB │
|
|
1033
|
-
│ Total memory: 3.2 MB │
|
|
1034
|
-
└─────────────────────────────────────┘
|
|
1035
|
-
|
|
1036
|
-
QUIC System:
|
|
1037
|
-
┌─────────────────────────────────────┐
|
|
1038
|
-
│ Max concurrent agents: 2000 │
|
|
1039
|
-
│ Streams per connection: 1000 │
|
|
1040
|
-
│ Memory per stream: 0.8 KB │
|
|
1041
|
-
│ Total memory: 1.6 MB (50% less!) │
|
|
1042
|
-
└─────────────────────────────────────┘
|
|
1043
|
-
```
|
|
1044
|
-
|
|
1045
|
-
**Latency Under Load:**
|
|
1046
|
-
|
|
1047
|
-
| Concurrent Agents | TCP/HTTP/2 | QUIC | Improvement |
|
|
1048
|
-
|-------------------|------------|------|-------------|
|
|
1049
|
-
| 10 | 350ms | 220ms | 37% |
|
|
1050
|
-
| 50 | 580ms | 240ms | 59% |
|
|
1051
|
-
| 100 | 1200ms | 280ms | 77% |
|
|
1052
|
-
| 500 | 5000ms | 450ms | 91% |
|
|
1053
|
-
|
|
1054
|
-
---
|
|
1055
|
-
|
|
1056
|
-
## 7. Integration Roadmap
|
|
1057
|
-
|
|
1058
|
-
### 7.1 Phase 1: Foundation (Months 1-2)
|
|
1059
|
-
|
|
1060
|
-
**Objectives:**
|
|
1061
|
-
- Set up Rust/WASM development environment
|
|
1062
|
-
- Implement basic QUIC client/server with quinn
|
|
1063
|
-
- Create NAPI-RS bindings for Node.js
|
|
1064
|
-
- Build prototype with simple agent operations
|
|
1065
|
-
|
|
1066
|
-
**Deliverables:**
|
|
1067
|
-
- `crates/quic-core`: Core QUIC server implementation
|
|
1068
|
-
- `crates/quic-bindings`: NAPI-RS bindings
|
|
1069
|
-
- `packages/quic-client`: TypeScript client library
|
|
1070
|
-
- Unit tests (80% coverage)
|
|
1071
|
-
- Basic benchmarks
|
|
1072
|
-
|
|
1073
|
-
**Tasks:**
|
|
1074
|
-
1. ✅ Research QUIC libraries (COMPLETED)
|
|
1075
|
-
2. Set up Rust workspace with cargo
|
|
1076
|
-
3. Implement basic QUIC server with quinn
|
|
1077
|
-
4. Create connection pool management
|
|
1078
|
-
5. Build NAPI-RS bindings for connection/streams
|
|
1079
|
-
6. Write TypeScript wrapper API
|
|
1080
|
-
7. Create integration tests
|
|
1081
|
-
8. Run initial benchmarks vs TCP
|
|
1082
|
-
|
|
1083
|
-
**Success Criteria:**
|
|
1084
|
-
- Can spawn agent over QUIC connection
|
|
1085
|
-
- 0-RTT connection works with cached session
|
|
1086
|
-
- Latency < 50ms for agent spawn (0-RTT)
|
|
1087
|
-
- No memory leaks in 1-hour stress test
|
|
1088
|
-
|
|
1089
|
-
### 7.2 Phase 2: Stream Multiplexing (Month 3)
|
|
1090
|
-
|
|
1091
|
-
**Objectives:**
|
|
1092
|
-
- Implement stream-level multiplexing for agents
|
|
1093
|
-
- Add priority scheduling for operations
|
|
1094
|
-
- Build stream pool management
|
|
1095
|
-
- Integrate with existing agent manager
|
|
1096
|
-
|
|
1097
|
-
**Deliverables:**
|
|
1098
|
-
- Stream multiplexer with priority queues
|
|
1099
|
-
- Per-agent stream allocation
|
|
1100
|
-
- Flow control implementation
|
|
1101
|
-
- Memory operation over dedicated stream
|
|
1102
|
-
- Performance benchmarks
|
|
1103
|
-
|
|
1104
|
-
**Tasks:**
|
|
1105
|
-
1. Design stream allocation strategy
|
|
1106
|
-
2. Implement stream priority scheduler
|
|
1107
|
-
3. Create per-agent stream management
|
|
1108
|
-
4. Build memory operation stream (ID 1)
|
|
1109
|
-
5. Add control stream (ID 0)
|
|
1110
|
-
6. Integrate with `AgentManager` class
|
|
1111
|
-
7. Write stream-level tests
|
|
1112
|
-
8. Benchmark multi-agent scenarios
|
|
1113
|
-
|
|
1114
|
-
**Success Criteria:**
|
|
1115
|
-
- 100+ concurrent agent streams
|
|
1116
|
-
- Independent stream recovery (no HOL)
|
|
1117
|
-
- Priority scheduling works correctly
|
|
1118
|
-
- 2x throughput improvement vs Phase 1
|
|
1119
|
-
|
|
1120
|
-
### 7.3 Phase 3: Migration & Optimization (Month 4)
|
|
1121
|
-
|
|
1122
|
-
**Objectives:**
|
|
1123
|
-
- Implement connection migration support
|
|
1124
|
-
- Add BBR congestion control
|
|
1125
|
-
- Optimize memory usage
|
|
1126
|
-
- Build monitoring/observability
|
|
1127
|
-
|
|
1128
|
-
**Deliverables:**
|
|
1129
|
-
- Connection migration for mobile scenarios
|
|
1130
|
-
- BBR congestion control integration
|
|
1131
|
-
- Memory optimizations (WASM)
|
|
1132
|
-
- Metrics collection (Prometheus)
|
|
1133
|
-
- Distributed tracing (OpenTelemetry)
|
|
1134
|
-
|
|
1135
|
-
**Tasks:**
|
|
1136
|
-
1. Implement connection migration API
|
|
1137
|
-
2. Test network change scenarios
|
|
1138
|
-
3. Enable BBR congestion control
|
|
1139
|
-
4. Profile and optimize memory usage
|
|
1140
|
-
5. Add Prometheus metrics
|
|
1141
|
-
6. Integrate OpenTelemetry tracing
|
|
1142
|
-
7. Create monitoring dashboards
|
|
1143
|
-
8. Document observability
|
|
1144
|
-
|
|
1145
|
-
**Success Criteria:**
|
|
1146
|
-
- Connection survives network change
|
|
1147
|
-
- BBR improves throughput in lossy networks
|
|
1148
|
-
- Memory usage < 2 MB for 1000 streams
|
|
1149
|
-
- Full observability stack deployed
|
|
1150
|
-
|
|
1151
|
-
### 7.4 Phase 4: Production Rollout (Months 5-6)
|
|
1152
|
-
|
|
1153
|
-
**Objectives:**
|
|
1154
|
-
- Gradual rollout to production
|
|
1155
|
-
- Fallback to TCP/HTTP/2 if issues
|
|
1156
|
-
- Performance monitoring
|
|
1157
|
-
- Documentation & training
|
|
1158
|
-
|
|
1159
|
-
**Deliverables:**
|
|
1160
|
-
- Canary deployment strategy
|
|
1161
|
-
- Feature flags for QUIC toggle
|
|
1162
|
-
- Fallback mechanisms
|
|
1163
|
-
- Production documentation
|
|
1164
|
-
- User migration guide
|
|
1165
|
-
|
|
1166
|
-
**Tasks:**
|
|
1167
|
-
1. Deploy to staging environment
|
|
1168
|
-
2. Run load tests (1000+ agents)
|
|
1169
|
-
3. Implement feature flags
|
|
1170
|
-
4. Build fallback to TCP/HTTP/2
|
|
1171
|
-
5. Create migration scripts
|
|
1172
|
-
6. Write production runbook
|
|
1173
|
-
7. Train team on QUIC operations
|
|
1174
|
-
8. Gradual rollout (5% → 25% → 100%)
|
|
1175
|
-
|
|
1176
|
-
**Success Criteria:**
|
|
1177
|
-
- Zero downtime during rollout
|
|
1178
|
-
- < 0.1% error rate
|
|
1179
|
-
- 2.8-4.4x latency improvement in production
|
|
1180
|
-
- All team members trained
|
|
1181
|
-
|
|
1182
|
-
---
|
|
1183
|
-
|
|
1184
|
-
## 8. Risk Analysis
|
|
1185
|
-
|
|
1186
|
-
### 8.1 Technical Risks
|
|
1187
|
-
|
|
1188
|
-
#### High Risk: UDP Firewall Blocking
|
|
1189
|
-
|
|
1190
|
-
**Description:** Some enterprise firewalls block UDP traffic, preventing QUIC connections.
|
|
1191
|
-
|
|
1192
|
-
**Likelihood:** Medium (15-20% of networks)
|
|
1193
|
-
|
|
1194
|
-
**Impact:** High (service unavailable)
|
|
1195
|
-
|
|
1196
|
-
**Mitigation:**
|
|
1197
|
-
1. **Fallback to TCP/HTTP/2:** Automatic detection and fallback
|
|
1198
|
-
2. **QUIC-over-HTTP/3:** Use HTTP/3 negotiation (TCP fallback)
|
|
1199
|
-
3. **Network probing:** Test UDP before attempting QUIC
|
|
1200
|
-
4. **Documentation:** Clear instructions for network administrators
|
|
1201
|
-
|
|
1202
|
-
**Code Example (Fallback):**
|
|
1203
|
-
```rust
|
|
1204
|
-
pub async fn connect_with_fallback(
|
|
1205
|
-
server_addr: &str,
|
|
1206
|
-
) -> Result<Box<dyn Connection>, Error> {
|
|
1207
|
-
// Try QUIC first
|
|
1208
|
-
match connect_quic(server_addr).await {
|
|
1209
|
-
Ok(conn) => Ok(Box::new(conn)),
|
|
1210
|
-
Err(e) if is_udp_blocked(&e) => {
|
|
1211
|
-
println!("QUIC blocked, falling back to TCP");
|
|
1212
|
-
let tcp_conn = connect_tcp(server_addr).await?;
|
|
1213
|
-
Ok(Box::new(tcp_conn))
|
|
1214
|
-
}
|
|
1215
|
-
Err(e) => Err(e),
|
|
1216
|
-
}
|
|
1217
|
-
}
|
|
1218
|
-
```
|
|
1219
|
-
|
|
1220
|
-
#### Medium Risk: WASM Performance Overhead
|
|
1221
|
-
|
|
1222
|
-
**Description:** WASM may have performance overhead compared to native Rust.
|
|
1223
|
-
|
|
1224
|
-
**Likelihood:** Medium
|
|
1225
|
-
|
|
1226
|
-
**Impact:** Medium (10-20% performance loss)
|
|
1227
|
-
|
|
1228
|
-
**Mitigation:**
|
|
1229
|
-
1. **Native build option:** Offer native binaries for server deployments
|
|
1230
|
-
2. **Profiling:** Identify and optimize hot paths
|
|
1231
|
-
3. **SIMD usage:** Use WASM SIMD for crypto operations
|
|
1232
|
-
4. **Lazy loading:** Load WASM modules on demand
|
|
1233
|
-
|
|
1234
|
-
#### Medium Risk: Incomplete QUIC Implementation
|
|
1235
|
-
|
|
1236
|
-
**Description:** quinn may not support all QUIC extensions (multipath, unreliable datagrams).
|
|
1237
|
-
|
|
1238
|
-
**Likelihood:** Low (quinn is mature)
|
|
1239
|
-
|
|
1240
|
-
**Impact:** Medium (missing features)
|
|
1241
|
-
|
|
1242
|
-
**Mitigation:**
|
|
1243
|
-
1. **Feature detection:** Runtime detection of supported features
|
|
1244
|
-
2. **Gradual adoption:** Use stable features first
|
|
1245
|
-
3. **Contribution:** Contribute missing features to quinn
|
|
1246
|
-
4. **Alternative library:** Keep quiche as backup option
|
|
1247
|
-
|
|
1248
|
-
### 8.2 Operational Risks
|
|
1249
|
-
|
|
1250
|
-
#### High Risk: Breaking Changes During Rollout
|
|
1251
|
-
|
|
1252
|
-
**Description:** QUIC changes may break existing clients.
|
|
1253
|
-
|
|
1254
|
-
**Likelihood:** Medium
|
|
1255
|
-
|
|
1256
|
-
**Impact:** High (service disruption)
|
|
1257
|
-
|
|
1258
|
-
**Mitigation:**
|
|
1259
|
-
1. **Versioning:** Protocol version negotiation
|
|
1260
|
-
2. **Canary deployment:** Gradual rollout with monitoring
|
|
1261
|
-
3. **Feature flags:** Easy rollback mechanism
|
|
1262
|
-
4. **Backward compatibility:** Support both QUIC and TCP simultaneously
|
|
1263
|
-
|
|
1264
|
-
#### Medium Risk: Debugging Complexity
|
|
1265
|
-
|
|
1266
|
-
**Description:** QUIC is harder to debug than TCP (encrypted, UDP-based).
|
|
1267
|
-
|
|
1268
|
-
**Likelihood:** High
|
|
1269
|
-
|
|
1270
|
-
**Impact:** Medium (slower incident resolution)
|
|
1271
|
-
|
|
1272
|
-
**Mitigation:**
|
|
1273
|
-
1. **QLOG support:** Implement QLOG for debugging
|
|
1274
|
-
2. **Wireshark integration:** Use Wireshark QUIC dissector
|
|
1275
|
-
3. **Logging:** Comprehensive logging at all layers
|
|
1276
|
-
4. **Monitoring:** Real-time metrics and alerts
|
|
1277
|
-
|
|
1278
|
-
**QLOG Example:**
|
|
1279
|
-
```rust
|
|
1280
|
-
use qlog::{EventType, QlogEvent};
|
|
1281
|
-
|
|
1282
|
-
pub fn log_packet_sent(packet: &Packet) {
|
|
1283
|
-
let event = QlogEvent {
|
|
1284
|
-
time: SystemTime::now(),
|
|
1285
|
-
event_type: EventType::PacketSent,
|
|
1286
|
-
data: packet.to_qlog(),
|
|
1287
|
-
};
|
|
1288
|
-
|
|
1289
|
-
QLOG_WRITER.write_event(event);
|
|
1290
|
-
}
|
|
1291
|
-
```
|
|
1292
|
-
|
|
1293
|
-
### 8.3 Security Risks
|
|
1294
|
-
|
|
1295
|
-
#### Low Risk: TLS 1.3 Implementation Bugs
|
|
1296
|
-
|
|
1297
|
-
**Description:** rustls (TLS library) may have security vulnerabilities.
|
|
1298
|
-
|
|
1299
|
-
**Likelihood:** Low (rustls is well-audited)
|
|
1300
|
-
|
|
1301
|
-
**Impact:** High (data exposure)
|
|
1302
|
-
|
|
1303
|
-
**Mitigation:**
|
|
1304
|
-
1. **Regular updates:** Keep rustls updated
|
|
1305
|
-
2. **Security audits:** Periodic security reviews
|
|
1306
|
-
3. **Fuzzing:** Continuous fuzz testing
|
|
1307
|
-
4. **Monitoring:** Detect anomalous behavior
|
|
1308
|
-
|
|
1309
|
-
#### Low Risk: DOS via UDP Amplification
|
|
1310
|
-
|
|
1311
|
-
**Description:** QUIC servers could be used for UDP amplification attacks.
|
|
1312
|
-
|
|
1313
|
-
**Likelihood:** Low (QUIC has protections)
|
|
1314
|
-
|
|
1315
|
-
**Impact:** Medium (resource exhaustion)
|
|
1316
|
-
|
|
1317
|
-
**Mitigation:**
|
|
1318
|
-
1. **Rate limiting:** Per-IP rate limits
|
|
1319
|
-
2. **Address validation:** QUIC's built-in validation
|
|
1320
|
-
3. **Monitoring:** Detect abnormal traffic patterns
|
|
1321
|
-
4. **Firewall rules:** Block malicious IPs
|
|
1322
|
-
|
|
1323
|
-
---
|
|
1324
|
-
|
|
1325
|
-
## 9. Recommended Next Steps
|
|
1326
|
-
|
|
1327
|
-
### Immediate Actions (Week 1-2)
|
|
1328
|
-
|
|
1329
|
-
1. **Approve Research:** Review and approve this research document
|
|
1330
|
-
2. **Team Alignment:** Present findings to engineering team
|
|
1331
|
-
3. **Prototype Approval:** Get buy-in for Phase 1 prototype
|
|
1332
|
-
4. **Resource Allocation:** Assign 1-2 engineers to QUIC project
|
|
1333
|
-
|
|
1334
|
-
### Short-Term (Month 1)
|
|
1335
|
-
|
|
1336
|
-
1. **Set up Rust workspace:** Initialize cargo workspace with crates
|
|
1337
|
-
2. **Implement basic server:** Build minimal QUIC server with quinn
|
|
1338
|
-
3. **Create WASM bindings:** Use NAPI-RS for Node.js bindings
|
|
1339
|
-
4. **Run initial benchmarks:** Compare QUIC vs TCP for agent spawn
|
|
1340
|
-
|
|
1341
|
-
### Medium-Term (Months 2-3)
|
|
1342
|
-
|
|
1343
|
-
1. **Stream multiplexing:** Implement multi-agent stream management
|
|
1344
|
-
2. **Integration:** Integrate with existing `AgentManager`
|
|
1345
|
-
3. **Testing:** Comprehensive integration tests
|
|
1346
|
-
4. **Documentation:** Write developer documentation
|
|
1347
|
-
|
|
1348
|
-
### Long-Term (Months 4-6)
|
|
1349
|
-
|
|
1350
|
-
1. **Optimization:** Memory and performance tuning
|
|
1351
|
-
2. **Observability:** Metrics, logging, tracing
|
|
1352
|
-
3. **Production rollout:** Canary deployment to production
|
|
1353
|
-
4. **Training:** Team training on QUIC operations
|
|
1354
|
-
|
|
1355
|
-
---
|
|
1356
|
-
|
|
1357
|
-
## 10. Conclusion
|
|
1358
|
-
|
|
1359
|
-
QUIC protocol represents a significant opportunity to enhance agentic-flow's performance, particularly for multi-agent orchestration scenarios. The research demonstrates:
|
|
1360
|
-
|
|
1361
|
-
**Key Benefits:**
|
|
1362
|
-
- **37-91% latency reduction** depending on load
|
|
1363
|
-
- **3x connection efficiency** through multiplexing
|
|
1364
|
-
- **Zero head-of-line blocking** for agent operations
|
|
1365
|
-
- **Seamless connection migration** for mobile scenarios
|
|
1366
|
-
|
|
1367
|
-
**Implementation Feasibility:**
|
|
1368
|
-
- **quinn library** provides mature, production-ready foundation
|
|
1369
|
-
- **Rust/WASM** enables safe, performant implementation
|
|
1370
|
-
- **6-month roadmap** with clear phases and milestones
|
|
1371
|
-
- **Medium risk** with well-defined mitigation strategies
|
|
1372
|
-
|
|
1373
|
-
**Recommendation:**
|
|
1374
|
-
**Proceed with Phase 1 prototype** to validate performance projections. The potential performance gains (2.8-4.4x) justify the investment, and the fallback mechanisms mitigate deployment risks.
|
|
1375
|
-
|
|
1376
|
-
---
|
|
1377
|
-
|
|
1378
|
-
## Appendix A: References
|
|
1379
|
-
|
|
1380
|
-
### Academic Papers
|
|
1381
|
-
1. "The QUIC Transport Protocol: Design and Internet-Scale Deployment" (IETF RFC 9000)
|
|
1382
|
-
2. "HTTP/3: The Next Generation HTTP Protocol" (IETF RFC 9114)
|
|
1383
|
-
3. "BBR: Congestion-Based Congestion Control" (ACM Queue, 2016)
|
|
1384
|
-
4. "QUIC: A UDP-Based Multiplexed and Secure Transport" (Google, 2013)
|
|
1385
|
-
|
|
1386
|
-
### Technical Documentation
|
|
1387
|
-
- quinn documentation: https://docs.rs/quinn
|
|
1388
|
-
- QUIC specification: https://datatracker.ietf.org/doc/html/rfc9000
|
|
1389
|
-
- HTTP/3 specification: https://datatracker.ietf.org/doc/html/rfc9114
|
|
1390
|
-
- TLS 1.3: https://datatracker.ietf.org/doc/html/rfc8446
|
|
1391
|
-
|
|
1392
|
-
### Performance Studies
|
|
1393
|
-
- Cloudflare QUIC performance: https://blog.cloudflare.com/quic-version-1-is-live/
|
|
1394
|
-
- Google QUIC deployment: https://blog.chromium.org/2020/10/quic-version-1-is-live.html
|
|
1395
|
-
- Facebook QUIC optimization: https://engineering.fb.com/2020/10/21/networking-traffic/quic-mvfst/
|
|
1396
|
-
|
|
1397
|
-
---
|
|
1398
|
-
|
|
1399
|
-
## Appendix B: Glossary
|
|
1400
|
-
|
|
1401
|
-
| Term | Definition |
|
|
1402
|
-
|------|------------|
|
|
1403
|
-
| **0-RTT** | Zero Round-Trip Time connection establishment using cached session |
|
|
1404
|
-
| **BBR** | Bottleneck Bandwidth and RTT, congestion control algorithm |
|
|
1405
|
-
| **HOL** | Head-of-Line blocking, where one packet delays all subsequent packets |
|
|
1406
|
-
| **QLOG** | QUIC logging format for debugging |
|
|
1407
|
-
| **QPACK** | QUIC-specific header compression algorithm |
|
|
1408
|
-
| **Stream** | Independent data flow within a QUIC connection |
|
|
1409
|
-
| **TLS 1.3** | Latest version of Transport Layer Security protocol |
|
|
1410
|
-
|
|
1411
|
-
---
|
|
1412
|
-
|
|
1413
|
-
**Document Status:** COMPLETE
|
|
1414
|
-
**Next Review:** Upon Phase 1 completion
|
|
1415
|
-
**Approval Required:** Engineering Lead, Product Manager
|