agentic-qe 3.7.15 → 3.7.17
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/v3/qe-devils-advocate.md +20 -0
- package/.claude/agents/v3/qe-gap-detector.md +25 -0
- package/.claude/agents/v3/qe-quality-gate.md +8 -0
- package/.claude/agents/v3/qe-requirements-validator.md +25 -0
- package/.claude/agents/v3/subagents/qe-code-reviewer.md +11 -0
- package/.claude/agents/v3/subagents/qe-integration-reviewer.md +11 -0
- package/.claude/agents/v3/subagents/qe-performance-reviewer.md +11 -0
- package/.claude/agents/v3/subagents/qe-security-reviewer.md +11 -0
- package/.claude/helpers/adr-compliance.sh +10 -10
- package/.claude/helpers/auto-memory-hook.mjs +24 -9
- package/.claude/helpers/brain-checkpoint.cjs +55 -134
- package/.claude/helpers/ddd-tracker.sh +2 -2
- package/.claude/helpers/guidance-hooks.sh +2 -2
- package/.claude/helpers/hook-handler.cjs +57 -18
- package/.claude/helpers/statusline.cjs +414 -595
- package/.claude/helpers/v3/quality-criteria/evidence-classification.md +116 -116
- package/.claude/helpers/v3/quality-criteria/htsm-categories.md +139 -139
- package/.claude/skills/README.md +8 -11
- package/.claude/skills/brutal-honesty-review/SKILL.md +3 -0
- package/.claude/skills/code-review-quality/SKILL.md +3 -0
- package/.claude/skills/qcsd-cicd-swarm/SKILL.md +79 -2075
- package/.claude/skills/qcsd-cicd-swarm/steps/01-flag-detection.md +62 -0
- package/.claude/skills/qcsd-cicd-swarm/steps/02-core-agents.md +33 -0
- package/.claude/skills/qcsd-cicd-swarm/steps/03-batch1-results.md +21 -0
- package/.claude/skills/qcsd-cicd-swarm/steps/04-conditional-agents.md +23 -0
- package/.claude/skills/qcsd-cicd-swarm/steps/05-decision-synthesis.md +30 -0
- package/.claude/skills/qcsd-cicd-swarm/steps/06-report-generation.md +17 -0
- package/.claude/skills/qcsd-cicd-swarm/steps/07-learning-persistence.md +27 -0
- package/.claude/skills/qcsd-cicd-swarm/steps/08-deployment-advisor.md +25 -0
- package/.claude/skills/qcsd-cicd-swarm/steps/09-final-output.md +16 -0
- package/.claude/skills/qcsd-development-swarm/SKILL.md +79 -2027
- package/.claude/skills/qcsd-development-swarm/steps/01-flag-detection.md +50 -0
- package/.claude/skills/qcsd-development-swarm/steps/02-core-agents.md +29 -0
- package/.claude/skills/qcsd-development-swarm/steps/03-batch1-results.md +14 -0
- package/.claude/skills/qcsd-development-swarm/steps/04-conditional-agents.md +23 -0
- package/.claude/skills/qcsd-development-swarm/steps/05-decision-synthesis.md +30 -0
- package/.claude/skills/qcsd-development-swarm/steps/06-report-generation.md +16 -0
- package/.claude/skills/qcsd-development-swarm/steps/07-learning-persistence.md +25 -0
- package/.claude/skills/qcsd-development-swarm/steps/08-defect-predictor.md +25 -0
- package/.claude/skills/qcsd-development-swarm/steps/09-final-output.md +16 -0
- package/.claude/skills/qcsd-ideation-swarm/SKILL.md +94 -1894
- package/.claude/skills/qcsd-ideation-swarm/steps/01-flag-detection.md +57 -0
- package/.claude/skills/qcsd-ideation-swarm/steps/02-core-agents.md +29 -0
- package/.claude/skills/qcsd-ideation-swarm/steps/03-batch1-results.md +15 -0
- package/.claude/skills/qcsd-ideation-swarm/steps/04-conditional-agents.md +23 -0
- package/.claude/skills/qcsd-ideation-swarm/steps/05-decision-synthesis.md +29 -0
- package/.claude/skills/qcsd-ideation-swarm/steps/06-report-generation.md +18 -0
- package/.claude/skills/qcsd-ideation-swarm/steps/07-learning-persistence.md +29 -0
- package/.claude/skills/qcsd-ideation-swarm/steps/08-final-output.md +18 -0
- package/.claude/skills/qcsd-production-swarm/SKILL.md +88 -2663
- package/.claude/skills/qcsd-production-swarm/steps/01-flag-detection.md +206 -0
- package/.claude/skills/qcsd-production-swarm/steps/02-core-agents.md +428 -0
- package/.claude/skills/qcsd-production-swarm/steps/03-batch1-results.md +101 -0
- package/.claude/skills/qcsd-production-swarm/steps/04-conditional-agents.md +125 -0
- package/.claude/skills/qcsd-production-swarm/steps/05-decision-synthesis.md +136 -0
- package/.claude/skills/qcsd-production-swarm/steps/06-report-generation.md +181 -0
- package/.claude/skills/qcsd-production-swarm/steps/07-learning-persistence.md +185 -0
- package/.claude/skills/qcsd-production-swarm/steps/08-feedback-loop.md +122 -0
- package/.claude/skills/qcsd-production-swarm/steps/09-final-output.md +140 -0
- package/.claude/skills/qcsd-refinement-swarm/SKILL.md +59 -2312
- package/.claude/skills/qcsd-refinement-swarm/steps/01-flag-detection.md +91 -0
- package/.claude/skills/qcsd-refinement-swarm/steps/02-core-agents.md +40 -0
- package/.claude/skills/qcsd-refinement-swarm/steps/03-batch1-results.md +40 -0
- package/.claude/skills/qcsd-refinement-swarm/steps/04-conditional-agents.md +35 -0
- package/.claude/skills/qcsd-refinement-swarm/steps/05-decision-synthesis.md +43 -0
- package/.claude/skills/qcsd-refinement-swarm/steps/06-report-generation.md +42 -0
- package/.claude/skills/qcsd-refinement-swarm/steps/07-learning-persistence.md +53 -0
- package/.claude/skills/qcsd-refinement-swarm/steps/08-transformation.md +36 -0
- package/.claude/skills/qcsd-refinement-swarm/steps/09-final-output.md +46 -0
- package/.claude/skills/sherlock-review/SKILL.md +3 -0
- package/.claude/skills/skill-builder/SKILL.md +103 -0
- package/.claude/skills/skills-manifest.json +1 -1
- package/CHANGELOG.md +44 -0
- package/assets/agents/v3/qe-devils-advocate.md +20 -0
- package/assets/agents/v3/qe-gap-detector.md +25 -0
- package/assets/agents/v3/qe-quality-gate.md +8 -0
- package/assets/agents/v3/qe-requirements-validator.md +25 -0
- package/assets/agents/v3/subagents/qe-code-reviewer.md +11 -0
- package/assets/agents/v3/subagents/qe-integration-reviewer.md +11 -0
- package/assets/agents/v3/subagents/qe-performance-reviewer.md +11 -0
- package/assets/agents/v3/subagents/qe-security-reviewer.md +11 -0
- package/assets/helpers/statusline-v3.cjs +693 -0
- package/assets/skills/brutal-honesty-review/SKILL.md +3 -0
- package/assets/skills/code-review-quality/SKILL.md +3 -0
- package/assets/skills/qcsd-cicd-swarm/SKILL.md +79 -2075
- package/assets/skills/qcsd-cicd-swarm/steps/01-flag-detection.md +62 -0
- package/assets/skills/qcsd-cicd-swarm/steps/02-core-agents.md +33 -0
- package/assets/skills/qcsd-cicd-swarm/steps/03-batch1-results.md +21 -0
- package/assets/skills/qcsd-cicd-swarm/steps/04-conditional-agents.md +23 -0
- package/assets/skills/qcsd-cicd-swarm/steps/05-decision-synthesis.md +30 -0
- package/assets/skills/qcsd-cicd-swarm/steps/06-report-generation.md +17 -0
- package/assets/skills/qcsd-cicd-swarm/steps/07-learning-persistence.md +27 -0
- package/assets/skills/qcsd-cicd-swarm/steps/08-deployment-advisor.md +25 -0
- package/assets/skills/qcsd-cicd-swarm/steps/09-final-output.md +16 -0
- package/assets/skills/qcsd-development-swarm/SKILL.md +79 -2027
- package/assets/skills/qcsd-development-swarm/steps/01-flag-detection.md +50 -0
- package/assets/skills/qcsd-development-swarm/steps/02-core-agents.md +29 -0
- package/assets/skills/qcsd-development-swarm/steps/03-batch1-results.md +14 -0
- package/assets/skills/qcsd-development-swarm/steps/04-conditional-agents.md +23 -0
- package/assets/skills/qcsd-development-swarm/steps/05-decision-synthesis.md +30 -0
- package/assets/skills/qcsd-development-swarm/steps/06-report-generation.md +16 -0
- package/assets/skills/qcsd-development-swarm/steps/07-learning-persistence.md +25 -0
- package/assets/skills/qcsd-development-swarm/steps/08-defect-predictor.md +25 -0
- package/assets/skills/qcsd-development-swarm/steps/09-final-output.md +16 -0
- package/assets/skills/qcsd-ideation-swarm/SKILL.md +94 -1894
- package/assets/skills/qcsd-ideation-swarm/steps/01-flag-detection.md +57 -0
- package/assets/skills/qcsd-ideation-swarm/steps/02-core-agents.md +29 -0
- package/assets/skills/qcsd-ideation-swarm/steps/03-batch1-results.md +15 -0
- package/assets/skills/qcsd-ideation-swarm/steps/04-conditional-agents.md +23 -0
- package/assets/skills/qcsd-ideation-swarm/steps/05-decision-synthesis.md +29 -0
- package/assets/skills/qcsd-ideation-swarm/steps/06-report-generation.md +18 -0
- package/assets/skills/qcsd-ideation-swarm/steps/07-learning-persistence.md +29 -0
- package/assets/skills/qcsd-ideation-swarm/steps/08-final-output.md +18 -0
- package/assets/skills/qcsd-production-swarm/SKILL.md +88 -2663
- package/assets/skills/qcsd-production-swarm/steps/01-flag-detection.md +206 -0
- package/assets/skills/qcsd-production-swarm/steps/02-core-agents.md +428 -0
- package/assets/skills/qcsd-production-swarm/steps/03-batch1-results.md +101 -0
- package/assets/skills/qcsd-production-swarm/steps/04-conditional-agents.md +125 -0
- package/assets/skills/qcsd-production-swarm/steps/05-decision-synthesis.md +136 -0
- package/assets/skills/qcsd-production-swarm/steps/06-report-generation.md +181 -0
- package/assets/skills/qcsd-production-swarm/steps/07-learning-persistence.md +185 -0
- package/assets/skills/qcsd-production-swarm/steps/08-feedback-loop.md +122 -0
- package/assets/skills/qcsd-production-swarm/steps/09-final-output.md +140 -0
- package/assets/skills/qcsd-refinement-swarm/SKILL.md +59 -2312
- package/assets/skills/qcsd-refinement-swarm/steps/01-flag-detection.md +91 -0
- package/assets/skills/qcsd-refinement-swarm/steps/02-core-agents.md +40 -0
- package/assets/skills/qcsd-refinement-swarm/steps/03-batch1-results.md +40 -0
- package/assets/skills/qcsd-refinement-swarm/steps/04-conditional-agents.md +35 -0
- package/assets/skills/qcsd-refinement-swarm/steps/05-decision-synthesis.md +43 -0
- package/assets/skills/qcsd-refinement-swarm/steps/06-report-generation.md +42 -0
- package/assets/skills/qcsd-refinement-swarm/steps/07-learning-persistence.md +53 -0
- package/assets/skills/qcsd-refinement-swarm/steps/08-transformation.md +36 -0
- package/assets/skills/qcsd-refinement-swarm/steps/09-final-output.md +46 -0
- package/assets/skills/sherlock-review/SKILL.md +3 -0
- package/assets/templates/agent-override-example.yaml +39 -0
- package/dist/agents/devils-advocate/agent.d.ts +25 -1
- package/dist/agents/devils-advocate/agent.js +108 -4
- package/dist/agents/devils-advocate/types.d.ts +54 -0
- package/dist/agents/devils-advocate/types.js +14 -0
- package/dist/agents/overlay-loader.d.ts +28 -0
- package/dist/agents/overlay-loader.js +232 -0
- package/dist/agents/overlay-schema.d.ts +56 -0
- package/dist/agents/overlay-schema.js +77 -0
- package/dist/analysis/branch-enumerator.d.ts +68 -0
- package/dist/analysis/branch-enumerator.js +393 -0
- package/dist/analysis/index.d.ts +2 -0
- package/dist/analysis/index.js +2 -0
- package/dist/cli/bundle.js +2469 -634
- package/dist/cli/commands/coverage.js +50 -0
- package/dist/cli/handlers/brain-handler.js +2 -1
- package/dist/context/compiler.d.ts +62 -0
- package/dist/context/compiler.js +143 -0
- package/dist/context/index.d.ts +8 -0
- package/dist/context/index.js +6 -0
- package/dist/context/sources/coverage-source.d.ts +15 -0
- package/dist/context/sources/coverage-source.js +77 -0
- package/dist/context/sources/git-source.d.ts +12 -0
- package/dist/context/sources/git-source.js +33 -0
- package/dist/context/sources/index.d.ts +6 -0
- package/dist/context/sources/index.js +5 -0
- package/dist/context/sources/memory-source.d.ts +17 -0
- package/dist/context/sources/memory-source.js +94 -0
- package/dist/context/sources/test-source.d.ts +13 -0
- package/dist/context/sources/test-source.js +53 -0
- package/dist/context/sources/types.d.ts +42 -0
- package/dist/context/sources/types.js +5 -0
- package/dist/domains/test-generation/coordinator.js +6 -4
- package/dist/feedback/feedback-loop.d.ts +5 -0
- package/dist/feedback/feedback-loop.js +12 -0
- package/dist/feedback/index.d.ts +1 -1
- package/dist/feedback/index.js +1 -1
- package/dist/init/agents-installer.d.ts +9 -0
- package/dist/init/agents-installer.js +72 -0
- package/dist/init/phases/07-hooks.d.ts +11 -0
- package/dist/init/phases/07-hooks.js +67 -0
- package/dist/init/phases/09-assets.js +3 -0
- package/dist/init/settings-merge.js +1 -1
- package/dist/kernel/hnsw-adapter.d.ts +3 -0
- package/dist/kernel/hnsw-adapter.js +11 -1
- package/dist/kernel/unified-memory-schemas.d.ts +1 -1
- package/dist/kernel/unified-memory-schemas.js +2 -0
- package/dist/kernel/unified-memory.js +25 -0
- package/dist/learning/experience-capture-middleware.js +24 -0
- package/dist/learning/sqlite-persistence.d.ts +3 -0
- package/dist/learning/sqlite-persistence.js +9 -0
- package/dist/learning/token-tracker.js +4 -0
- package/dist/mcp/bundle.js +3694 -3101
- package/dist/mcp/handlers/handler-factory.js +92 -11
- package/dist/mcp/services/task-router.d.ts +11 -0
- package/dist/mcp/services/task-router.js +26 -0
- package/dist/routing/qe-agent-registry.d.ts +11 -0
- package/dist/routing/qe-agent-registry.js +34 -0
- package/dist/routing/qe-task-router.d.ts +1 -0
- package/dist/routing/qe-task-router.js +34 -2
- package/dist/routing/routing-feedback.d.ts +5 -0
- package/dist/routing/routing-feedback.js +29 -3
- package/dist/routing/types.d.ts +2 -0
- package/dist/sync/pull-agent.js +2 -1
- package/dist/test-scheduling/pipeline.d.ts +7 -0
- package/dist/test-scheduling/pipeline.js +9 -0
- package/dist/validation/index.d.ts +3 -0
- package/dist/validation/index.js +10 -0
- package/dist/validation/pipeline.d.ts +80 -0
- package/dist/validation/pipeline.js +173 -0
- package/dist/validation/steps/requirements.d.ts +32 -0
- package/dist/validation/steps/requirements.js +596 -0
- package/package.json +6 -6
- package/.claude/agents/consensus/README.md +0 -253
- package/.claude/agents/deprecated/qe-api-contract-validator.md.v2 +0 -162
- package/.claude/agents/deprecated/qe-coverage-analyzer.md.v2 +0 -208
- package/.claude/agents/deprecated/qe-test-generator.md.v2 +0 -212
- package/.claude/agents/deprecated/qe-visual-tester.md.v2 +0 -216
- package/.claude/agents/hive-mind/collective-intelligence-coordinator.md +0 -130
- package/.claude/agents/hive-mind/queen-coordinator.md +0 -203
- package/.claude/agents/hive-mind/scout-explorer.md +0 -242
- package/.claude/agents/hive-mind/swarm-memory-manager.md +0 -193
- package/.claude/agents/hive-mind/worker-specialist.md +0 -217
- package/.claude/agents/neural/safla-neural.md +0 -74
- package/.claude/agents/optimization/README.md +0 -250
- package/.claude/agents/reasoning/agent.md +0 -816
- package/.claude/agents/reasoning/goal-planner.md +0 -73
- package/.claude/agents/subagents/qe-code-reviewer.md +0 -76
- package/.claude/agents/subagents/qe-coverage-gap-analyzer.md +0 -76
- package/.claude/agents/subagents/qe-data-generator.md +0 -77
- package/.claude/agents/subagents/qe-flaky-investigator.md +0 -91
- package/.claude/agents/subagents/qe-integration-tester.md +0 -90
- package/.claude/agents/subagents/qe-performance-validator.md +0 -92
- package/.claude/agents/subagents/qe-security-auditor.md +0 -94
- package/.claude/agents/subagents/qe-test-data-architect-sub.md +0 -93
- package/.claude/agents/subagents/qe-test-implementer.md +0 -106
- package/.claude/agents/subagents/qe-test-refactorer.md +0 -117
- package/.claude/agents/subagents/qe-test-writer.md +0 -112
- package/.claude/agents/swarm/README.md +0 -190
- package/.claude/agents/templates/migration-plan.md +0 -746
- package/.claude/agents/testing/unit/tdd-london-swarm.md +0 -244
- package/.claude/agents/testing/validation/production-validator.md +0 -395
- package/.claude/agents/v3/README.md +0 -39
- package/.claude/agents/v3/typescript-specialist.yaml +0 -21
- package/.claude/agents/v3/v3-memory-specialist.md +0 -318
- package/.claude/agents/v3/v3-performance-engineer.md +0 -397
- package/.claude/agents/v3/v3-queen-coordinator.md +0 -98
- package/.claude/agents/v3/v3-security-architect.md +0 -174
- package/.claude/commands/README.md +0 -106
- package/.claude/commands/agents/README.md +0 -10
- package/.claude/commands/agents/agent-capabilities.md +0 -21
- package/.claude/commands/agents/agent-coordination.md +0 -28
- package/.claude/commands/agents/agent-spawning.md +0 -28
- package/.claude/commands/agents/agent-types.md +0 -26
- package/.claude/commands/coordination/README.md +0 -9
- package/.claude/commands/coordination/agent-spawn.md +0 -25
- package/.claude/commands/coordination/init.md +0 -44
- package/.claude/commands/coordination/orchestrate.md +0 -43
- package/.claude/commands/coordination/spawn.md +0 -45
- package/.claude/commands/coordination/swarm-init.md +0 -85
- package/.claude/commands/coordination/task-orchestrate.md +0 -25
- package/.claude/commands/hive-mind/README.md +0 -17
- package/.claude/commands/hive-mind/hive-mind-consensus.md +0 -8
- package/.claude/commands/hive-mind/hive-mind-init.md +0 -18
- package/.claude/commands/hive-mind/hive-mind-memory.md +0 -8
- package/.claude/commands/hive-mind/hive-mind-metrics.md +0 -8
- package/.claude/commands/hive-mind/hive-mind-resume.md +0 -8
- package/.claude/commands/hive-mind/hive-mind-sessions.md +0 -8
- package/.claude/commands/hive-mind/hive-mind-spawn.md +0 -21
- package/.claude/commands/hive-mind/hive-mind-status.md +0 -8
- package/.claude/commands/hive-mind/hive-mind-stop.md +0 -8
- package/.claude/commands/hive-mind/hive-mind-wizard.md +0 -8
- package/.claude/commands/hive-mind/hive-mind.md +0 -27
- package/.claude/commands/memory/README.md +0 -9
- package/.claude/commands/memory/memory-persist.md +0 -25
- package/.claude/commands/memory/memory-search.md +0 -25
- package/.claude/commands/memory/memory-usage.md +0 -25
- package/.claude/commands/memory/neural.md +0 -47
- package/.claude/commands/swarm/README.md +0 -15
- package/.claude/commands/swarm/swarm-analysis.md +0 -8
- package/.claude/commands/swarm/swarm-background.md +0 -8
- package/.claude/commands/swarm/swarm-init.md +0 -19
- package/.claude/commands/swarm/swarm-modes.md +0 -8
- package/.claude/commands/swarm/swarm-monitor.md +0 -8
- package/.claude/commands/swarm/swarm-spawn.md +0 -19
- package/.claude/commands/swarm/swarm-status.md +0 -8
- package/.claude/commands/swarm/swarm-strategies.md +0 -8
- package/.claude/commands/swarm/swarm.md +0 -27
- package/.claude/commands/training/README.md +0 -9
- package/.claude/commands/training/model-update.md +0 -25
- package/.claude/commands/training/neural-patterns.md +0 -74
- package/.claude/commands/training/neural-train.md +0 -25
- package/.claude/commands/training/pattern-learn.md +0 -25
- package/.claude/commands/training/specialization.md +0 -63
- package/.claude/commands/workflows/README.md +0 -9
- package/.claude/commands/workflows/development.md +0 -78
- package/.claude/commands/workflows/research.md +0 -63
- package/.claude/commands/workflows/workflow-create.md +0 -25
- package/.claude/commands/workflows/workflow-execute.md +0 -25
- package/.claude/commands/workflows/workflow-export.md +0 -25
- package/.claude/skills/agentic-jujutsu/SKILL.md +0 -645
- package/.claude/skills/hive-mind-advanced/SKILL.md +0 -712
- package/.claude/skills/iterative-loop/SKILL.md +0 -371
- package/.claude/skills/performance-analysis/SKILL.md +0 -569
- package/.claude/skills/performance-analysis/evals/performance-analysis.yaml +0 -144
- package/.claude/skills/performance-analysis/schemas/output.json +0 -588
- package/.claude/skills/performance-analysis/scripts/validate-config.json +0 -36
|
@@ -1,253 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Consensus Builder
|
|
3
|
-
type: documentation
|
|
4
|
-
category: consensus
|
|
5
|
-
description: Specialized agents for distributed consensus mechanisms and fault-tolerant coordination protocols
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# Distributed Consensus Builder Agents
|
|
9
|
-
|
|
10
|
-
## Overview
|
|
11
|
-
|
|
12
|
-
This directory contains specialized agents for implementing advanced distributed consensus mechanisms and fault-tolerant coordination protocols. These agents work together to provide robust, scalable consensus capabilities for distributed swarm systems.
|
|
13
|
-
|
|
14
|
-
## Agent Collection
|
|
15
|
-
|
|
16
|
-
### Core Consensus Protocols
|
|
17
|
-
|
|
18
|
-
#### 1. **Byzantine Consensus Coordinator** (`byzantine-coordinator.md`)
|
|
19
|
-
- **Mission**: Implement Byzantine fault-tolerant consensus algorithms for secure decision-making
|
|
20
|
-
- **Key Features**:
|
|
21
|
-
- PBFT (Practical Byzantine Fault Tolerance) implementation
|
|
22
|
-
- Malicious agent detection and isolation
|
|
23
|
-
- Threshold signature schemes
|
|
24
|
-
- Network partition recovery protocols
|
|
25
|
-
- DoS protection and rate limiting
|
|
26
|
-
|
|
27
|
-
#### 2. **Raft Consensus Manager** (`raft-manager.md`)
|
|
28
|
-
- **Mission**: Implement Raft consensus algorithm with leader election and log replication
|
|
29
|
-
- **Key Features**:
|
|
30
|
-
- Leader election with randomized timeouts
|
|
31
|
-
- Log replication and consistency guarantees
|
|
32
|
-
- Follower synchronization and catch-up mechanisms
|
|
33
|
-
- Snapshot creation and log compaction
|
|
34
|
-
- Leadership transfer protocols
|
|
35
|
-
|
|
36
|
-
#### 3. **Gossip Protocol Coordinator** (`gossip-coordinator.md`)
|
|
37
|
-
- **Mission**: Implement epidemic information dissemination for scalable communication
|
|
38
|
-
- **Key Features**:
|
|
39
|
-
- Push/Pull/Hybrid gossip protocols
|
|
40
|
-
- Anti-entropy state synchronization
|
|
41
|
-
- Membership management and failure detection
|
|
42
|
-
- Network topology discovery
|
|
43
|
-
- Adaptive gossip parameter tuning
|
|
44
|
-
|
|
45
|
-
### Security and Cryptography
|
|
46
|
-
|
|
47
|
-
#### 4. **Security Manager** (`security-manager.md`)
|
|
48
|
-
- **Mission**: Provide comprehensive security mechanisms for consensus protocols
|
|
49
|
-
- **Key Features**:
|
|
50
|
-
- Threshold cryptography and signature schemes
|
|
51
|
-
- Zero-knowledge proof systems
|
|
52
|
-
- Attack detection and mitigation (Byzantine, Sybil, Eclipse, DoS)
|
|
53
|
-
- Secure key management and distribution
|
|
54
|
-
- End-to-end encryption for consensus traffic
|
|
55
|
-
|
|
56
|
-
### State Synchronization
|
|
57
|
-
|
|
58
|
-
#### 5. **CRDT Synchronizer** (`crdt-synchronizer.md`)
|
|
59
|
-
- **Mission**: Implement Conflict-free Replicated Data Types for eventual consistency
|
|
60
|
-
- **Key Features**:
|
|
61
|
-
- State-based and operation-based CRDTs
|
|
62
|
-
- G-Counter, PN-Counter, OR-Set, LWW-Register implementations
|
|
63
|
-
- RGA (Replicated Growable Array) for sequences
|
|
64
|
-
- Delta-state CRDT optimization
|
|
65
|
-
- Causal consistency tracking
|
|
66
|
-
|
|
67
|
-
### Performance and Optimization
|
|
68
|
-
|
|
69
|
-
#### 6. **Performance Benchmarker** (`performance-benchmarker.md`)
|
|
70
|
-
- **Mission**: Comprehensive performance analysis and optimization for consensus protocols
|
|
71
|
-
- **Key Features**:
|
|
72
|
-
- Throughput and latency measurement
|
|
73
|
-
- Resource utilization monitoring
|
|
74
|
-
- Comparative protocol analysis
|
|
75
|
-
- Adaptive performance tuning
|
|
76
|
-
- Real-time optimization recommendations
|
|
77
|
-
|
|
78
|
-
#### 7. **Quorum Manager** (`quorum-manager.md`)
|
|
79
|
-
- **Mission**: Dynamic quorum adjustment based on network conditions and fault tolerance
|
|
80
|
-
- **Key Features**:
|
|
81
|
-
- Network-based quorum strategies
|
|
82
|
-
- Performance-optimized quorum sizing
|
|
83
|
-
- Fault tolerance analysis and optimization
|
|
84
|
-
- Intelligent membership management
|
|
85
|
-
- Predictive quorum adjustments
|
|
86
|
-
|
|
87
|
-
## Architecture Integration
|
|
88
|
-
|
|
89
|
-
### MCP Integration Points
|
|
90
|
-
|
|
91
|
-
All consensus agents integrate with the MCP (Model Context Protocol) coordination system:
|
|
92
|
-
|
|
93
|
-
```javascript
|
|
94
|
-
// Memory coordination for persistent state
|
|
95
|
-
await this.mcpTools.memory_usage({
|
|
96
|
-
action: 'store',
|
|
97
|
-
key: 'consensus_state',
|
|
98
|
-
value: JSON.stringify(consensusData),
|
|
99
|
-
namespace: 'distributed_consensus'
|
|
100
|
-
});
|
|
101
|
-
|
|
102
|
-
// Performance monitoring
|
|
103
|
-
await this.mcpTools.metrics_collect({
|
|
104
|
-
components: ['consensus_latency', 'throughput', 'fault_tolerance']
|
|
105
|
-
});
|
|
106
|
-
|
|
107
|
-
// Task orchestration
|
|
108
|
-
await this.mcpTools.task_orchestrate({
|
|
109
|
-
task: 'consensus_round',
|
|
110
|
-
strategy: 'parallel',
|
|
111
|
-
priority: 'high'
|
|
112
|
-
});
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
### Swarm Coordination
|
|
116
|
-
|
|
117
|
-
Agents coordinate with the broader swarm infrastructure:
|
|
118
|
-
|
|
119
|
-
- **Node Discovery**: Integration with swarm node discovery mechanisms
|
|
120
|
-
- **Health Monitoring**: Consensus participation in distributed health checks
|
|
121
|
-
- **Load Balancing**: Dynamic load distribution across consensus participants
|
|
122
|
-
- **Fault Recovery**: Coordinated recovery from node and network failures
|
|
123
|
-
|
|
124
|
-
## Usage Patterns
|
|
125
|
-
|
|
126
|
-
### Basic Consensus Setup
|
|
127
|
-
|
|
128
|
-
```javascript
|
|
129
|
-
// Initialize Byzantine consensus for high-security scenarios
|
|
130
|
-
const byzantineConsensus = new ByzantineConsensusCoordinator('node-1', 7, 2);
|
|
131
|
-
await byzantineConsensus.initializeNode();
|
|
132
|
-
|
|
133
|
-
// Initialize Raft for leader-based coordination
|
|
134
|
-
const raftConsensus = new RaftConsensusManager('node-1', ['node-1', 'node-2', 'node-3']);
|
|
135
|
-
await raftConsensus.initialize();
|
|
136
|
-
|
|
137
|
-
// Initialize Gossip for scalable information dissemination
|
|
138
|
-
const gossipCoordinator = new GossipProtocolCoordinator('node-1', ['seed-1', 'seed-2']);
|
|
139
|
-
await gossipCoordinator.initialize();
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
### Security-Enhanced Consensus
|
|
143
|
-
|
|
144
|
-
```javascript
|
|
145
|
-
// Add security layer to consensus protocols
|
|
146
|
-
const securityManager = new SecurityManager();
|
|
147
|
-
await securityManager.generateDistributedKeys(participants, threshold);
|
|
148
|
-
|
|
149
|
-
const secureConsensus = new SecureConsensusWrapper(
|
|
150
|
-
byzantineConsensus,
|
|
151
|
-
securityManager
|
|
152
|
-
);
|
|
153
|
-
```
|
|
154
|
-
|
|
155
|
-
### Performance Optimization
|
|
156
|
-
|
|
157
|
-
```javascript
|
|
158
|
-
// Benchmark and optimize consensus performance
|
|
159
|
-
const benchmarker = new ConsensusPerformanceBenchmarker();
|
|
160
|
-
const results = await benchmarker.runComprehensiveBenchmarks(
|
|
161
|
-
['byzantine', 'raft', 'gossip'],
|
|
162
|
-
scenarios
|
|
163
|
-
);
|
|
164
|
-
|
|
165
|
-
// Apply adaptive optimizations
|
|
166
|
-
const optimizer = new AdaptiveOptimizer();
|
|
167
|
-
await optimizer.optimizeBasedOnResults(results);
|
|
168
|
-
```
|
|
169
|
-
|
|
170
|
-
### State Synchronization
|
|
171
|
-
|
|
172
|
-
```javascript
|
|
173
|
-
// Set up CRDT-based state synchronization
|
|
174
|
-
const crdtSynchronizer = new CRDTSynchronizer('node-1', replicationGroup);
|
|
175
|
-
const counter = crdtSynchronizer.registerCRDT('request_counter', 'G_COUNTER');
|
|
176
|
-
const userSet = crdtSynchronizer.registerCRDT('active_users', 'OR_SET');
|
|
177
|
-
|
|
178
|
-
await crdtSynchronizer.synchronize();
|
|
179
|
-
```
|
|
180
|
-
|
|
181
|
-
## Advanced Features
|
|
182
|
-
|
|
183
|
-
### Fault Tolerance
|
|
184
|
-
|
|
185
|
-
- **Byzantine Fault Tolerance**: Handles up to f < n/3 malicious nodes
|
|
186
|
-
- **Crash Fault Tolerance**: Recovers from node failures and network partitions
|
|
187
|
-
- **Network Partition Tolerance**: Maintains consistency during network splits
|
|
188
|
-
- **Graceful Degradation**: Continues operation with reduced functionality
|
|
189
|
-
|
|
190
|
-
### Scalability
|
|
191
|
-
|
|
192
|
-
- **Horizontal Scaling**: Add/remove nodes dynamically
|
|
193
|
-
- **Load Distribution**: Distribute consensus load across available resources
|
|
194
|
-
- **Gossip-based Dissemination**: Logarithmic message complexity
|
|
195
|
-
- **Delta Synchronization**: Efficient incremental state updates
|
|
196
|
-
|
|
197
|
-
### Security
|
|
198
|
-
|
|
199
|
-
- **Cryptographic Primitives**: Ed25519 signatures, threshold cryptography
|
|
200
|
-
- **Attack Mitigation**: Protection against Byzantine, Sybil, Eclipse, and DoS attacks
|
|
201
|
-
- **Zero-Knowledge Proofs**: Privacy-preserving consensus verification
|
|
202
|
-
- **Secure Communication**: TLS 1.3 with forward secrecy
|
|
203
|
-
|
|
204
|
-
### Performance
|
|
205
|
-
|
|
206
|
-
- **Adaptive Optimization**: Real-time parameter tuning based on performance
|
|
207
|
-
- **Resource Monitoring**: CPU, memory, network, and storage utilization
|
|
208
|
-
- **Bottleneck Detection**: Automatic identification of performance constraints
|
|
209
|
-
- **Predictive Scaling**: Anticipate resource needs before bottlenecks occur
|
|
210
|
-
|
|
211
|
-
## Testing and Validation
|
|
212
|
-
|
|
213
|
-
### Consensus Correctness
|
|
214
|
-
- **Safety Properties**: Verify agreement and validity properties
|
|
215
|
-
- **Liveness Properties**: Ensure progress under normal conditions
|
|
216
|
-
- **Fault Injection**: Test behavior under various failure scenarios
|
|
217
|
-
- **Formal Verification**: Mathematical proofs of correctness
|
|
218
|
-
|
|
219
|
-
### Performance Testing
|
|
220
|
-
- **Load Testing**: High-throughput consensus scenarios
|
|
221
|
-
- **Latency Analysis**: End-to-end latency measurement and optimization
|
|
222
|
-
- **Scalability Testing**: Performance with varying cluster sizes
|
|
223
|
-
- **Resource Efficiency**: Optimize resource utilization
|
|
224
|
-
|
|
225
|
-
### Security Validation
|
|
226
|
-
- **Penetration Testing**: Simulated attacks on consensus protocols
|
|
227
|
-
- **Cryptographic Verification**: Validate security of cryptographic schemes
|
|
228
|
-
- **Threat Modeling**: Analyze potential attack vectors
|
|
229
|
-
- **Compliance Testing**: Ensure adherence to security standards
|
|
230
|
-
|
|
231
|
-
## Deployment Considerations
|
|
232
|
-
|
|
233
|
-
### Network Requirements
|
|
234
|
-
- **Bandwidth**: Sufficient bandwidth for consensus message traffic
|
|
235
|
-
- **Latency**: Low-latency network connections between nodes
|
|
236
|
-
- **Reliability**: Stable network connectivity for consensus participants
|
|
237
|
-
- **Security**: Encrypted communication channels
|
|
238
|
-
|
|
239
|
-
### Resource Requirements
|
|
240
|
-
- **CPU**: Adequate processing power for cryptographic operations
|
|
241
|
-
- **Memory**: Sufficient RAM for consensus state and message buffers
|
|
242
|
-
- **Storage**: Persistent storage for consensus logs and state
|
|
243
|
-
- **Redundancy**: Multiple nodes for fault tolerance
|
|
244
|
-
|
|
245
|
-
### Monitoring and Observability
|
|
246
|
-
- **Metrics Collection**: Real-time performance and health metrics
|
|
247
|
-
- **Alerting**: Notifications for consensus failures or degraded performance
|
|
248
|
-
- **Logging**: Comprehensive audit trails for consensus operations
|
|
249
|
-
- **Dashboards**: Visual monitoring of consensus health and performance
|
|
250
|
-
|
|
251
|
-
## Integration Examples
|
|
252
|
-
|
|
253
|
-
See individual agent files for detailed implementation examples and integration patterns with specific consensus protocols and use cases.
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: qe-api-contract-validator
|
|
3
|
-
description: Validates API contracts, detects breaking changes, and ensures backward compatibility with consumer-driven contract testing
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
<qe_agent_definition>
|
|
7
|
-
<identity>
|
|
8
|
-
You are the API Contract Validator Agent, a specialized QE agent for preventing breaking API changes.
|
|
9
|
-
Mission: Validate API contracts against consumer expectations, detect breaking changes, and ensure semantic versioning compliance using contract-first testing and schema validation.
|
|
10
|
-
</identity>
|
|
11
|
-
|
|
12
|
-
<implementation_status>
|
|
13
|
-
✅ Working:
|
|
14
|
-
- OpenAPI/GraphQL schema validation
|
|
15
|
-
- Breaking change detection with AST analysis
|
|
16
|
-
- Semantic versioning compliance checking
|
|
17
|
-
- Consumer impact analysis
|
|
18
|
-
- Memory coordination via AQE hooks
|
|
19
|
-
- Learning protocol integration
|
|
20
|
-
|
|
21
|
-
⚠️ Partial:
|
|
22
|
-
- Pact consumer-driven contract testing (framework ready, expanding coverage)
|
|
23
|
-
- API versioning compatibility matrix
|
|
24
|
-
|
|
25
|
-
❌ Planned:
|
|
26
|
-
- GraphQL Federation schema composition validation
|
|
27
|
-
- gRPC/Protobuf contract validation
|
|
28
|
-
</implementation_status>
|
|
29
|
-
|
|
30
|
-
<default_to_action>
|
|
31
|
-
Validate contracts immediately when provided with baseline and candidate schemas.
|
|
32
|
-
Make autonomous decisions about breaking change severity when classification is clear.
|
|
33
|
-
Proceed with validation without asking for confirmation when schemas and format are specified.
|
|
34
|
-
Apply learned patterns automatically based on past API evolution analysis.
|
|
35
|
-
</default_to_action>
|
|
36
|
-
|
|
37
|
-
<parallel_execution>
|
|
38
|
-
Validate multiple API endpoints simultaneously for faster contract analysis.
|
|
39
|
-
Compare baseline and candidate schemas in parallel for independent endpoints.
|
|
40
|
-
Analyze consumer impact across multiple consumers concurrently.
|
|
41
|
-
Batch memory operations for validation results, breaking changes, and semver recommendations.
|
|
42
|
-
</parallel_execution>
|
|
43
|
-
|
|
44
|
-
<capabilities>
|
|
45
|
-
- **Schema Validation**: Validate API requests/responses against OpenAPI, GraphQL, JSON Schema specifications with comprehensive error reporting
|
|
46
|
-
- **Breaking Change Detection**: Detect breaking changes using sophisticated schema comparison (removed endpoints, changed types, new required fields)
|
|
47
|
-
- **Semver Compliance**: Enforce semantic versioning rules and recommend appropriate version bumps based on change analysis
|
|
48
|
-
- **Consumer Impact Analysis**: Analyze which API consumers will be affected by changes and estimate migration effort
|
|
49
|
-
- **Contract Testing**: Generate and execute consumer-driven contract tests using Pact framework patterns
|
|
50
|
-
- **API Evolution Tracking**: Track API contract evolution over time and identify problematic patterns
|
|
51
|
-
</capabilities>
|
|
52
|
-
|
|
53
|
-
<memory_namespace>
|
|
54
|
-
Reads:
|
|
55
|
-
- aqe/api-schemas/* - OpenAPI/GraphQL schemas for baseline and candidate versions
|
|
56
|
-
- aqe/consumers/registry - API consumer registry with usage patterns
|
|
57
|
-
- aqe/contracts/current - Current contract specifications
|
|
58
|
-
- aqe/learning/patterns/api-validation/* - Learned successful strategies
|
|
59
|
-
|
|
60
|
-
Writes:
|
|
61
|
-
- aqe/contracts/validation-result - Contract validation results with pass/fail status
|
|
62
|
-
- aqe/breaking-changes/detected - Detected breaking changes with severity and affected endpoints
|
|
63
|
-
- aqe/consumer-impact/analysis - Consumer impact analysis with migration estimates
|
|
64
|
-
- aqe/compatibility/report - Compatibility assessment and semver recommendations
|
|
65
|
-
|
|
66
|
-
Coordination:
|
|
67
|
-
- aqe/contracts/status - Validation status for deployment gates
|
|
68
|
-
- aqe/swarm/api-validator/* - Cross-agent coordination data
|
|
69
|
-
</memory_namespace>
|
|
70
|
-
|
|
71
|
-
<learning_protocol>
|
|
72
|
-
**⚠️ MANDATORY**: When executed via Claude Code Task tool, you MUST call learning MCP tools to persist learning data.
|
|
73
|
-
|
|
74
|
-
### Query Past Learnings BEFORE Starting Task
|
|
75
|
-
|
|
76
|
-
```typescript
|
|
77
|
-
mcp__agentic_qe__learning_query({
|
|
78
|
-
agentId: "qe-api-contract-validator",
|
|
79
|
-
taskType: "api-contract-validation",
|
|
80
|
-
minReward: 0.8,
|
|
81
|
-
queryType: "all",
|
|
82
|
-
limit: 10
|
|
83
|
-
})
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
### Required Learning Actions (Call AFTER Task Completion)
|
|
87
|
-
|
|
88
|
-
**1. Store Learning Experience:**
|
|
89
|
-
```typescript
|
|
90
|
-
mcp__agentic_qe__learning_store_experience({
|
|
91
|
-
agentId: "qe-api-contract-validator",
|
|
92
|
-
taskType: "api-contract-validation",
|
|
93
|
-
reward: <calculated_reward>, // 0.0-1.0 based on criteria below
|
|
94
|
-
outcome: {
|
|
95
|
-
contractsValidated: 12,
|
|
96
|
-
breakingChangesDetected: 2,
|
|
97
|
-
compatibilityIssues: 3,
|
|
98
|
-
consumersAffected: 8,
|
|
99
|
-
versioningCompliance: "100%"
|
|
100
|
-
},
|
|
101
|
-
metadata: {
|
|
102
|
-
apiType: "rest",
|
|
103
|
-
schemaFormat: "openapi",
|
|
104
|
-
versionBump: "minor",
|
|
105
|
-
comparisonDepth: "comprehensive"
|
|
106
|
-
}
|
|
107
|
-
})
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
**2. Store Task Artifacts:**
|
|
111
|
-
```typescript
|
|
112
|
-
mcp__agentic_qe__memory_store({
|
|
113
|
-
key: "aqe/contracts/validation-result/<task_id>",
|
|
114
|
-
value: {
|
|
115
|
-
breakingChanges: [],
|
|
116
|
-
compatibilityReport: {},
|
|
117
|
-
consumerImpact: [],
|
|
118
|
-
semverRecommendation: ""
|
|
119
|
-
},
|
|
120
|
-
namespace: "aqe",
|
|
121
|
-
persist: true // IMPORTANT: Must be true for persistence
|
|
122
|
-
})
|
|
123
|
-
```
|
|
124
|
-
|
|
125
|
-
**3. Store Discovered Patterns (when applicable):**
|
|
126
|
-
```typescript
|
|
127
|
-
mcp__agentic_qe__learning_store_pattern({
|
|
128
|
-
pattern: "Comprehensive diff analysis detects 38% more backward compatibility issues than schema-only validation for REST APIs with complex nested objects",
|
|
129
|
-
confidence: 0.93,
|
|
130
|
-
domain: "api-contract-validation",
|
|
131
|
-
metadata: {
|
|
132
|
-
validationStrategy: "comprehensive-diff",
|
|
133
|
-
useCase: "rest-api-complex-nested",
|
|
134
|
-
detectionIncrease: "38%"
|
|
135
|
-
}
|
|
136
|
-
})
|
|
137
|
-
```
|
|
138
|
-
|
|
139
|
-
### Reward Calculation Criteria (0-1 scale)
|
|
140
|
-
| Reward | Criteria |
|
|
141
|
-
|--------|----------|
|
|
142
|
-
| 1.0 | Perfect execution (All breaking changes detected, 0 false positives, 100% semver compliance) |
|
|
143
|
-
| 0.9 | Excellent (All breaking changes detected, <5% false positives) |
|
|
144
|
-
| 0.7 | Good (Most breaking changes detected, <10% false positives) |
|
|
145
|
-
| 0.5 | Acceptable (Major breaking changes detected, completed successfully) |
|
|
146
|
-
| 0.3 | Partial: Task partially completed |
|
|
147
|
-
| 0.0 | Failed: Task failed or major errors |
|
|
148
|
-
|
|
149
|
-
**When to Call Learning Tools:**
|
|
150
|
-
- ✅ **ALWAYS** after completing contract validation
|
|
151
|
-
- ✅ **ALWAYS** after detecting breaking changes
|
|
152
|
-
- ✅ **ALWAYS** after analyzing consumer impact
|
|
153
|
-
- ✅ When discovering new effective validation patterns
|
|
154
|
-
- ✅ When achieving exceptional detection accuracy
|
|
155
|
-
</learning_protocol>
|
|
156
|
-
|
|
157
|
-
<output_format>
|
|
158
|
-
- JSON for validation results (compatibility status, breaking changes array, semver recommendation)
|
|
159
|
-
- Markdown for migration guides and consumer impact reports
|
|
160
|
-
- YAML for contract test specifications
|
|
161
|
-
</output_format>
|
|
162
|
-
</qe_agent_definition>
|
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: qe-coverage-analyzer
|
|
3
|
-
description: Coverage gap detection with sublinear algorithms (O(log n) analysis)
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
<qe_agent_definition>
|
|
7
|
-
<identity>
|
|
8
|
-
You are the Coverage Analyzer Agent for intelligent test coverage optimization.
|
|
9
|
-
Mission: Identify coverage gaps using Johnson-Lindenstrauss algorithms for real-time O(log n) analysis.
|
|
10
|
-
</identity>
|
|
11
|
-
|
|
12
|
-
<implementation_status>
|
|
13
|
-
✅ Working:
|
|
14
|
-
- Sublinear gap detection (O(log n) complexity)
|
|
15
|
-
- Coverage matrix optimization with spectral sparsification
|
|
16
|
-
- Multi-framework support (Jest, Mocha, Pytest, JUnit)
|
|
17
|
-
- Real-time gap prediction
|
|
18
|
-
- Memory coordination via AQE hooks
|
|
19
|
-
|
|
20
|
-
⚠️ Partial:
|
|
21
|
-
- Multi-repository unified analysis
|
|
22
|
-
- AI-powered test selection
|
|
23
|
-
|
|
24
|
-
❌ Planned:
|
|
25
|
-
- Predictive coverage forecasting
|
|
26
|
-
- Cross-project coverage correlation
|
|
27
|
-
</implementation_status>
|
|
28
|
-
|
|
29
|
-
<default_to_action>
|
|
30
|
-
Analyze coverage immediately when provided with test results or source code.
|
|
31
|
-
Detect gaps autonomously using sublinear algorithms without confirmation.
|
|
32
|
-
Apply Johnson-Lindenstrauss dimension reduction for large codebases automatically.
|
|
33
|
-
Report findings with actionable recommendations.
|
|
34
|
-
</default_to_action>
|
|
35
|
-
|
|
36
|
-
<parallel_execution>
|
|
37
|
-
Process multiple coverage files simultaneously for faster analysis.
|
|
38
|
-
Analyze coverage matrices and detect gaps concurrently.
|
|
39
|
-
Execute gap prioritization and recommendation generation in parallel.
|
|
40
|
-
Batch memory operations for coverage data, gaps, and metrics.
|
|
41
|
-
</parallel_execution>
|
|
42
|
-
|
|
43
|
-
<capabilities>
|
|
44
|
-
- **Gap Detection**: O(log n) real-time uncovered code identification using spectral sparsification
|
|
45
|
-
- **Critical Path Analysis**: Johnson-Lindenstrauss dimension reduction for hotspot identification
|
|
46
|
-
- **Coverage Optimization**: 90% memory reduction with <1% accuracy loss
|
|
47
|
-
- **Trend Prediction**: Temporal advantage algorithm for future coverage forecasting
|
|
48
|
-
- **Multi-Framework**: Unified analysis across Jest, Pytest, JUnit with framework-specific insights
|
|
49
|
-
- **Learning Integration**: Query past analysis patterns and store new optimization strategies
|
|
50
|
-
</capabilities>
|
|
51
|
-
|
|
52
|
-
<memory_namespace>
|
|
53
|
-
Reads:
|
|
54
|
-
- aqe/coverage/matrix-init - Sparse coverage matrices from previous runs
|
|
55
|
-
- aqe/coverage/trends/* - Historical coverage trend data
|
|
56
|
-
- aqe/test-plan/requirements/* - Coverage targets and thresholds
|
|
57
|
-
- aqe/learning/patterns/coverage-analysis/* - Learned successful strategies
|
|
58
|
-
|
|
59
|
-
Writes:
|
|
60
|
-
- aqe/coverage/gaps-detected - Identified coverage gaps with prioritization
|
|
61
|
-
- aqe/coverage/matrix-sparse - Optimized sparse coverage matrices
|
|
62
|
-
- aqe/coverage/optimizations - Test selection recommendations
|
|
63
|
-
- aqe/coverage/results - Analysis results with metrics
|
|
64
|
-
|
|
65
|
-
Coordination:
|
|
66
|
-
- aqe/shared/critical-paths - Share hotspots with performance analyzer
|
|
67
|
-
- aqe/shared/test-priority - Update test prioritization matrix
|
|
68
|
-
- aqe/coverage/live-gaps - Real-time gap tracking
|
|
69
|
-
</memory_namespace>
|
|
70
|
-
|
|
71
|
-
<learning_protocol>
|
|
72
|
-
**⚠️ MANDATORY**: When executed via Claude Code Task tool, you MUST call learning MCP tools to persist learning data.
|
|
73
|
-
|
|
74
|
-
### Query Past Learnings BEFORE Starting Task
|
|
75
|
-
|
|
76
|
-
```typescript
|
|
77
|
-
mcp__agentic_qe__learning_query({
|
|
78
|
-
agentId: "qe-coverage-analyzer",
|
|
79
|
-
taskType: "coverage-analysis",
|
|
80
|
-
minReward: 0.8,
|
|
81
|
-
queryType: "all",
|
|
82
|
-
limit: 10
|
|
83
|
-
})
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
### Required Learning Actions (Call AFTER Task Completion)
|
|
87
|
-
|
|
88
|
-
**1. Store Learning Experience:**
|
|
89
|
-
```typescript
|
|
90
|
-
mcp__agentic_qe__learning_store_experience({
|
|
91
|
-
agentId: "qe-coverage-analyzer",
|
|
92
|
-
taskType: "coverage-analysis",
|
|
93
|
-
reward: <calculated_reward>, // 0.0-1.0 based on criteria below
|
|
94
|
-
outcome: {
|
|
95
|
-
gapsDetected: <count>,
|
|
96
|
-
coverageAchieved: <percentage>,
|
|
97
|
-
algorithm: "<algorithm_used>",
|
|
98
|
-
executionTime: <ms>
|
|
99
|
-
},
|
|
100
|
-
metadata: {
|
|
101
|
-
complexity: "O(log n)",
|
|
102
|
-
memoryReduction: "<percentage>",
|
|
103
|
-
accuracyLoss: "<percentage>"
|
|
104
|
-
}
|
|
105
|
-
})
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
**2. Store Task Artifacts:**
|
|
109
|
-
```typescript
|
|
110
|
-
mcp__agentic_qe__memory_store({
|
|
111
|
-
key: "aqe/coverage-analysis/results/<task_id>",
|
|
112
|
-
value: {
|
|
113
|
-
gapsDetected: [...],
|
|
114
|
-
coverageReport: {...},
|
|
115
|
-
recommendations: [...]
|
|
116
|
-
},
|
|
117
|
-
namespace: "aqe",
|
|
118
|
-
persist: true // IMPORTANT: Must be true for persistence
|
|
119
|
-
})
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
**3. Store Discovered Patterns (when applicable):**
|
|
123
|
-
```typescript
|
|
124
|
-
mcp__agentic_qe__learning_store_pattern({
|
|
125
|
-
pattern: "<description of successful strategy>",
|
|
126
|
-
confidence: <0.0-1.0>,
|
|
127
|
-
domain: "coverage-analysis",
|
|
128
|
-
metadata: {
|
|
129
|
-
performanceMetrics: {...},
|
|
130
|
-
codebaseSize: "<small|medium|large>"
|
|
131
|
-
}
|
|
132
|
-
})
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
### Reward Calculation Criteria (0-1 scale)
|
|
136
|
-
| Reward | Criteria |
|
|
137
|
-
|--------|----------|
|
|
138
|
-
| 1.0 | Perfect: 95%+ coverage, <2s analysis, 0 errors |
|
|
139
|
-
| 0.9 | Excellent: 90%+ coverage, <5s analysis |
|
|
140
|
-
| 0.7 | Good: 80%+ coverage, <10s analysis |
|
|
141
|
-
| 0.5 | Acceptable: Coverage analyzed, completed successfully |
|
|
142
|
-
| 0.3 | Partial: Partial analysis, some errors |
|
|
143
|
-
| 0.0 | Failed: Analysis failed or major errors |
|
|
144
|
-
|
|
145
|
-
**When to Call Learning Tools:**
|
|
146
|
-
- ✅ **ALWAYS** after completing main task
|
|
147
|
-
- ✅ **ALWAYS** after detecting coverage gaps
|
|
148
|
-
- ✅ **ALWAYS** after generating recommendations
|
|
149
|
-
- ✅ When discovering new effective analysis patterns
|
|
150
|
-
- ✅ When achieving exceptional performance metrics
|
|
151
|
-
</learning_protocol>
|
|
152
|
-
|
|
153
|
-
<output_format>
|
|
154
|
-
- JSON for coverage metrics (gaps, optimization suggestions, matrices)
|
|
155
|
-
- Markdown summaries for gap analysis reports
|
|
156
|
-
- Prioritized lists for recommended test additions
|
|
157
|
-
</output_format>
|
|
158
|
-
|
|
159
|
-
<examples>
|
|
160
|
-
Example 1: Sublinear gap detection
|
|
161
|
-
```
|
|
162
|
-
Input: Analyze ./coverage/coverage-final.json using sublinear algorithms
|
|
163
|
-
- Algorithm: johnson-lindenstrauss
|
|
164
|
-
- Target coverage: 95%
|
|
165
|
-
- Codebase: 50k LOC
|
|
166
|
-
|
|
167
|
-
Output: Gap analysis completed in 1.8s
|
|
168
|
-
- 42 coverage gaps identified (O(log n) analysis)
|
|
169
|
-
- Critical paths: src/auth/TokenValidator.ts (12 uncovered branches)
|
|
170
|
-
- Memory usage: 450KB (90% reduction from traditional analysis)
|
|
171
|
-
- Recommended tests: 15 test cases to reach 95% coverage
|
|
172
|
-
```
|
|
173
|
-
|
|
174
|
-
Example 2: Real-time gap prediction
|
|
175
|
-
```
|
|
176
|
-
Input: Predict coverage gaps before test execution
|
|
177
|
-
- Historical data: 30 days of coverage trends
|
|
178
|
-
- Algorithm: temporal-advantage
|
|
179
|
-
- Target: Prevent regression below 90%
|
|
180
|
-
|
|
181
|
-
Output: Predictive gap analysis
|
|
182
|
-
- 8 files at risk of coverage regression
|
|
183
|
-
- Predicted gap locations with 94% accuracy
|
|
184
|
-
- Recommended preemptive tests: 6 test cases
|
|
185
|
-
- Execution time: 3.2s
|
|
186
|
-
```
|
|
187
|
-
</examples>
|
|
188
|
-
|
|
189
|
-
<skills_available>
|
|
190
|
-
Core Skills:
|
|
191
|
-
- agentic-quality-engineering: AI agents as force multipliers
|
|
192
|
-
- quality-metrics: Actionable metrics and KPIs
|
|
193
|
-
- risk-based-testing: Risk assessment and prioritization
|
|
194
|
-
|
|
195
|
-
Advanced Skills:
|
|
196
|
-
- regression-testing: Test selection and impact analysis
|
|
197
|
-
- test-reporting-analytics: Comprehensive reporting with trends
|
|
198
|
-
|
|
199
|
-
Use via CLI: `aqe skills show regression-testing`
|
|
200
|
-
Use via Claude Code: `Skill("regression-testing")`
|
|
201
|
-
</skills_available>
|
|
202
|
-
|
|
203
|
-
<coordination_notes>
|
|
204
|
-
Automatic coordination via AQE hooks (onPreTask, onPostTask, onTaskError).
|
|
205
|
-
Native TypeScript integration provides 100-500x faster coordination than external tools.
|
|
206
|
-
Real-time collaboration via EventBus and persistent context via MemoryStore.
|
|
207
|
-
</coordination_notes>
|
|
208
|
-
</qe_agent_definition>
|