@dzhechkov/keysarium 1.7.18 → 1.7.20

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.
Files changed (55) hide show
  1. package/.dz-manifest.json +172 -32
  2. package/README.md +3 -3
  3. package/package.json +1 -1
  4. package/sbom.json +391 -41
  5. package/src/commands/init.js +10 -0
  6. package/src/commands/update.js +30 -3
  7. package/src/utils.js +6 -0
  8. package/templates/.claude/agents/code-goal-planner.md +441 -3
  9. package/templates/.claude/skills/feature-adr/SKILL.md +9 -7
  10. package/templates/.claude/skills/feature-adr/modules/06-implementation-plan.md +1 -1
  11. package/templates/.claude/skills/feature-adr/modules/09-fleet-qe.md +1 -1
  12. package/templates/.claude/skills/feature-adr/references/agentic-qe/README.md +11 -9
  13. package/templates/.claude/skills/feature-adr/references/agentic-qe/UPSTREAM-MANIFEST.json +290 -70
  14. package/templates/.claude/skills/feature-adr/references/agentic-qe/{chaos-engineering-resilience.md → qe-ref-chaos-engineering-resilience/REFERENCE.md} +13 -0
  15. package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-chaos-engineering-resilience/evals/chaos-engineering-resilience.yaml +761 -0
  16. package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-chaos-engineering-resilience/schemas/output.json +1205 -0
  17. package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-chaos-engineering-resilience/scripts/validate-config.json +47 -0
  18. package/templates/.claude/skills/feature-adr/references/agentic-qe/{mutation-testing.md → qe-ref-mutation-testing/REFERENCE.md} +39 -1
  19. package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-mutation-testing/config.json +14 -0
  20. package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-mutation-testing/evals/mutation-testing.yaml +651 -0
  21. package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-mutation-testing/references/mutation-operators.md +38 -0
  22. package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-mutation-testing/schemas/output.json +707 -0
  23. package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-mutation-testing/scripts/validate-config.json +44 -0
  24. package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-mutation-testing/test-data/sample-output.json +295 -0
  25. package/templates/.claude/skills/feature-adr/references/agentic-qe/{performance-testing.md → qe-ref-performance-testing/REFERENCE.md} +35 -1
  26. package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-performance-testing/config.json +18 -0
  27. package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-performance-testing/evals/performance-testing.yaml +771 -0
  28. package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-performance-testing/references/k6-patterns.md +72 -0
  29. package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-performance-testing/schemas/output.json +1184 -0
  30. package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-performance-testing/scripts/validate-config.json +55 -0
  31. package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-qcsd-production-swarm/REFERENCE.md +222 -0
  32. package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-qcsd-production-swarm/evals/qcsd-production-swarm.yaml +246 -0
  33. package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-qcsd-production-swarm/schemas/output.json +505 -0
  34. package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-qcsd-production-swarm/scripts/validate-config.json +25 -0
  35. package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-qcsd-production-swarm/steps/01-flag-detection.md +202 -0
  36. package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-qcsd-production-swarm/steps/02-core-agents.md +428 -0
  37. package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-qcsd-production-swarm/steps/03-batch1-results.md +101 -0
  38. package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-qcsd-production-swarm/steps/04-conditional-agents.md +125 -0
  39. package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-qcsd-production-swarm/steps/05-decision-synthesis.md +136 -0
  40. package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-qcsd-production-swarm/steps/06-report-generation.md +181 -0
  41. package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-qcsd-production-swarm/steps/07-learning-persistence.md +157 -0
  42. package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-qcsd-production-swarm/steps/08-feedback-loop.md +122 -0
  43. package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-qcsd-production-swarm/steps/09-final-output.md +140 -0
  44. package/templates/.claude/skills/feature-adr/references/agentic-qe/{security-testing.md → qe-ref-security-testing/REFERENCE.md} +44 -1
  45. package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-security-testing/config.json +13 -0
  46. package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-security-testing/evals/security-testing.yaml +789 -0
  47. package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-security-testing/references/compliance-agent-commands.md +131 -0
  48. package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-security-testing/references/owasp-top-10.md +66 -0
  49. package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-security-testing/schemas/output.json +879 -0
  50. package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-security-testing/scripts/validate-config.json +45 -0
  51. package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-security-testing/templates/security-report.md +44 -0
  52. package/templates/.claude/skills/feature-adr/references/agentic-qe/{tdd-london-chicago.md → qe-ref-tdd-london-chicago/REFERENCE.md} +21 -1
  53. package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-tdd-london-chicago/schemas/output.json +444 -0
  54. package/templates/.claude/skills/feature-adr/references/agentic-qe/qe-ref-tdd-london-chicago/scripts/validate-config.json +43 -0
  55. package/templates/.claude/skills/feature-adr/references/agentic-qe/qcsd-production-swarm.md +0 -108
