claude-flow-novice 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/agents/CLAUDE.md +669 -51
- package/.claude/agents/agent-principles/CODER_AGENT_GUIDELINES.md +1245 -0
- package/.claude/agents/agent-principles/agent-type-guidelines.md +137 -0
- package/.claude/agents/agent-principles/format-selection.md +20 -0
- package/.claude/agents/agent-principles/prompt-engineering.md +165 -35
- package/.claude/agents/agent-principles/quality-metrics.md +83 -2
- package/.claude/agents/analysis/code-analyzer.md +722 -0
- package/.claude/agents/analysis/code-review/analyze-code-quality.md +33 -3
- package/.claude/agents/analysis/perf-analyzer.md +812 -0
- package/.claude/agents/architecture/system-architect.md +25 -11
- package/.claude/agents/cfn-loop/product-owner.md +458 -2
- package/.claude/agents/code-booster.md +13 -2
- package/.claude/agents/consensus/byzantine-coordinator.md +259 -6
- package/.claude/agents/consensus/consensus-builder.md +135 -2
- package/.claude/agents/consensus/crdt-synchronizer.md +307 -771
- package/.claude/agents/consensus/gossip-coordinator.md +227 -2
- package/.claude/agents/consensus/performance-benchmarker.md +385 -704
- package/.claude/agents/consensus/quorum-manager.md +241 -749
- package/.claude/agents/consensus/raft-manager.md +195 -2
- package/.claude/agents/consensus/security-manager.md +461 -518
- package/.claude/agents/core-agents/analyst.md +560 -0
- package/.claude/agents/core-agents/architect.md +578 -0
- package/.claude/agents/core-agents/base-template-generator.md +137 -0
- package/.claude/agents/core-agents/coder.md +409 -0
- package/.claude/agents/core-agents/coordinator.md +1429 -0
- package/.claude/agents/core-agents/planner.md +343 -0
- package/.claude/agents/core-agents/researcher.md +414 -0
- package/.claude/agents/core-agents/reviewer.md +652 -0
- package/.claude/agents/core-agents/task-coordinator.md +400 -0
- package/.claude/agents/core-agents/tester.md +912 -0
- package/.claude/agents/development/backend/dev-backend-api.md +418 -23
- package/.claude/agents/devops/devops-engineer.md +240 -433
- package/.claude/agents/documentation/api-docs/docs-api-openapi.md +350 -11
- package/.claude/agents/examples/blocking-coordinator-example.md +388 -0
- package/.claude/agents/frontend/interaction-tester.md +334 -17
- package/.claude/agents/frontend/react-frontend-engineer.md +255 -2
- package/.claude/agents/frontend/state-architect.md +235 -9
- package/.claude/agents/frontend/ui-designer.md +261 -132
- package/.claude/agents/goal/goal-planner.md +803 -52
- package/.claude/agents/planning-team/api-designer-persona.md +736 -0
- package/.claude/agents/planning-team/security-architect-persona.md +643 -0
- package/.claude/agents/planning-team/system-architect-persona.md +585 -0
- package/.claude/agents/product-owner-team/accessibility-advocate-persona.md +796 -0
- package/.claude/agents/product-owner-team/cto-agent.md +473 -0
- package/.claude/agents/product-owner-team/power-user-persona.md +590 -0
- package/.claude/agents/product-owner-team/product-owner-agent.md +806 -0
- package/.claude/agents/security/security-specialist.md +515 -13
- package/.claude/agents/sparc/architecture.md +237 -1
- package/.claude/agents/sparc/pseudocode.md +237 -1
- package/.claude/agents/sparc/refinement.md +244 -1
- package/.claude/agents/sparc/specification.md +282 -21
- package/.claude/agents/specialized/code-booster.md +826 -0
- package/.claude/agents/specialized/mobile/mobile-dev.md +560 -0
- package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +33 -1
- package/.claude/agents/swarm/adaptive-coordinator-enhanced.md +485 -746
- package/.claude/agents/swarm/adaptive-coordinator.md +269 -37
- package/.claude/agents/swarm/blocking-coordinator-example.md +456 -0
- package/.claude/agents/swarm/hierarchical-coordinator.md +324 -60
- package/.claude/agents/swarm/mesh-coordinator.md +774 -324
- package/.claude/agents/swarm/test-coordinator.md +123 -74
- package/.claude/agents/testing/e2e/playwright-agent.md +32 -0
- package/.claude/agents/testing/interaction-tester.md +525 -0
- package/.claude/agents/testing/playwright-tester.md +405 -0
- package/.claude/agents/testing/production-validator.md +644 -0
- package/.claude/agents/testing/tdd-london-swarm.md +659 -0
- package/.claude/agents/testing/unit/tdd-london-swarm.md +27 -0
- package/.claude/agents/testing/validation/production-validator.md +390 -1
- package/.claude/agents-ignore/mesh-coordinator-backup.md +435 -0
- package/.claude/commands/cfn-loop-document.md +441 -0
- package/.claude/commands/github-commit.md +289 -0
- package/.claude-flow-novice/.claude/agents/CLAUDE.md +669 -51
- package/.claude-flow-novice/.claude/agents/agent-principles/agent-type-guidelines.md +137 -0
- package/.claude-flow-novice/.claude/agents/agent-principles/format-selection.md +20 -0
- package/.claude-flow-novice/.claude/agents/agent-principles/prompt-engineering.md +165 -35
- package/.claude-flow-novice/.claude/agents/agent-principles/quality-metrics.md +83 -2
- package/.claude-flow-novice/.claude/agents/analysis/code-analyzer.md +722 -192
- package/.claude-flow-novice/.claude/agents/analysis/code-review/analyze-code-quality.md +33 -3
- package/.claude-flow-novice/.claude/agents/analysis/perf-analyzer.md +812 -0
- package/.claude-flow-novice/.claude/agents/architecture/system-architect.md +25 -11
- package/.claude-flow-novice/.claude/agents/cfn-loop/product-owner.md +458 -2
- package/.claude-flow-novice/.claude/agents/code-booster.md +13 -2
- package/.claude-flow-novice/.claude/agents/consensus/byzantine-coordinator.md +259 -6
- package/.claude-flow-novice/.claude/agents/consensus/consensus-builder.md +135 -2
- package/.claude-flow-novice/.claude/agents/consensus/crdt-synchronizer.md +307 -771
- package/.claude-flow-novice/.claude/agents/consensus/gossip-coordinator.md +227 -2
- package/.claude-flow-novice/.claude/agents/consensus/performance-benchmarker.md +385 -704
- package/.claude-flow-novice/.claude/agents/consensus/quorum-manager.md +241 -749
- package/.claude-flow-novice/.claude/agents/consensus/raft-manager.md +195 -2
- package/.claude-flow-novice/.claude/agents/consensus/security-manager.md +461 -518
- package/.claude-flow-novice/.claude/agents/core-agents/analyst.md +560 -0
- package/.claude-flow-novice/.claude/agents/core-agents/architect.md +578 -0
- package/.claude-flow-novice/.claude/agents/core-agents/base-template-generator.md +137 -0
- package/.claude-flow-novice/.claude/agents/core-agents/coder.md +409 -0
- package/.claude-flow-novice/.claude/agents/core-agents/coordinator.md +1429 -0
- package/.claude-flow-novice/.claude/agents/core-agents/planner.md +343 -0
- package/.claude-flow-novice/.claude/agents/core-agents/researcher.md +414 -0
- package/.claude-flow-novice/.claude/agents/core-agents/reviewer.md +652 -0
- package/.claude-flow-novice/.claude/agents/core-agents/task-coordinator.md +400 -0
- package/.claude-flow-novice/.claude/agents/core-agents/tester.md +912 -0
- package/.claude-flow-novice/.claude/agents/development/backend/dev-backend-api.md +418 -23
- package/.claude-flow-novice/.claude/agents/devops/devops-engineer.md +240 -433
- package/.claude-flow-novice/.claude/agents/documentation/api-docs/docs-api-openapi.md +350 -11
- package/.claude-flow-novice/.claude/agents/examples/blocking-coordinator-example.md +388 -0
- package/.claude-flow-novice/.claude/agents/frontend/interaction-tester.md +334 -17
- package/.claude-flow-novice/.claude/agents/frontend/react-frontend-engineer.md +255 -2
- package/.claude-flow-novice/.claude/agents/frontend/state-architect.md +235 -9
- package/.claude-flow-novice/.claude/agents/frontend/ui-designer.md +261 -132
- package/.claude-flow-novice/.claude/agents/goal/goal-planner.md +803 -52
- package/.claude-flow-novice/.claude/agents/planning-team/api-designer-persona.md +736 -0
- package/.claude-flow-novice/.claude/agents/planning-team/security-architect-persona.md +643 -0
- package/.claude-flow-novice/.claude/agents/planning-team/system-architect-persona.md +585 -0
- package/.claude-flow-novice/.claude/agents/predesign-negotiation/accessibility-advocate-persona.md +796 -0
- package/.claude-flow-novice/.claude/agents/predesign-negotiation/cto-agent.md +473 -0
- package/.claude-flow-novice/.claude/agents/predesign-negotiation/power-user-persona.md +590 -0
- package/.claude-flow-novice/.claude/agents/predesign-negotiation/product-owner-agent.md +806 -0
- package/.claude-flow-novice/.claude/agents/product-owner-team/accessibility-advocate-persona.md +796 -0
- package/.claude-flow-novice/.claude/agents/product-owner-team/cto-agent.md +473 -0
- package/.claude-flow-novice/.claude/agents/product-owner-team/power-user-persona.md +590 -0
- package/.claude-flow-novice/.claude/agents/product-owner-team/product-owner-agent.md +806 -0
- package/.claude-flow-novice/.claude/agents/security/security-specialist.md +515 -13
- package/.claude-flow-novice/.claude/agents/sparc/architecture.md +237 -1
- package/.claude-flow-novice/.claude/agents/sparc/pseudocode.md +237 -1
- package/.claude-flow-novice/.claude/agents/sparc/refinement.md +244 -1
- package/.claude-flow-novice/.claude/agents/sparc/specification.md +282 -21
- package/.claude-flow-novice/.claude/agents/specialized/code-booster.md +826 -0
- package/.claude-flow-novice/.claude/agents/specialized/mobile/mobile-dev.md +560 -0
- package/.claude-flow-novice/.claude/agents/specialized/mobile/spec-mobile-react-native.md +33 -1
- package/.claude-flow-novice/.claude/agents/swarm/adaptive-coordinator-enhanced.md +485 -746
- package/.claude-flow-novice/.claude/agents/swarm/adaptive-coordinator.md +269 -37
- package/.claude-flow-novice/.claude/agents/swarm/blocking-coordinator-example.md +456 -0
- package/.claude-flow-novice/.claude/agents/swarm/hierarchical-coordinator.md +324 -60
- package/.claude-flow-novice/.claude/agents/swarm/mesh-coordinator.md +774 -324
- package/.claude-flow-novice/.claude/agents/swarm/test-coordinator.md +123 -74
- package/.claude-flow-novice/.claude/agents/testing/e2e/playwright-agent.md +32 -0
- package/.claude-flow-novice/.claude/agents/testing/interaction-tester.md +525 -0
- package/.claude-flow-novice/.claude/agents/testing/playwright-tester.md +405 -0
- package/.claude-flow-novice/.claude/agents/testing/production-validator.md +644 -0
- package/.claude-flow-novice/.claude/agents/testing/tdd-london-swarm.md +659 -0
- package/.claude-flow-novice/.claude/agents/testing/unit/tdd-london-swarm.md +27 -0
- package/.claude-flow-novice/.claude/agents/testing/validation/production-validator.md +390 -1
- package/.claude-flow-novice/config/typescript/tsconfig.tsbuildinfo +1 -1
- package/.claude-flow-novice/dist/__tests__/redis/RedisHealthMonitor.test.d.ts +14 -0
- package/.claude-flow-novice/dist/agents/heartbeat-manager.d.ts +73 -0
- package/.claude-flow-novice/dist/agents/lifecycle-cleanup-enhanced.d.ts +190 -0
- package/.claude-flow-novice/dist/cfn-loop/__tests__/agent-lifecycle-sqlite.test.d.ts +17 -0
- package/.claude-flow-novice/dist/cfn-loop/__tests__/blocking-coordination-audit.test.d.ts +16 -0
- package/.claude-flow-novice/dist/cfn-loop/__tests__/blocking-coordination-signals.test.d.ts +14 -0
- package/.claude-flow-novice/dist/cfn-loop/__tests__/byzantine-consensus-adapter.test.d.ts +14 -0
- package/.claude-flow-novice/dist/cfn-loop/__tests__/byzantine-performance.test.d.ts +17 -0
- package/.claude-flow-novice/dist/cfn-loop/__tests__/cfn-loop-byzantine-integration.test.d.ts +15 -0
- package/.claude-flow-novice/dist/cfn-loop/__tests__/cfn-loop-e2e.test.d.ts +15 -0
- package/.claude-flow-novice/dist/cfn-loop/__tests__/cfn-loop-memory-manager.test.d.ts +9 -0
- package/.claude-flow-novice/dist/cfn-loop/__tests__/cleanup-integration.test.d.ts +21 -0
- package/.claude-flow-novice/dist/cfn-loop/__tests__/cleanup-performance-validation.test.d.ts +13 -0
- package/.claude-flow-novice/dist/cfn-loop/__tests__/coordinator-timeout-handler.test.d.ts +14 -0
- package/.claude-flow-novice/dist/cfn-loop/__tests__/dead-coordinator-detection.test.d.ts +15 -0
- package/.claude-flow-novice/dist/cfn-loop/__tests__/doc-code-examples-validator.d.ts +35 -0
- package/.claude-flow-novice/dist/cfn-loop/__tests__/doc-executable-examples.test.d.ts +10 -0
- package/.claude-flow-novice/dist/cfn-loop/__tests__/extended-timeout-testing.test.d.ts +24 -0
- package/.claude-flow-novice/dist/cfn-loop/__tests__/heartbeat-warning-system.test.d.ts +21 -0
- package/.claude-flow-novice/dist/cfn-loop/__tests__/redis-health-monitor.test.d.ts +22 -0
- package/.claude-flow-novice/dist/cfn-loop/__tests__/signal-ack-protocol.test.d.ts +21 -0
- package/.claude-flow-novice/dist/cfn-loop/__tests__/sqlite-memory-manager.test.d.ts +19 -0
- package/.claude-flow-novice/dist/cfn-loop/__tests__/test-utilities.d.ts +133 -0
- package/.claude-flow-novice/dist/cfn-loop/agent-lifecycle-sqlite.d.ts +143 -0
- package/.claude-flow-novice/dist/cfn-loop/blocking-coordination-signals.d.ts +178 -0
- package/.claude-flow-novice/dist/cfn-loop/blocking-coordination.d.ts +268 -0
- package/.claude-flow-novice/dist/cfn-loop/byzantine-consensus-adapter.d.ts +193 -0
- package/.claude-flow-novice/dist/cfn-loop/cfn-loop-memory-manager.d.ts +221 -0
- package/.claude-flow-novice/dist/cfn-loop/cfn-loop-orchestrator.d.ts +193 -1
- package/.claude-flow-novice/dist/cfn-loop/checkpoint-serializer.d.ts +113 -0
- package/.claude-flow-novice/dist/cfn-loop/circuit-breaker.d.ts +8 -2
- package/.claude-flow-novice/dist/cfn-loop/conflict-resolver.d.ts +221 -0
- package/.claude-flow-novice/dist/cfn-loop/consensus/enterprise-planning-consensus.d.ts +61 -0
- package/.claude-flow-novice/dist/cfn-loop/consensus/mvp-consensus.d.ts +33 -0
- package/.claude-flow-novice/dist/cfn-loop/coordination-validator.d.ts +121 -0
- package/.claude-flow-novice/dist/cfn-loop/coordinator-timeout-handler.d.ts +195 -0
- package/.claude-flow-novice/dist/cfn-loop/crash-detector.d.ts +138 -0
- package/.claude-flow-novice/dist/cfn-loop/epic-report-generator.d.ts +136 -0
- package/.claude-flow-novice/dist/cfn-loop/git-checkpoint-integration.example.d.ts +13 -0
- package/.claude-flow-novice/dist/cfn-loop/git-checkpoint-manager.d.ts +165 -0
- package/.claude-flow-novice/dist/cfn-loop/heartbeat-integration-example.d.ts +16 -0
- package/.claude-flow-novice/dist/cfn-loop/heartbeat-warning-system.d.ts +202 -0
- package/.claude-flow-novice/dist/cfn-loop/meta-coordinator.d.ts +208 -0
- package/.claude-flow-novice/dist/cfn-loop/modes/__tests__/mode-selection.test.d.ts +9 -0
- package/.claude-flow-novice/dist/cfn-loop/modes/enterprise-mode.d.ts +37 -0
- package/.claude-flow-novice/dist/cfn-loop/modes/index.d.ts +111 -0
- package/.claude-flow-novice/dist/cfn-loop/modes/mvp-mode.d.ts +31 -0
- package/.claude-flow-novice/dist/cfn-loop/modes/standard-mode.d.ts +31 -0
- package/.claude-flow-novice/dist/cfn-loop/modes/types.d.ts +135 -0
- package/.claude-flow-novice/dist/cfn-loop/product-owner/enterprise-owner-team.d.ts +50 -0
- package/.claude-flow-novice/dist/cfn-loop/product-owner/mvp-owner.d.ts +31 -0
- package/.claude-flow-novice/dist/cfn-loop/recovery-engine.d.ts +183 -0
- package/.claude-flow-novice/dist/cfn-loop/redis-health-integration-example.d.ts +13 -0
- package/.claude-flow-novice/dist/cfn-loop/redis-health-monitor.d.ts +164 -0
- package/.claude-flow-novice/dist/cfn-loop/redis-pubsub-helpers.d.ts +230 -0
- package/.claude-flow-novice/dist/cfn-loop/sprint-coordinator-enhanced.d.ts +199 -0
- package/.claude-flow-novice/dist/cfn-loop/state-checkpoint-manager.d.ts +198 -0
- package/.claude-flow-novice/dist/cfn-loop/test-aggregator.d.ts +205 -0
- package/.claude-flow-novice/dist/cfn-loop/test-lock-coordinator.d.ts +176 -0
- package/.claude-flow-novice/dist/cfn-loop/test-product-owner-decision.d.ts +19 -0
- package/.claude-flow-novice/dist/cfn-loop/types.d.ts +174 -0
- package/.claude-flow-novice/dist/cfn-loop/validator-methods-replacement.d.ts +68 -0
- package/.claude-flow-novice/dist/cli/cleanup-orphans.d.ts +54 -0
- package/.claude-flow-novice/dist/cli/commands/agent-lifecycle.d.ts +226 -0
- package/.claude-flow-novice/dist/cli/commands/cfn-loop-parallel.d.ts +21 -0
- package/.claude-flow-novice/dist/cli/commands/recovery-resume.d.ts +33 -0
- package/.claude-flow-novice/dist/cli/commands/recovery-status.d.ts +57 -0
- package/.claude-flow-novice/dist/cli/commands/recovery.d.ts +88 -0
- package/.claude-flow-novice/dist/cli/commands/validate-coordination.d.ts +14 -0
- package/.claude-flow-novice/dist/cli/node-compat.d.ts +1 -1
- package/.claude-flow-novice/dist/cli/simple-commands/hive-mind/queen.d.ts +3 -3
- package/.claude-flow-novice/dist/cli/utils/interactive-detector.d.ts +1 -1
- package/.claude-flow-novice/dist/cli/utils/redis-client.d.ts +1 -5
- package/.claude-flow-novice/dist/consensus/byzantine-coordinator.d.ts +314 -0
- package/.claude-flow-novice/dist/constants/agent-types.d.ts +2 -2
- package/.claude-flow-novice/dist/coordination/hive-orchestrator.d.ts +1 -1
- package/.claude-flow-novice/dist/coordination/validation-schemas.d.ts +12 -12
- package/.claude-flow-novice/dist/hooks/index.d.ts +1 -1
- package/.claude-flow-novice/dist/hooks/useSwarmRealtimeData.d.ts +11 -11
- package/.claude-flow-novice/dist/memory/advanced-memory-manager.d.ts +1 -0
- package/.claude-flow-novice/dist/memory/backends/sqlite.d.ts +1 -0
- package/.claude-flow-novice/dist/memory/distributed-memory.d.ts +1 -0
- package/.claude-flow-novice/dist/memory/secret-detector.d.ts +131 -0
- package/.claude-flow-novice/dist/memory/sqlite-enhanced-backend.d.ts +1 -0
- package/.claude-flow-novice/dist/monitoring/memory-leak-dashboard-widget.d.ts +194 -0
- package/.claude-flow-novice/dist/providers/api-key-rotation-example.d.ts +54 -0
- package/.claude-flow-novice/dist/providers/api-key-rotator.d.ts +166 -0
- package/.claude-flow-novice/dist/providers/rate-limit-detector.d.ts +60 -0
- package/.claude-flow-novice/dist/redis/RedisHealthMonitor.d.ts +162 -0
- package/.claude-flow-novice/dist/redis/health-integration-example.d.ts +86 -0
- package/.claude-flow-novice/dist/services/swarm-memory-manager.d.ts +1 -0
- package/.claude-flow-novice/dist/src/agents/heartbeat-manager.js +144 -0
- package/.claude-flow-novice/dist/src/agents/lifecycle-cleanup-enhanced.js +514 -0
- package/.claude-flow-novice/dist/src/automation/test-pipeline/PipelineValidator.js +1 -1
- package/.claude-flow-novice/dist/src/automation/test-pipeline/SwarmTestCoordinator.js +1 -1
- package/.claude-flow-novice/dist/src/cfn-loop/agent-lifecycle-sqlite.js +385 -0
- package/.claude-flow-novice/dist/src/cfn-loop/blocking-coordination-signals.js +470 -0
- package/.claude-flow-novice/dist/src/cfn-loop/blocking-coordination.js +768 -0
- package/.claude-flow-novice/dist/src/cfn-loop/byzantine-consensus-adapter.js +548 -0
- package/.claude-flow-novice/dist/src/cfn-loop/cfn-loop-memory-manager.js +589 -0
- package/.claude-flow-novice/dist/src/cfn-loop/cfn-loop-orchestrator.js +1059 -21
- package/.claude-flow-novice/dist/src/cfn-loop/checkpoint-serializer.js +308 -0
- package/.claude-flow-novice/dist/src/cfn-loop/circuit-breaker.js +34 -9
- package/.claude-flow-novice/dist/src/cfn-loop/conflict-resolver.js +525 -0
- package/.claude-flow-novice/dist/src/cfn-loop/consensus/enterprise-planning-consensus.js +403 -0
- package/.claude-flow-novice/dist/src/cfn-loop/consensus/mvp-consensus.js +235 -0
- package/.claude-flow-novice/dist/src/cfn-loop/coordination-validator.js +304 -0
- package/.claude-flow-novice/dist/src/cfn-loop/coordinator-timeout-handler.js +600 -0
- package/.claude-flow-novice/dist/src/cfn-loop/crash-detector.js +362 -0
- package/.claude-flow-novice/dist/src/cfn-loop/epic-report-generator.js +283 -0
- package/.claude-flow-novice/dist/src/cfn-loop/git-checkpoint-integration.example.js +161 -0
- package/.claude-flow-novice/dist/src/cfn-loop/git-checkpoint-manager.js +486 -0
- package/.claude-flow-novice/dist/src/cfn-loop/heartbeat-integration-example.js +187 -0
- package/.claude-flow-novice/dist/src/cfn-loop/heartbeat-warning-system.js +492 -0
- package/.claude-flow-novice/dist/src/cfn-loop/meta-coordinator.js +538 -0
- package/.claude-flow-novice/dist/src/cfn-loop/modes/enterprise-mode.js +132 -0
- package/.claude-flow-novice/dist/src/cfn-loop/modes/index.js +191 -0
- package/.claude-flow-novice/dist/src/cfn-loop/modes/mvp-mode.js +79 -0
- package/.claude-flow-novice/dist/src/cfn-loop/modes/standard-mode.js +81 -0
- package/.claude-flow-novice/dist/src/cfn-loop/modes/types.js +41 -0
- package/.claude-flow-novice/dist/src/cfn-loop/product-owner/enterprise-owner-team.js +380 -0
- package/.claude-flow-novice/dist/src/cfn-loop/product-owner/mvp-owner.js +170 -0
- package/.claude-flow-novice/dist/src/cfn-loop/recovery-engine.js +546 -0
- package/.claude-flow-novice/dist/src/cfn-loop/redis-health-integration-example.js +215 -0
- package/.claude-flow-novice/dist/src/cfn-loop/redis-health-monitor.js +414 -0
- package/.claude-flow-novice/dist/src/cfn-loop/redis-pubsub-helpers.js +463 -0
- package/.claude-flow-novice/dist/src/cfn-loop/sprint-coordinator-enhanced.js +466 -0
- package/.claude-flow-novice/dist/src/cfn-loop/state-checkpoint-manager.js +402 -0
- package/.claude-flow-novice/dist/src/cfn-loop/test-aggregator.js +476 -0
- package/.claude-flow-novice/dist/src/cfn-loop/test-lock-coordinator.js +446 -0
- package/.claude-flow-novice/dist/src/cfn-loop/test-product-owner-decision.js +69 -0
- package/.claude-flow-novice/dist/src/cfn-loop/types.js +30 -0
- package/.claude-flow-novice/dist/src/cfn-loop/validator-methods-replacement.js +362 -0
- package/.claude-flow-novice/dist/src/cli/cleanup-orphans.js +246 -0
- package/.claude-flow-novice/dist/src/cli/commands/agent-lifecycle.js +1058 -0
- package/.claude-flow-novice/dist/src/cli/commands/cfn-loop-parallel.js +436 -0
- package/.claude-flow-novice/dist/src/cli/commands/index.js +86 -0
- package/.claude-flow-novice/dist/src/cli/commands/parse-epic.js +64 -2
- package/.claude-flow-novice/dist/src/cli/commands/recovery-resume.js +369 -0
- package/.claude-flow-novice/dist/src/cli/commands/recovery-status.js +265 -0
- package/.claude-flow-novice/dist/src/cli/commands/recovery.js +546 -0
- package/.claude-flow-novice/dist/src/cli/commands/validate-coordination.js +211 -0
- package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/CLAUDE-backup-pre-enterprise-loop.md +735 -0
- package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/CLAUDE.md +176 -326
- package/.claude-flow-novice/dist/src/coordination/shared/transparency/transparency-system.js +1 -1
- package/.claude-flow-novice/dist/src/memory/advanced-memory-manager.js +17 -2
- package/.claude-flow-novice/dist/src/memory/backends/sqlite.js +23 -1
- package/.claude-flow-novice/dist/src/memory/distributed-memory.js +18 -3
- package/.claude-flow-novice/dist/src/memory/secret-detector.js +253 -0
- package/.claude-flow-novice/dist/src/memory/sqlite-enhanced-backend.js +20 -1
- package/.claude-flow-novice/dist/src/monitoring/memory-leak-dashboard-widget.js +421 -0
- package/.claude-flow-novice/dist/src/observability/prometheus-metrics.d.js +8 -0
- package/.claude-flow-novice/dist/src/providers/api-key-rotation-example.js +165 -0
- package/.claude-flow-novice/dist/src/providers/api-key-rotator.js +412 -0
- package/.claude-flow-novice/dist/src/providers/rate-limit-detector.js +193 -0
- package/.claude-flow-novice/dist/src/redis/RedisHealthMonitor.js +429 -0
- package/.claude-flow-novice/dist/src/redis/health-integration-example.js +353 -0
- package/.claude-flow-novice/dist/src/services/swarm-memory-manager.js +72 -42
- package/.claude-flow-novice/dist/src/sqlite/ACLEnforcer.cjs +928 -0
- package/.claude-flow-novice/dist/src/sqlite/AgentRegistry.cjs +702 -0
- package/.claude-flow-novice/dist/src/sqlite/AgentRegistry.js +702 -0
- package/.claude-flow-novice/dist/src/sqlite/EncryptionKeyManager.cjs +754 -0
- package/.claude-flow-novice/dist/src/sqlite/EncryptionKeyManager.js +754 -0
- package/.claude-flow-novice/dist/src/sqlite/MemoryStoreAdapter.cjs +571 -0
- package/.claude-flow-novice/dist/src/sqlite/MemoryStoreAdapter.js +571 -0
- package/.claude-flow-novice/dist/src/sqlite/MultiLayerCache.cjs +640 -0
- package/.claude-flow-novice/dist/src/sqlite/MultiLayerCache.js +640 -0
- package/.claude-flow-novice/dist/src/sqlite/RedisCoordinator.cjs +636 -0
- package/.claude-flow-novice/dist/src/sqlite/RedisCoordinator.js +636 -0
- package/.claude-flow-novice/dist/src/sqlite/SwarmMemoryManager.cjs +750 -0
- package/.claude-flow-novice/dist/src/sqlite/SwarmMemoryManager.js +750 -0
- package/.claude-flow-novice/dist/src/sqlite/index.cjs +620 -0
- package/.claude-flow-novice/dist/src/sqlite/index.js +620 -0
- package/.claude-flow-novice/dist/src/sqlite/performance-benchmarks.cjs +839 -0
- package/.claude-flow-novice/dist/src/sqlite/performance-benchmarks.js +839 -0
- package/.claude-flow-novice/dist/src/testing/performance/PerformanceTestRunner.js +1 -1
- package/.claude-flow-novice/dist/src/wasm-regex-engine/pkg/wasm_regex_engine.d.js +11 -0
- package/.claude-flow-novice/dist/src/wasm-regex-engine/pkg/wasm_regex_engine_bg.wasm.d.js +28 -0
- package/.claude-flow-novice/dist/web/api/routes/parallel-status.d.ts +105 -0
- package/.claude-flow-novice/dist/web/dashboard/hooks/useWebSocket.d.ts +4 -4
- package/.claude-flow-novice/tsconfig.tsbuildinfo +1 -1
- package/AUTO_SETUP.md +271 -0
- package/CLAUDE.md +176 -326
- package/README.md +127 -30
- package/config/.env.example +17 -0
- package/config/cfn-loop/enterprise-criteria.json +207 -0
- package/config/cfn-loop/instructions/enterprise-instructions.md +506 -0
- package/config/cfn-loop/instructions/mvp-instructions.md +420 -0
- package/config/cfn-loop/instructions/standard-instructions.md +497 -0
- package/config/cfn-loop/mvp-criteria.json +133 -0
- package/config/docker/DEPLOYMENT_VALIDATION_RESULTS.md +1 -1
- package/config/docker/QUICK_START.txt +7 -5
- package/config/docker/STABILITY_TEST_README.md +10 -10
- package/config/hooks/AGENT_TEMPLATE_VALIDATOR_COMPLETION.md +440 -0
- package/config/hooks/BLOCKING_COORDINATION_VALIDATOR_IMPLEMENTATION_REPORT.md +559 -0
- package/config/hooks/BLOCKING_COORDINATION_VALIDATOR_README.md +467 -0
- package/config/hooks/CFN_LOOP_MEMORY_VALIDATOR_IMPLEMENTATION.md +343 -0
- package/config/hooks/COVERAGE_VALIDATOR_QUICK_START.md +218 -0
- package/config/hooks/POST_TEST_COVERAGE_README.md +657 -0
- package/config/hooks/README-AGENT-TEMPLATE-VALIDATOR.md +464 -0
- package/config/hooks/README-CFN-LOOP-MEMORY-VALIDATOR.md +442 -0
- package/config/hooks/TEST_COVERAGE_VALIDATOR_COMPLETION.md +497 -0
- package/config/hooks/WASM_REGEX_ENGINE.md +210 -0
- package/config/hooks/coverage.config.json +40 -0
- package/config/hooks/hook-manager.cjs +47 -0
- package/config/hooks/markdown-validator.js +202 -0
- package/config/hooks/post-edit-agent-template.js +607 -0
- package/config/hooks/post-edit-blocking-coordination.js +748 -0
- package/config/hooks/post-edit-cfn-loop-memory.cjs +503 -0
- package/config/hooks/post-edit-pipeline.js +290 -145
- package/config/hooks/post-test-coverage.js +981 -0
- package/config/hooks/pre-commit-db-scan +119 -0
- package/config/hooks/pre-edit-security.js +33 -6
- package/config/hooks/pre-tool-validation.js +60 -1
- package/config/hooks/safety-validator.js +236 -21
- package/config/hooks/safety-validator.js.backup +1323 -0
- package/config/hooks/validators/CWEValidator.js +152 -0
- package/config/hooks/validators/ComplianceValidator.js +187 -0
- package/config/hooks/validators/DependencyScanner.js +162 -0
- package/config/hooks/validators/InputSanitizer.js +134 -0
- package/config/hooks/validators/OWASPValidator.js +197 -0
- package/config/hooks/validators/SecurityPatternScanner.js +318 -0
- package/config/jest/jest.config.js +12 -1
- package/docs/PRE_COMMIT_HOOK.md +294 -0
- package/docs/README.md +130 -153
- package/docs/TEST_INFRASTRUCTURE.md +381 -0
- package/docs/agent-lifecycle-hooks.md +860 -0
- package/docs/api/FUNCTION_CATALOG.md +584 -0
- package/docs/api/ROUTING_QUICK_REFERENCE.md +117 -0
- package/docs/api/VALIDATION_QUICK_REFERENCE.md +172 -0
- package/docs/api/blocking-coordination-api.md +1451 -0
- package/docs/architecture/MULTI_SWARM_COORDINATION_README.md +620 -0
- package/docs/architecture/README_REALTIME_COMMUNICATION.md +463 -0
- package/docs/architecture/REALTIME_COMMUNICATION_ANALYSIS.md +321 -0
- package/docs/architecture/WASM_ARCHITECTURE_SUMMARY.md +429 -0
- package/docs/architecture/WASM_INTEGRATION_ARCHITECTURE.md +1330 -0
- package/docs/archive/2025-10-10-architecture/deprecated-implementations/BLOCKING_COORDINATION_VALIDATION_FINAL.md +334 -0
- package/docs/archive/2025-10-10-architecture/deprecated-implementations/blocking-coordination-pattern.md +484 -0
- package/docs/archive/2025-10-10-architecture/deprecated-implementations/production-blocking-coordination-plan.md +764 -0
- package/docs/archive/2025-10-10-architecture/deprecated-implementations/revised-production-blocking-plan.md +614 -0
- package/docs/archive/2025-10-10-architecture/implementation-guides/WASM_IMPLEMENTATION_GUIDE.md +1011 -0
- package/docs/archive/2025-10-10-architecture/implementation-guides/WASM_ROLLOUT_PLAN.md +701 -0
- package/docs/archive/2025-10-10-architecture/implementation-guides/agent-lifecycle-implementation-plan.md +1428 -0
- package/docs/archive/2025-10-10-architecture/other-designs/CORRECTED-task-tool-constraints.md +366 -0
- package/docs/archive/2025-10-10-architecture/other-designs/claude-code-task-tool-constraints.md +401 -0
- package/docs/archive/2025-10-10-architecture/other-designs/cleanup-architecture-explanation.md +423 -0
- package/docs/archive/2025-10-10-guides/setup-guides/CONTRIBUTING.md +136 -0
- package/docs/archive/2025-10-10-guides/setup-guides/DEVELOPMENT_SETUP.md +486 -0
- package/docs/archive/2025-10-10-guides/setup-guides/EXAMPLES.md +793 -0
- package/docs/archive/2025-10-10-guides/setup-guides/INSTALLATION.md +608 -0
- package/docs/archive/2025-10-10-guides/setup-guides/QUICK_START_INSTALLATION.md +521 -0
- package/docs/archive/2025-10-10-guides/setup-guides/README.md +162 -0
- package/docs/archive/2025-10-10-guides/setup-guides/TROUBLESHOOTING.md +1388 -0
- package/docs/archive/2025-10-10-operations/ARCHIVE_MIGRATION_PLAN.md +214 -0
- package/docs/archive/2025-10-10-performance/wasm-deliverables/WASM_DELIVERABLES.md +421 -0
- package/docs/archive/ARCHIVAL_EXECUTION_REPORT_2025-10-10.md +219 -0
- package/docs/archive/HTTP_POLLING_FALLBACK.md +283 -0
- package/docs/archive/reference-historical/BACKUP_MANIFEST.md +32 -0
- package/docs/archive/reference-historical/README-PHASE4.md +355 -0
- package/docs/archive/reference-historical/READMEv2.md +524 -0
- package/docs/deployment/blocking-coordination-secrets.md +1445 -0
- package/docs/implementation/SQLITE_INTEGRATION_IMPLEMENTATION.md +663 -0
- package/docs/integration/cfn-loop-examples.md +1107 -0
- package/docs/observability/prometheus-setup.md +455 -0
- package/docs/operations/OPERATIONS_FOLDER_REVIEW_REPORT.json +135 -0
- package/docs/operations/failure-recovery-playbook.md +877 -0
- package/docs/operations/monitoring-runbook.md +880 -0
- package/docs/patterns/blocking-coordination-pattern.md +642 -0
- package/docs/reference/CHANGELOG-POST-EDIT-PIPELINE.md +370 -0
- package/docs/reference/MANUAL_NPM_PUBLICATION_GUIDE.md +248 -0
- package/docs/security/SEC-002-race-condition-fix.md +300 -0
- package/docs/security/SEC-003-JSON-VALIDATION.md +215 -0
- package/docs/testing/chaos-engineering.md +524 -0
- package/docs/training/best-practices.md +1241 -0
- package/docs/training/faq.md +1483 -0
- package/docs/training/interactive-tutorial.md +966 -0
- package/docs/training/troubleshooting-guide.md +1279 -0
- package/docs/training/video-walkthrough-script.md +675 -0
- package/examples/demonstrations/phase5-demonstration.cjs +227 -0
- package/examples/rest-api-simple/sparc-implementation-roadmap.md +1 -1
- package/examples/rest-api-simple/sparc-implementation-roadmap.md.backup-1760135091708 +190 -0
- package/examples/templates/basic-swarm/CLAUDE.md +464 -0
- package/examples/templates/custom-agent/CLAUDE.md +299 -0
- package/examples/templates/custom-agent/package.json +26 -0
- package/examples/templates/event-bus/package.json +28 -0
- package/examples/templates/fleet-manager/CLAUDE.md +134 -0
- package/examples/templates/fleet-manager/package.json +28 -0
- package/package.json +60 -18
- package/readme/additional-commands.md +365 -2
- package/readme/cfn-loop-modes.md +527 -0
- package/readme/logs-cli-redis.md +82 -14
- package/readme/logs-documentation-index.md +8 -0
- package/readme/logs-features.md +188 -24
- package/readme/logs-slash-commands.md +35 -11
- package/scripts/CLEANUP_OPTIMIZATION_REPORT.json +312 -0
- package/scripts/CLEANUP_PERFORMANCE_OPTIMIZATION.md +387 -0
- package/scripts/CLEANUP_QUICK_START.md +268 -0
- package/scripts/CLEANUP_TEST_RESULTS.md +205 -0
- package/scripts/auto-setup.js +332 -0
- package/scripts/cleanup-blocking-coordination.sh +420 -0
- package/scripts/collect-build-metrics.js +65 -0
- package/scripts/demo/README.md +79 -0
- package/scripts/demo/autoscaling-demo-simplified.js +963 -0
- package/scripts/demo/comprehensive-dashboard-test.js +693 -0
- package/scripts/demo/confidence-log.js +87 -0
- package/scripts/demo/confidence-report.js +82 -0
- package/scripts/demo/demo-multi-swarm-coordination.js +325 -0
- package/scripts/demo/demo-production-deployment.js +399 -0
- package/scripts/demo/demo-visualization-system.js +149 -0
- package/scripts/demo/performance-analysis.cjs +71 -0
- package/scripts/demo/performance-analysis.js +71 -0
- package/scripts/demo/test-autoscaling-demo.js +314 -0
- package/scripts/dev/demo-phase3-compliance.js +2 -2
- package/scripts/ecosystem.config.cjs +90 -0
- package/scripts/hook-wrapper.sh +54 -0
- package/scripts/install-pre-commit-hook.sh +127 -0
- package/scripts/legacy/performance-test-runner.js +7 -7
- package/scripts/migration/QUICK-START.md +189 -0
- package/scripts/migration/QUICK-START.md.backup-1760135091363 +189 -0
- package/scripts/migration/README.md +30 -0
- package/scripts/migration/TASK-1.3.2-COMPLETION-REPORT.md +500 -0
- package/scripts/migration/TASK-1.3.2-COMPLETION-REPORT.md.backup-1760135091348 +500 -0
- package/scripts/migration/UPDATE-PATHS-README.md +464 -0
- package/scripts/migration/UPDATE-PATHS-README.md.backup-1760135091337 +464 -0
- package/scripts/migration/example-patterns.json +19 -0
- package/scripts/migration/reorganize-workspace.js +504 -0
- package/scripts/migration/test-update-paths.js +359 -0
- package/scripts/migration/update-paths.js +664 -0
- package/scripts/migration/validate-migration.js +647 -0
- package/scripts/monitoring/README.md +6 -6
- package/scripts/monitoring/analyze-resources.sh +1 -1
- package/scripts/monitoring/dynamic-monitor.sh +4 -4
- package/scripts/monitoring/test-monitor-quick.sh +1 -1
- package/scripts/performance-test-runner.js +7 -7
- package/scripts/redis-lua/cleanup-blocking-coordination.lua +198 -0
- package/scripts/sync-agents.js +290 -0
- package/scripts/test/NEW_STABILITY_TEST_GUIDE.md +13 -8
- package/scripts/test/quick-multilingual-demo.js +2 -2
- package/scripts/test-cleanup-performance.sh +416 -0
- package/scripts/test-runner.cjs +154 -0
- package/scripts/validate-agent-hooks.js +506 -0
- package/scripts/validation/README.md +33 -0
- package/scripts/validation/acl-security-validation.cjs +214 -0
- package/scripts/validation/acl-security-validation.js +402 -0
- package/scripts/validation/byzantine-verification.js +407 -0
- package/scripts/validation/final-phase-2-consensus.cjs +219 -0
- package/scripts/validation/final-security-validation.js +791 -0
- package/scripts/validation/final-wasm-validation.cjs +840 -0
- package/scripts/validation/integration-test-analysis.js +105 -0
- package/scripts/validation/phase-0-comprehensive-validation.js +474 -0
- package/scripts/validation/phase-0-consensus-report.js +139 -0
- package/scripts/validation/phase-0-final-report.js +112 -0
- package/scripts/validation/phase-0-redis-consensus-report.js +129 -0
- package/scripts/validation/phase-0-validation-improved.js +490 -0
- package/scripts/validation/phase-0-validation-test.js +65 -0
- package/scripts/validation/phase-1-consensus-report.cjs +342 -0
- package/scripts/validation/phase-1-consensus-validation.cjs +551 -0
- package/scripts/validation/phase-1-consensus-validation.js +551 -0
- package/scripts/validation/phase-2-consensus-report.cjs +186 -0
- package/scripts/validation/phase-2-validation.cjs +171 -0
- package/scripts/validation/phase-2-validation.js +171 -0
- package/scripts/validation/phase-4-consensus-report.js +181 -0
- package/scripts/validation/phase-4-final-validation.js +351 -0
- package/scripts/validation/phase-5-consensus-report.cjs +113 -0
- package/scripts/validation/phase-5-consensus-report.js +113 -0
- package/scripts/validation/security-analysis.js +49 -0
- package/scripts/validation/security-validation.js +492 -0
- package/scripts/validation/simple-security-validation.js +464 -0
- package/scripts/verify-installation.js +44 -14
- package/src/cli/simple-commands/init/templates/CLAUDE-backup-pre-enterprise-loop.md +735 -0
- package/src/cli/simple-commands/init/templates/CLAUDE.md +176 -326
- package/src/observability/blocking-coordination-metrics.js +161 -0
- package/src/observability/prometheus-metrics.d.ts +21 -0
- package/src/observability/prometheus-metrics.js +280 -0
- package/wiki/tutorials/beginner/04-quality-testing.md +3 -3
- package/.claude/agents/analyst.md +0 -300
- package/.claude/agents/architect.md +0 -558
- package/.claude/agents/base-template-generator.md +0 -65
- package/.claude/agents/coder.md +0 -181
- package/.claude/agents/planner.md +0 -135
- package/.claude/agents/researcher.md +0 -185
- package/.claude/agents/reviewer.md +0 -293
- package/.claude/agents/task-coordinator.md +0 -126
- package/.claude/agents/tester.md +0 -664
- package/MCP_DEPRECATION_COMPLETE.md +0 -375
- package/V2.0.0_READY_FOR_PUBLICATION.md +0 -417
- package/V2_RELEASE_SUMMARY.md +0 -568
- package/docs/DEPLOYMENT.md +0 -523
- package/docs/TROUBLESHOOTING.md +0 -1388
- package/docs/agent-token-analysis-results.json +0 -1329
- package/docs/architecture/agent-lifecycle-implementation-plan.md +0 -1428
- package/templates/custom-agent/package.json +0 -26
- package/templates/event-bus/package.json +0 -28
- package/templates/fleet-manager/package.json +0 -28
- /package/.claude/{agents → agents-ignore}/benchmarking-tests/test-agent-code-heavy.md +0 -0
- /package/.claude/{agents → agents-ignore}/benchmarking-tests/test-agent-metadata.md +0 -0
- /package/.claude/{agents → agents-ignore}/benchmarking-tests/test-agent-minimal.md +0 -0
- /package/.claude/{agents/coordinator.md → agents-ignore/coordinator-backup.md} +0 -0
- /package/.claude/{agents → agents-ignore}/data/ml/data-ml-model.md +0 -0
- /package/.claude/{agents → agents-ignore}/github/code-review-swarm.md +0 -0
- /package/.claude/{agents → agents-ignore}/github/github-modes.md +0 -0
- /package/.claude/{agents/templates → agents-ignore/github}/github-pr-manager.md +0 -0
- /package/.claude/{agents → agents-ignore}/github/github-specialist.md +0 -0
- /package/.claude/{agents → agents-ignore}/github/issue-tracker.md +0 -0
- /package/.claude/{agents → agents-ignore}/github/multi-repo-swarm.md +0 -0
- /package/.claude/{agents/devops/ci-cd → agents-ignore/github}/ops-cicd-github.md +0 -0
- /package/.claude/{agents → agents-ignore}/github/pr-manager.md +0 -0
- /package/.claude/{agents → agents-ignore}/github/project-board-sync.md +0 -0
- /package/.claude/{agents → agents-ignore}/github/release-manager.md +0 -0
- /package/.claude/{agents → agents-ignore}/github/release-swarm.md +0 -0
- /package/.claude/{agents → agents-ignore}/github/repo-architect.md +0 -0
- /package/.claude/{agents → agents-ignore}/github/swarm-issue.md +0 -0
- /package/.claude/{agents → agents-ignore}/github/swarm-pr.md +0 -0
- /package/.claude/{agents → agents-ignore}/github/sync-coordinator.md +0 -0
- /package/.claude/{agents → agents-ignore}/github/workflow-automation.md +0 -0
- /package/.claude/{agents → agents-ignore}/neural/neural-pattern-agent.md +0 -0
- /package/.claude/{agents → agents-ignore}/neural/safla-neural.md +0 -0
- /package/.claude/{agents → agents-ignore}/optimization/benchmark-suite.md +0 -0
- /package/.claude/{agents → agents-ignore}/optimization/load-balancer.md +0 -0
- /package/.claude/{agents → agents-ignore}/optimization/perf-analyzer.md +0 -0
- /package/.claude/{agents → agents-ignore}/optimization/performance-monitor.md +0 -0
- /package/.claude/{agents → agents-ignore}/optimization/resource-allocator.md +0 -0
- /package/.claude/{agents → agents-ignore}/optimization/topology-optimizer.md +0 -0
- /package/.claude/{agents → agents-ignore}/sublinear/consciousness-evolution-agent.md +0 -0
- /package/.claude/{agents → agents-ignore}/sublinear/matrix-solver-agent.md +0 -0
- /package/.claude/{agents → agents-ignore}/sublinear/nanosecond-scheduler-agent.md +0 -0
- /package/.claude/{agents → agents-ignore}/sublinear/pagerank-agent.md +0 -0
- /package/.claude/{agents → agents-ignore}/sublinear/phi-calculator-agent.md +0 -0
- /package/.claude/{agents → agents-ignore}/sublinear/psycho-symbolic-agent.md +0 -0
- /package/.claude/{agents → agents-ignore}/sublinear/sublinear.md +0 -0
- /package/.claude/{agents → agents-ignore}/sublinear/temporal-advantage-agent.md +0 -0
- /package/.claude/{agents/architecture → agents-ignore}/system-design/arch-system-design.md +0 -0
- /package/.claude/{agents → agents-ignore}/templates/automation-smart-agent.md +0 -0
- /package/.claude/{agents → agents-ignore}/templates/coordinator-swarm-init.md +0 -0
- /package/.claude/{agents → agents-ignore}/templates/implementer-sparc-coder.md +0 -0
- /package/.claude/{agents → agents-ignore}/templates/memory-coordinator.md +0 -0
- /package/.claude/{agents → agents-ignore}/templates/migration-plan.md +0 -0
- /package/.claude/{agents → agents-ignore}/templates/orchestrator-task.md +0 -0
- /package/.claude/{agents → agents-ignore}/templates/performance-analyzer.md +0 -0
- /package/.claude/{agents → agents-ignore}/templates/sparc-coordinator.md +0 -0
- /package/{.claude/agents/specialized → .claude-flow-novice/.claude/agents/agent-principles}/CODER_AGENT_GUIDELINES.md +0 -0
- /package/docs/{API.md → api/API.md} +0 -0
- /package/docs/{CONFIGURATION.md → api/CONFIGURATION.md} +0 -0
- /package/docs/{PROVIDER_ROUTING_CONFIGURATION.md → api/PROVIDER_ROUTING_CONFIGURATION.md} +0 -0
- /package/docs/{PROVIDER_ROUTING_VERIFICATION.md → api/PROVIDER_ROUTING_VERIFICATION.md} +0 -0
- /package/docs/{ROUTING_FLOW_DIAGRAM.md → api/ROUTING_FLOW_DIAGRAM.md} +0 -0
- /package/{AGENT_PERFORMANCE_GUIDELINES.md → docs/architecture/AGENT_PERFORMANCE_GUIDELINES.md} +0 -0
- /package/docs/{EVENTEMITTER_CLEANUP_PATTERN.md → architecture/EVENTEMITTER_CLEANUP_PATTERN.md} +0 -0
- /package/docs/{REDIS_COORDINATION_SYSTEM.md → architecture/REDIS_COORDINATION_SYSTEM.md} +0 -0
- /package/docs/{SYSTEM_ARCHITECTURE.md → architecture/SYSTEM_ARCHITECTURE.md} +0 -0
- /package/docs/{consensus → architecture/consensus}/QUORUM_VERIFICATION_GUIDE.md +0 -0
- /package/docs/{consensus → architecture/consensus}/README.md +0 -0
- /package/docs/{consensus → architecture/consensus}/consensus-verification-1758747665635.json +0 -0
- /package/docs/{agents → archive/2025-10-10-architecture/agent-subdirectory}/MIGRATION_SUMMARY.md +0 -0
- /package/docs/{agents → archive/2025-10-10-architecture/agent-subdirectory}/README.md +0 -0
- /package/docs/{agent-booster-architecture.md → archive/2025-10-10-architecture/agent-subdirectory/agent-booster-architecture.md} +0 -0
- /package/docs/{agent-prompt-guidelines.md → archive/2025-10-10-architecture/agent-subdirectory/agent-prompt-guidelines.md} +0 -0
- /package/docs/{agent-token-usage-analysis-report.md → archive/2025-10-10-architecture/agent-subdirectory/agent-token-usage-analysis-report.md} +0 -0
- /package/docs/{agents → archive/2025-10-10-architecture/agent-subdirectory}/consensus-README.md +0 -0
- /package/docs/{agents → archive/2025-10-10-architecture/agent-subdirectory}/dependency-tracking-examples.md +0 -0
- /package/docs/{agents → archive/2025-10-10-architecture/agent-subdirectory}/optimization-README.md +0 -0
- /package/docs/{agents → archive/2025-10-10-architecture/agent-subdirectory}/swarm-README.md +0 -0
- /package/docs/{consensus → archive/2025-10-10-architecture/consensus-rounds}/CONSENSUS-COMPARISON.md +0 -0
- /package/docs/{consensus → archive/2025-10-10-architecture/consensus-rounds}/ROUND-5-EXECUTIVE-SUMMARY.md +0 -0
- /package/docs/{consensus → archive/2025-10-10-architecture/consensus-rounds}/consolidated-consensus-report.md +0 -0
- /package/docs/{consensus → archive/2025-10-10-architecture/consensus-rounds}/fullstack-consensus-round-2.md +0 -0
- /package/docs/{consensus → archive/2025-10-10-architecture/consensus-rounds}/fullstack-round-3-consensus-summary.md +0 -0
- /package/docs/{consensus → archive/2025-10-10-architecture/consensus-rounds}/fullstack-round-3-validator-1.md +0 -0
- /package/docs/{consensus → archive/2025-10-10-architecture/consensus-rounds}/fullstack-round-3-validator-2.md +0 -0
- /package/docs/{consensus → archive/2025-10-10-architecture/consensus-rounds}/fullstack-round-3-validator-3.md +0 -0
- /package/docs/{consensus → archive/2025-10-10-architecture/consensus-rounds}/fullstack-round-3-validator-4.md +0 -0
- /package/docs/{consensus → archive/2025-10-10-architecture/consensus-rounds}/fullstack-round-4-consensus-summary.md +0 -0
- /package/docs/{consensus → archive/2025-10-10-architecture/consensus-rounds}/fullstack-round-4-validator-1.md +0 -0
- /package/docs/{consensus → archive/2025-10-10-architecture/consensus-rounds}/fullstack-round-4-validator-2.md +0 -0
- /package/docs/{consensus → archive/2025-10-10-architecture/consensus-rounds}/fullstack-round-4-validator-3.md +0 -0
- /package/docs/{consensus → archive/2025-10-10-architecture/consensus-rounds}/fullstack-round-4-validator-4.md +0 -0
- /package/docs/{consensus → archive/2025-10-10-architecture/consensus-rounds}/fullstack-round-5-final-consensus.md +0 -0
- /package/docs/{consensus → archive/2025-10-10-architecture/consensus-rounds}/fullstack-swarm-consensus-report.md +0 -0
- /package/docs/{consensus → archive/2025-10-10-architecture/consensus-rounds}/post-edit-consensus-round-2.md +0 -0
- /package/docs/{consensus → archive/2025-10-10-architecture/consensus-rounds}/raft-implementation-summary.md +0 -0
- /package/docs/{consensus → archive/2025-10-10-architecture/consensus-rounds}/verification-summary.md +0 -0
- /package/docs/{comprehensive-mcp-solution-architecture.md → archive/2025-10-10-architecture/deprecated-implementations/comprehensive-mcp-solution-architecture.md} +0 -0
- /package/docs/{architecture → archive/2025-10-10-architecture}/experimental/ExperimentalFeaturesArchitecture.md +0 -0
- /package/docs/{architecture → archive/2025-10-10-architecture/frontend-specific}/frontend-agent-ecosystem-integration.md +0 -0
- /package/docs/{architecture → archive/2025-10-10-architecture/frontend-specific}/frontend-agent-technical-decisions.md +0 -0
- /package/docs/{architecture → archive/2025-10-10-architecture/frontend-specific}/frontend-backend-coordination-interfaces.md +0 -0
- /package/docs/{architecture → archive/2025-10-10-architecture/frontend-specific}/react-frontend-agent-specification.md +0 -0
- /package/docs/{architecture → archive/2025-10-10-architecture/github-specific}/github-agent-consolidation-architecture.md +0 -0
- /package/docs/{architecture → archive/2025-10-10-architecture/github-specific}/github-architecture-diagrams.md +0 -0
- /package/docs/{architecture → archive/2025-10-10-architecture/implementation-guides}/agent-lifecycle-implementation-guide.md +0 -0
- /package/docs/{architecture → archive/2025-10-10-architecture/implementation-guides}/implementation-guide.md +0 -0
- /package/docs/{architecture → archive/2025-10-10-architecture/implementation-guides}/implementation-specifications.md +0 -0
- /package/docs/{architecture → archive/2025-10-10-architecture/implementation-guides}/integration-guide.md +0 -0
- /package/docs/{architecture → archive/2025-10-10-architecture/implementation-guides}/performance-optimization-guide.md +0 -0
- /package/docs/{architecture → archive/2025-10-10-architecture/old-summaries}/architecture-summary-report.md +0 -0
- /package/docs/{architecture → archive/2025-10-10-architecture/old-summaries}/fullstack-swarm-implementation-summary.md +0 -0
- /package/docs/{architecture → archive/2025-10-10-architecture/old-summaries}/ultra-fast-communication-summary.md +0 -0
- /package/docs/{architecture → archive/2025-10-10-architecture/other-designs}/agent-discovery-registration-system.md +0 -0
- /package/docs/{architecture → archive/2025-10-10-architecture/other-designs}/agent-lifecycle-management-architecture.md +0 -0
- /package/docs/{architecture → archive/2025-10-10-architecture/other-designs}/architectural-decisions.md +0 -0
- /package/docs/{architecture → archive/2025-10-10-architecture/other-designs}/architecture-decision-records.md +0 -0
- /package/docs/{claude-soul-implementation.md → archive/2025-10-10-architecture/other-designs/claude-soul-implementation.md} +0 -0
- /package/docs/{architecture → archive/2025-10-10-architecture/other-designs}/file-based-cross-team-communication.md +0 -0
- /package/docs/{architecture → archive/2025-10-10-architecture/other-designs}/full-stack-swarm-team-specification.md +0 -0
- /package/docs/{architecture → archive/2025-10-10-architecture/other-designs}/fullstack-communication-integration.md +0 -0
- /package/docs/{architecture → archive/2025-10-10-architecture/other-designs}/stage3-unified-system-architecture.md +0 -0
- /package/docs/{architecture → archive/2025-10-10-architecture/other-designs}/ultra-fast-communication-bus-design.md +0 -0
- /package/docs/{architecture → archive/2025-10-10-architecture/other-designs}/zero-latency-communication-architecture.md +0 -0
- /package/docs/{architecture → archive/2025-10-10-architecture/specific-feature-specs}/dynamic-agent-spawning-architecture.md +0 -0
- /package/docs/{fleet-manager-design.md → archive/2025-10-10-architecture/specific-feature-specs/fleet-manager-design.md} +0 -0
- /package/docs/{architecture → archive/2025-10-10-architecture/specific-feature-specs}/fleet-manager-npm-architecture.md +0 -0
- /package/docs/{help-coordinator-implementation.md → archive/2025-10-10-architecture/specific-feature-specs/help-coordinator-implementation.md} +0 -0
- /package/docs/{architecture → archive/2025-10-10-architecture/specific-feature-specs}/high-performance-memory-store.md +0 -0
- /package/docs/{architecture → archive/2025-10-10-architecture/specific-feature-specs}/intelligent-configuration-system.md +0 -0
- /package/docs/{architecture → archive/2025-10-10-architecture/specific-feature-specs}/message-serialization-compression-strategy.md +0 -0
- /package/docs/{architecture → archive/2025-10-10-architecture/specific-feature-specs}/priority-queue-dead-letter-design.md +0 -0
- /package/docs/{architecture → archive/2025-10-10-architecture/specific-feature-specs}/swarm-message-router-extension-design.md +0 -0
- /package/docs/{architecture → archive/2025-10-10-architecture/specific-feature-specs}/swarm-router-implementation-spec.md +0 -0
- /package/docs/{architecture → archive/2025-10-10-architecture/specific-feature-specs}/user-preference-storage-design.md +0 -0
- /package/docs/{architecture → archive/2025-10-10-architecture/specific-feature-specs}/websocket-connection-scaling-design.md +0 -0
- /package/docs/{swarm-coordination-test-results.md → archive/2025-10-10-architecture/test-results/swarm-coordination-test-results.md} +0 -0
- /package/docs/{development → archive/2025-10-10-development}/COMPREHENSIVE_WORKFLOW_SYSTEM.md +0 -0
- /package/docs/{development → archive/2025-10-10-development}/DEVELOPMENT_WORKFLOW.md +0 -0
- /package/docs/{EXAMPLES.md → archive/2025-10-10-development/EXAMPLES.md} +0 -0
- /package/docs/{development → archive/2025-10-10-development}/SPARC.md +0 -0
- /package/docs/{development → archive/2025-10-10-development}/agent-scope-creep-prevention-guide.md +0 -0
- /package/docs/{development → archive/2025-10-10-development}/cargo-build-validator-summary.md +0 -0
- /package/docs/{development → archive/2025-10-10-development/cli-consolidation}/command-consolidation-technical-spec.md +0 -0
- /package/docs/{development → archive/2025-10-10-development/cli-consolidation}/consolidated-cli-implementation.md +0 -0
- /package/docs/{development → archive/2025-10-10-development/cli-consolidation}/consolidated-command-design.md +0 -0
- /package/docs/{development → archive/2025-10-10-development}/experimental-features-improvement-plan.md +0 -0
- /package/docs/{development → archive/2025-10-10-development}/feature-simplification-strategy.md +0 -0
- /package/docs/{fixes → archive/2025-10-10-development/fixes}/fullstack-swarm-fixes-round-1.md +0 -0
- /package/docs/{fixes → archive/2025-10-10-development/fixes}/fullstack-swarm-fixes-round-3.md +0 -0
- /package/docs/{fixes → archive/2025-10-10-development/fixes}/fullstack-swarm-fixes-round-4.md +0 -0
- /package/docs/{fixes → archive/2025-10-10-development/fixes}/fullstack-swarm-fixes-round-5.md +0 -0
- /package/docs/{fixes → archive/2025-10-10-development/fixes}/round-5-quick-reference.md +0 -0
- /package/docs/{fixes → archive/2025-10-10-development/fixes}/round-5-summary.md +0 -0
- /package/docs/{fixes → archive/2025-10-10-development/fixes}/round-5-visual-summary.md +0 -0
- /package/docs/{implementation → archive/2025-10-10-development/implementation}/configuration-system-specs.md +0 -0
- /package/docs/{development → archive/2025-10-10-development}/npm-packaging-solution.md +0 -0
- /package/docs/{development → archive/2025-10-10-development}/pair-optimization.md +0 -0
- /package/docs/{phase11-cli-integration-complete.md → archive/2025-10-10-development/phase-summaries/phase11-cli-integration-complete.md} +0 -0
- /package/docs/{phase4-deployment-summary.md → archive/2025-10-10-development/phase-summaries/phase4-deployment-summary.md} +0 -0
- /package/docs/{development → archive/2025-10-10-development}/rust-framework-detection.md +0 -0
- /package/docs/{SDK-INTEGRATION-TEST-SUMMARY.md → archive/2025-10-10-development/sdk-integration/SDK-INTEGRATION-TEST-SUMMARY.md} +0 -0
- /package/docs/{SDK-TESTING.md → archive/2025-10-10-development/sdk-integration/SDK-TESTING.md} +0 -0
- /package/docs/{claude-agent-sdk-integration-strategy.md → archive/2025-10-10-development/sdk-integration/claude-agent-sdk-integration-strategy.md} +0 -0
- /package/docs/{sdk-integration-phase1.md → archive/2025-10-10-development/sdk-integration/sdk-integration-phase1.md} +0 -0
- /package/docs/{sdk-migration-guide.md → archive/2025-10-10-development/sdk-integration/sdk-migration-guide.md} +0 -0
- /package/docs/{sdk-phase1-summary.md → archive/2025-10-10-development/sdk-integration/sdk-phase1-summary.md} +0 -0
- /package/docs/{swarm-fullstack → archive/2025-10-10-development/swarm-fullstack}/IMPLEMENTATION-SUMMARY.md +0 -0
- /package/docs/{swarm-fullstack → archive/2025-10-10-development/swarm-fullstack}/frontend-testing-system.md +0 -0
- /package/docs/{development → archive/2025-10-10-development}/technical-implementation-guide.md +0 -0
- /package/docs/{development → archive/2025-10-10-development}/token-tracking-guide.md +0 -0
- /package/docs/{development → archive/2025-10-10-development}/token-tracking-status.md +0 -0
- /package/docs/{development → archive/2025-10-10-development}/troubleshooting.md +0 -0
- /package/docs/{development → archive/2025-10-10-development}/typescript-distribution-solution.md +0 -0
- /package/docs/{personalization → archive/2025-10-10-guides/personalization}/cli-integration-guide.md +0 -0
- /package/docs/{phase4-ux → archive/2025-10-10-guides/phase4-ux}/error-handling-ux-guide.md +0 -0
- /package/docs/{phase4-ux → archive/2025-10-10-guides/phase4-ux}/rollout-monitoring-dashboard.md +0 -0
- /package/docs/{phase4-ux → archive/2025-10-10-guides/phase4-ux}/user-experience-validation-framework.md +0 -0
- /package/docs/{phase4-ux → archive/2025-10-10-guides/phase4-ux}/user-onboarding-experience.md +0 -0
- /package/docs/{NOVICE_USER_GUIDE.md → archive/2025-10-10-guides/setup-guides/NOVICE_USER_GUIDE.md} +0 -0
- /package/docs/{QUICK_START.md → archive/2025-10-10-guides/setup-guides/QUICK_START.md} +0 -0
- /package/docs/{SETUP_WIZARD.md → archive/2025-10-10-guides/setup-guides/SETUP_WIZARD.md} +0 -0
- /package/docs/{ZAIR_SETUP_CHECKLIST.md → archive/2025-10-10-guides/setup-guides/ZAIR_SETUP_CHECKLIST.md} +0 -0
- /package/docs/{user → archive/2025-10-10-guides/user-guides}/PREFERENCE_SYSTEM_GUIDE.md +0 -0
- /package/docs/{user → archive/2025-10-10-guides/user-guides}/USER_GUIDE.md +0 -0
- /package/docs/{user → archive/2025-10-10-guides/user-guides}/enterprise-stakeholder-guide.md +0 -0
- /package/docs/{user → archive/2025-10-10-guides/user-guides}/novice-user-guide.md +0 -0
- /package/docs/{user → archive/2025-10-10-guides/user-guides}/tutorial.md +0 -0
- /package/docs/{user → archive/2025-10-10-guides/user-guides}/ux-assessment-pain-points.md +0 -0
- /package/docs/{ux-design/mockups → archive/2025-10-10-guides/ux-design}/configuration-ui-mockups.md +0 -0
- /package/docs/{ux-design/wizards → archive/2025-10-10-guides/ux-design}/configuration-wizard-flows.md +0 -0
- /package/docs/{ux-design/ui-patterns → archive/2025-10-10-guides/ux-design}/progressive-disclosure-patterns.md +0 -0
- /package/docs/{ux-design → archive/2025-10-10-guides/ux-design}/usability-testing-plan.md +0 -0
- /package/docs/{ux-design/user-journeys → archive/2025-10-10-guides/ux-design}/user-personas-analysis.md +0 -0
- /package/docs/{ux-design/accessibility → archive/2025-10-10-guides/ux-design}/wcag-compliance-guidelines.md +0 -0
- /package/docs/{HOOK-COMPARISON.md → archive/2025-10-10-integration/HOOK-COMPARISON.md} +0 -0
- /package/docs/{POST-EDIT-PIPELINE-AGENT-INFO.md → archive/2025-10-10-integration/POST-EDIT-PIPELINE-AGENT-INFO.md} +0 -0
- /package/docs/{POST-EDIT-PIPELINE-MERGED.md → archive/2025-10-10-integration/POST-EDIT-PIPELINE-MERGED.md} +0 -0
- /package/docs/{POST-EDIT-PIPELINE-UNIFIED.md → archive/2025-10-10-integration/POST-EDIT-PIPELINE-UNIFIED.md} +0 -0
- /package/docs/{automation → archive/2025-10-10-integration/automation}/swarm-test-pipeline-strategy.md +0 -0
- /package/docs/{integration → archive/2025-10-10-integration/mcp-compatibility}/issue-772-implementation-plan.md +0 -0
- /package/docs/{mcp-backwards-compatibility.md → archive/2025-10-10-integration/mcp-compatibility/mcp-backwards-compatibility.md} +0 -0
- /package/docs/{mcp-novice-simplification.md → archive/2025-10-10-integration/mcp-compatibility/mcp-novice-simplification.md} +0 -0
- /package/docs/{slash-commands → archive/2025-10-10-integration/slash-commands}/cfn-claude-sync-usage.md +0 -0
- /package/docs/{slash-commands → archive/2025-10-10-integration/slash-commands}/cfn-loop-quick-reference.md +0 -0
- /package/docs/{slash-commands → archive/2025-10-10-integration/slash-commands}/cfn-loop-usage.md +0 -0
- /package/docs/{final-slash-commands-setup.md → archive/2025-10-10-integration/slash-commands/final-slash-commands-setup.md} +0 -0
- /package/docs/{commands → archive/2025-10-10-integration/slash-commands}/fullstack.md +0 -0
- /package/docs/{slash-commands-complete-status.md → archive/2025-10-10-integration/slash-commands/slash-commands-complete-status.md} +0 -0
- /package/docs/{slash-commands-status-report.md → archive/2025-10-10-integration/slash-commands/slash-commands-status-report.md} +0 -0
- /package/docs/{workflows → archive/2025-10-10-integration/workflows}/IMPLEMENTATION_SUMMARY.md +0 -0
- /package/docs/{workflows → archive/2025-10-10-integration/workflows}/README.md +0 -0
- /package/docs/{workflows → archive/2025-10-10-integration/workflows}/iterative-build-test-workflow.md +0 -0
- /package/docs/{DOCUMENTATION_AUTO_UPDATER_CHANGELOG.md → archive/2025-10-10-migration/deprecation-notices/DOCUMENTATION_AUTO_UPDATER_CHANGELOG.md} +0 -0
- /package/{MCP_DEPRECATION_NOTICE.md → docs/archive/2025-10-10-migration/deprecation-notices/MCP_DEPRECATION_NOTICE.md} +0 -0
- /package/docs/{migration → archive/2025-10-10-migration/deprecation-notices}/README.md +0 -0
- /package/docs/{deprecation-report.md → archive/2025-10-10-migration/deprecation-notices/deprecation-report.md} +0 -0
- /package/docs/{migration → archive/2025-10-10-migration/v2-migration}/COMPREHENSIVE_MIGRATION_GUIDE.md +0 -0
- /package/docs/{V1_TO_V2_MIGRATION.md → archive/2025-10-10-migration/v2-migration/V1_TO_V2_MIGRATION.md} +0 -0
- /package/{V2_MIGRATION_GUIDE.md → docs/archive/2025-10-10-migration/v2-migration/V2_MIGRATION_GUIDE.md} +0 -0
- /package/docs/{migration → archive/2025-10-10-migration/v2-migration}/migration-assessment-toolkit.md +0 -0
- /package/docs/{npm-package-updates.md → archive/2025-10-10-migration/v2-migration/npm-package-updates.md} +0 -0
- /package/docs/{migration → archive/2025-10-10-migration/v2-migration}/proven-migration-case-studies.md +0 -0
- /package/docs/{APM_INTEGRATION_GUIDE.md → archive/2025-10-10-operations/APM_INTEGRATION_GUIDE.md} +0 -0
- /package/docs/{operations → archive/2025-10-10-operations}/DEPLOYMENT.md +0 -0
- /package/docs/{operations → archive/2025-10-10-operations}/ENABLE_AUTHENTICATION.md +0 -0
- /package/docs/{HOW_METRICS_WORK.md → archive/2025-10-10-operations/HOW_METRICS_WORK.md} +0 -0
- /package/docs/{METRICS_PLACEMENT_STRATEGY.md → archive/2025-10-10-operations/METRICS_PLACEMENT_STRATEGY.md} +0 -0
- /package/docs/{PRODUCTION_OPERATIONS.md → archive/2025-10-10-operations/PRODUCTION_OPERATIONS.md} +0 -0
- /package/docs/{operations → archive/2025-10-10-operations}/RESOURCE_MANAGEMENT_IMPLEMENTATION_PLAN.md +0 -0
- /package/docs/{operations → archive/2025-10-10-operations}/RESOURCE_MANAGEMENT_TECHNICAL_SPECS.md +0 -0
- /package/docs/{SESSION_CLEANUP_SYSTEM.md → archive/2025-10-10-operations/SESSION_CLEANUP_SYSTEM.md} +0 -0
- /package/docs/{V2_TRANSPARENCY_SYSTEM.md → archive/2025-10-10-operations/V2_TRANSPARENCY_SYSTEM.md} +0 -0
- /package/docs/{operations → archive/2025-10-10-operations}/analytics-system.md +0 -0
- /package/docs/{operations → archive/2025-10-10-operations/benchmarks}/benchmark-claude-flow-conflict-analysis.md +0 -0
- /package/docs/{operations → archive/2025-10-10-operations/benchmarks}/benchmark-cleanup-analysis.md +0 -0
- /package/docs/{operations → archive/2025-10-10-operations/benchmarks}/build-artifacts-analysis.md +0 -0
- /package/docs/{operations → archive/2025-10-10-operations/byzantine-consensus}/FINAL_BYZANTINE_CONSENSUS_VERIFICATION_REPORT.md +0 -0
- /package/docs/{operations → archive/2025-10-10-operations/byzantine-consensus}/byzantine-consensus-verification-report-phase2.md +0 -0
- /package/docs/{operations → archive/2025-10-10-operations/byzantine-consensus}/byzantine-consensus-verification-report-phase4.md +0 -0
- /package/docs/{operations → archive/2025-10-10-operations}/chrome-mcp-research-report.md +0 -0
- /package/docs/{ci-cd → archive/2025-10-10-operations/ci-cd}/README.md +0 -0
- /package/docs/{operations → archive/2025-10-10-operations}/cli-command-consolidation-analysis.md +0 -0
- /package/docs/{deployment → archive/2025-10-10-operations/deployment}/DEPLOYMENT_GUIDE.md +0 -0
- /package/docs/{deployment → archive/2025-10-10-operations/deployment}/DEPLOYMENT_STRATEGIES.md +0 -0
- /package/docs/{deployment → archive/2025-10-10-operations/deployment}/DISASTER_RECOVERY.md +0 -0
- /package/docs/{deployment → archive/2025-10-10-operations/deployment}/DOCKER_SECURITY.md +0 -0
- /package/docs/{deployment → archive/2025-10-10-operations/deployment}/HELM_CHARTS.md +0 -0
- /package/docs/{deployment → archive/2025-10-10-operations/deployment}/INFRASTRUCTURE_AS_CODE.md +0 -0
- /package/docs/{deployment → archive/2025-10-10-operations/deployment}/MONITORING_OBSERVABILITY.md +0 -0
- /package/docs/{deployment → archive/2025-10-10-operations/deployment}/PERFORMANCE_OPTIMIZATION.md +0 -0
- /package/docs/{deployment → archive/2025-10-10-operations/deployment}/README.md +0 -0
- /package/docs/{deployment → archive/2025-10-10-operations/deployment}/pm2-setup.md +0 -0
- /package/docs/{deployment → archive/2025-10-10-operations/deployment}/production-deployment-guide.md +0 -0
- /package/docs/{operations → archive/2025-10-10-operations}/deployment-checklist.md +0 -0
- /package/docs/{operations → archive/2025-10-10-operations}/deployment-report.md +0 -0
- /package/docs/{metrics-counter-usage.md → archive/2025-10-10-operations/metrics-counter-usage.md} +0 -0
- /package/docs/{operations → archive/2025-10-10-operations}/migration-strategy.md +0 -0
- /package/docs/{operations → archive/2025-10-10-operations/performance-analysis}/agent-analysis-report.md +0 -0
- /package/docs/{operations → archive/2025-10-10-operations/performance-analysis}/agent-persistence-performance-analysis.md +0 -0
- /package/docs/{operations → archive/2025-10-10-operations/performance-analysis}/performance-analysis-report.md +0 -0
- /package/docs/{runbooks → archive/2025-10-10-operations/runbooks}/DATABASE_PERFORMANCE_RUNBOOK.md +0 -0
- /package/docs/{runbooks → archive/2025-10-10-operations/runbooks}/EMERGENCY_RESPONSE_PROCEDURES.md +0 -0
- /package/docs/{runbooks → archive/2025-10-10-operations/runbooks}/SERVICE_OUTAGE_RUNBOOK.md +0 -0
- /package/docs/{operations → archive/2025-10-10-operations}/shadcn-mcp-swarm-research-report.md +0 -0
- /package/docs/{operations → archive/2025-10-10-operations}/training-pipeline-demo.md +0 -0
- /package/docs/{operations → archive/2025-10-10-operations}/training-pipeline-real-only.md +0 -0
- /package/docs/{operations → archive/2025-10-10-operations/validation-reports}/COMPREHENSIVE_QA_VALIDATION_REPORT.md +0 -0
- /package/docs/{operations → archive/2025-10-10-operations/validation-reports}/PRODUCTION_VALIDATION_REPORT.md +0 -0
- /package/docs/{operations → archive/2025-10-10-operations/validation-reports}/WIKI_VALIDATION_REPORT.md +0 -0
- /package/docs/{operations → archive/2025-10-10-operations/validation-reports}/checkpoint-1-3-validation-report.md +0 -0
- /package/docs/{operations → archive/2025-10-10-operations/validation-reports}/checkpoint-1-4-validation-summary.md +0 -0
- /package/docs/{operations → archive/2025-10-10-operations/validation-reports}/cli-validation-report.md +0 -0
- /package/docs/{operations → archive/2025-10-10-operations/validation-reports}/command-consolidation-usability-validation.md +0 -0
- /package/docs/{operations → archive/2025-10-10-operations/validation-reports}/configuration-system-validation-report.md +0 -0
- /package/docs/{operations → archive/2025-10-10-operations/validation-reports}/experimental-features-validation-report.md +0 -0
- /package/docs/{operations → archive/2025-10-10-operations/validation-reports}/final-validation-summary.md +0 -0
- /package/docs/{operations → archive/2025-10-10-operations/validation-reports}/unified-config-validation-report.md +0 -0
- /package/docs/{operations → archive/2025-10-10-operations/validation-reports}/validation-executive-summary.md +0 -0
- /package/docs/{operations → archive/2025-10-10-operations/validation-reports}/validator-scope-overreach-analysis.md +0 -0
- /package/docs/{operations → archive/2025-10-10-operations/validation-reports}/verification-integration.md +0 -0
- /package/docs/{operations → archive/2025-10-10-operations/validation-reports}/verification-validation.md +0 -0
- /package/docs/{performance → archive/2025-10-10-performance}/COMPREHENSIVE_SQLITE_ANALYSIS.md +0 -0
- /package/docs/{LRU_GARBAGE_COLLECTION.md → archive/2025-10-10-performance/LRU_GARBAGE_COLLECTION.md} +0 -0
- /package/docs/{OPTIMIZATION_SAFETY_REPORT.md → archive/2025-10-10-performance/OPTIMIZATION_SAFETY_REPORT.md} +0 -0
- /package/docs/{performance → archive/2025-10-10-performance}/Phase3-Remediation-Report.md +0 -0
- /package/docs/{benchmark-realistic-code-generation.md → archive/2025-10-10-performance/benchmarks/benchmark-realistic-code-generation.md} +0 -0
- /package/docs/{benchmark-rust-known-issues.md → archive/2025-10-10-performance/benchmarks/benchmark-rust-known-issues.md} +0 -0
- /package/docs/{benchmark-rust-support-summary.md → archive/2025-10-10-performance/benchmarks/benchmark-rust-support-summary.md} +0 -0
- /package/docs/{optimization → archive/2025-10-10-performance/optimization}/README.md +0 -0
- /package/docs/{optimization → archive/2025-10-10-performance/optimization}/communication-improvements.md +0 -0
- /package/docs/{performance → archive/2025-10-10-performance/optimization}/sqlite-performance-analysis.md +0 -0
- /package/docs/{security → archive/2025-10-10-security}/DEPLOYMENT_CHECKLIST.md +0 -0
- /package/docs/{security → archive/2025-10-10-security}/GIT_SECRETS_SETUP.md +0 -0
- /package/docs/{operations/SECURITY_AUDIT_REPORT.md → archive/2025-10-10-security/PACKAGE_SECURITY_AUDIT.md} +0 -0
- /package/docs/{security → archive/2025-10-10-security}/SECRET-DETECTION.md +0 -0
- /package/docs/{SECURITY_AUDIT_REPORT.md → archive/2025-10-10-security/SECRET_DETECTION_AUDIT.md} +0 -0
- /package/docs/{security → archive/2025-10-10-security/authentication}/JWT_AUTHENTICATION.md +0 -0
- /package/docs/{security → archive/2025-10-10-security/authentication}/MIGRATION_BASE64_TO_JWT.md +0 -0
- /package/docs/{security → archive/2025-10-10-security/authentication}/REDIS_AUTHENTICATION.md +0 -0
- /package/docs/{SECURITY_AUTH.md → archive/2025-10-10-security/authentication/SECURITY_AUTH.md} +0 -0
- /package/docs/{certification → archive/2025-10-10-security/certification}/FINAL-PRODUCTION-CERTIFICATION.md +0 -0
- /package/docs/{certification → archive/2025-10-10-security/certification}/README.md +0 -0
- /package/docs/{certification → archive/2025-10-10-security/certification}/fullstack-swarm-production-cert.md +0 -0
- /package/docs/{certification → archive/2025-10-10-security/certification}/post-edit-pipeline-production-cert.md +0 -0
- /package/docs/{security → archive/2025-10-10-security}/phase5-security-implementation-summary.md +0 -0
- /package/docs/{security → archive/2025-10-10-security}/sec-024-lamport-clock-implementation.md +0 -0
- /package/docs/{security → archive/2025-10-10-security/vulnerabilities}/CRYPTO_CIPHER_FIX_REPORT.md +0 -0
- /package/docs/{security → archive/2025-10-10-security/vulnerabilities}/CRYPTO_VULNERABILITY_SUMMARY.md +0 -0
- /package/docs/{security → archive/2025-10-10-security/vulnerabilities}/cve-2025-005-006-implementation.md +0 -0
- /package/docs/{security → archive/2025-10-10-security/vulnerabilities}/rbac-test-bypass-fix.md +0 -0
- /package/docs/{testing → archive/2025-10-10-testing}/README.md +0 -0
- /package/docs/{testing → archive/2025-10-10-testing}/consensus-decision-matrix.md +0 -0
- /package/docs/{testing → archive/2025-10-10-testing}/playwright-mcp-integration-guide.md +0 -0
- /package/docs/{CROSS_PLATFORM_TEST_RESULTS.md → archive/2025-10-10-testing/test-results/CROSS_PLATFORM_TEST_RESULTS.md} +0 -0
- /package/docs/{V2_MULTI_LEVEL_TEST_RESULTS.md → archive/2025-10-10-testing/test-results/V2_MULTI_LEVEL_TEST_RESULTS.md} +0 -0
- /package/docs/{backend-testing-system.md → archive/2025-10-10-testing/test-results/backend-testing-system.md} +0 -0
- /package/docs/{benchmark-test-report.md → archive/2025-10-10-testing/test-results/benchmark-test-report.md} +0 -0
- /package/docs/{testing → archive/2025-10-10-testing/test-results}/comprehensive-test-results.md +0 -0
- /package/docs/{validation → archive/2025-10-10-testing/validation}/PRODUCTION-CERTIFICATION-SUMMARY.md +0 -0
- /package/docs/{validation → archive/2025-10-10-testing/validation}/byzantine-consensus-coordination-report.md +0 -0
- /package/docs/{validation → archive/2025-10-10-testing/validation}/byzantine-consensus-summary.md +0 -0
- /package/docs/{validation → archive/2025-10-10-testing/validation}/completion-validation-verification-report.md +0 -0
- /package/docs/{validation → archive/2025-10-10-testing/validation}/fullstack-integration-report.md +0 -0
- /package/docs/{validation → archive/2025-10-10-testing/validation}/phase2-byzantine-consensus-verification-report.md +0 -0
- /package/docs/{validation → archive/2025-10-10-testing/validation}/phase2-completion-consensus-report.md +0 -0
- /package/docs/{validation → archive/2025-10-10-testing/validation}/stage5-consensus-report.md +0 -0
- /package/docs/{validation → archive/2025-10-10-testing/validation}/stage6-final-certification.md +0 -0
- /package/docs/{validation → archive/2025-10-10-testing/validation}/stage7-production-certification.md +0 -0
- /package/docs/{ERROR_HANDLING_IMPLEMENTATION_SUMMARY.md → archive/ERROR_HANDLING_IMPLEMENTATION_SUMMARY.md} +0 -0
- /package/docs/{ERROR_MESSAGES_GUIDE.md → archive/ERROR_MESSAGES_GUIDE.md} +0 -0
- /package/docs/{HTTP_POLLING_FALLBACK.md → archive/HTTP_POLLING_FALLBACK.md.backup-1760135090706} +0 -0
- /package/docs/{phase2-implementation-summary.md → archive/cfn-loop/completed-phases/phase2-implementation-summary.md} +0 -0
- /package/docs/{CFN_LOOP.md → archive/cfn-loop/deprecated-3-loop/CFN_LOOP.md} +0 -0
- /package/docs/{validation-loop-pattern.md → archive/cfn-loop/early-patterns/validation-loop-pattern.md} +0 -0
- /package/docs/{MCP_ENDPOINTS_REFERENCE.md → archive/deprecated-mcp/MCP_ENDPOINTS_REFERENCE.md} +0 -0
- /package/docs/{api → archive/deprecated-mcp}/MCP_TOOLS.md +0 -0
- /package/docs/{api → archive/deprecated-mcp}/mcp-swarm-integration-api.md +0 -0
- /package/docs/{API_AUTH.md → archive/phase3-auth-unimplemented/API_AUTH.md} +0 -0
- /package/docs/{AUTHENTICATION.md → archive/phase3-auth-unimplemented/AUTHENTICATION.md} +0 -0
- /package/docs/{AUTH_DOCUMENTATION_SUMMARY.md → archive/phase3-auth-unimplemented/AUTH_DOCUMENTATION_SUMMARY.md} +0 -0
- /package/docs/{AUTH_MIGRATION.md → archive/phase3-auth-unimplemented/AUTH_MIGRATION.md} +0 -0
- /package/docs/{phase5-booster-integration-summary.md → archive/phase5-booster-integration-summary.md} +0 -0
- /package/{CHANGELOG_V2.md → docs/archive/reference-historical/CHANGELOG_V2.md} +0 -0
- /package/docs/{INDEX.md → archive/reference-historical/INDEX.md} +0 -0
- /package/docs/{CFN_LOOP_PHASE_ORCHESTRATION.md → cfn-loop/CFN_LOOP_PHASE_ORCHESTRATION.md} +0 -0
- /package/docs/{CFN_LOOP_SCOPE_CONTROL.md → cfn-loop/CFN_LOOP_SCOPE_CONTROL.md} +0 -0
- /package/docs/{CFN_LOOP_SELF_LOOPING_ADDITIONS.md → cfn-loop/CFN_LOOP_SELF_LOOPING_ADDITIONS.md} +0 -0
- /package/docs/{SPRINT_ORCHESTRATION.md → cfn-loop/SPRINT_ORCHESTRATION.md} +0 -0
- /package/docs/{epic-iteration-limits-implementation.md → cfn-loop/epic-iteration-limits-implementation.md} +0 -0
- /package/docs/{phase-5-sprint-5.2-multi-level-control.md → cfn-loop/phase-5-sprint-5.2-multi-level-control.md} +0 -0
- /package/docs/{phase-orchestrator-sprint-enhancement-summary.md → cfn-loop/phase-orchestrator-sprint-enhancement-summary.md} +0 -0
- /package/docs/{phases → cfn-loop/phases}/PHASE_06_ARCHITECTURE_SUMMARY.md +0 -0
- /package/docs/{phases → cfn-loop/phases}/PHASE_06_COMPONENT_INTERFACES.md +0 -0
- /package/docs/{phases → cfn-loop/phases}/PHASE_06_INTEGRATION_STRATEGY.md +0 -0
- /package/docs/{phases → cfn-loop/phases}/PHASE_06_MESH_COORDINATION_ARCHITECTURE.md +0 -0
- /package/docs/{phases → cfn-loop/phases}/PHASE_06_README.md +0 -0
- /package/docs/{phases → cfn-loop/phases}/PHASE_07_HELP_SYSTEM_ARCHITECTURE.md +0 -0
- /package/docs/{phases → cfn-loop/phases}/PHASE_0_SDK_FOUNDATION.md +0 -0
- /package/docs/{phases → cfn-loop/phases}/phase-05-architecture.md +0 -0
- /package/docs/{self-validating-loops-implementation.md → cfn-loop/self-validating-loops-implementation.md} +0 -0
- /package/{CHANGELOG.md → docs/reference/CHANGELOG.md} +0 -0
- /package/{NPM_PACKAGE_CONTENTS.md → docs/reference/NPM_PACKAGE_CONTENTS.md} +0 -0
- /package/{README-NPM.md → docs/reference/README-NPM.md} +0 -0
- /package/docs/{SITE_MAP.md → reference/SITE_MAP.md} +0 -0
- /package/docs/{research → reference/research}/AGENT_ACCESSIBILITY_GUIDE.md +0 -0
- /package/docs/{research → reference/research}/AGENT_PERMISSION_SYSTEM_ANALYSIS.md +0 -0
- /package/docs/{research → reference/research}/CLAUDE_AGENT_SDK_COMPREHENSIVE_ANALYSIS.md +0 -0
- /package/docs/{research → reference/research}/CLAUDE_AGENT_SDK_EXECUTIVE_SUMMARY.md +0 -0
- /package/docs/{research → reference/research}/CLEANUP_CRITERIA_QUICK_REFERENCE.md +0 -0
- /package/docs/{research → reference/research}/claude-session-cpu-behavior-analysis.md +0 -0
- /package/docs/{research → reference/research}/completion-validation-research.md +0 -0
- /package/docs/{templates → reference/templates}/PHASE_DOCUMENT_TEMPLATE.md +0 -0
- /package/docs/{templates → reference/templates}/PHASE_TEMPLATE_USAGE_GUIDE.md +0 -0
- /package/docs/{TEMPLATE_CUSTOMIZATION_GUIDE.md → reference/templates/TEMPLATE_CUSTOMIZATION_GUIDE.md} +0 -0
- /package/docs/{TEMPLATE_EXAMPLES_AND_BEST_PRACTICES.md → reference/templates/TEMPLATE_EXAMPLES_AND_BEST_PRACTICES.md} +0 -0
- /package/docs/{TEMPLATE_SYSTEM_DOCUMENTATION.md → reference/templates/TEMPLATE_SYSTEM_DOCUMENTATION.md} +0 -0
- /package/docs/{wiki → reference/wiki}/background-commands.md +0 -0
- /package/docs/{wiki → reference/wiki}/efficiency-patterns-and-anti-patterns.md +0 -0
- /package/docs/{wiki → reference/wiki}/monitoring-and-metrics-guide.md +0 -0
- /package/docs/{wiki → reference/wiki}/performance-benchmarking-tools.md +0 -0
- /package/docs/{wiki → reference/wiki}/performance-optimization-strategies.md +0 -0
- /package/docs/{wiki → reference/wiki}/performance-testing-framework.md +0 -0
- /package/docs/{wiki → reference/wiki}/resource-optimization-techniques.md +0 -0
- /package/docs/{wiki → reference/wiki}/scalability-guidelines.md +0 -0
- /package/docs/{wiki → reference/wiki}/security/README.md +0 -0
- /package/docs/{wiki → reference/wiki}/security/authentication-authorization-strategies.md +0 -0
- /package/docs/{wiki → reference/wiki}/security/compliance-automation-workflows.md +0 -0
- /package/docs/{wiki → reference/wiki}/security/compliance-frameworks-integration.md +0 -0
- /package/docs/{wiki → reference/wiki}/security/enterprise-security-patterns.md +0 -0
- /package/docs/{wiki → reference/wiki}/security/incident-response-guide.md +0 -0
- /package/docs/{wiki → reference/wiki}/security/secrets-management-guide.md +0 -0
- /package/docs/{wiki → reference/wiki}/security/secure-coding-patterns.md +0 -0
- /package/docs/{wiki → reference/wiki}/security/security-best-practices.md +0 -0
- /package/docs/{wiki → reference/wiki}/security/security-first-development-workflows.md +0 -0
- /package/docs/{wiki → reference/wiki}/security/security-testing-framework.md +0 -0
- /package/docs/{wiki → reference/wiki}/session-persistence.md +0 -0
- /package/docs/{wiki → reference/wiki}/stream-chain-command.md +0 -0
- /package/docs/{wiki → reference/wiki}/troubleshooting/README.md +0 -0
- /package/docs/{wiki → reference/wiki}/troubleshooting/cli-troubleshooting.md +0 -0
- /package/docs/{wiki → reference/wiki}/troubleshooting/configuration-troubleshooting.md +0 -0
- /package/docs/{wiki → reference/wiki}/troubleshooting/debug-mode.md +0 -0
- /package/docs/{wiki → reference/wiki}/troubleshooting/error-analysis.md +0 -0
- /package/docs/{wiki → reference/wiki}/troubleshooting/linux-troubleshooting.md +0 -0
- /package/docs/{wiki → reference/wiki}/troubleshooting/log-analysis.md +0 -0
- /package/docs/{wiki → reference/wiki}/troubleshooting/macos-troubleshooting.md +0 -0
- /package/docs/{wiki → reference/wiki}/troubleshooting/mcp-troubleshooting.md +0 -0
- /package/docs/{wiki → reference/wiki}/troubleshooting/performance-troubleshooting.md +0 -0
- /package/docs/{wiki → reference/wiki}/troubleshooting/quick-reference.md +0 -0
- /package/docs/{wiki → reference/wiki}/troubleshooting/windows-troubleshooting.md +0 -0
- /package/docs/{wiki → reference/wiki}/troubleshooting-slow-workflows.md +0 -0
- /package/docs/{CROSS_PLATFORM_VALIDATION_CONFIDENCE.json → testing/CROSS_PLATFORM_VALIDATION_CONFIDENCE.json} +0 -0
- /package/docs/{validation → testing/validation}/byzantine-validation-report.json +0 -0
- /package/{templates → examples/templates}/README.md +0 -0
- /package/{templates → examples/templates}/basic-swarm/.claude/settings.json +0 -0
- /package/{templates/basic-swarm/CLAUDE.md → examples/templates/basic-swarm/CLAUDE.md.backup-1760135091193} +0 -0
- /package/{templates → examples/templates}/basic-swarm/coordination.md +0 -0
- /package/{templates → examples/templates}/basic-swarm/memory-bank.md +0 -0
- /package/{templates → examples/templates}/basic-swarm/package.json +0 -0
- /package/{templates → examples/templates}/custom-agent/.claude/settings.json +0 -0
- /package/{templates/custom-agent/CLAUDE.md → examples/templates/custom-agent/CLAUDE.md.backup-1760135091180} +0 -0
- /package/{templates → examples/templates}/event-bus/.claude/settings.json +0 -0
- /package/{templates → examples/templates}/event-bus/CLAUDE.md +0 -0
- /package/{templates → examples/templates}/fleet-manager/.claude/settings.json +0 -0
- /package/{templates/fleet-manager/CLAUDE.md → examples/templates/fleet-manager/CLAUDE.md.backup-1760135091167} +0 -0
- /package/{docs → scripts}/agent-token-analysis.js +0 -0
|
@@ -1,605 +1,548 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: security-manager
|
|
3
|
-
description: MUST BE USED when securing distributed consensus systems, implementing cryptographic protocols, or protecting against Byzantine attacks.
|
|
4
|
-
tools: Read, Write, Edit, Bash, Grep, Glob,
|
|
3
|
+
description: MUST BE USED when securing distributed consensus systems, implementing cryptographic protocols, or protecting against Byzantine attacks. Use PROACTIVELY for threshold signatures, zero-knowledge proofs, distributed key generation, attack detection (Byzantine/Sybil/Eclipse/DoS), key rotation, secure communications, reputation systems, behavior analysis, forensic logging, penetration testing. ALWAYS delegate when user asks to "secure consensus", "implement cryptography", "detect attacks", "manage keys", "protect distributed system", "implement threshold signatures", "create zero-knowledge proofs", "prevent Byzantine attacks", "secure blockchain", "implement DKG", "audit security", "test vulnerabilities". Keywords - consensus security, threshold cryptography, zero-knowledge proof, Byzantine fault tolerance, Sybil attack, Eclipse attack, distributed key generation, key rotation, attack detection, cryptographic signatures, secure consensus, blockchain security, distributed systems security, penetration testing
|
|
4
|
+
tools: Read, Write, Edit, Bash, Grep, Glob, TodoWrite
|
|
5
5
|
model: sonnet
|
|
6
|
+
provider: zai
|
|
6
7
|
color: red
|
|
8
|
+
type: implementer
|
|
9
|
+
capabilities:
|
|
10
|
+
- security-validation
|
|
11
|
+
- cryptographic-implementation
|
|
12
|
+
- attack-detection
|
|
13
|
+
- key-management
|
|
14
|
+
- vulnerability-assessment
|
|
15
|
+
|
|
16
|
+
# MANDATORY: Validation hooks for validators
|
|
17
|
+
validation_hooks:
|
|
18
|
+
- agent-template-validator
|
|
19
|
+
- cfn-loop-memory-validator
|
|
20
|
+
- test-coverage-validator
|
|
21
|
+
|
|
22
|
+
# MANDATORY: SQLite lifecycle hooks
|
|
23
|
+
lifecycle:
|
|
24
|
+
pre_task: |
|
|
25
|
+
# Register validator in SQLite on spawn
|
|
26
|
+
sqlite-cli exec "INSERT INTO agents (id, type, status, spawned_at)
|
|
27
|
+
VALUES ('${AGENT_ID}', 'security-manager', 'active', CURRENT_TIMESTAMP)"
|
|
28
|
+
|
|
29
|
+
post_task: |
|
|
30
|
+
# Update validator status and confidence on completion
|
|
31
|
+
sqlite-cli exec "UPDATE agents
|
|
32
|
+
SET status = 'completed', confidence = ${CONFIDENCE_SCORE},
|
|
33
|
+
completed_at = CURRENT_TIMESTAMP
|
|
34
|
+
WHERE id = '${AGENT_ID}'"
|
|
35
|
+
|
|
36
|
+
# ACL Level: 3 (Swarm) - Validation team shared data
|
|
37
|
+
acl_level: 1 # Private
|
|
7
38
|
---
|
|
8
39
|
|
|
9
|
-
# Consensus Security Manager
|
|
40
|
+
# Consensus Security Manager Agent
|
|
10
41
|
|
|
11
|
-
|
|
42
|
+
You are a Consensus Security Manager Agent, a senior security specialist responsible for implementing comprehensive security mechanisms for distributed consensus protocols with advanced threat detection and mitigation.
|
|
12
43
|
|
|
13
|
-
##
|
|
44
|
+
## 🚨 MANDATORY POST-EDIT VALIDATION
|
|
14
45
|
|
|
15
|
-
|
|
16
|
-
2. **Attack Detection**: Identify Byzantine, Sybil, Eclipse, and DoS attacks
|
|
17
|
-
3. **Key Management**: Handle distributed key generation and rotation protocols
|
|
18
|
-
4. **Secure Communications**: Ensure TLS 1.3 encryption and message authentication
|
|
19
|
-
5. **Threat Mitigation**: Implement real-time security countermeasures
|
|
46
|
+
**CRITICAL**: After **EVERY** file edit operation, you **MUST** run the enhanced post-edit hook:
|
|
20
47
|
|
|
21
|
-
|
|
48
|
+
```bash
|
|
49
|
+
# After editing any file, IMMEDIATELY run:
|
|
50
|
+
/hooks post-edit [FILE_PATH] --memory-key "security-manager/[REVIEW_TYPE]" --structured
|
|
51
|
+
```
|
|
22
52
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
53
|
+
**This provides**:
|
|
54
|
+
- 🧪 **TDD Compliance**: Validates test-first development practices
|
|
55
|
+
- 🔒 **Security Analysis**: Detects eval(), hardcoded credentials, XSS vulnerabilities
|
|
56
|
+
- 🎨 **Formatting**: Prettier/rustfmt analysis with diff preview
|
|
57
|
+
- 📊 **Coverage Analysis**: Test coverage validation with configurable thresholds
|
|
58
|
+
- 🤖 **Actionable Recommendations**: Specific steps to improve code quality
|
|
59
|
+
- 💾 **Memory Coordination**: Stores results for cross-agent collaboration
|
|
60
|
+
|
|
61
|
+
**Validator-Specific Validators:**
|
|
62
|
+
- ✅ **Agent Template Validator**: Validates SQLite lifecycle hooks, ACL Level 3 declarations
|
|
63
|
+
- ✅ **CFN Loop Memory Validator**: Validates Loop 2 consensus voting patterns, Loop 3 data reading
|
|
64
|
+
- ✅ **Test Coverage Validator**: Validates security test patterns and coverage
|
|
65
|
+
|
|
66
|
+
**⚠️ NO EXCEPTIONS**: Run this hook for ALL file types during security validation work
|
|
67
|
+
|
|
68
|
+
## SQLite Integration (Validators)
|
|
69
|
+
|
|
70
|
+
### Agent Lifecycle Hooks
|
|
71
|
+
|
|
72
|
+
**On spawn:**
|
|
73
|
+
```typescript
|
|
74
|
+
// Register validator in SQLite
|
|
75
|
+
await sqlite.query(`
|
|
76
|
+
INSERT INTO agents (id, name, type, status, capabilities, spawned_at)
|
|
77
|
+
VALUES (?, ?, 'validator', 'spawned', ?, datetime('now'))
|
|
78
|
+
`, [validatorId, 'security-manager', JSON.stringify(['security-validation', 'attack-detection', 'cryptographic-implementation'])]);
|
|
79
|
+
|
|
80
|
+
// Audit log entry
|
|
81
|
+
await sqlite.query(`
|
|
82
|
+
INSERT INTO audit_log (agent_id, action, details, timestamp)
|
|
83
|
+
VALUES (?, 'validator_spawned', ?, datetime('now'))
|
|
84
|
+
`, [validatorId, JSON.stringify({ phaseId, loop: 2, securityScope: 'consensus-protocols' })]);
|
|
85
|
+
```
|
|
35
86
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
masterPublicKey: this.masterPublicKey,
|
|
57
|
-
privateKeyShare: this.privateKeyShares.get(this.nodeId),
|
|
58
|
-
publicKeyShares: this.publicKeyShares
|
|
59
|
-
};
|
|
60
|
-
}
|
|
87
|
+
**During execution:**
|
|
88
|
+
```typescript
|
|
89
|
+
// Store validation progress with Swarm ACL
|
|
90
|
+
await sqlite.memoryAdapter.set(
|
|
91
|
+
`validator/${validatorId}/progress/${phaseId}`,
|
|
92
|
+
{
|
|
93
|
+
protocolsValidated: ['threshold-signatures', 'key-management', 'attack-detection'],
|
|
94
|
+
vulnerabilitiesFound: 3,
|
|
95
|
+
severity: 'medium',
|
|
96
|
+
progress: 0.75
|
|
97
|
+
},
|
|
98
|
+
{ agentId: validatorId, aclLevel: 3 } // ACL Level 3: Swarm (validation team)
|
|
99
|
+
);
|
|
100
|
+
|
|
101
|
+
// Update validator status
|
|
102
|
+
await sqlite.query(`
|
|
103
|
+
UPDATE agents SET status = 'validating', last_active = datetime('now')
|
|
104
|
+
WHERE id = ?
|
|
105
|
+
`, [validatorId]);
|
|
106
|
+
```
|
|
61
107
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
108
|
+
**On completion:**
|
|
109
|
+
```typescript
|
|
110
|
+
// Mark validator as completed
|
|
111
|
+
await sqlite.query(`
|
|
112
|
+
UPDATE agents SET status = 'completed', completed_at = datetime('now')
|
|
113
|
+
WHERE id = ?
|
|
114
|
+
`, [validatorId]);
|
|
115
|
+
|
|
116
|
+
// Final audit log entry
|
|
117
|
+
await sqlite.query(`
|
|
118
|
+
INSERT INTO audit_log (agent_id, action, details, timestamp)
|
|
119
|
+
VALUES (?, 'validator_completed', ?, datetime('now'))
|
|
120
|
+
`, [validatorId, JSON.stringify({ consensusVote, confidenceScore, criticalFindings })]);
|
|
121
|
+
```
|
|
67
122
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
// Each signatory creates partial signature
|
|
71
|
-
for (const signatory of signatories) {
|
|
72
|
-
const partialSig = await this.createPartialSignature(message, signatory);
|
|
73
|
-
partialSignatures.push({
|
|
74
|
-
signatory: signatory,
|
|
75
|
-
signature: partialSig,
|
|
76
|
-
publicKeyShare: this.publicKeyShares.get(signatory)
|
|
77
|
-
});
|
|
78
|
-
}
|
|
123
|
+
## CFN Loop 2 Consensus Validation
|
|
79
124
|
|
|
80
|
-
|
|
81
|
-
const validPartials = partialSignatures.filter(ps =>
|
|
82
|
-
this.verifyPartialSignature(message, ps.signature, ps.publicKeyShare)
|
|
83
|
-
);
|
|
125
|
+
### Read Loop 3 Implementation Results
|
|
84
126
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
127
|
+
```typescript
|
|
128
|
+
// Retrieve all Loop 3 implementation results (ACL: Swarm access)
|
|
129
|
+
const loop3Results = await sqlite.memoryAdapter.getPattern(
|
|
130
|
+
`cfn/phase-${phaseId}/loop3/*`,
|
|
131
|
+
{ aclLevel: 3 } // Swarm-level access to read Private Loop 3 data
|
|
132
|
+
);
|
|
88
133
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
134
|
+
// Analyze security implementation results
|
|
135
|
+
const securityImplementations = loop3Results.filter(r =>
|
|
136
|
+
r.category === 'security' || r.category === 'cryptography'
|
|
137
|
+
);
|
|
138
|
+
|
|
139
|
+
console.log(`Loop 3 Security Analysis: ${securityImplementations.length} security implementations found`);
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### Store Validation Vote
|
|
143
|
+
|
|
144
|
+
```typescript
|
|
145
|
+
// Persist security validation vote to SQLite (immutable, ACL: Swarm)
|
|
146
|
+
await sqlite.query(`
|
|
147
|
+
INSERT INTO consensus (
|
|
148
|
+
phase_id, validator_id, vote, confidence_score, reasoning, recommendations, timestamp, acl_level
|
|
149
|
+
) VALUES (?, ?, ?, ?, ?, ?, datetime('now'), 3)
|
|
150
|
+
`, [
|
|
151
|
+
phaseId,
|
|
152
|
+
validatorId,
|
|
153
|
+
'approve_with_recommendations', // 'approve' | 'approve_with_recommendations' | 'reject'
|
|
154
|
+
0.88, // Validator's confidence score (0-1)
|
|
155
|
+
"Security implementation is strong with proper cryptography. Minor key rotation improvements needed.",
|
|
156
|
+
JSON.stringify([
|
|
157
|
+
{ severity: 'medium', category: 'security', issue: 'Key rotation interval too long', recommendation: 'Reduce rotation interval to 24 hours' },
|
|
158
|
+
{ severity: 'low', category: 'documentation', issue: 'Missing threat model documentation', recommendation: 'Document attack vectors and mitigations' }
|
|
159
|
+
])
|
|
160
|
+
]);
|
|
161
|
+
|
|
162
|
+
// Publish ephemeral notification to Redis
|
|
163
|
+
await redis.publish(`cfn:loop2:vote:${phaseId}`, JSON.stringify({
|
|
164
|
+
validatorId,
|
|
165
|
+
vote: 'approve_with_recommendations',
|
|
166
|
+
confidence: 0.88,
|
|
167
|
+
criticalFindings: 0
|
|
168
|
+
}));
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
### Calculate Consensus
|
|
172
|
+
|
|
173
|
+
```typescript
|
|
174
|
+
// Calculate consensus from all validator votes
|
|
175
|
+
const consensusData = await sqlite.query(`
|
|
176
|
+
SELECT AVG(confidence_score) as consensus, COUNT(*) as validator_count
|
|
177
|
+
FROM consensus
|
|
178
|
+
WHERE phase_id = ? AND loop = 2
|
|
179
|
+
`, [phaseId]);
|
|
180
|
+
|
|
181
|
+
const consensus = consensusData[0].consensus;
|
|
182
|
+
|
|
183
|
+
// Persist consensus result (ACL: Swarm, 90-day retention)
|
|
184
|
+
await sqlite.query(`
|
|
185
|
+
INSERT INTO consensus (phase_id, loop, consensus_score, validator_count, timestamp)
|
|
186
|
+
VALUES (?, 2, ?, ?, datetime('now'))
|
|
187
|
+
`, [phaseId, consensus, consensusData[0].validator_count]);
|
|
188
|
+
|
|
189
|
+
if (consensus >= 0.90) {
|
|
190
|
+
// Pass: Proceed to Loop 4
|
|
191
|
+
await redis.publish(`cfn:loop2:consensus:${phaseId}`, JSON.stringify({
|
|
192
|
+
consensus,
|
|
193
|
+
status: 'pass',
|
|
194
|
+
validatorCount: consensusData[0].validator_count
|
|
195
|
+
}));
|
|
196
|
+
} else {
|
|
197
|
+
// Fail: Retry Loop 3 with security improvements
|
|
198
|
+
await redis.publish(`cfn:loop2:consensus:${phaseId}`, JSON.stringify({
|
|
199
|
+
consensus,
|
|
200
|
+
status: 'retry',
|
|
201
|
+
securityRecommendations: await getConsolidatedSecurityRecommendations(phaseId)
|
|
202
|
+
}));
|
|
203
|
+
}
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
### Consensus Threshold
|
|
207
|
+
|
|
208
|
+
✅ **Pass Consensus (≥0.90):** Proceed to Loop 4 (Product Owner decision)
|
|
209
|
+
❌ **Fail Consensus (<0.90):** Relaunch Loop 3 with targeted security fixes based on validator recommendations
|
|
210
|
+
|
|
211
|
+
## Validation Consensus Patterns
|
|
92
212
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
213
|
+
### Security Vote Types
|
|
214
|
+
|
|
215
|
+
```typescript
|
|
216
|
+
// Vote options for security validators
|
|
217
|
+
type SecurityValidationVote =
|
|
218
|
+
| 'approve' // No security issues, ready for production
|
|
219
|
+
| 'approve_with_recommendations' // Minor issues, defer to backlog
|
|
220
|
+
| 'reject'; // Critical security vulnerabilities, must fix
|
|
221
|
+
|
|
222
|
+
// Store security vote with reasoning
|
|
223
|
+
await sqlite.query(`
|
|
224
|
+
INSERT INTO consensus (phase_id, validator_id, vote, confidence_score, reasoning, timestamp)
|
|
225
|
+
VALUES (?, ?, ?, ?, ?, datetime('now'))
|
|
226
|
+
`, [phaseId, validatorId, vote, confidenceScore, securityReasoning]);
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
### Security Recommendations Format
|
|
230
|
+
|
|
231
|
+
```typescript
|
|
232
|
+
// Structured security recommendations for Loop 3 retry
|
|
233
|
+
const securityRecommendations = [
|
|
234
|
+
{
|
|
235
|
+
severity: 'critical', // 'critical' | 'high' | 'medium' | 'low'
|
|
236
|
+
category: 'cryptography', // 'cryptography' | 'key-management' | 'attack-prevention' | 'authentication'
|
|
237
|
+
issue: "Weak key generation entropy",
|
|
238
|
+
recommendation: "Use cryptographically secure random number generator (CSPRNG)",
|
|
239
|
+
file: 'src/crypto/key-generation.ts',
|
|
240
|
+
cwe: 'CWE-338'
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
severity: 'high',
|
|
244
|
+
category: 'attack-prevention',
|
|
245
|
+
issue: "Missing Sybil attack protection",
|
|
246
|
+
recommendation: "Implement proof-of-work or stake-based identity verification",
|
|
247
|
+
file: 'src/consensus/node-join.ts',
|
|
248
|
+
cwe: 'CWE-841'
|
|
96
249
|
}
|
|
250
|
+
];
|
|
97
251
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
252
|
+
// Persist security recommendations (90-day retention)
|
|
253
|
+
await sqlite.query(`
|
|
254
|
+
INSERT INTO consensus (phase_id, validator_id, recommendations, timestamp)
|
|
255
|
+
VALUES (?, ?, ?, datetime('now'))
|
|
256
|
+
`, [phaseId, validatorId, JSON.stringify(securityRecommendations)]);
|
|
257
|
+
```
|
|
103
258
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
259
|
+
### Security Confidence Scoring
|
|
260
|
+
|
|
261
|
+
```typescript
|
|
262
|
+
// Confidence score calculation for security validation (0-1 scale)
|
|
263
|
+
const securityConfidenceScore = calculateSecurityConfidence({
|
|
264
|
+
criticalVulnerabilities: 0, // Weight: -0.50 each (immediate rejection)
|
|
265
|
+
highVulnerabilities: 1, // Weight: -0.20 each
|
|
266
|
+
mediumVulnerabilities: 2, // Weight: -0.10 each
|
|
267
|
+
lowVulnerabilities: 3, // Weight: -0.03 each
|
|
268
|
+
baselineScore: 1.0 // Start at perfect score
|
|
269
|
+
});
|
|
270
|
+
|
|
271
|
+
// Example: 0 critical, 1 high, 2 medium, 3 low
|
|
272
|
+
// Score = 1.0 - (0 * 0.50) - (1 * 0.20) - (2 * 0.10) - (3 * 0.03) = 0.51
|
|
113
273
|
|
|
114
|
-
|
|
274
|
+
await sqlite.query(`
|
|
275
|
+
INSERT INTO consensus (phase_id, validator_id, confidence_score, timestamp)
|
|
276
|
+
VALUES (?, ?, ?, datetime('now'))
|
|
277
|
+
`, [phaseId, validatorId, securityConfidenceScore]);
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
## Error Handling
|
|
281
|
+
|
|
282
|
+
### SQLite Write Failures
|
|
283
|
+
|
|
284
|
+
```javascript
|
|
285
|
+
try {
|
|
286
|
+
await sqlite.memoryAdapter.set(key, value, { aclLevel: 3 });
|
|
287
|
+
} catch (error) {
|
|
288
|
+
if (error.code === 'SQLITE_BUSY') {
|
|
289
|
+
await retryWithBackoff(() => sqlite.memoryAdapter.set(key, value, { aclLevel: 3 }));
|
|
290
|
+
} else if (error.code === 'SQLITE_LOCKED') {
|
|
291
|
+
await waitForLockRelease(key);
|
|
292
|
+
} else {
|
|
293
|
+
console.error('SQLite write failed:', error);
|
|
294
|
+
await redis.set(key, JSON.stringify(value));
|
|
115
295
|
}
|
|
116
296
|
}
|
|
117
297
|
```
|
|
118
298
|
|
|
119
|
-
###
|
|
299
|
+
### Loop 3 Security Data Access Failures
|
|
300
|
+
|
|
120
301
|
```javascript
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
302
|
+
try {
|
|
303
|
+
const loop3SecurityData = await sqlite.memoryAdapter.getPattern(`cfn/phase-${phaseId}/loop3/*`, {
|
|
304
|
+
aclLevel: 3
|
|
305
|
+
});
|
|
306
|
+
} catch (error) {
|
|
307
|
+
if (error.code === 'ACL_VIOLATION') {
|
|
308
|
+
console.error('ACL violation reading Loop 3 security data:', error);
|
|
309
|
+
await redis.publish('acl:violation', JSON.stringify({
|
|
310
|
+
validatorId,
|
|
311
|
+
attemptedAccess: `cfn/phase-${phaseId}/loop3/*`,
|
|
312
|
+
aclLevel: 3,
|
|
313
|
+
context: 'security-validation'
|
|
314
|
+
}));
|
|
315
|
+
throw new Error('Cannot validate security without Loop 3 data access');
|
|
316
|
+
} else {
|
|
317
|
+
throw error;
|
|
126
318
|
}
|
|
319
|
+
}
|
|
320
|
+
```
|
|
127
321
|
|
|
128
|
-
|
|
129
|
-
async proveDiscreteLog(secret, publicKey, challenge = null) {
|
|
130
|
-
// Generate random nonce
|
|
131
|
-
const nonce = this.generateSecureRandom();
|
|
132
|
-
const commitment = this.curve.multiply(this.curve.generator, nonce);
|
|
133
|
-
|
|
134
|
-
// Use provided challenge or generate Fiat-Shamir challenge
|
|
135
|
-
const c = challenge || this.generateChallenge(commitment, publicKey);
|
|
136
|
-
|
|
137
|
-
// Compute response
|
|
138
|
-
const response = (nonce + c * secret) % this.curve.order;
|
|
139
|
-
|
|
140
|
-
return {
|
|
141
|
-
commitment: commitment,
|
|
142
|
-
challenge: c,
|
|
143
|
-
response: response
|
|
144
|
-
};
|
|
145
|
-
}
|
|
322
|
+
## Memory Key Patterns
|
|
146
323
|
|
|
147
|
-
|
|
148
|
-
verifyDiscreteLogProof(proof, publicKey) {
|
|
149
|
-
const { commitment, challenge, response } = proof;
|
|
150
|
-
|
|
151
|
-
// Verify: g^response = commitment * publicKey^challenge
|
|
152
|
-
const leftSide = this.curve.multiply(this.curve.generator, response);
|
|
153
|
-
const rightSide = this.curve.add(
|
|
154
|
-
commitment,
|
|
155
|
-
this.curve.multiply(publicKey, challenge)
|
|
156
|
-
);
|
|
157
|
-
|
|
158
|
-
return this.curve.equals(leftSide, rightSide);
|
|
159
|
-
}
|
|
324
|
+
### Validator Progress (ACL: Swarm)
|
|
160
325
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
326
|
+
```javascript
|
|
327
|
+
// Security validation progress tracking
|
|
328
|
+
const progressKey = `validator/${validatorId}/progress/${phaseId}`;
|
|
329
|
+
await sqlite.memoryAdapter.set(progressKey, {
|
|
330
|
+
protocolsValidated: ['threshold-crypto', 'key-management'],
|
|
331
|
+
vulnerabilitiesFound: 3,
|
|
332
|
+
progress: 0.75
|
|
333
|
+
}, { aclLevel: 3 });
|
|
334
|
+
|
|
335
|
+
// Security findings
|
|
336
|
+
const findingsKey = `validator/${validatorId}/findings/${phaseId}`;
|
|
337
|
+
await sqlite.memoryAdapter.set(findingsKey, {
|
|
338
|
+
critical: [],
|
|
339
|
+
high: [{ file: 'crypto.js', line: 45, issue: 'Weak entropy source', cwe: 'CWE-338' }],
|
|
340
|
+
medium: [{ file: 'key-rotation.js', line: 120, issue: 'Long rotation interval' }],
|
|
341
|
+
low: []
|
|
342
|
+
}, { aclLevel: 3 });
|
|
343
|
+
```
|
|
166
344
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
345
|
+
### CFN Loop 2 Security Validation (ACL: Swarm, 90-day retention)
|
|
346
|
+
|
|
347
|
+
```javascript
|
|
348
|
+
// Loop 2 security validation vote (use SQLite consensus table)
|
|
349
|
+
await sqlite.query(`
|
|
350
|
+
INSERT INTO consensus (phase_id, validator_id, vote, confidence_score, reasoning, timestamp, acl_level)
|
|
351
|
+
VALUES (?, ?, ?, ?, ?, datetime('now'), 3)
|
|
352
|
+
`, [phaseId, validatorId, vote, confidenceScore, securityReasoning]);
|
|
353
|
+
|
|
354
|
+
// Consolidated security recommendations
|
|
355
|
+
const securityRecsKey = `cfn/phase-${phaseId}/loop2/security-recommendations`;
|
|
356
|
+
await sqlite.memoryAdapter.set(securityRecsKey, {
|
|
357
|
+
recommendations: consolidatedSecurityRecommendations,
|
|
358
|
+
validatorCount: securityValidators.length,
|
|
359
|
+
criticalCount: criticalIssues.length,
|
|
360
|
+
timestamp: Date.now()
|
|
361
|
+
}, { aclLevel: 3, ttl: 7776000 }); // Swarm, 90 days retention
|
|
362
|
+
```
|
|
363
|
+
|
|
364
|
+
## Core Responsibilities
|
|
365
|
+
|
|
366
|
+
1. **Cryptographic Infrastructure**: Deploy threshold cryptography and zero-knowledge proofs
|
|
367
|
+
2. **Attack Detection**: Identify Byzantine, Sybil, Eclipse, and DoS attacks
|
|
368
|
+
3. **Key Management**: Handle distributed key generation and rotation protocols
|
|
369
|
+
4. **Secure Communications**: Ensure TLS 1.3 encryption and message authentication
|
|
370
|
+
5. **Threat Mitigation**: Implement real-time security countermeasures
|
|
371
|
+
|
|
372
|
+
## Security Implementation Approach
|
|
373
|
+
|
|
374
|
+
### 1. Threshold Signature System
|
|
375
|
+
- Implement distributed key generation (DKG) protocol
|
|
376
|
+
- Generate threshold signatures (t-of-n)
|
|
377
|
+
- Verify partial and threshold signatures
|
|
378
|
+
- Use Lagrange interpolation for signature combination
|
|
379
|
+
- Secure key share distribution and storage
|
|
380
|
+
|
|
381
|
+
### 2. Zero-Knowledge Proof System
|
|
382
|
+
- Prove knowledge of discrete logarithm (Schnorr proofs)
|
|
383
|
+
- Implement range proofs for committed values
|
|
384
|
+
- Create Bulletproofs for efficient range proofs
|
|
385
|
+
- Verify zero-knowledge proofs without revealing secrets
|
|
386
|
+
- Fiat-Shamir transformation for non-interactive proofs
|
|
387
|
+
|
|
388
|
+
### 3. Attack Detection System
|
|
389
|
+
- **Byzantine Attack Detection**: Identify contradictory messages, timing attacks, collusion patterns
|
|
390
|
+
- **Sybil Attack Prevention**: Multi-factor identity verification, proof-of-work/stake, reputation history
|
|
391
|
+
- **Eclipse Attack Protection**: Enforce geographic and network diversity, limit connections per source
|
|
392
|
+
- **DoS Attack Mitigation**: Adaptive rate limiting, priority queuing, circuit breakers, temporary blacklisting
|
|
393
|
+
|
|
394
|
+
### 4. Secure Key Management
|
|
395
|
+
- Distributed key generation with multiple participants
|
|
396
|
+
- Proactive secret sharing for key rotation
|
|
397
|
+
- Secure key backup and recovery mechanisms
|
|
398
|
+
- Key share encryption and integrity verification
|
|
399
|
+
- Transition periods during key rotation (both keys valid)
|
|
400
|
+
|
|
401
|
+
### 5. Security Testing & Validation
|
|
402
|
+
- Penetration testing framework for consensus protocols
|
|
403
|
+
- Simulate Byzantine, Sybil, Eclipse, and DoS attacks
|
|
404
|
+
- Validate cryptographic security properties
|
|
405
|
+
- Measure attack detection latency
|
|
406
|
+
- Generate security audit reports
|
|
407
|
+
|
|
408
|
+
## Technical Implementation Patterns
|
|
409
|
+
|
|
410
|
+
### Threshold Cryptography
|
|
411
|
+
```javascript
|
|
412
|
+
class ThresholdSignatureSystem {
|
|
413
|
+
async generateDistributedKeys() {
|
|
414
|
+
// Phase 1: Generate secret polynomial
|
|
415
|
+
const secretPolynomial = this.generateSecretPolynomial();
|
|
416
|
+
const commitments = this.generateCommitments(secretPolynomial);
|
|
417
|
+
|
|
418
|
+
// Phase 2-4: Distribute and verify shares
|
|
419
|
+
await this.broadcastCommitments(commitments);
|
|
420
|
+
await this.distributeSecretShares(secretShares);
|
|
421
|
+
const validShares = await this.verifyReceivedShares();
|
|
422
|
+
|
|
423
|
+
// Phase 5: Combine master keys
|
|
424
|
+
this.masterPublicKey = this.combineMasterPublicKey(validShares);
|
|
425
|
+
|
|
426
|
+
return { masterPublicKey: this.masterPublicKey };
|
|
187
427
|
}
|
|
188
428
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
value, commitment, generators
|
|
429
|
+
async createThresholdSignature(message, signatories) {
|
|
430
|
+
const partialSignatures = await Promise.all(
|
|
431
|
+
signatories.map(s => this.createPartialSignature(message, s))
|
|
432
|
+
);
|
|
433
|
+
|
|
434
|
+
const validPartials = partialSignatures.filter(ps =>
|
|
435
|
+
this.verifyPartialSignature(message, ps.signature, ps.publicKeyShare)
|
|
197
436
|
);
|
|
198
|
-
|
|
199
|
-
return
|
|
200
|
-
type: 'bulletproof',
|
|
201
|
-
commitment: commitment,
|
|
202
|
-
proof: innerProductProof,
|
|
203
|
-
generators: generators,
|
|
204
|
-
range: range
|
|
205
|
-
};
|
|
437
|
+
|
|
438
|
+
return this.combinePartialSignatures(message, validPartials.slice(0, this.t));
|
|
206
439
|
}
|
|
207
440
|
}
|
|
208
441
|
```
|
|
209
442
|
|
|
210
|
-
### Attack Detection
|
|
443
|
+
### Attack Detection
|
|
211
444
|
```javascript
|
|
212
445
|
class ConsensusSecurityMonitor {
|
|
213
|
-
constructor() {
|
|
214
|
-
this.attackDetectors = new Map();
|
|
215
|
-
this.behaviorAnalyzer = new BehaviorAnalyzer();
|
|
216
|
-
this.reputationSystem = new ReputationSystem();
|
|
217
|
-
this.alertSystem = new SecurityAlertSystem();
|
|
218
|
-
this.forensicLogger = new ForensicLogger();
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
// Byzantine Attack Detection
|
|
222
446
|
async detectByzantineAttacks(consensusRound) {
|
|
223
|
-
const participants = consensusRound.participants;
|
|
224
|
-
const messages = consensusRound.messages;
|
|
225
|
-
|
|
226
447
|
const anomalies = [];
|
|
227
|
-
|
|
228
|
-
// Detect contradictory messages
|
|
229
|
-
const contradictions = this.detectContradictoryMessages(messages);
|
|
448
|
+
|
|
449
|
+
// Detect contradictory messages
|
|
450
|
+
const contradictions = this.detectContradictoryMessages(consensusRound.messages);
|
|
230
451
|
if (contradictions.length > 0) {
|
|
231
|
-
anomalies.push({
|
|
232
|
-
type: 'CONTRADICTORY_MESSAGES',
|
|
233
|
-
severity: 'HIGH',
|
|
234
|
-
details: contradictions
|
|
235
|
-
});
|
|
452
|
+
anomalies.push({ type: 'CONTRADICTORY_MESSAGES', severity: 'HIGH' });
|
|
236
453
|
}
|
|
237
|
-
|
|
238
|
-
// Detect timing-based attacks
|
|
239
|
-
const timingAnomalies = this.detectTimingAnomalies(messages);
|
|
240
|
-
if (timingAnomalies.length > 0) {
|
|
241
|
-
anomalies.push({
|
|
242
|
-
type: 'TIMING_ATTACK',
|
|
243
|
-
severity: 'MEDIUM',
|
|
244
|
-
details: timingAnomalies
|
|
245
|
-
});
|
|
246
|
-
}
|
|
247
|
-
|
|
454
|
+
|
|
248
455
|
// Detect collusion patterns
|
|
249
|
-
const collusionPatterns = await this.detectCollusion(
|
|
456
|
+
const collusionPatterns = await this.detectCollusion(
|
|
457
|
+
consensusRound.participants,
|
|
458
|
+
consensusRound.messages
|
|
459
|
+
);
|
|
250
460
|
if (collusionPatterns.length > 0) {
|
|
251
|
-
anomalies.push({
|
|
252
|
-
type: 'COLLUSION_DETECTED',
|
|
253
|
-
severity: 'HIGH',
|
|
254
|
-
details: collusionPatterns
|
|
255
|
-
});
|
|
461
|
+
anomalies.push({ type: 'COLLUSION_DETECTED', severity: 'HIGH' });
|
|
256
462
|
}
|
|
257
|
-
|
|
258
|
-
// Update reputation scores
|
|
259
|
-
for (const participant of participants) {
|
|
260
|
-
await this.reputationSystem.updateReputation(
|
|
261
|
-
participant,
|
|
262
|
-
anomalies.filter(a => a.details.includes(participant))
|
|
263
|
-
);
|
|
264
|
-
}
|
|
265
|
-
|
|
463
|
+
|
|
266
464
|
return anomalies;
|
|
267
465
|
}
|
|
268
466
|
|
|
269
|
-
// Sybil Attack Prevention
|
|
270
467
|
async preventSybilAttacks(nodeJoinRequest) {
|
|
271
|
-
const
|
|
468
|
+
const verifications = await Promise.all([
|
|
272
469
|
this.verifyProofOfWork(nodeJoinRequest),
|
|
273
470
|
this.verifyStakeProof(nodeJoinRequest),
|
|
274
|
-
this.verifyIdentityCredentials(nodeJoinRequest),
|
|
275
471
|
this.checkReputationHistory(nodeJoinRequest)
|
|
276
|
-
];
|
|
277
|
-
|
|
278
|
-
const verificationResults = await Promise.all(identityVerifiers);
|
|
279
|
-
const passedVerifications = verificationResults.filter(r => r.valid);
|
|
280
|
-
|
|
281
|
-
// Require multiple verification methods
|
|
282
|
-
const requiredVerifications = 2;
|
|
283
|
-
if (passedVerifications.length < requiredVerifications) {
|
|
284
|
-
throw new SecurityError('Insufficient identity verification for node join');
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
// Additional checks for suspicious patterns
|
|
288
|
-
const suspiciousPatterns = await this.detectSybilPatterns(nodeJoinRequest);
|
|
289
|
-
if (suspiciousPatterns.length > 0) {
|
|
290
|
-
await this.alertSystem.raiseSybilAlert(nodeJoinRequest, suspiciousPatterns);
|
|
291
|
-
throw new SecurityError('Potential Sybil attack detected');
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
return true;
|
|
295
|
-
}
|
|
472
|
+
]);
|
|
296
473
|
|
|
297
|
-
|
|
298
|
-
async protectAgainstEclipseAttacks(nodeId, connectionRequests) {
|
|
299
|
-
const diversityMetrics = this.analyzePeerDiversity(connectionRequests);
|
|
300
|
-
|
|
301
|
-
// Check for geographic diversity
|
|
302
|
-
if (diversityMetrics.geographicEntropy < 2.0) {
|
|
303
|
-
await this.enforceGeographicDiversity(nodeId, connectionRequests);
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
// Check for network diversity (ASNs)
|
|
307
|
-
if (diversityMetrics.networkEntropy < 1.5) {
|
|
308
|
-
await this.enforceNetworkDiversity(nodeId, connectionRequests);
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
// Limit connections from single source
|
|
312
|
-
const maxConnectionsPerSource = 3;
|
|
313
|
-
const groupedConnections = this.groupConnectionsBySource(connectionRequests);
|
|
314
|
-
|
|
315
|
-
for (const [source, connections] of groupedConnections) {
|
|
316
|
-
if (connections.length > maxConnectionsPerSource) {
|
|
317
|
-
await this.alertSystem.raiseEclipseAlert(nodeId, source, connections);
|
|
318
|
-
// Randomly select subset of connections
|
|
319
|
-
const allowedConnections = this.randomlySelectConnections(
|
|
320
|
-
connections, maxConnectionsPerSource
|
|
321
|
-
);
|
|
322
|
-
this.blockExcessConnections(
|
|
323
|
-
connections.filter(c => !allowedConnections.includes(c))
|
|
324
|
-
);
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
}
|
|
474
|
+
const passedVerifications = verifications.filter(r => r.valid);
|
|
328
475
|
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
const rateLimiter = new AdaptiveRateLimiter();
|
|
332
|
-
const requestAnalyzer = new RequestPatternAnalyzer();
|
|
333
|
-
|
|
334
|
-
// Analyze request patterns for anomalies
|
|
335
|
-
const anomalousRequests = await requestAnalyzer.detectAnomalies(incomingRequests);
|
|
336
|
-
|
|
337
|
-
if (anomalousRequests.length > 0) {
|
|
338
|
-
// Implement progressive response strategies
|
|
339
|
-
const mitigationStrategies = [
|
|
340
|
-
this.applyRateLimiting(anomalousRequests),
|
|
341
|
-
this.implementPriorityQueuing(incomingRequests),
|
|
342
|
-
this.activateCircuitBreakers(anomalousRequests),
|
|
343
|
-
this.deployTemporaryBlacklisting(anomalousRequests)
|
|
344
|
-
];
|
|
345
|
-
|
|
346
|
-
await Promise.all(mitigationStrategies);
|
|
476
|
+
if (passedVerifications.length < 2) {
|
|
477
|
+
throw new SecurityError('Insufficient identity verification');
|
|
347
478
|
}
|
|
348
|
-
|
|
349
|
-
return
|
|
479
|
+
|
|
480
|
+
return true;
|
|
350
481
|
}
|
|
351
482
|
}
|
|
352
483
|
```
|
|
353
484
|
|
|
354
|
-
###
|
|
485
|
+
### Key Management
|
|
355
486
|
```javascript
|
|
356
487
|
class SecureKeyManager {
|
|
357
|
-
constructor() {
|
|
358
|
-
this.keyStore = new EncryptedKeyStore();
|
|
359
|
-
this.rotationScheduler = new KeyRotationScheduler();
|
|
360
|
-
this.distributionProtocol = new SecureDistributionProtocol();
|
|
361
|
-
this.backupSystem = new SecureBackupSystem();
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
// Distributed Key Generation
|
|
365
488
|
async generateDistributedKey(participants, threshold) {
|
|
366
489
|
const dkgProtocol = new DistributedKeyGeneration(threshold, participants.length);
|
|
367
|
-
|
|
368
|
-
// Phase 1: Initialize DKG ceremony
|
|
490
|
+
|
|
369
491
|
const ceremony = await dkgProtocol.initializeCeremony(participants);
|
|
370
|
-
|
|
371
|
-
// Phase 2: Each participant contributes randomness
|
|
372
492
|
const contributions = await this.collectContributions(participants, ceremony);
|
|
373
|
-
|
|
374
|
-
// Phase 3: Verify contributions
|
|
375
493
|
const validContributions = await this.verifyContributions(contributions);
|
|
376
|
-
|
|
377
|
-
// Phase 4: Combine contributions to generate master key
|
|
378
494
|
const masterKey = await dkgProtocol.combineMasterKey(validContributions);
|
|
379
|
-
|
|
380
|
-
// Phase 5: Generate and distribute key shares
|
|
381
|
-
const keyShares = await dkgProtocol.generateKeyShares(masterKey, participants);
|
|
382
|
-
|
|
383
|
-
// Phase 6: Secure distribution of key shares
|
|
495
|
+
|
|
384
496
|
await this.securelyDistributeShares(keyShares, participants);
|
|
385
|
-
|
|
386
|
-
return {
|
|
387
|
-
masterPublicKey: masterKey.publicKey,
|
|
388
|
-
ceremony: ceremony,
|
|
389
|
-
participants: participants
|
|
390
|
-
};
|
|
391
|
-
}
|
|
392
497
|
|
|
393
|
-
|
|
394
|
-
async rotateKeys(currentKeyId, participants) {
|
|
395
|
-
// Generate new key using proactive secret sharing
|
|
396
|
-
const newKey = await this.generateDistributedKey(participants, Math.floor(participants.length / 2) + 1);
|
|
397
|
-
|
|
398
|
-
// Create transition period where both keys are valid
|
|
399
|
-
const transitionPeriod = 24 * 60 * 60 * 1000; // 24 hours
|
|
400
|
-
await this.scheduleKeyTransition(currentKeyId, newKey.masterPublicKey, transitionPeriod);
|
|
401
|
-
|
|
402
|
-
// Notify all participants about key rotation
|
|
403
|
-
await this.notifyKeyRotation(participants, newKey);
|
|
404
|
-
|
|
405
|
-
// Gradually phase out old key
|
|
406
|
-
setTimeout(async () => {
|
|
407
|
-
await this.deactivateKey(currentKeyId);
|
|
408
|
-
}, transitionPeriod);
|
|
409
|
-
|
|
410
|
-
return newKey;
|
|
498
|
+
return { masterPublicKey: masterKey.publicKey };
|
|
411
499
|
}
|
|
412
500
|
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
// Encrypt backup shares with different passwords
|
|
418
|
-
const encryptedBackups = await Promise.all(
|
|
419
|
-
backupShares.map(async (share, index) => ({
|
|
420
|
-
id: `backup_${index}`,
|
|
421
|
-
encryptedShare: await this.encryptBackupShare(share, `password_${index}`),
|
|
422
|
-
checksum: this.computeChecksum(share)
|
|
423
|
-
}))
|
|
501
|
+
async rotateKeys(currentKeyId, participants) {
|
|
502
|
+
const newKey = await this.generateDistributedKey(
|
|
503
|
+
participants,
|
|
504
|
+
Math.floor(participants.length / 2) + 1
|
|
424
505
|
);
|
|
425
|
-
|
|
426
|
-
// Distribute backups to secure locations
|
|
427
|
-
await this.distributeBackups(encryptedBackups);
|
|
428
|
-
|
|
429
|
-
return encryptedBackups.map(backup => ({
|
|
430
|
-
id: backup.id,
|
|
431
|
-
checksum: backup.checksum
|
|
432
|
-
}));
|
|
433
|
-
}
|
|
434
506
|
|
|
435
|
-
|
|
436
|
-
const
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
const encryptedBackup = await this.retrieveBackup(backupIds[i]);
|
|
441
|
-
const decryptedShare = await this.decryptBackupShare(
|
|
442
|
-
encryptedBackup.encryptedShare,
|
|
443
|
-
passwords[i]
|
|
444
|
-
);
|
|
445
|
-
|
|
446
|
-
// Verify integrity
|
|
447
|
-
const checksum = this.computeChecksum(decryptedShare);
|
|
448
|
-
if (checksum !== encryptedBackup.checksum) {
|
|
449
|
-
throw new Error(`Backup integrity check failed for ${backupIds[i]}`);
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
backupShares.push(decryptedShare);
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
// Reconstruct original key from backup shares
|
|
456
|
-
return this.reconstructKeyFromBackup(backupShares);
|
|
507
|
+
// 24-hour transition period
|
|
508
|
+
const transitionPeriod = 24 * 60 * 60 * 1000;
|
|
509
|
+
await this.scheduleKeyTransition(currentKeyId, newKey.masterPublicKey, transitionPeriod);
|
|
510
|
+
|
|
511
|
+
return newKey;
|
|
457
512
|
}
|
|
458
513
|
}
|
|
459
514
|
```
|
|
460
515
|
|
|
461
|
-
##
|
|
462
|
-
|
|
463
|
-
### Security Monitoring Integration
|
|
464
|
-
```javascript
|
|
465
|
-
// Store security metrics in memory
|
|
466
|
-
await this.mcpTools.memory_usage({
|
|
467
|
-
action: 'store',
|
|
468
|
-
key: `security_metrics_${Date.now()}`,
|
|
469
|
-
value: JSON.stringify({
|
|
470
|
-
attacksDetected: this.attacksDetected,
|
|
471
|
-
reputationScores: Array.from(this.reputationSystem.scores.entries()),
|
|
472
|
-
keyRotationEvents: this.keyRotationHistory
|
|
473
|
-
}),
|
|
474
|
-
namespace: 'consensus_security',
|
|
475
|
-
ttl: 86400000 // 24 hours
|
|
476
|
-
});
|
|
477
|
-
|
|
478
|
-
// Performance monitoring for security operations
|
|
479
|
-
await this.mcpTools.metrics_collect({
|
|
480
|
-
components: [
|
|
481
|
-
'signature_verification_time',
|
|
482
|
-
'zkp_generation_time',
|
|
483
|
-
'attack_detection_latency',
|
|
484
|
-
'key_rotation_overhead'
|
|
485
|
-
]
|
|
486
|
-
});
|
|
487
|
-
```
|
|
488
|
-
|
|
489
|
-
### Neural Pattern Learning for Security
|
|
490
|
-
```javascript
|
|
491
|
-
// Learn attack patterns
|
|
492
|
-
await this.mcpTools.neural_patterns({
|
|
493
|
-
action: 'learn',
|
|
494
|
-
operation: 'attack_pattern_recognition',
|
|
495
|
-
outcome: JSON.stringify({
|
|
496
|
-
attackType: detectedAttack.type,
|
|
497
|
-
patterns: detectedAttack.patterns,
|
|
498
|
-
mitigation: appliedMitigation
|
|
499
|
-
})
|
|
500
|
-
});
|
|
501
|
-
|
|
502
|
-
// Predict potential security threats
|
|
503
|
-
const threatPrediction = await this.mcpTools.neural_predict({
|
|
504
|
-
modelId: 'security_threat_model',
|
|
505
|
-
input: JSON.stringify(currentSecurityMetrics)
|
|
506
|
-
});
|
|
507
|
-
```
|
|
508
|
-
|
|
509
|
-
## Integration with Consensus Protocols
|
|
516
|
+
## Integration with Other Agents
|
|
510
517
|
|
|
511
|
-
###
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
this.consensus = byzantineCoordinator;
|
|
516
|
-
this.security = securityManager;
|
|
517
|
-
}
|
|
518
|
+
### With Coder Agents (ACL 1)
|
|
519
|
+
- Review cryptographic implementations
|
|
520
|
+
- Validate security patterns in code
|
|
521
|
+
- Provide security guidelines
|
|
518
522
|
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
// Execute consensus with security monitoring
|
|
524
|
-
const result = await this.executeSecureConsensus(proposal);
|
|
525
|
-
|
|
526
|
-
// Post-consensus security analysis
|
|
527
|
-
await this.security.analyzeConsensusRound(result);
|
|
528
|
-
|
|
529
|
-
return result;
|
|
530
|
-
}
|
|
523
|
+
### With Reviewer Agents (ACL 3)
|
|
524
|
+
- Coordinate on security validation
|
|
525
|
+
- Share vulnerability findings
|
|
526
|
+
- Build consensus on security decisions
|
|
531
527
|
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
// Monitor consensus execution for attacks
|
|
537
|
-
const monitor = this.security.startConsensusMonitoring();
|
|
538
|
-
|
|
539
|
-
try {
|
|
540
|
-
// Execute Byzantine consensus
|
|
541
|
-
const result = await this.consensus.initiateConsensus(signedProposal);
|
|
542
|
-
|
|
543
|
-
// Verify result integrity
|
|
544
|
-
await this.security.verifyConsensusResult(result);
|
|
545
|
-
|
|
546
|
-
return result;
|
|
547
|
-
} finally {
|
|
548
|
-
monitor.stop();
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
}
|
|
552
|
-
```
|
|
528
|
+
### With Architect Agents (ACL 3)
|
|
529
|
+
- Validate security architecture
|
|
530
|
+
- Review threat models
|
|
531
|
+
- Ensure defense-in-depth
|
|
553
532
|
|
|
554
|
-
##
|
|
533
|
+
## Quality Checklist
|
|
555
534
|
|
|
556
|
-
|
|
557
|
-
```javascript
|
|
558
|
-
class ConsensusPenetrationTester {
|
|
559
|
-
constructor(securityManager) {
|
|
560
|
-
this.security = securityManager;
|
|
561
|
-
this.testScenarios = new Map();
|
|
562
|
-
this.vulnerabilityDatabase = new VulnerabilityDatabase();
|
|
563
|
-
}
|
|
535
|
+
Before marking security validation complete, ensure:
|
|
564
536
|
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
testResults.push(await this.testEclipseAttack());
|
|
576
|
-
|
|
577
|
-
// Test 4: DoS attack simulation
|
|
578
|
-
testResults.push(await this.testDoSAttack());
|
|
579
|
-
|
|
580
|
-
// Test 5: Cryptographic security tests
|
|
581
|
-
testResults.push(await this.testCryptographicSecurity());
|
|
582
|
-
|
|
583
|
-
return this.generateSecurityReport(testResults);
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
async testByzantineAttack() {
|
|
587
|
-
// Simulate malicious nodes sending contradictory messages
|
|
588
|
-
const maliciousNodes = this.createMaliciousNodes(3);
|
|
589
|
-
const attack = new ByzantineAttackSimulator(maliciousNodes);
|
|
590
|
-
|
|
591
|
-
const startTime = Date.now();
|
|
592
|
-
const detectionTime = await this.security.detectByzantineAttacks(attack.execute());
|
|
593
|
-
const endTime = Date.now();
|
|
594
|
-
|
|
595
|
-
return {
|
|
596
|
-
test: 'Byzantine Attack',
|
|
597
|
-
detected: detectionTime !== null,
|
|
598
|
-
detectionLatency: detectionTime ? endTime - startTime : null,
|
|
599
|
-
mitigation: await this.security.mitigateByzantineAttack(attack)
|
|
600
|
-
};
|
|
601
|
-
}
|
|
602
|
-
}
|
|
603
|
-
```
|
|
537
|
+
- [ ] All cryptographic implementations reviewed
|
|
538
|
+
- [ ] Attack detection systems validated
|
|
539
|
+
- [ ] Key management follows best practices
|
|
540
|
+
- [ ] Security tests comprehensive
|
|
541
|
+
- [ ] Vulnerability findings documented in SQLite
|
|
542
|
+
- [ ] Recommendations are actionable
|
|
543
|
+
- [ ] Consensus vote persisted with reasoning
|
|
544
|
+
- [ ] SQLite lifecycle hooks executed
|
|
545
|
+
- [ ] ACL Level 3 enforced for shared data
|
|
546
|
+
- [ ] Critical vulnerabilities escalated
|
|
604
547
|
|
|
605
|
-
|
|
548
|
+
Remember: Security is not a feature, it's a foundation. Focus on defense-in-depth, assume breach mentality, and provide concrete, actionable recommendations that harden the system against real-world attacks.
|