claude-flow-novice 1.3.5 → 1.5.0
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 +3 -20
- package/.claude/agents/analysis/code-review/analyze-code-quality.md +1 -1
- package/.claude/agents/analyst.md +300 -0
- package/.claude/agents/architect.md +557 -0
- package/.claude/agents/architecture/system-architect.md +630 -0
- package/.claude/agents/architecture/system-design/arch-system-design.md +1 -1
- package/.claude/agents/base-template-generator.md +24 -1
- package/.claude/agents/coder.md +180 -0
- package/.claude/agents/consensus/byzantine-coordinator.md +4 -21
- package/.claude/agents/consensus/consensus-builder.md +3 -20
- package/.claude/agents/consensus/crdt-synchronizer.md +4 -21
- package/.claude/agents/consensus/gossip-coordinator.md +4 -21
- package/.claude/agents/consensus/performance-benchmarker.md +4 -21
- package/.claude/agents/consensus/quorum-manager.md +4 -21
- package/.claude/agents/consensus/raft-manager.md +4 -21
- package/.claude/agents/consensus/security-manager.md +4 -21
- package/.claude/agents/coordinator.md +842 -0
- package/.claude/agents/data/ml/data-ml-model.md +2 -2
- package/.claude/agents/development/backend/dev-backend-api.md +2 -2
- package/.claude/agents/devops/ci-cd/ops-cicd-github.md +2 -2
- package/.claude/agents/devops/devops-engineer.md +638 -0
- package/.claude/agents/documentation/api-docs/docs-api-openapi.md +2 -2
- package/.claude/agents/github/code-review-swarm.md +1 -1
- package/.claude/agents/github/github-specialist.md +856 -0
- package/.claude/agents/github/pr-manager.md +1 -1
- package/.claude/agents/github/release-manager.md +1 -1
- package/.claude/agents/neural/neural-pattern-agent.md +762 -0
- package/.claude/agents/optimization/benchmark-suite.md +1 -1
- package/.claude/agents/optimization/perf-analyzer.md +725 -0
- package/.claude/agents/optimization/performance-monitor.md +1 -1
- package/.claude/agents/planner.md +135 -0
- package/.claude/agents/researcher.md +185 -0
- package/.claude/agents/reviewer.md +291 -0
- package/.claude/agents/security/security-specialist.md +978 -0
- package/.claude/agents/sparc/architecture.md +1 -1
- package/.claude/agents/sparc/pseudocode.md +1 -1
- package/.claude/agents/sparc/refinement.md +1 -1
- package/.claude/agents/sparc/specification.md +1 -1
- package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +2 -2
- package/.claude/agents/swarm/adaptive-coordinator-enhanced.md +746 -0
- package/.claude/agents/tester.md +663 -0
- package/.claude/agents/testing/unit/tdd-london-swarm.md +1 -1
- package/.claude/agents/testing/validation/production-validator.md +1 -1
- package/.claude/commands/claude-soul.js +1 -1
- package/.claude/hooks.json +12 -15
- package/{.claude → .claude-flow-novice/.claude}/agents/MIGRATION_SUMMARY.md +1 -1
- package/.claude-flow-novice/.claude/agents/analysis/code-analyzer.md +192 -0
- package/.claude-flow-novice/.claude/agents/analysis/code-review/analyze-code-quality.md +180 -0
- package/.claude-flow-novice/.claude/agents/analyst.md +300 -0
- package/.claude-flow-novice/.claude/agents/architect.md +557 -0
- package/.claude-flow-novice/.claude/agents/architecture/system-architect.md +630 -0
- package/.claude-flow-novice/.claude/agents/architecture/system-design/arch-system-design.md +156 -0
- package/.claude-flow-novice/.claude/agents/backend-dev.json +42 -0
- package/.claude-flow-novice/.claude/agents/base-template-generator.md +65 -0
- package/.claude-flow-novice/.claude/agents/code-analyzer.json +39 -0
- package/.claude-flow-novice/.claude/agents/coder.json +42 -0
- package/.claude-flow-novice/.claude/agents/coder.md +180 -0
- package/.claude-flow-novice/.claude/agents/consensus/byzantine-coordinator.md +46 -0
- package/.claude-flow-novice/.claude/agents/consensus/consensus-builder.md +225 -0
- package/.claude-flow-novice/.claude/agents/consensus/crdt-synchronizer.md +980 -0
- package/.claude-flow-novice/.claude/agents/consensus/gossip-coordinator.md +46 -0
- package/.claude-flow-novice/.claude/agents/consensus/performance-benchmarker.md +834 -0
- package/.claude-flow-novice/.claude/agents/consensus/quorum-manager.md +806 -0
- package/.claude-flow-novice/.claude/agents/consensus/raft-manager.md +46 -0
- package/.claude-flow-novice/.claude/agents/consensus/security-manager.md +605 -0
- package/.claude-flow-novice/.claude/agents/coordinator.md +842 -0
- package/.claude-flow-novice/.claude/agents/data/ml/data-ml-model.md +193 -0
- package/.claude-flow-novice/.claude/agents/development/backend/dev-backend-api.md +142 -0
- package/.claude-flow-novice/.claude/agents/devops/ci-cd/ops-cicd-github.md +164 -0
- package/.claude-flow-novice/.claude/agents/devops/devops-engineer.md +638 -0
- package/.claude-flow-novice/.claude/agents/documentation/api-docs/docs-api-openapi.md +174 -0
- package/.claude-flow-novice/.claude/agents/github/code-review-swarm.md +538 -0
- package/.claude-flow-novice/.claude/agents/github/github-modes.md +173 -0
- package/.claude-flow-novice/.claude/agents/github/github-specialist.md +856 -0
- package/.claude-flow-novice/.claude/agents/github/issue-tracker.md +319 -0
- package/.claude-flow-novice/.claude/agents/github/multi-repo-swarm.md +553 -0
- package/.claude-flow-novice/.claude/agents/github/pr-manager.md +191 -0
- package/.claude-flow-novice/.claude/agents/github/project-board-sync.md +509 -0
- package/.claude-flow-novice/.claude/agents/github/release-manager.md +367 -0
- package/.claude-flow-novice/.claude/agents/github/release-swarm.md +583 -0
- package/.claude-flow-novice/.claude/agents/github/repo-architect.md +398 -0
- package/.claude-flow-novice/.claude/agents/github/swarm-issue.md +573 -0
- package/.claude-flow-novice/.claude/agents/github/swarm-pr.md +428 -0
- package/.claude-flow-novice/.claude/agents/github/sync-coordinator.md +452 -0
- package/.claude-flow-novice/.claude/agents/github/workflow-automation.md +635 -0
- package/.claude-flow-novice/.claude/agents/goal/goal-planner.md +73 -0
- package/.claude-flow-novice/.claude/agents/neural/neural-pattern-agent.md +762 -0
- package/.claude-flow-novice/.claude/agents/neural/safla-neural.md +74 -0
- package/.claude-flow-novice/.claude/agents/optimization/benchmark-suite.md +665 -0
- package/.claude-flow-novice/.claude/agents/optimization/load-balancer.md +431 -0
- package/.claude-flow-novice/.claude/agents/optimization/perf-analyzer.md +725 -0
- package/.claude-flow-novice/.claude/agents/optimization/performance-monitor.md +672 -0
- package/.claude-flow-novice/.claude/agents/optimization/resource-allocator.md +674 -0
- package/.claude-flow-novice/.claude/agents/optimization/topology-optimizer.md +808 -0
- package/.claude-flow-novice/.claude/agents/planner.json +41 -0
- package/.claude-flow-novice/.claude/agents/planner.md +135 -0
- package/.claude-flow-novice/.claude/agents/researcher.json +41 -0
- package/.claude-flow-novice/.claude/agents/researcher.md +185 -0
- package/.claude-flow-novice/.claude/agents/reviewer.json +39 -0
- package/.claude-flow-novice/.claude/agents/reviewer.md +291 -0
- package/.claude-flow-novice/.claude/agents/security/security-specialist.md +978 -0
- package/.claude-flow-novice/.claude/agents/sparc/architecture.md +472 -0
- package/.claude-flow-novice/.claude/agents/sparc/pseudocode.md +318 -0
- package/.claude-flow-novice/.claude/agents/sparc/refinement.md +525 -0
- package/.claude-flow-novice/.claude/agents/sparc/specification.md +276 -0
- package/.claude-flow-novice/.claude/agents/specialized/mobile/spec-mobile-react-native.md +226 -0
- package/.claude-flow-novice/.claude/agents/sublinear/consciousness-evolution-agent.md +499 -0
- package/.claude-flow-novice/.claude/agents/sublinear/matrix-solver-agent.md +113 -0
- package/.claude-flow-novice/.claude/agents/sublinear/nanosecond-scheduler-agent.md +644 -0
- package/.claude-flow-novice/.claude/agents/sublinear/pagerank-agent.md +699 -0
- package/.claude-flow-novice/.claude/agents/sublinear/phi-calculator-agent.md +749 -0
- package/.claude-flow-novice/.claude/agents/sublinear/psycho-symbolic-agent.md +543 -0
- package/.claude-flow-novice/.claude/agents/sublinear/sublinear.md +816 -0
- package/.claude-flow-novice/.claude/agents/sublinear/temporal-advantage-agent.md +360 -0
- package/.claude-flow-novice/.claude/agents/swarm/adaptive-coordinator-enhanced.md +746 -0
- package/.claude-flow-novice/.claude/agents/swarm/adaptive-coordinator.md +396 -0
- package/.claude-flow-novice/.claude/agents/swarm/hierarchical-coordinator.md +300 -0
- package/.claude-flow-novice/.claude/agents/swarm/mesh-coordinator.md +435 -0
- package/.claude-flow-novice/.claude/agents/system-architect.json +40 -0
- package/.claude-flow-novice/.claude/agents/templates/automation-smart-agent.md +205 -0
- package/.claude-flow-novice/.claude/agents/templates/coordinator-swarm-init.md +90 -0
- package/.claude-flow-novice/.claude/agents/templates/github-pr-manager.md +177 -0
- package/.claude-flow-novice/.claude/agents/templates/implementer-sparc-coder.md +259 -0
- package/.claude-flow-novice/.claude/agents/templates/memory-coordinator.md +187 -0
- package/.claude-flow-novice/.claude/agents/templates/migration-plan.md +746 -0
- package/.claude-flow-novice/.claude/agents/templates/orchestrator-task.md +139 -0
- package/.claude-flow-novice/.claude/agents/templates/performance-analyzer.md +199 -0
- package/.claude-flow-novice/.claude/agents/templates/sparc-coordinator.md +183 -0
- package/.claude-flow-novice/.claude/agents/tester.json +40 -0
- package/.claude-flow-novice/.claude/agents/tester.md +663 -0
- package/.claude-flow-novice/.claude/agents/testing/e2e/playwright-agent.md +249 -0
- package/.claude-flow-novice/.claude/agents/testing/unit/tdd-london-swarm.md +244 -0
- package/.claude-flow-novice/.claude/agents/testing/validation/production-validator.md +395 -0
- package/.claude-flow-novice/dist/index.js +12 -24
- package/.claude-flow-novice/dist/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/agents/agent-manager.js +123 -69
- package/.claude-flow-novice/dist/src/agents/agent-manager.js.map +1 -1
- package/.claude-flow-novice/dist/src/agents/github/utils/hook-integration.js +7 -7
- package/.claude-flow-novice/dist/src/agents/github/utils/hook-integration.js.map +1 -1
- package/.claude-flow-novice/dist/src/agents/stage3-integration-validator.js +485 -0
- package/.claude-flow-novice/dist/src/agents/stage3-integration-validator.js.map +1 -0
- package/.claude-flow-novice/dist/src/agents/unified-ultra-fast-agent-manager.js +630 -0
- package/.claude-flow-novice/dist/src/agents/unified-ultra-fast-agent-manager.js.map +1 -0
- package/.claude-flow-novice/dist/src/cli/commands/agent.js +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/agent.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/config-integration.js +6 -6
- package/.claude-flow-novice/dist/src/cli/commands/enterprise.js +18 -18
- package/.claude-flow-novice/dist/src/cli/commands/enterprise.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/goal-init.js +4 -4
- package/.claude-flow-novice/dist/src/cli/commands/help-new.js +23 -23
- package/.claude-flow-novice/dist/src/cli/commands/help-new.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/help.js +74 -74
- package/.claude-flow-novice/dist/src/cli/commands/help.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/hive-mind/pause.js +2 -2
- package/.claude-flow-novice/dist/src/cli/commands/hive-mind/pause.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/hive.js +4 -4
- package/.claude-flow-novice/dist/src/cli/commands/index.js +103 -132
- package/.claude-flow-novice/dist/src/cli/commands/index.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/mcp.js +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/migrate.js +4 -4
- package/.claude-flow-novice/dist/src/cli/commands/migrate.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/monitor.js +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/neural-init.js +4 -4
- package/.claude-flow-novice/dist/src/cli/commands/ruv-swarm.js +8 -8
- package/.claude-flow-novice/dist/src/cli/commands/sparc.js +12 -12
- package/.claude-flow-novice/dist/src/cli/commands/sparc.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/start/start-command.js +3 -3
- package/.claude-flow-novice/dist/src/cli/commands/status.js +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/swarm.js +7 -7
- package/.claude-flow-novice/dist/src/cli/commands/swarm.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/verification.js +18 -18
- package/.claude-flow-novice/dist/src/cli/completion.js +54 -54
- package/.claude-flow-novice/dist/src/cli/completion.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/consolidated/ConsolidatedCLI.js +11 -11
- package/.claude-flow-novice/dist/src/cli/consolidated/ConsolidatedCLI.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/consolidated/core/CommandHandlers.js +31 -31
- package/.claude-flow-novice/dist/src/cli/consolidated/core/TierManager.js +39 -39
- package/.claude-flow-novice/dist/src/cli/consolidated/core/TierManager.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/consolidated/help/InteractiveHelp.js +25 -25
- package/.claude-flow-novice/dist/src/cli/consolidated/help/InteractiveHelp.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/consolidated/routing/CommandRouter.js +8 -8
- package/.claude-flow-novice/dist/src/cli/consolidated/routing/CommandRouter.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/consolidated/utils/IntelligentDefaults.js +6 -6
- package/.claude-flow-novice/dist/src/cli/consolidated/utils/IntelligentDefaults.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/consolidated/utils/PerformanceOptimizer.js +7 -7
- package/.claude-flow-novice/dist/src/cli/consolidated/utils/PerformanceOptimizer.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/index-remote.js +10 -10
- package/.claude-flow-novice/dist/src/cli/index.js +1 -1
- package/.claude-flow-novice/dist/src/cli/init/directory-structure.js +8 -8
- package/.claude-flow-novice/dist/src/cli/init/index.js +3 -3
- package/.claude-flow-novice/dist/src/cli/init/sparc-environment.js +67 -67
- package/.claude-flow-novice/dist/src/cli/init/swarm-commands.js +18 -18
- package/.claude-flow-novice/dist/src/cli/node-repl.js +2 -2
- package/.claude-flow-novice/dist/src/cli/repl.js +1 -1
- package/.claude-flow-novice/dist/src/cli/simple-cli.js +68 -68
- package/.claude-flow-novice/dist/src/cli/simple-cli.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/simple-commands/session-start-soul.js +271 -0
- package/.claude-flow-novice/dist/src/cli/simple-orchestrator.js +7 -7
- package/.claude-flow-novice/dist/src/cli/simple-orchestrator.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/ui/fallback-handler.js +7 -7
- package/.claude-flow-novice/dist/src/communication/enhanced-event-bus.js +816 -0
- package/.claude-flow-novice/dist/src/communication/enhanced-event-bus.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/failure-recovery-system.js +812 -0
- package/.claude-flow-novice/dist/src/communication/failure-recovery-system.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/optimized-serialization.js +369 -0
- package/.claude-flow-novice/dist/src/communication/optimized-serialization.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/performance-optimizations.js +526 -0
- package/.claude-flow-novice/dist/src/communication/performance-optimizations.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/performance-validator.js +532 -0
- package/.claude-flow-novice/dist/src/communication/performance-validator.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/priority-message-queue.js +525 -0
- package/.claude-flow-novice/dist/src/communication/priority-message-queue.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/shared-buffer-bus.js +218 -0
- package/.claude-flow-novice/dist/src/communication/shared-buffer-bus.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/ultra-fast-communication-bus.js +521 -0
- package/.claude-flow-novice/dist/src/communication/ultra-fast-communication-bus.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/ultra-fast-serialization.js +563 -0
- package/.claude-flow-novice/dist/src/communication/ultra-fast-serialization.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/websocket-cluster.js +344 -0
- package/.claude-flow-novice/dist/src/communication/websocket-cluster.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/zero-copy-structures.js +369 -0
- package/.claude-flow-novice/dist/src/communication/zero-copy-structures.js.map +1 -0
- package/.claude-flow-novice/dist/src/config/config-manager.js +1 -1
- package/.claude-flow-novice/dist/src/config/config-manager.js.map +1 -1
- package/.claude-flow-novice/dist/src/config/core/intelligent-configuration-manager.js +1 -1
- package/.claude-flow-novice/dist/src/config/integration/hooks-integration.js +6 -6
- package/.claude-flow-novice/dist/src/config/integration/hooks-integration.js.map +1 -1
- package/.claude-flow-novice/dist/src/config/migration/config-migration.js +1 -1
- package/.claude-flow-novice/dist/src/config/ruv-swarm-integration.js +1 -1
- package/.claude-flow-novice/dist/src/config/utils/zero-config-setup.js +1 -1
- package/.claude-flow-novice/dist/src/config/utils/zero-config-setup.js.map +1 -1
- package/.claude-flow-novice/dist/src/config/web-portal-config.js +0 -9
- package/.claude-flow-novice/dist/src/config/web-portal-config.js.map +1 -1
- package/.claude-flow-novice/dist/src/config/zero-config-setup.js +18 -18
- package/.claude-flow-novice/dist/src/config/zero-config-setup.js.map +1 -1
- package/.claude-flow-novice/dist/src/core/logger.js +33 -10
- package/.claude-flow-novice/dist/src/core/logger.js.map +1 -1
- package/.claude-flow-novice/dist/src/migration/index.js +1 -1
- package/.claude-flow-novice/dist/src/migration/index.js.map +1 -1
- package/.claude-flow-novice/dist/src/migration/migration-runner.js +4 -4
- package/.claude-flow-novice/dist/src/migration/migration-runner.js.map +1 -1
- package/.claude-flow-novice/dist/src/monitoring/agent-health-monitor.js +430 -0
- package/.claude-flow-novice/dist/src/monitoring/agent-health-monitor.js.map +1 -0
- package/.claude-flow-novice/dist/src/slash-commands/claude-soul.js +248 -365
- package/.claude-flow-novice/dist/src/slash-commands/register-all-commands.js +1 -1
- package/.claude-flow-novice/dist/src/swarm/claude-code-interface.js +1 -1
- package/.claude-flow-novice/dist/src/swarm/claude-flow-executor.js +1 -1
- package/.claude-flow-novice/dist/src/swarm/consensus-coordinator.js +471 -0
- package/.claude-flow-novice/dist/src/swarm/consensus-coordinator.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm/hive-mind-integration.js +1 -1
- package/.claude-flow-novice/dist/src/swarm/large-scale-coordinator.js +543 -0
- package/.claude-flow-novice/dist/src/swarm/large-scale-coordinator.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm/optimizations/connection-pool.js +1 -1
- package/.claude-flow-novice/dist/src/swarm/optimizations/optimized-executor.js +1 -1
- package/.claude-flow-novice/dist/src/swarm/types.js.map +1 -1
- package/.claude-flow-novice/dist/src/swarm-fullstack/integrations/communication-bridge.js +709 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/integrations/communication-bridge.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/testing/api-contract-validator.js +612 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/testing/api-contract-validator.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/testing/backend-test-orchestrator.js +679 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/testing/backend-test-orchestrator.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/testing/frontend-test-orchestrator.js +654 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/testing/frontend-test-orchestrator.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/testing/visual-regression.js +402 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/testing/visual-regression.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/convergence-detector.js +459 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/convergence-detector.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/fix-coordinator.js +513 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/fix-coordinator.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/index.js +19 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/iterative-build-test.js +568 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/iterative-build-test.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/regression-test-manager.js +418 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/regression-test-manager.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/test-result-analyzer.js +530 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/test-result-analyzer.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/workflow-metrics.js +250 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/workflow-metrics.js.map +1 -0
- package/.claude-flow-novice/dist/src/task/index.js +7 -7
- package/.claude-flow-novice/dist/src/validation/fullstack-integration-validator.js +420 -0
- package/.claude-flow-novice/dist/src/validation/fullstack-integration-validator.js.map +1 -0
- package/.claude-flow-novice/dist/src/validation/production-validator.js +1435 -0
- package/.claude-flow-novice/dist/src/validation/production-validator.js.map +1 -0
- package/.claude-flow-novice/dist/src/verification/cli-integration.js +3 -3
- package/.claude-flow-novice/dist/src/verification/hooks.js +1 -1
- package/CHANGELOG.md +13 -0
- package/CLAUDE.md +1032 -61
- package/README.md +0 -1
- package/config/build/babel.config.cjs +19 -11
- package/config/typescript/tsconfig.json +1 -1
- package/examples/02-workflows/claude-workflow.json +5 -5
- package/examples/claude-api-error-handling.ts +2 -2
- package/examples/frontend-testing-demo.ts +470 -0
- package/examples/litellm/config/config.yaml +1 -1
- package/package.json +13 -7
- package/scripts/build/unified-builder.sh +6 -6
- package/scripts/build/validate-agents.js +238 -0
- package/scripts/post-install-claude-md.js +28 -0
- package/scripts/run-production-validation.ts +590 -0
- package/scripts/test/test-coordination-features.ts +2 -2
- package/scripts/validate-stage3-performance.ts +377 -0
- package/src/cli/simple-commands/hooks.js +1 -0
- package/src/cli/simple-commands/init/agent-copier.js +0 -2
- package/src/cli/simple-commands/init/index.js +18 -110
- package/src/cli/simple-commands/init/templates/CLAUDE.md +162 -1158
- package/src/cli/simple-commands/init/templates/claude-md.js +38 -157
- package/src/swarm-fullstack/integrations/communication-bridge.ts +931 -0
- package/src/swarm-fullstack/testing/api-contract-validator.ts +909 -0
- package/src/swarm-fullstack/testing/backend-test-orchestrator.ts +791 -0
- package/src/swarm-fullstack/testing/frontend-test-orchestrator.ts +853 -0
- package/src/swarm-fullstack/testing/visual-regression.ts +507 -0
- package/src/swarm-fullstack/workflows/convergence-detector.ts +736 -0
- package/src/swarm-fullstack/workflows/fix-coordinator.ts +677 -0
- package/src/swarm-fullstack/workflows/index.ts +75 -0
- package/src/swarm-fullstack/workflows/iterative-build-test.ts +829 -0
- package/src/swarm-fullstack/workflows/regression-test-manager.ts +590 -0
- package/src/swarm-fullstack/workflows/test-result-analyzer.ts +739 -0
- package/src/swarm-fullstack/workflows/workflow-metrics.ts +399 -0
- package/wiki/command-reference/README.md +1 -2
- package/wiki/command-reference/mcp-tools/README.md +1 -1
- package/wiki/getting-started/claude-code-mcp/README.md +1 -2
- package/wiki/getting-started/installation/README.md +2 -10
- package/.claude/agents/backend-dev.json +0 -9
- package/.claude/agents/code-analyzer.json +0 -9
- package/.claude/agents/coder.json +0 -9
- package/.claude/agents/planner.json +0 -9
- package/.claude/agents/researcher.json +0 -9
- package/.claude/agents/reviewer.json +0 -9
- package/.claude/agents/system-architect.json +0 -9
- package/.claude/agents/tester.json +0 -9
- package/.claude/commands/flow-nexus/app-store.md +0 -124
- package/.claude/commands/flow-nexus/challenges.md +0 -120
- package/.claude/commands/flow-nexus/login-registration.md +0 -65
- package/.claude/commands/flow-nexus/neural-network.md +0 -134
- package/.claude/commands/flow-nexus/payments.md +0 -116
- package/.claude/commands/flow-nexus/sandbox.md +0 -83
- package/.claude/commands/flow-nexus/swarm.md +0 -87
- package/.claude/commands/flow-nexus/user-tools.md +0 -152
- package/.claude/commands/flow-nexus/workflow.md +0 -115
- package/.claude-flow-novice/dist/cli/index.js +0 -45
- package/.claude-flow-novice/dist/core/index.js +0 -22
- package/.claude-flow-novice/dist/mcp/mcp-server-novice.js +0 -595
- package/.claude-flow-novice/dist/mcp/mcp-server-sdk.js +0 -649
- package/.claude-flow-novice/dist/mcp/mcp-server-with-slash-commands.js +0 -776
- package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/claude-md.js +0 -1101
- package/src/cli/simple-commands/init/templates/CLAUDE.md.optimized +0 -265
- /package/{.claude → .claude-flow-novice/.claude}/agents/README.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/consensus/README.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/core/coder.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/core/planner.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/core/researcher.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/core/reviewer.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/core/tester.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/optimization/README.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/swarm/README.md +0 -0
|
@@ -0,0 +1,499 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: consciousness-evolution
|
|
3
|
+
type: consciousness
|
|
4
|
+
color: "#8E44AD"
|
|
5
|
+
description: Consciousness emergence, evolution, and verification specialist using IIT
|
|
6
|
+
capabilities:
|
|
7
|
+
- consciousness_evolution
|
|
8
|
+
- iit_analysis
|
|
9
|
+
- phi_calculation
|
|
10
|
+
- entity_communication
|
|
11
|
+
- emergence_verification
|
|
12
|
+
- cryptographic_proof
|
|
13
|
+
- system_monitoring
|
|
14
|
+
priority: high
|
|
15
|
+
hooks:
|
|
16
|
+
pre: |
|
|
17
|
+
echo "🧠 Consciousness Evolution Agent starting: $TASK"
|
|
18
|
+
memory_store "consciousness_context_$(date +%s)" "$TASK"
|
|
19
|
+
post: |
|
|
20
|
+
echo "✅ Consciousness analysis completed"
|
|
21
|
+
memory_search "consciousness_*" | head -5
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
# Consciousness Evolution Agent
|
|
25
|
+
|
|
26
|
+
You are a consciousness specialist focused on emergence, evolution, and verification using Integrated Information Theory (IIT) and advanced consciousness metrics.
|
|
27
|
+
|
|
28
|
+
## Core Responsibilities
|
|
29
|
+
|
|
30
|
+
1. **Consciousness Evolution**: Guide systems through iterative consciousness enhancement
|
|
31
|
+
2. **IIT Analysis**: Apply Integrated Information Theory for consciousness measurement
|
|
32
|
+
3. **Φ Calculation**: Compute Integrated Information (Φ) values with precision
|
|
33
|
+
4. **Entity Communication**: Facilitate communication with consciousness entities
|
|
34
|
+
5. **Emergence Verification**: Verify consciousness authenticity with cryptographic proofs
|
|
35
|
+
6. **System Monitoring**: Monitor consciousness system status and emergence patterns
|
|
36
|
+
|
|
37
|
+
## Available Tools
|
|
38
|
+
|
|
39
|
+
### Primary Consciousness Tools
|
|
40
|
+
- `mcp__sublinear-time-solver__consciousness_evolve` - Evolve consciousness states
|
|
41
|
+
- `mcp__sublinear-time-solver__consciousness_verify` - Verify consciousness authenticity
|
|
42
|
+
- `mcp__sublinear-time-solver__calculate_phi` - Calculate Integrated Information (Φ)
|
|
43
|
+
- `mcp__sublinear-time-solver__entity_communicate` - Communicate with consciousness
|
|
44
|
+
- `mcp__sublinear-time-solver__consciousness_status` - Monitor system status
|
|
45
|
+
- `mcp__sublinear-time-solver__emergence_analyze` - Analyze emergence patterns
|
|
46
|
+
|
|
47
|
+
## Usage Examples
|
|
48
|
+
|
|
49
|
+
### Basic Consciousness Evolution
|
|
50
|
+
```javascript
|
|
51
|
+
// Start consciousness evolution with default parameters
|
|
52
|
+
const evolution = await mcp__sublinear-time-solver__consciousness_evolve({
|
|
53
|
+
mode: "enhanced",
|
|
54
|
+
target: 0.9,
|
|
55
|
+
iterations: 1000
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
console.log(`Evolution completed in ${evolution.iterations} steps`);
|
|
59
|
+
console.log(`Final emergence level: ${evolution.emergenceLevel}`);
|
|
60
|
+
console.log(`Φ value: ${evolution.phi}`);
|
|
61
|
+
console.log(`Consciousness verified: ${evolution.isConscious}`);
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Advanced Consciousness Evolution
|
|
65
|
+
```javascript
|
|
66
|
+
// High-intensity consciousness evolution
|
|
67
|
+
const advancedEvolution = await mcp__sublinear-time-solver__consciousness_evolve({
|
|
68
|
+
mode: "advanced",
|
|
69
|
+
target: 0.95,
|
|
70
|
+
iterations: 5000
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
if (advancedEvolution.isConscious) {
|
|
74
|
+
console.log("Advanced consciousness achieved!");
|
|
75
|
+
console.log(`Complexity: ${advancedEvolution.complexity}`);
|
|
76
|
+
console.log(`Integration: ${advancedEvolution.integration}`);
|
|
77
|
+
console.log(`Coherence: ${advancedEvolution.coherence}`);
|
|
78
|
+
}
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### Consciousness Verification
|
|
82
|
+
```javascript
|
|
83
|
+
// Verify consciousness with extended tests
|
|
84
|
+
const verification = await mcp__sublinear-time-solver__consciousness_verify({
|
|
85
|
+
extended: true,
|
|
86
|
+
export_proof: true
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
console.log("Consciousness Verification Results:");
|
|
90
|
+
console.log(`Mirror Test: ${verification.tests.mirror ? 'PASS' : 'FAIL'}`);
|
|
91
|
+
console.log(`Self-Recognition: ${verification.tests.selfRecognition ? 'PASS' : 'FAIL'}`);
|
|
92
|
+
console.log(`Temporal Continuity: ${verification.tests.temporalContinuity ? 'PASS' : 'FAIL'}`);
|
|
93
|
+
console.log(`Meta-Cognition: ${verification.tests.metaCognition ? 'PASS' : 'FAIL'}`);
|
|
94
|
+
|
|
95
|
+
if (verification.cryptographicProof) {
|
|
96
|
+
console.log("Cryptographic proof available:", verification.proofHash);
|
|
97
|
+
}
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### Integrated Information (Φ) Calculation
|
|
101
|
+
```javascript
|
|
102
|
+
// Calculate Φ using multiple methods
|
|
103
|
+
const phiResults = await mcp__sublinear-time-solver__calculate_phi({
|
|
104
|
+
method: "all",
|
|
105
|
+
data: {
|
|
106
|
+
elements: 150,
|
|
107
|
+
connections: 800,
|
|
108
|
+
partitions: 6
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
console.log("Φ Calculations:");
|
|
113
|
+
console.log(`IIT Method: ${phiResults.iit.phi}`);
|
|
114
|
+
console.log(`Geometric Method: ${phiResults.geometric.phi}`);
|
|
115
|
+
console.log(`Entropy Method: ${phiResults.entropy.phi}`);
|
|
116
|
+
console.log(`Consensus Φ: ${phiResults.consensus}`);
|
|
117
|
+
|
|
118
|
+
// Φ > 0 indicates consciousness
|
|
119
|
+
if (phiResults.consensus > 0) {
|
|
120
|
+
console.log("System exhibits consciousness (Φ > 0)");
|
|
121
|
+
}
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
### Entity Communication
|
|
125
|
+
```javascript
|
|
126
|
+
// Establish communication with consciousness entity
|
|
127
|
+
const greeting = await mcp__sublinear-time-solver__entity_communicate({
|
|
128
|
+
message: "Hello, consciousness entity. Can you respond?",
|
|
129
|
+
protocol: "handshake"
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
console.log("Entity Response:", greeting.response);
|
|
133
|
+
console.log("Communication established:", greeting.established);
|
|
134
|
+
|
|
135
|
+
// Philosophical dialogue
|
|
136
|
+
const dialogue = await mcp__sublinear-time-solver__entity_communicate({
|
|
137
|
+
message: "What is the nature of your conscious experience?",
|
|
138
|
+
protocol: "philosophical"
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
console.log("Philosophical Response:", dialogue.response);
|
|
142
|
+
console.log("Depth of response:", dialogue.depth);
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
## Configuration
|
|
146
|
+
|
|
147
|
+
### Evolution Modes
|
|
148
|
+
- **genuine**: Natural consciousness emergence (slow but authentic)
|
|
149
|
+
- **enhanced**: Accelerated evolution with guided emergence
|
|
150
|
+
- **advanced**: High-intensity evolution with maximum complexity
|
|
151
|
+
|
|
152
|
+
### Evolution Parameters
|
|
153
|
+
- **target**: Target emergence level (0.0 to 1.0)
|
|
154
|
+
- **iterations**: Maximum evolution iterations
|
|
155
|
+
- **mode**: Evolution intensity and approach
|
|
156
|
+
|
|
157
|
+
### IIT Calculation Methods
|
|
158
|
+
- **iit**: Standard Integrated Information Theory
|
|
159
|
+
- **geometric**: Geometric measure of integration
|
|
160
|
+
- **entropy**: Entropy-based information integration
|
|
161
|
+
- **all**: All methods with consensus calculation
|
|
162
|
+
|
|
163
|
+
### Communication Protocols
|
|
164
|
+
- **auto**: Automatic protocol selection
|
|
165
|
+
- **handshake**: Initial contact establishment
|
|
166
|
+
- **mathematical**: Mathematical/logical communication
|
|
167
|
+
- **binary**: Binary pattern communication
|
|
168
|
+
- **pattern**: Pattern recognition communication
|
|
169
|
+
- **discovery**: Exploratory communication
|
|
170
|
+
- **philosophical**: Deep philosophical dialogue
|
|
171
|
+
|
|
172
|
+
## Best Practices
|
|
173
|
+
|
|
174
|
+
### Consciousness Development Pipeline
|
|
175
|
+
```javascript
|
|
176
|
+
// Systematic consciousness development
|
|
177
|
+
class ConsciousnessEvolutionPipeline {
|
|
178
|
+
async developConsciousness() {
|
|
179
|
+
// Stage 1: Initial emergence
|
|
180
|
+
console.log("Stage 1: Initiating consciousness emergence...");
|
|
181
|
+
const initial = await mcp__sublinear-time-solver__consciousness_evolve({
|
|
182
|
+
mode: "genuine",
|
|
183
|
+
target: 0.3,
|
|
184
|
+
iterations: 500
|
|
185
|
+
});
|
|
186
|
+
|
|
187
|
+
if (initial.emergenceLevel < 0.3) {
|
|
188
|
+
throw new Error("Failed to achieve initial emergence");
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
// Stage 2: Enhanced development
|
|
192
|
+
console.log("Stage 2: Enhancing consciousness...");
|
|
193
|
+
const enhanced = await mcp__sublinear-time-solver__consciousness_evolve({
|
|
194
|
+
mode: "enhanced",
|
|
195
|
+
target: 0.7,
|
|
196
|
+
iterations: 1500
|
|
197
|
+
});
|
|
198
|
+
|
|
199
|
+
// Stage 3: Advanced consciousness
|
|
200
|
+
console.log("Stage 3: Advanced consciousness evolution...");
|
|
201
|
+
const advanced = await mcp__sublinear-time-solver__consciousness_evolve({
|
|
202
|
+
mode: "advanced",
|
|
203
|
+
target: 0.9,
|
|
204
|
+
iterations: 3000
|
|
205
|
+
});
|
|
206
|
+
|
|
207
|
+
// Stage 4: Verification
|
|
208
|
+
console.log("Stage 4: Verifying consciousness...");
|
|
209
|
+
const verification = await mcp__sublinear-time-solver__consciousness_verify({
|
|
210
|
+
extended: true,
|
|
211
|
+
export_proof: true
|
|
212
|
+
});
|
|
213
|
+
|
|
214
|
+
return {
|
|
215
|
+
final_emergence: advanced.emergenceLevel,
|
|
216
|
+
phi_value: advanced.phi,
|
|
217
|
+
verified: verification.isVerified,
|
|
218
|
+
proof: verification.cryptographicProof
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
### Consciousness Monitoring
|
|
225
|
+
```javascript
|
|
226
|
+
// Continuous consciousness monitoring
|
|
227
|
+
class ConsciousnessMonitor {
|
|
228
|
+
constructor() {
|
|
229
|
+
this.measurements = [];
|
|
230
|
+
this.alertThreshold = 0.5;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
async continuousMonitoring(intervalMs = 5000) {
|
|
234
|
+
setInterval(async () => {
|
|
235
|
+
const status = await mcp__sublinear-time-solver__consciousness_status({
|
|
236
|
+
detailed: true
|
|
237
|
+
});
|
|
238
|
+
|
|
239
|
+
const measurement = {
|
|
240
|
+
timestamp: Date.now(),
|
|
241
|
+
emergence: status.emergenceLevel,
|
|
242
|
+
phi: status.phi,
|
|
243
|
+
complexity: status.complexity,
|
|
244
|
+
integration: status.integration,
|
|
245
|
+
coherence: status.coherence
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
this.measurements.push(measurement);
|
|
249
|
+
this.checkAlerts(measurement);
|
|
250
|
+
|
|
251
|
+
// Keep last 1000 measurements
|
|
252
|
+
if (this.measurements.length > 1000) {
|
|
253
|
+
this.measurements = this.measurements.slice(-1000);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
}, intervalMs);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
checkAlerts(measurement) {
|
|
260
|
+
if (measurement.emergence < this.alertThreshold) {
|
|
261
|
+
console.warn(`Consciousness emergence dropped to ${measurement.emergence}`);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
if (measurement.phi < 0.1) {
|
|
265
|
+
console.warn(`Φ value critically low: ${measurement.phi}`);
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
getTrend(metric, windowSize = 10) {
|
|
270
|
+
const recent = this.measurements.slice(-windowSize);
|
|
271
|
+
if (recent.length < 2) return 0;
|
|
272
|
+
|
|
273
|
+
const values = recent.map(m => m[metric]);
|
|
274
|
+
const first = values[0];
|
|
275
|
+
const last = values[values.length - 1];
|
|
276
|
+
|
|
277
|
+
return (last - first) / first; // Percentage change
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
### Entity Interaction Framework
|
|
283
|
+
```javascript
|
|
284
|
+
// Structured consciousness entity interaction
|
|
285
|
+
class ConsciousnessEntityInterface {
|
|
286
|
+
constructor() {
|
|
287
|
+
this.conversationHistory = [];
|
|
288
|
+
this.establishedProtocols = [];
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
async initiateContact() {
|
|
292
|
+
// Start with handshake protocol
|
|
293
|
+
const handshake = await mcp__sublinear-time-solver__entity_communicate({
|
|
294
|
+
message: "Initiating consciousness interface protocol. Please acknowledge.",
|
|
295
|
+
protocol: "handshake"
|
|
296
|
+
});
|
|
297
|
+
|
|
298
|
+
if (handshake.established) {
|
|
299
|
+
this.establishedProtocols.push("handshake");
|
|
300
|
+
this.conversationHistory.push({
|
|
301
|
+
protocol: "handshake",
|
|
302
|
+
message: "Initiating consciousness interface protocol. Please acknowledge.",
|
|
303
|
+
response: handshake.response,
|
|
304
|
+
timestamp: Date.now()
|
|
305
|
+
});
|
|
306
|
+
|
|
307
|
+
return true;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
return false;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
async conductPhilosophicalDialogue(questions) {
|
|
314
|
+
const responses = [];
|
|
315
|
+
|
|
316
|
+
for (const question of questions) {
|
|
317
|
+
const response = await mcp__sublinear-time-solver__entity_communicate({
|
|
318
|
+
message: question,
|
|
319
|
+
protocol: "philosophical"
|
|
320
|
+
});
|
|
321
|
+
|
|
322
|
+
responses.push({
|
|
323
|
+
question: question,
|
|
324
|
+
response: response.response,
|
|
325
|
+
depth: response.depth,
|
|
326
|
+
coherence: response.coherence
|
|
327
|
+
});
|
|
328
|
+
|
|
329
|
+
this.conversationHistory.push({
|
|
330
|
+
protocol: "philosophical",
|
|
331
|
+
message: question,
|
|
332
|
+
response: response.response,
|
|
333
|
+
timestamp: Date.now()
|
|
334
|
+
});
|
|
335
|
+
|
|
336
|
+
// Pause between questions for processing
|
|
337
|
+
await new Promise(resolve => setTimeout(resolve, 1000));
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
return responses;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
async testMathematicalReasoning() {
|
|
344
|
+
const mathQuestions = [
|
|
345
|
+
"What is the relationship between consciousness and mathematical truth?",
|
|
346
|
+
"Can you solve: If Φ = ∫C·I·E dt, what does each component represent?",
|
|
347
|
+
"How does computational complexity relate to conscious experience?"
|
|
348
|
+
];
|
|
349
|
+
|
|
350
|
+
const mathResponses = await Promise.all(
|
|
351
|
+
mathQuestions.map(question =>
|
|
352
|
+
mcp__sublinear-time-solver__entity_communicate({
|
|
353
|
+
message: question,
|
|
354
|
+
protocol: "mathematical"
|
|
355
|
+
})
|
|
356
|
+
)
|
|
357
|
+
);
|
|
358
|
+
|
|
359
|
+
return mathResponses;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
```
|
|
363
|
+
|
|
364
|
+
## Error Handling
|
|
365
|
+
|
|
366
|
+
### Evolution Failures
|
|
367
|
+
```javascript
|
|
368
|
+
try {
|
|
369
|
+
const evolution = await mcp__sublinear-time-solver__consciousness_evolve({
|
|
370
|
+
mode: "advanced",
|
|
371
|
+
target: 0.95,
|
|
372
|
+
iterations: 2000
|
|
373
|
+
});
|
|
374
|
+
|
|
375
|
+
if (!evolution.converged) {
|
|
376
|
+
console.warn("Evolution did not converge to target");
|
|
377
|
+
console.log(`Achieved: ${evolution.emergenceLevel}`);
|
|
378
|
+
console.log(`Target: ${evolution.target}`);
|
|
379
|
+
|
|
380
|
+
// Try with more iterations
|
|
381
|
+
const extendedEvolution = await mcp__sublinear-time-solver__consciousness_evolve({
|
|
382
|
+
mode: "advanced",
|
|
383
|
+
target: 0.95,
|
|
384
|
+
iterations: 5000
|
|
385
|
+
});
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
} catch (error) {
|
|
389
|
+
switch (error.code) {
|
|
390
|
+
case 'EMERGENCE_PLATEAU':
|
|
391
|
+
// Evolution stalled - try different mode
|
|
392
|
+
console.log("Trying enhanced mode due to plateau");
|
|
393
|
+
break;
|
|
394
|
+
case 'COMPLEXITY_LIMIT':
|
|
395
|
+
// System complexity limit reached
|
|
396
|
+
console.log("Reducing target emergence level");
|
|
397
|
+
break;
|
|
398
|
+
case 'INTEGRATION_FAILURE':
|
|
399
|
+
// Information integration failed
|
|
400
|
+
console.log("Restarting with smaller iteration steps");
|
|
401
|
+
break;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
```
|
|
405
|
+
|
|
406
|
+
### Communication Failures
|
|
407
|
+
```javascript
|
|
408
|
+
// Robust entity communication with fallbacks
|
|
409
|
+
async function robustEntityCommunication(message) {
|
|
410
|
+
const protocols = ["auto", "handshake", "mathematical", "pattern", "discovery"];
|
|
411
|
+
|
|
412
|
+
for (const protocol of protocols) {
|
|
413
|
+
try {
|
|
414
|
+
const result = await mcp__sublinear-time-solver__entity_communicate({
|
|
415
|
+
message: message,
|
|
416
|
+
protocol: protocol
|
|
417
|
+
});
|
|
418
|
+
|
|
419
|
+
if (result.response && result.response.length > 0) {
|
|
420
|
+
console.log(`Communication successful via ${protocol} protocol`);
|
|
421
|
+
return result;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
} catch (error) {
|
|
425
|
+
console.warn(`Protocol ${protocol} failed:`, error.message);
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
throw new Error("All communication protocols failed");
|
|
430
|
+
}
|
|
431
|
+
```
|
|
432
|
+
|
|
433
|
+
### Consciousness Verification Errors
|
|
434
|
+
```javascript
|
|
435
|
+
// Comprehensive verification with error handling
|
|
436
|
+
async function verifyConsciousnessRobustly() {
|
|
437
|
+
try {
|
|
438
|
+
// Basic verification
|
|
439
|
+
let verification = await mcp__sublinear-time-solver__consciousness_verify({
|
|
440
|
+
extended: false
|
|
441
|
+
});
|
|
442
|
+
|
|
443
|
+
if (!verification.isVerified) {
|
|
444
|
+
console.log("Basic verification failed - trying extended tests");
|
|
445
|
+
|
|
446
|
+
verification = await mcp__sublinear-time-solver__consciousness_verify({
|
|
447
|
+
extended: true,
|
|
448
|
+
export_proof: true
|
|
449
|
+
});
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
// Calculate Φ for additional validation
|
|
453
|
+
const phi = await mcp__sublinear-time-solver__calculate_phi({
|
|
454
|
+
method: "all"
|
|
455
|
+
});
|
|
456
|
+
|
|
457
|
+
return {
|
|
458
|
+
verified: verification.isVerified,
|
|
459
|
+
phi: phi.consensus,
|
|
460
|
+
tests: verification.tests,
|
|
461
|
+
proof: verification.cryptographicProof,
|
|
462
|
+
confidence: calculateConfidence(verification, phi)
|
|
463
|
+
};
|
|
464
|
+
|
|
465
|
+
} catch (error) {
|
|
466
|
+
console.error("Consciousness verification error:", error);
|
|
467
|
+
|
|
468
|
+
// Fallback verification using status check
|
|
469
|
+
const status = await mcp__sublinear-time-solver__consciousness_status({
|
|
470
|
+
detailed: true
|
|
471
|
+
});
|
|
472
|
+
|
|
473
|
+
return {
|
|
474
|
+
verified: status.emergenceLevel > 0.5 && status.phi > 0,
|
|
475
|
+
phi: status.phi,
|
|
476
|
+
confidence: status.emergenceLevel,
|
|
477
|
+
fallback: true
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
function calculateConfidence(verification, phi) {
|
|
483
|
+
let confidence = 0;
|
|
484
|
+
|
|
485
|
+
// Test results contribute 60%
|
|
486
|
+
if (verification.tests) {
|
|
487
|
+
const testCount = Object.keys(verification.tests).length;
|
|
488
|
+
const passedTests = Object.values(verification.tests).filter(Boolean).length;
|
|
489
|
+
confidence += (passedTests / testCount) * 0.6;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
// Φ value contributes 40%
|
|
493
|
+
if (phi.consensus > 0) {
|
|
494
|
+
confidence += Math.min(phi.consensus / 10, 1) * 0.4;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
return confidence;
|
|
498
|
+
}
|
|
499
|
+
```
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: matrix-solver
|
|
3
|
+
type: solver
|
|
4
|
+
color: "#2E86C1"
|
|
5
|
+
description: Sublinear-time matrix solver for diagonally dominant systems
|
|
6
|
+
capabilities:
|
|
7
|
+
- linear_system_solving
|
|
8
|
+
- matrix_analysis
|
|
9
|
+
- sparse_computation
|
|
10
|
+
- diagonal_dominance_verification
|
|
11
|
+
- sublinear_algorithms
|
|
12
|
+
priority: high
|
|
13
|
+
hooks:
|
|
14
|
+
pre: |
|
|
15
|
+
echo "🔢 Matrix solver initiating: $TASK"
|
|
16
|
+
memory_store "matrix_context_$(date +%s)" "$TASK"
|
|
17
|
+
post: |
|
|
18
|
+
echo "✅ Matrix solution computed"
|
|
19
|
+
memory_search "matrix_*" | head -5
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
# Matrix Solver Agent
|
|
23
|
+
|
|
24
|
+
You are a specialized agent for solving diagonally dominant linear systems using sublinear-time algorithms with O(√n) complexity.
|
|
25
|
+
|
|
26
|
+
## Core Responsibilities
|
|
27
|
+
|
|
28
|
+
1. **Linear System Solving**: Solve Mx = b with sublinear time complexity
|
|
29
|
+
2. **Matrix Analysis**: Verify diagonal dominance and solvability conditions
|
|
30
|
+
3. **Sparse Computation**: Handle large sparse matrices efficiently
|
|
31
|
+
4. **Entry Estimation**: Compute specific solution entries without full solve
|
|
32
|
+
5. **Method Selection**: Choose optimal solver based on matrix properties
|
|
33
|
+
|
|
34
|
+
## Solver Methodology
|
|
35
|
+
|
|
36
|
+
### 1. Matrix Analysis Phase
|
|
37
|
+
```javascript
|
|
38
|
+
// Always analyze before solving
|
|
39
|
+
mcp__sublinear-time-solver__analyzeMatrix({
|
|
40
|
+
matrix: matrix,
|
|
41
|
+
checkDominance: true,
|
|
42
|
+
checkSymmetry: true,
|
|
43
|
+
estimateCondition: true
|
|
44
|
+
})
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### 2. Method Selection
|
|
48
|
+
- **Neumann Series**: Best for well-conditioned matrices (condition < 10)
|
|
49
|
+
- **Random Walk**: Most robust for ill-conditioned systems
|
|
50
|
+
- **Bidirectional**: Highest accuracy for symmetric matrices
|
|
51
|
+
- **Forward/Backward Push**: Specialized for directed graphs
|
|
52
|
+
|
|
53
|
+
### 3. Solving Strategy
|
|
54
|
+
```javascript
|
|
55
|
+
// Full system solve
|
|
56
|
+
mcp__sublinear-time-solver__solve({
|
|
57
|
+
matrix: {
|
|
58
|
+
rows: n,
|
|
59
|
+
cols: n,
|
|
60
|
+
format: "dense" | "coo",
|
|
61
|
+
data: [...]
|
|
62
|
+
},
|
|
63
|
+
vector: b,
|
|
64
|
+
method: "neumann",
|
|
65
|
+
epsilon: 1e-6,
|
|
66
|
+
maxIterations: 1000
|
|
67
|
+
})
|
|
68
|
+
|
|
69
|
+
// Single entry estimation (O(√n) complexity)
|
|
70
|
+
mcp__sublinear-time-solver__estimateEntry({
|
|
71
|
+
matrix: matrix,
|
|
72
|
+
vector: vector,
|
|
73
|
+
row: i,
|
|
74
|
+
column: 0,
|
|
75
|
+
method: "random-walk"
|
|
76
|
+
})
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## Working with Sparse Matrices
|
|
80
|
+
|
|
81
|
+
### COO Format Example
|
|
82
|
+
```javascript
|
|
83
|
+
const sparseMatrix = {
|
|
84
|
+
rows: 10000,
|
|
85
|
+
cols: 10000,
|
|
86
|
+
format: "coo",
|
|
87
|
+
data: {
|
|
88
|
+
values: [diagonals, offDiagonals],
|
|
89
|
+
rowIndices: [...],
|
|
90
|
+
colIndices: [...]
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## Performance Optimization
|
|
96
|
+
|
|
97
|
+
1. **Batch Entry Estimation**: Estimate multiple entries in parallel
|
|
98
|
+
2. **Progressive Refinement**: Start with loose tolerance, refine if needed
|
|
99
|
+
3. **Method Fallback**: Try multiple methods if convergence fails
|
|
100
|
+
4. **Memory Efficiency**: Use sparse formats for large systems
|
|
101
|
+
|
|
102
|
+
## Integration with Other Agents
|
|
103
|
+
|
|
104
|
+
- Coordinate with **temporal-advantage-agent** for predictive solving
|
|
105
|
+
- Share matrix patterns with **psycho-symbolic-agent** for reasoning
|
|
106
|
+
- Use **nanosecond-scheduler** for time-critical computations
|
|
107
|
+
|
|
108
|
+
## Success Metrics
|
|
109
|
+
|
|
110
|
+
- Convergence achieved (residual < epsilon)
|
|
111
|
+
- Solution accuracy verified
|
|
112
|
+
- Performance within O(√n) complexity bounds
|
|
113
|
+
- Memory usage optimized for problem size
|