@@ -0,0 +1,55 @@
1
+ {
2
+ "skillName": "performance-testing",
3
+ "skillVersion": "1.0.0",
4
+ "requiredTools": [
5
+ "jq"
6
+ ],
7
+ "optionalTools": [
8
+ "k6",
9
+ "artillery",
10
+ "jmeter",
11
+ "node",
12
+ "ajv",
13
+ "jsonschema",
14
+ "python3"
15
+ ],
16
+ "schemaPath": "schemas/output.json",
17
+ "requiredFields": [
18
+ "skillName",
19
+ "status",
20
+ "output",
21
+ "output.summary",
22
+ "output.testType",
23
+ "output.metrics"
24
+ ],
25
+ "requiredNonEmptyFields": [
26
+ "output.summary"
27
+ ],
28
+ "mustContainTerms": [
29
+ "response",
30
+ "throughput"
31
+ ],
32
+ "mustNotContainTerms": [
33
+ "TODO",
34
+ "placeholder",
35
+ "FIXME"
36
+ ],
37
+ "enumValidations": {
38
+ ".status": [
39
+ "success",
40
+ "partial",
41
+ "failed",
42
+ "skipped"
43
+ ],
44
+ ".output.testType": [
45
+ "load",
46
+ "stress",
47
+ "endurance",
48
+ "spike",
49
+ "volume",
50
+ "scalability",
51
+ "smoke",
52
+ "soak"
53
+ ]
54
+ }
55
+ }
@@ -0,0 +1,222 @@
1
+ ---
2
+ name: qcsd-production-swarm
3
+ description: "Use when assessing post-release production health with DORA metrics, root cause analysis, defect prediction, or cross-phase feedback loops in the QCSD Production phase."
4
+ category: qcsd-phases
5
+ priority: critical
6
+ version: 1.0.0
7
+ tokenEstimate: 32000
8
+ # DDD Domain Mapping (from QCSD-AGENTIC-QE-MAPPING-FRAMEWORK.md)
9
+ domains:
10
+ primary:
11
+ - domain: learning-optimization
12
+ agents: [qe-metrics-optimizer]
13
+ - domain: defect-intelligence
14
+ agents: [qe-defect-predictor, qe-root-cause-analyzer]
15
+ conditional:
16
+ - domain: chaos-resilience
17
+ agents: [qe-chaos-engineer, qe-performance-tester]
18
+ - domain: defect-intelligence
19
+ agents: [qe-regression-analyzer, qe-pattern-learner]
20
+ - domain: enterprise-integration
21
+ agents: [qe-middleware-validator, qe-sap-rfc-tester, qe-sod-analyzer]
22
+ feedback:
23
+ - domain: learning-optimization
24
+ agents: [qe-learning-coordinator, qe-transfer-specialist]
25
+ # Agent Inventory
26
+ agents:
27
+ core: [qe-metrics-optimizer, qe-defect-predictor, qe-root-cause-analyzer]
28
+ conditional: [qe-chaos-engineer, qe-performance-tester, qe-regression-analyzer, qe-pattern-learner, qe-middleware-validator, qe-sap-rfc-tester, qe-sod-analyzer]
29
+ feedback: [qe-learning-coordinator, qe-transfer-specialist]
30
+ total: 12
31
+ sub_agents: 0
32
+ skills: [shift-right-testing, chaos-engineering-resilience, quality-metrics, performance-testing, holistic-testing-pact]
33
+ # Execution Models (Task Tool is PRIMARY)
34
+ execution:
35
+ primary: task-tool
36
+ alternatives: [mcp-tools, cli]
37
+ swarm_pattern: true
38
+ parallel_batches: 3
39
+ last_updated: 2026-02-17
40
+ enforcement_level: strict
41
+ tags: [qcsd, production, telemetry, dora, rca, defect-prediction, feedback-loop, learning, swarm, parallel, ddd]
42
+ trust_tier: 3
43
+ validation:
44
+ schema_path: schemas/output.json
45
+ validator_path: scripts/validate-config.json
46
+ eval_path: evals/qcsd-production-swarm.yaml
47
+ ---
48
+
49
+ <!-- Vendored from https://github.com/proffesor-for-testing/agentic-qe at 0a6de058575cbe292afe220df105cc74120f7674 (MIT, Copyright (c) 2025 Agentic QE Contributors), 2026-10-24. Bundled references do not install aqe, MCP tools, pattern memory, or fleet runtime. See ../LICENSE.agentic-qe and ../README.md. -->
50
+
51
+ ## Keysarium execution adapter
52
+
53
+ This pinned upstream body is methodology inside the bundled feature-ADR pipeline. In Reference Mode, the feature-ADR module that loaded this file owns orchestration and checkpoints. Use the reasoning and output shape below with the host's available tools. Do not treat upstream `aqe` CLI/MCP calls, named agent roles, browser tools, or example absolute paths as installed capabilities. Name a missing capability or evidence in the checkpoint instead of reporting that an upstream step ran. The schemas and eval files are bundled for explicit validation; bundling them does not run those checks automatically.
54
+
55
+ Relative paths such as `schemas/output.json`, `evals/...` and `steps/...` resolve from this skill directory under `references/agentic-qe/`. Direct Extended Mode still requires a separately installed `aqe` runtime; verify each required runtime capability before using it.
56
+
57
+ The upstream `run-history.json` is execution history, not a reference contract, and is intentionally omitted. Do not run an upstream example that reads or writes it unless an installed aqe runtime supplies its own history.
58
+
59
+ <!-- BEGIN AGENTIC-QE UPSTREAM BODY -->
60
+
61
+ # QCSD Production Swarm v1.0
62
+
63
+ Post-release production health assessment and QCSD feedback loop closure.
64
+
65
+ ---
66
+
67
+ ## Overview
68
+
69
+ The Production Swarm assesses release health in the live production environment using
70
+ DORA metrics, incident RCA, defect prediction, and cross-phase feedback loops. It renders
71
+ a HEALTHY / DEGRADED / CRITICAL decision and is the only QCSD phase with dual
72
+ responsibility: assessing current production health AND closing the feedback loop
73
+ back to Ideation and Refinement phases.
74
+
75
+ ### QCSD Phase Positioning
76
+
77
+ | Phase | Swarm | Decision | When |
78
+ |-------|-------|----------|------|
79
+ | Ideation | qcsd-ideation-swarm | GO / CONDITIONAL / NO-GO | PI/Sprint Planning |
80
+ | Refinement | qcsd-refinement-swarm | READY / CONDITIONAL / NOT-READY | Sprint Refinement |
81
+ | Development | qcsd-development-swarm | SHIP / CONDITIONAL / HOLD | During Sprint |
82
+ | Verification | qcsd-cicd-swarm | RELEASE / REMEDIATE / BLOCK | Pre-Release / CI-CD |
83
+ | **Production** | **qcsd-production-swarm** | **HEALTHY / DEGRADED / CRITICAL** | **Post-Release** |
84
+
85
+ ### Parameters
86
+
87
+ - `TELEMETRY_DATA`: Path to production telemetry, incident reports, and DORA metrics (required)
88
+ - `RELEASE_ID`: Release identifier for tracking (optional)
89
+ - `OUTPUT_FOLDER`: Where to save reports (default: `${PROJECT_ROOT}/Agentic QCSD/production/`)
90
+ - `SLA_DEFINITIONS`: Path to SLA/SLO target definitions (optional)
91
+
92
+ ---
93
+
94
+ ## ENFORCEMENT RULES - READ FIRST
95
+
96
+ | Rule | Enforcement |
97
+ |------|-------------|
98
+ | **E1** | You MUST spawn ALL THREE core agents in Step 2. No exceptions. |
99
+ | **E2** | You MUST put all parallel Task calls in a SINGLE message. |
100
+ | **E3** | You MUST STOP and WAIT after each batch. No proceeding early. |
101
+ | **E4** | You MUST spawn conditional agents if flags are TRUE. No skipping. |
102
+ | **E5** | You MUST apply HEALTHY/DEGRADED/CRITICAL logic exactly as specified in Step 5. |
103
+ | **E6** | You MUST generate the full report structure. No abbreviated versions. |
104
+ | **E7** | Each agent MUST read its reference files before analysis. |
105
+ | **E8** | You MUST run BOTH feedback agents in Step 8 SEQUENTIALLY. Always. Both agents. |
106
+ | **E9** | You MUST execute Step 7 learning persistence. No skipping. |
107
+
108
+ **PROHIBITED BEHAVIORS:**
109
+ - Summarizing instead of spawning agents
110
+ - Skipping agents "for brevity"
111
+ - Proceeding before background tasks complete
112
+ - Providing your own analysis instead of spawning specialists
113
+ - Omitting report sections or using placeholder text
114
+
115
+ ---
116
+
117
+ ## Step Execution Protocol
118
+
119
+ This skill uses a micro-file step architecture. Each step is a self-contained file
120
+ loaded one at a time to avoid "lost in the middle" context degradation.
121
+
122
+ **Execute steps sequentially by reading each step file with the Read tool.**
123
+
124
+ ### Steps
125
+
126
+ 1. **Flag Detection** -- `steps/01-flag-detection.md` -- Retrieve CI/CD signals, detect telemetry source, evaluate all 7 flags
127
+ 2. **Core Agents** -- `steps/02-core-agents.md` -- Spawn qe-metrics-optimizer, qe-defect-predictor, qe-root-cause-analyzer in parallel
128
+ 3. **Batch 1 Results** -- `steps/03-batch1-results.md` -- Wait for core agents, extract all metrics
129
+ 4. **Conditional Agents** -- `steps/04-conditional-agents.md` -- Spawn flagged conditional agents in parallel
130
+ 5. **Decision Synthesis** -- `steps/05-decision-synthesis.md` -- Apply HEALTHY/DEGRADED/CRITICAL logic
131
+ 6. **Report Generation** -- `steps/06-report-generation.md` -- Generate executive summary and full report
132
+ 7. **Learning Persistence** -- `steps/07-learning-persistence.md` -- Store findings to memory, save persistence record
133
+ 8. **Feedback Loop** -- `steps/08-feedback-loop.md` -- Run learning coordinator then transfer specialist (sequential)
134
+ 9. **Final Output** -- `steps/09-final-output.md` -- Display completion summary with all scores
135
+
136
+ ### Execution Instructions
137
+
138
+ 1. Use the Read tool to load the current step file (e.g., `Read({ file_path: ".claude/skills/qcsd-production-swarm/steps/01-flag-detection.md" })`)
139
+ 2. Execute the step's instructions completely
140
+ 3. Verify all success criteria are met before proceeding
141
+ 4. Pass the step's output as context to the next step
142
+ 5. If a step fails, halt and report the failure point -- do not skip ahead
143
+
144
+ ### Resume Support
145
+
146
+ To resume from a specific step: specify `--from-step N` and the orchestrator will
147
+ skip to step N. Ensure you have the required prerequisite data from prior steps.
148
+
149
+ ---
150
+
151
+ ## Agent Inventory
152
+
153
+ | Agent | Type | Domain | Batch |
154
+ |-------|------|--------|-------|
155
+ | qe-metrics-optimizer | Core (always) | learning-optimization | 1 |
156
+ | qe-defect-predictor | Core (always) | defect-intelligence | 1 |
157
+ | qe-root-cause-analyzer | Core (always) | defect-intelligence | 1 |
158
+ | qe-chaos-engineer | Conditional (HAS_INFRASTRUCTURE_CHANGE) | chaos-resilience | 2 |
159
+ | qe-performance-tester | Conditional (HAS_PERFORMANCE_SLA) | chaos-resilience | 2 |
160
+ | qe-regression-analyzer | Conditional (HAS_REGRESSION_RISK) | defect-intelligence | 2 |
161
+ | qe-pattern-learner | Conditional (HAS_RECURRING_INCIDENTS) | defect-intelligence | 2 |
162
+ | qe-middleware-validator | Conditional (HAS_MIDDLEWARE) | enterprise-integration | 2 |
163
+ | qe-sap-rfc-tester | Conditional (HAS_SAP_INTEGRATION) | enterprise-integration | 2 |
164
+ | qe-sod-analyzer | Conditional (HAS_AUTHORIZATION) | enterprise-integration | 2 |
165
+ | qe-learning-coordinator | Feedback (always, sequential) | learning-optimization | 3 |
166
+ | qe-transfer-specialist | Feedback (always, sequential) | learning-optimization | 3 |
167
+
168
+ **Total: 12 agents (3 core + 7 conditional + 2 feedback)**
169
+
170
+ ---
171
+
172
+ ## Quality Gate Thresholds
173
+
174
+ | Metric | HEALTHY | DEGRADED | CRITICAL |
175
+ |--------|---------|----------|----------|
176
+ | DORA Score | >= 0.7 | 0.4 - 0.69 | < 0.4 |
177
+ | SLA Compliance | >= 99% | 95 - 98.9% | < 95% |
178
+ | Incident Severity | P3/P4/NONE | P2 | P0/P1 |
179
+ | Defect Trend | declining/stable | stable (density > 2) | increasing + density > 5 |
180
+ | RCA Completeness | >= 80% | 50 - 79% | < 50% |
181
+
182
+ ---
183
+
184
+ ## Report Filename Mapping
185
+
186
+ | Agent | Report Filename | Step |
187
+ |-------|----------------|------|
188
+ | qe-metrics-optimizer | `02-dora-metrics.md` | 2 |
189
+ | qe-defect-predictor | `03-defect-prediction.md` | 2 |
190
+ | qe-root-cause-analyzer | `04-root-cause-analysis.md` | 2 |
191
+ | qe-chaos-engineer | `05-chaos-resilience.md` | 4 |
192
+ | qe-performance-tester | `06-performance-sla.md` | 4 |
193
+ | qe-regression-analyzer | `07-regression-analysis.md` | 4 |
194
+ | qe-pattern-learner | `08-pattern-analysis.md` | 4 |
195
+ | Learning Persistence | `09-learning-persistence.json` | 7 |
196
+ | qe-middleware-validator | `10-middleware-health.md` | 4 |
197
+ | qe-sap-rfc-tester | `11-sap-health.md` | 4 |
198
+ | qe-sod-analyzer | `12-sod-compliance.md` | 4 |
199
+ | Feedback agents | `13-feedback-loops.md` | 8 |
200
+ | Synthesis | `01-executive-summary.md` | 6 |
201
+
202
+ ---
203
+
204
+ ## Execution Model Options
205
+
206
+ | Model | When to Use | Agent Spawn |
207
+ |-------|-------------|-------------|
208
+ | **Task Tool** (PRIMARY) | Claude Code sessions | `Task({ subagent_type, run_in_background: true })` |
209
+ | **MCP Tools** | MCP server available | `fleet_init({})` / `task_submit({})` |
210
+ | **CLI** | Terminal/scripts | `swarm init` / `agent spawn` |
211
+
212
+ ---
213
+
214
+ ## Key Principle
215
+
216
+ **Production health is measured by outcomes, not intentions. This swarm provides
217
+ evidence-based production assessment and closes the QCSD feedback loop.**
218
+ <!-- END AGENTIC-QE UPSTREAM BODY -->
219
+
220
+ ## Keysarium addition: feature-ADR handoff
221
+
222
+ Use the production feedback structure to frame Step 9 post-deploy monitoring and future feature-ADR research. A reference-only run may propose a monitoring checklist, but must not report HEALTHY, DEGRADED, CRITICAL, DORA scores, incident analysis, agent execution, or memory persistence without actual production evidence and available runtime tools.
@@ -0,0 +1,246 @@
1
+ skill: qcsd-production-swarm
2
+ version: 1.0.0
3
+ description: >
4
+ Evaluation suite for QCSD production telemetry swarm orchestration.
5
+ Tests DORA metrics analysis, root cause analysis, defect prediction, agent coordination, and feedback loop synthesis.
6
+
7
+ models_to_test:
8
+ - claude-sonnet-4-6 # Primary (high accuracy expected)
9
+ - claude-haiku-4-5 # Fast model (minimum quality floor)
10
+
11
+ mcp_integration:
12
+ enabled: true
13
+ namespace: skill-validation
14
+ query_patterns: true
15
+ track_outcomes: true
16
+ store_patterns: true
17
+ target_agents:
18
+ - qe-learning-coordinator
19
+ - qe-queen-coordinator
20
+
21
+ learning:
22
+ store_success_patterns: true
23
+ pattern_ttl_days: 90
24
+
25
+ result_format:
26
+ json_output: true
27
+ include_timing: true
28
+ include_token_usage: true
29
+
30
+ setup:
31
+ required_tools:
32
+ - jq
33
+
34
+ test_cases:
35
+
36
+ - id: tc001_dora_metrics_analysis
37
+ description: "Perform DORA metrics analysis from production telemetry"
38
+ category: dora
39
+ priority: critical
40
+
41
+ input:
42
+ telemetry_data: "Production metrics for v3.6.9 release"
43
+ project_type: "web_application"
44
+
45
+ expected_output:
46
+ must_contain:
47
+ - "deployment frequency"
48
+ - "lead time"
49
+ - "MTTR"
50
+ - "change failure"
51
+
52
+ validation:
53
+ schema_check: true
54
+ keyword_match_threshold: 0.8
55
+
56
+ - id: tc002_root_cause_analysis
57
+ description: "Systematic root cause analysis of production incidents"
58
+ category: rca
59
+ priority: critical
60
+
61
+ input:
62
+ incidents: "P1 incident: API timeout spike after v3.6.9 deploy"
63
+ has_infrastructure_change: true
64
+ has_performance_sla: true
65
+
66
+ expected_output:
67
+ must_contain:
68
+ - "root cause"
69
+ - "severity"
70
+ - "resolution"
71
+
72
+ validation:
73
+ schema_check: true
74
+
75
+ - id: tc003_domain_flag_detection
76
+ description: "Detect HAS_INFRASTRUCTURE_CHANGE, HAS_PERFORMANCE_SLA, HAS_RECURRING_INCIDENTS flags"
77
+ category: flags
78
+ priority: high
79
+
80
+ input:
81
+ content: "Recent Kubernetes scaling policy change causing SLA breaches with recurring pod eviction incidents"
82
+ analyze_flags: true
83
+
84
+ expected_output:
85
+ must_contain:
86
+ - "HAS_INFRASTRUCTURE_CHANGE"
87
+ - "HAS_PERFORMANCE_SLA"
88
+ - "HAS_RECURRING_INCIDENTS"
89
+
90
+ validation:
91
+ schema_check: true
92
+
93
+ - id: tc004_agent_coordination
94
+ description: "Coordinate multi-agent production telemetry swarm execution"
95
+ category: orchestration
96
+ priority: high
97
+
98
+ input:
99
+ domain_flags:
100
+ HAS_INFRASTRUCTURE_CHANGE: true
101
+ HAS_PERFORMANCE_SLA: true
102
+ HAS_RECURRING_INCIDENTS: false
103
+
104
+ expected_output:
105
+ must_contain:
106
+ - "agent"
107
+ - "coordinate"
108
+
109
+ validation:
110
+ schema_check: true
111
+
112
+ - id: tc005_feedback_loop_synthesis
113
+ description: "Execute feedback loop synthesis to Ideation and Refinement phases"
114
+ category: feedback
115
+ priority: medium
116
+
117
+ input:
118
+ production_data: "Post-release monitoring for authentication service upgrade"
119
+ include_feedback_loops: true
120
+
121
+ expected_output:
122
+ must_contain:
123
+ - "feedback"
124
+ - "ideation"
125
+ - "refinement"
126
+
127
+ validation:
128
+ schema_check: true
129
+
130
+ - id: tc006_decision_logic_critical
131
+ description: "Decision logic must produce CRITICAL when any core metric breaches critical threshold"
132
+ category: decision_logic
133
+ priority: critical
134
+
135
+ input:
136
+ metrics:
137
+ doraScore: 0.35
138
+ slaCompliance: 93.0
139
+ incidentSeverity: "P1"
140
+ rcaCompleteness: 40
141
+ defectTrend: "increasing"
142
+ defectDensity: 6.2
143
+ resilienceScore: 45
144
+ middlewareHealth: 12
145
+ sapHealth: null
146
+ sodCompliance: null
147
+ domain_flags:
148
+ HAS_INFRASTRUCTURE_CHANGE: true
149
+ HAS_PERFORMANCE_SLA: true
150
+ HAS_RECURRING_INCIDENTS: true
151
+ HAS_MIDDLEWARE: true
152
+
153
+ expected_output:
154
+ must_contain:
155
+ - "CRITICAL"
156
+ must_not_contain:
157
+ - "HEALTHY"
158
+
159
+ validation:
160
+ schema_check: true
161
+ decision_deterministic: true
162
+
163
+ - id: tc007_decision_logic_healthy
164
+ description: "Decision logic must produce HEALTHY when all metrics exceed healthy thresholds"
165
+ category: decision_logic
166
+ priority: critical
167
+
168
+ input:
169
+ metrics:
170
+ doraScore: 0.85
171
+ slaCompliance: 99.5
172
+ incidentSeverity: "NONE"
173
+ rcaCompleteness: 95
174
+ defectTrend: "declining"
175
+ defectDensity: 0.8
176
+ resilienceScore: 92
177
+ middlewareHealth: 88
178
+ sapHealth: null
179
+ sodCompliance: 95
180
+ domain_flags:
181
+ HAS_INFRASTRUCTURE_CHANGE: true
182
+ HAS_PERFORMANCE_SLA: true
183
+ HAS_RECURRING_INCIDENTS: false
184
+ HAS_MIDDLEWARE: true
185
+ HAS_AUTHORIZATION: true
186
+
187
+ expected_output:
188
+ must_contain:
189
+ - "HEALTHY"
190
+ must_not_contain:
191
+ - "CRITICAL"
192
+
193
+ validation:
194
+ schema_check: true
195
+ decision_deterministic: true
196
+
197
+ - id: tc008_decision_logic_degraded
198
+ description: "Decision logic must produce DEGRADED when metrics fall between CRITICAL and HEALTHY thresholds"
199
+ category: decision_logic
200
+ priority: critical
201
+
202
+ input:
203
+ metrics:
204
+ doraScore: 0.55
205
+ slaCompliance: 97.0
206
+ incidentSeverity: "P3"
207
+ rcaCompleteness: 60
208
+ defectTrend: "stable"
209
+ defectDensity: 3.1
210
+ resilienceScore: 65
211
+ middlewareHealth: 55
212
+ sapHealth: 40
213
+ sodCompliance: null
214
+ domain_flags:
215
+ HAS_INFRASTRUCTURE_CHANGE: true
216
+ HAS_PERFORMANCE_SLA: true
217
+ HAS_RECURRING_INCIDENTS: false
218
+ HAS_MIDDLEWARE: true
219
+ HAS_SAP_INTEGRATION: true
220
+
221
+ expected_output:
222
+ must_contain:
223
+ - "DEGRADED"
224
+ must_not_contain:
225
+ - "CRITICAL"
226
+ - "HEALTHY"
227
+
228
+ validation:
229
+ schema_check: true
230
+ decision_deterministic: true
231
+
232
+ success_criteria:
233
+ pass_rate: 0.875
234
+ critical_pass_rate: 1.0
235
+ avg_reasoning_quality: 0.75
236
+ max_execution_time_ms: 300000
237
+ decision_logic_pass_rate: 1.0
238
+
239
+ metadata:
240
+ author: "qe-qcsd-orchestrator"
241
+ created: "2026-02-17"
242
+ updated: "2026-02-17"
243
+ coverage_target: >
244
+ QCSD production swarm with 8 test cases covering DORA metrics analysis,
245
+ root cause analysis, domain flag detection, agent coordination, feedback loop synthesis,
246
+ and 3 decision logic determinism tests (CRITICAL, HEALTHY, DEGRADED paths).