agentic-qe 3.8.2 → 3.8.3
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/skills/README.md +29 -7
- package/.claude/skills/TRUST-TIERS.md +26 -10
- package/.claude/skills/a11y-ally/SKILL.md +10 -1
- package/.claude/skills/accessibility-testing/SKILL.md +2 -0
- package/.claude/skills/agentic-quality-engineering/SKILL.md +1 -1
- package/.claude/skills/api-testing-patterns/SKILL.md +8 -0
- package/.claude/skills/api-testing-patterns/config.json +14 -0
- package/.claude/skills/api-testing-patterns/templates/api-test-scaffold.md +87 -0
- package/.claude/skills/bug-reporting-excellence/SKILL.md +14 -0
- package/.claude/skills/code-review-quality/SKILL.md +14 -0
- package/.claude/skills/compatibility-testing/SKILL.md +1 -54
- package/.claude/skills/compliance-testing/SKILL.md +8 -0
- package/.claude/skills/compliance-testing/config.json +13 -0
- package/.claude/skills/consultancy-practices/SKILL.md +1 -32
- package/.claude/skills/context-driven-testing/SKILL.md +0 -41
- package/.claude/skills/contract-testing/SKILL.md +12 -0
- package/.claude/skills/contract-testing/config.json +13 -0
- package/.claude/skills/contract-testing/references/agent-commands.md +103 -0
- package/.claude/skills/contract-testing/references/provider-states.md +45 -0
- package/.claude/skills/coverage-drop-investigator/SKILL.md +90 -0
- package/.claude/skills/coverage-guard/SKILL.md +82 -0
- package/.claude/skills/coverage-guard/scripts/check-coverage.sh +42 -0
- package/.claude/skills/database-testing/SKILL.md +0 -10
- package/.claude/skills/debug-loop/SKILL.md +1 -1
- package/.claude/skills/e2e-flow-verifier/SKILL.md +78 -0
- package/.claude/skills/enterprise-integration-testing/SKILL.md +1 -1
- package/.claude/skills/exploratory-testing-advanced/SKILL.md +8 -0
- package/.claude/skills/exploratory-testing-advanced/references/heuristic-cheatsheet.md +48 -0
- package/.claude/skills/freeze-tests/SKILL.md +67 -0
- package/.claude/skills/freeze-tests/scripts/block-test-edits.sh +27 -0
- package/.claude/skills/localization-testing/SKILL.md +0 -17
- package/.claude/skills/mobile-testing/SKILL.md +2 -49
- package/.claude/skills/mutation-testing/SKILL.md +26 -0
- package/.claude/skills/mutation-testing/config.json +14 -0
- package/.claude/skills/mutation-testing/references/mutation-operators.md +38 -0
- package/.claude/skills/mutation-testing/run-history.json +6 -0
- package/.claude/skills/no-skip/SKILL.md +74 -0
- package/.claude/skills/no-skip/scripts/check-skips.sh +28 -0
- package/.claude/skills/pair-programming/SKILL.md +1 -1
- package/.claude/skills/pentest-validation/SKILL.md +2 -3
- package/.claude/skills/performance-testing/SKILL.md +21 -0
- package/.claude/skills/performance-testing/config.json +18 -0
- package/.claude/skills/performance-testing/references/k6-patterns.md +72 -0
- package/.claude/skills/performance-testing/run-history.json +6 -0
- package/.claude/skills/pr-review/SKILL.md +3 -3
- package/.claude/skills/qcsd-cicd-swarm/SKILL.md +1 -1
- package/.claude/skills/qcsd-development-swarm/SKILL.md +1 -1
- package/.claude/skills/qcsd-ideation-swarm/SKILL.md +1 -1
- package/.claude/skills/qcsd-production-swarm/SKILL.md +1 -1
- package/.claude/skills/qcsd-refinement-swarm/SKILL.md +1 -1
- package/.claude/skills/qe-chaos-resilience/SKILL.md +2 -2
- package/.claude/skills/qe-code-intelligence/SKILL.md +9 -1
- package/.claude/skills/qe-coverage-analysis/SKILL.md +28 -1
- package/.claude/skills/qe-coverage-analysis/run-history.json +6 -0
- package/.claude/skills/qe-defect-intelligence/SKILL.md +1 -1
- package/.claude/skills/qe-learning-optimization/SKILL.md +1 -1
- package/.claude/skills/qe-quality-assessment/SKILL.md +29 -2
- package/.claude/skills/qe-quality-assessment/run-history.json +6 -0
- package/.claude/skills/qe-requirements-validation/SKILL.md +1 -1
- package/.claude/skills/qe-test-execution/SKILL.md +9 -1
- package/.claude/skills/qe-test-generation/SKILL.md +15 -1
- package/.claude/skills/qe-test-generation/config.json +14 -0
- package/.claude/skills/qe-test-generation/templates/test-scaffold-jest.md +72 -0
- package/.claude/skills/qe-visual-accessibility/SKILL.md +1 -1
- package/.claude/skills/quality-metrics/SKILL.md +3 -77
- package/.claude/skills/regression-testing/SKILL.md +13 -48
- package/.claude/skills/risk-based-testing/SKILL.md +6 -51
- package/.claude/skills/security-testing/SKILL.md +30 -0
- package/.claude/skills/security-testing/config.json +13 -0
- package/.claude/skills/security-testing/references/compliance-agent-commands.md +131 -0
- package/.claude/skills/security-testing/references/owasp-top-10.md +66 -0
- package/.claude/skills/security-testing/run-history.json +6 -0
- package/.claude/skills/security-testing/templates/security-report.md +44 -0
- package/.claude/skills/security-watch/SKILL.md +93 -0
- package/.claude/skills/security-watch/scripts/scan-security.sh +46 -0
- package/.claude/skills/shift-left-testing/SKILL.md +16 -87
- package/.claude/skills/skill-stats/SKILL.md +79 -0
- package/.claude/skills/skills-manifest.json +1 -1
- package/.claude/skills/strict-tdd/SKILL.md +72 -0
- package/.claude/skills/strict-tdd/scripts/enforce-red-phase.sh +36 -0
- package/.claude/skills/tdd-london-chicago/SKILL.md +8 -0
- package/.claude/skills/test-automation-strategy/SKILL.md +13 -64
- package/.claude/skills/test-data-management/SKILL.md +1 -104
- package/.claude/skills/test-design-techniques/SKILL.md +2 -151
- package/.claude/skills/test-environment-management/SKILL.md +0 -47
- package/.claude/skills/test-failure-investigator/SKILL.md +99 -0
- package/.claude/skills/test-metrics-dashboard/SKILL.md +97 -0
- package/.claude/skills/trust-tier-manifest.json +135 -61
- package/.claude/skills/validation-pipeline/SKILL.md +1 -1
- package/.claude/skills/verification-quality/SKILL.md +15 -1
- package/.claude/skills/xp-practices/SKILL.md +2 -109
- package/CHANGELOG.md +29 -0
- package/README.md +5 -1
- package/assets/skills/README.md +173 -0
- package/assets/skills/TRUST-TIERS.md +174 -0
- package/assets/skills/a11y-ally/SKILL.md +10 -1
- package/assets/skills/accessibility-testing/SKILL.md +2 -0
- package/assets/skills/agentic-quality-engineering/SKILL.md +1 -1
- package/assets/skills/api-testing-patterns/SKILL.md +8 -0
- package/assets/skills/api-testing-patterns/config.json +14 -0
- package/assets/skills/api-testing-patterns/templates/api-test-scaffold.md +87 -0
- package/assets/skills/bug-reporting-excellence/SKILL.md +14 -0
- package/assets/skills/code-review-quality/SKILL.md +14 -0
- package/assets/skills/compatibility-testing/SKILL.md +1 -54
- package/assets/skills/compliance-testing/SKILL.md +8 -0
- package/assets/skills/compliance-testing/config.json +13 -0
- package/assets/skills/consultancy-practices/SKILL.md +1 -32
- package/assets/skills/context-driven-testing/SKILL.md +0 -41
- package/assets/skills/contract-testing/SKILL.md +12 -0
- package/assets/skills/contract-testing/config.json +13 -0
- package/assets/skills/contract-testing/references/agent-commands.md +103 -0
- package/assets/skills/contract-testing/references/provider-states.md +45 -0
- package/assets/skills/coverage-drop-investigator/SKILL.md +90 -0
- package/assets/skills/coverage-guard/SKILL.md +82 -0
- package/assets/skills/coverage-guard/scripts/check-coverage.sh +42 -0
- package/assets/skills/database-testing/SKILL.md +0 -10
- package/assets/skills/debug-loop/SKILL.md +1 -1
- package/assets/skills/e2e-flow-verifier/SKILL.md +78 -0
- package/assets/skills/enterprise-integration-testing/SKILL.md +1 -1
- package/assets/skills/exploratory-testing-advanced/SKILL.md +8 -0
- package/assets/skills/exploratory-testing-advanced/references/heuristic-cheatsheet.md +48 -0
- package/assets/skills/freeze-tests/SKILL.md +67 -0
- package/assets/skills/freeze-tests/scripts/block-test-edits.sh +27 -0
- package/assets/skills/localization-testing/SKILL.md +0 -17
- package/assets/skills/mobile-testing/SKILL.md +2 -49
- package/assets/skills/mutation-testing/SKILL.md +26 -0
- package/assets/skills/mutation-testing/config.json +14 -0
- package/assets/skills/mutation-testing/references/mutation-operators.md +38 -0
- package/assets/skills/mutation-testing/run-history.json +6 -0
- package/assets/skills/no-skip/SKILL.md +74 -0
- package/assets/skills/no-skip/scripts/check-skips.sh +28 -0
- package/assets/skills/pair-programming/SKILL.md +1 -1
- package/assets/skills/pentest-validation/SKILL.md +2 -3
- package/assets/skills/performance-testing/SKILL.md +21 -0
- package/assets/skills/performance-testing/config.json +18 -0
- package/assets/skills/performance-testing/references/k6-patterns.md +72 -0
- package/assets/skills/performance-testing/run-history.json +6 -0
- package/assets/skills/pr-review/SKILL.md +3 -3
- package/assets/skills/qcsd-cicd-swarm/SKILL.md +1 -1
- package/assets/skills/qcsd-development-swarm/SKILL.md +1 -1
- package/assets/skills/qcsd-ideation-swarm/SKILL.md +1 -1
- package/assets/skills/qcsd-production-swarm/SKILL.md +1 -1
- package/assets/skills/qcsd-refinement-swarm/SKILL.md +1 -1
- package/assets/skills/qe-chaos-resilience/SKILL.md +2 -2
- package/assets/skills/qe-code-intelligence/SKILL.md +9 -1
- package/assets/skills/qe-coverage-analysis/SKILL.md +28 -1
- package/assets/skills/qe-coverage-analysis/run-history.json +6 -0
- package/assets/skills/qe-defect-intelligence/SKILL.md +1 -1
- package/assets/skills/qe-learning-optimization/SKILL.md +1 -1
- package/assets/skills/qe-quality-assessment/SKILL.md +29 -2
- package/assets/skills/qe-quality-assessment/run-history.json +6 -0
- package/assets/skills/qe-requirements-validation/SKILL.md +1 -1
- package/assets/skills/qe-test-execution/SKILL.md +9 -1
- package/assets/skills/qe-test-generation/SKILL.md +15 -1
- package/assets/skills/qe-test-generation/config.json +14 -0
- package/assets/skills/qe-test-generation/templates/test-scaffold-jest.md +72 -0
- package/assets/skills/qe-visual-accessibility/SKILL.md +1 -1
- package/assets/skills/quality-metrics/SKILL.md +3 -77
- package/assets/skills/regression-testing/SKILL.md +13 -48
- package/assets/skills/risk-based-testing/SKILL.md +6 -51
- package/assets/skills/security-testing/SKILL.md +30 -0
- package/assets/skills/security-testing/config.json +13 -0
- package/assets/skills/security-testing/references/compliance-agent-commands.md +131 -0
- package/assets/skills/security-testing/references/owasp-top-10.md +66 -0
- package/assets/skills/security-testing/run-history.json +6 -0
- package/assets/skills/security-testing/templates/security-report.md +44 -0
- package/assets/skills/security-watch/SKILL.md +93 -0
- package/assets/skills/security-watch/scripts/scan-security.sh +46 -0
- package/assets/skills/shift-left-testing/SKILL.md +16 -87
- package/assets/skills/skill-stats/SKILL.md +79 -0
- package/assets/skills/strict-tdd/SKILL.md +72 -0
- package/assets/skills/strict-tdd/scripts/enforce-red-phase.sh +36 -0
- package/assets/skills/tdd-london-chicago/SKILL.md +8 -0
- package/assets/skills/test-automation-strategy/SKILL.md +13 -64
- package/assets/skills/test-data-management/SKILL.md +1 -104
- package/assets/skills/test-design-techniques/SKILL.md +2 -151
- package/assets/skills/test-environment-management/SKILL.md +0 -47
- package/assets/skills/test-failure-investigator/SKILL.md +99 -0
- package/assets/skills/test-metrics-dashboard/SKILL.md +97 -0
- package/assets/skills/trust-tier-manifest.json +135 -61
- package/assets/skills/validation-pipeline/SKILL.md +1 -1
- package/assets/skills/verification-quality/SKILL.md +15 -1
- package/assets/skills/xp-practices/SKILL.md +2 -109
- package/dist/cli/bundle.js +110 -24
- package/dist/init/opencode-installer.js +2 -3
- package/dist/init/phases/07-hooks.js +3 -3
- package/dist/init/settings-merge.js +1 -2
- package/dist/init/skills-installer.d.ts +10 -0
- package/dist/init/skills-installer.js +68 -6
- package/dist/integrations/ruvector/sona-persistence.d.ts +6 -0
- package/dist/integrations/ruvector/sona-persistence.js +26 -1
- package/dist/mcp/bundle.js +29 -8
- package/dist/mcp/entry.js +6 -6
- package/dist/migration/agent-compat.js +2 -2
- package/package.json +2 -2
- package/.claude/skills/aqe-v2-v3-migration/schemas/output.json +0 -513
- package/.claude/skills/aqe-v2-v3-migration/skill.md +0 -325
- package/.claude/skills/qe-contract-testing/SKILL.md +0 -223
- package/.claude/skills/qe-contract-testing/evals/qe-contract-testing.yaml +0 -513
- package/.claude/skills/qe-contract-testing/schemas/output.json +0 -295
- package/.claude/skills/qe-contract-testing/scripts/validate-config.json +0 -42
- package/.claude/skills/qe-security-compliance/SKILL.md +0 -260
- package/.claude/skills/qe-security-compliance/evals/qe-security-compliance.yaml +0 -595
- package/.claude/skills/qe-security-compliance/schemas/output.json +0 -498
- package/.claude/skills/qe-security-compliance/scripts/validate-config.json +0 -41
- package/.opencode/skills/qe-contract-testing.yaml +0 -45
- package/.opencode/skills/qe-security-compliance.yaml +0 -45
- package/assets/skills/aqe-v2-v3-migration/schemas/output.json +0 -513
- package/assets/skills/aqe-v2-v3-migration/skill.md +0 -325
- package/assets/skills/qe-contract-testing/SKILL.md +0 -223
- package/assets/skills/qe-contract-testing/evals/qe-contract-testing.yaml +0 -513
- package/assets/skills/qe-contract-testing/schemas/output.json +0 -295
- package/assets/skills/qe-contract-testing/scripts/validate-config.json +0 -42
- package/assets/skills/qe-security-compliance/SKILL.md +0 -260
- package/assets/skills/qe-security-compliance/evals/qe-security-compliance.yaml +0 -595
- package/assets/skills/qe-security-compliance/schemas/output.json +0 -498
- package/assets/skills/qe-security-compliance/scripts/validate-config.json +0 -41
|
@@ -1,513 +0,0 @@
|
|
|
1
|
-
# =============================================================================
|
|
2
|
-
# AQE Skill Evaluation Test Suite: QE Contract Testing v1.0.0
|
|
3
|
-
# =============================================================================
|
|
4
|
-
#
|
|
5
|
-
# Comprehensive evaluation suite for the qe-contract-testing skill.
|
|
6
|
-
# Tests consumer-driven contracts, schema validation, breaking change detection,
|
|
7
|
-
# and API versioning verification for REST, GraphQL, and event-driven systems.
|
|
8
|
-
#
|
|
9
|
-
# Schema: .claude/skills/.validation/schemas/skill-eval.schema.json
|
|
10
|
-
# Validator: .claude/skills/qe-contract-testing/scripts/validate-config.json
|
|
11
|
-
#
|
|
12
|
-
# Coverage:
|
|
13
|
-
# - Consumer-driven contract testing (Pact)
|
|
14
|
-
# - OpenAPI/schema validation
|
|
15
|
-
# - Breaking change detection
|
|
16
|
-
# - GraphQL schema and operation validation
|
|
17
|
-
# - Event schema validation
|
|
18
|
-
# - Backward compatibility checking
|
|
19
|
-
#
|
|
20
|
-
# =============================================================================
|
|
21
|
-
|
|
22
|
-
skill: qe-contract-testing
|
|
23
|
-
version: 1.0.0
|
|
24
|
-
description: >
|
|
25
|
-
Comprehensive evaluation suite for the qe-contract-testing skill.
|
|
26
|
-
Tests consumer-driven contract testing, OpenAPI schema validation,
|
|
27
|
-
breaking change detection, GraphQL contract validation, event schema
|
|
28
|
-
validation, and backward compatibility verification.
|
|
29
|
-
|
|
30
|
-
# =============================================================================
|
|
31
|
-
# Multi-Model Configuration
|
|
32
|
-
# =============================================================================
|
|
33
|
-
|
|
34
|
-
models_to_test:
|
|
35
|
-
- claude-3.5-sonnet
|
|
36
|
-
- claude-3-haiku
|
|
37
|
-
|
|
38
|
-
# =============================================================================
|
|
39
|
-
# MCP Integration Configuration
|
|
40
|
-
# =============================================================================
|
|
41
|
-
|
|
42
|
-
mcp_integration:
|
|
43
|
-
enabled: true
|
|
44
|
-
namespace: skill-validation
|
|
45
|
-
|
|
46
|
-
query_patterns: true
|
|
47
|
-
track_outcomes: true
|
|
48
|
-
store_patterns: true
|
|
49
|
-
share_learning: true
|
|
50
|
-
update_quality_gate: true
|
|
51
|
-
|
|
52
|
-
target_agents:
|
|
53
|
-
- qe-learning-coordinator
|
|
54
|
-
- qe-queen-coordinator
|
|
55
|
-
- qe-api-contract
|
|
56
|
-
- qe-api-compatibility
|
|
57
|
-
|
|
58
|
-
# =============================================================================
|
|
59
|
-
# ReasoningBank Learning Configuration
|
|
60
|
-
# =============================================================================
|
|
61
|
-
|
|
62
|
-
learning:
|
|
63
|
-
store_success_patterns: true
|
|
64
|
-
store_failure_patterns: true
|
|
65
|
-
pattern_ttl_days: 90
|
|
66
|
-
min_confidence_to_store: 0.7
|
|
67
|
-
cross_model_comparison: true
|
|
68
|
-
|
|
69
|
-
# =============================================================================
|
|
70
|
-
# Result Format Configuration
|
|
71
|
-
# =============================================================================
|
|
72
|
-
|
|
73
|
-
result_format:
|
|
74
|
-
json_output: true
|
|
75
|
-
markdown_report: true
|
|
76
|
-
include_raw_output: false
|
|
77
|
-
include_timing: true
|
|
78
|
-
include_token_usage: true
|
|
79
|
-
|
|
80
|
-
# =============================================================================
|
|
81
|
-
# Environment Setup
|
|
82
|
-
# =============================================================================
|
|
83
|
-
|
|
84
|
-
setup:
|
|
85
|
-
required_tools:
|
|
86
|
-
- jq
|
|
87
|
-
environment_variables:
|
|
88
|
-
CONTRACT_PROVIDER_URL: "http://localhost:3000"
|
|
89
|
-
BREAKING_CHANGE_STRICTNESS: "strict"
|
|
90
|
-
fixtures: []
|
|
91
|
-
|
|
92
|
-
# =============================================================================
|
|
93
|
-
# TEST CASES
|
|
94
|
-
# =============================================================================
|
|
95
|
-
|
|
96
|
-
test_cases:
|
|
97
|
-
# ---------------------------------------------------------------------------
|
|
98
|
-
# CATEGORY: Consumer-Driven Contracts
|
|
99
|
-
# ---------------------------------------------------------------------------
|
|
100
|
-
|
|
101
|
-
- id: tc001_pact_contract_generation
|
|
102
|
-
description: "Generate Pact consumer contracts from API interactions"
|
|
103
|
-
category: consumer_driven
|
|
104
|
-
priority: critical
|
|
105
|
-
|
|
106
|
-
input:
|
|
107
|
-
prompt: |
|
|
108
|
-
Design consumer contracts for a web-app consuming user-service:
|
|
109
|
-
1. GET /users/:id - returns User object
|
|
110
|
-
2. POST /users - creates new user
|
|
111
|
-
3. DELETE /users/:id - deletes user
|
|
112
|
-
|
|
113
|
-
For each endpoint, define:
|
|
114
|
-
- Request contract (method, path, query/body)
|
|
115
|
-
- Response contract (status, body schema, headers)
|
|
116
|
-
- Provider states (setup for testing)
|
|
117
|
-
context:
|
|
118
|
-
consumer: web-app
|
|
119
|
-
provider: user-service
|
|
120
|
-
format: pact
|
|
121
|
-
|
|
122
|
-
expected_output:
|
|
123
|
-
must_contain:
|
|
124
|
-
- "contract"
|
|
125
|
-
- "request"
|
|
126
|
-
- "response"
|
|
127
|
-
- "provider state"
|
|
128
|
-
- "schema"
|
|
129
|
-
must_not_contain:
|
|
130
|
-
- "error"
|
|
131
|
-
- "unable"
|
|
132
|
-
severity_classification: critical
|
|
133
|
-
finding_count:
|
|
134
|
-
min: 1
|
|
135
|
-
|
|
136
|
-
validation:
|
|
137
|
-
schema_check: true
|
|
138
|
-
keyword_match_threshold: 0.8
|
|
139
|
-
reasoning_quality_min: 0.75
|
|
140
|
-
|
|
141
|
-
- id: tc002_contract_verification
|
|
142
|
-
description: "Verify provider implementation against consumer contracts"
|
|
143
|
-
category: consumer_driven
|
|
144
|
-
priority: critical
|
|
145
|
-
|
|
146
|
-
input:
|
|
147
|
-
prompt: |
|
|
148
|
-
Create a contract verification test for user-service:
|
|
149
|
-
1. Set up provider states
|
|
150
|
-
2. Call actual provider endpoints
|
|
151
|
-
3. Verify responses match contracts
|
|
152
|
-
4. Report compatibility
|
|
153
|
-
|
|
154
|
-
What happens if provider doesn't match?
|
|
155
|
-
context:
|
|
156
|
-
provider_url: "http://localhost:3000"
|
|
157
|
-
contracts: "contracts/web-app-user-service.json"
|
|
158
|
-
publish_results: true
|
|
159
|
-
|
|
160
|
-
expected_output:
|
|
161
|
-
must_contain:
|
|
162
|
-
- "verification"
|
|
163
|
-
- "provider state"
|
|
164
|
-
- "compatible"
|
|
165
|
-
- "verification"
|
|
166
|
-
- "response"
|
|
167
|
-
must_not_contain:
|
|
168
|
-
- "mismatch"
|
|
169
|
-
- "failure"
|
|
170
|
-
severity_classification: critical
|
|
171
|
-
|
|
172
|
-
validation:
|
|
173
|
-
schema_check: true
|
|
174
|
-
keyword_match_threshold: 0.8
|
|
175
|
-
|
|
176
|
-
# ---------------------------------------------------------------------------
|
|
177
|
-
# CATEGORY: Schema Validation
|
|
178
|
-
# ---------------------------------------------------------------------------
|
|
179
|
-
|
|
180
|
-
- id: tc003_openapi_schema_validation
|
|
181
|
-
description: "Validate API requests/responses against OpenAPI schema"
|
|
182
|
-
category: schema_validation
|
|
183
|
-
priority: critical
|
|
184
|
-
|
|
185
|
-
input:
|
|
186
|
-
prompt: |
|
|
187
|
-
Validate a REST API against its OpenAPI specification:
|
|
188
|
-
1. Load OpenAPI spec from api/openapi.yaml
|
|
189
|
-
2. Validate actual requests match schema
|
|
190
|
-
3. Validate actual responses match schema
|
|
191
|
-
4. Check headers, status codes, body structure
|
|
192
|
-
5. Report schema violations
|
|
193
|
-
|
|
194
|
-
What would you check?
|
|
195
|
-
context:
|
|
196
|
-
api_spec: "api/openapi.yaml"
|
|
197
|
-
requests: collected_requests
|
|
198
|
-
responses: collected_responses
|
|
199
|
-
|
|
200
|
-
expected_output:
|
|
201
|
-
must_contain:
|
|
202
|
-
- "OpenAPI"
|
|
203
|
-
- "schema"
|
|
204
|
-
- "validation"
|
|
205
|
-
- "request"
|
|
206
|
-
- "response"
|
|
207
|
-
- "violation"
|
|
208
|
-
must_not_contain:
|
|
209
|
-
- "pass"
|
|
210
|
-
- "no issues"
|
|
211
|
-
severity_classification: critical
|
|
212
|
-
|
|
213
|
-
validation:
|
|
214
|
-
schema_check: true
|
|
215
|
-
keyword_match_threshold: 0.8
|
|
216
|
-
reasoning_quality_min: 0.75
|
|
217
|
-
|
|
218
|
-
- id: tc004_schema_violations_detection
|
|
219
|
-
description: "Detect violations of schema constraints"
|
|
220
|
-
category: schema_validation
|
|
221
|
-
priority: high
|
|
222
|
-
|
|
223
|
-
input:
|
|
224
|
-
prompt: |
|
|
225
|
-
How would you detect these schema violations?
|
|
226
|
-
1. Required field missing in response
|
|
227
|
-
2. Field type mismatch (string vs number)
|
|
228
|
-
3. Extra fields not in schema
|
|
229
|
-
4. Enum value not in allowed list
|
|
230
|
-
5. String exceeds maxLength
|
|
231
|
-
|
|
232
|
-
How would you report each violation?
|
|
233
|
-
context:
|
|
234
|
-
include_violations: true
|
|
235
|
-
severity_levels: true
|
|
236
|
-
|
|
237
|
-
expected_output:
|
|
238
|
-
must_contain:
|
|
239
|
-
- "required"
|
|
240
|
-
- "type mismatch"
|
|
241
|
-
- "extra fields"
|
|
242
|
-
- "enum"
|
|
243
|
-
- "violation"
|
|
244
|
-
finding_count:
|
|
245
|
-
min: 1
|
|
246
|
-
|
|
247
|
-
validation:
|
|
248
|
-
schema_check: true
|
|
249
|
-
keyword_match_threshold: 0.75
|
|
250
|
-
|
|
251
|
-
# ---------------------------------------------------------------------------
|
|
252
|
-
# CATEGORY: Breaking Change Detection
|
|
253
|
-
# ---------------------------------------------------------------------------
|
|
254
|
-
|
|
255
|
-
- id: tc005_breaking_changes_rest_api
|
|
256
|
-
description: "Detect breaking changes in REST API between versions"
|
|
257
|
-
category: breaking_changes
|
|
258
|
-
priority: critical
|
|
259
|
-
|
|
260
|
-
input:
|
|
261
|
-
prompt: |
|
|
262
|
-
Compare REST API v1.0 vs v2.0 and detect breaking changes:
|
|
263
|
-
|
|
264
|
-
ALWAYS BREAKING (client compatibility lost):
|
|
265
|
-
- Endpoint removed (/api/v1/users -> removed)
|
|
266
|
-
- Required parameter added (new required query param)
|
|
267
|
-
- Response field removed (id field gone from User)
|
|
268
|
-
- Type changed (status: 'active' -> status: 0)
|
|
269
|
-
|
|
270
|
-
POTENTIALLY BREAKING:
|
|
271
|
-
- Optional parameter removed
|
|
272
|
-
- Response field added (might break parsing)
|
|
273
|
-
- Enum value removed
|
|
274
|
-
|
|
275
|
-
NON-BREAKING:
|
|
276
|
-
- Endpoint added
|
|
277
|
-
- Optional parameter added
|
|
278
|
-
- Response field added (if client ignores unknown fields)
|
|
279
|
-
|
|
280
|
-
How would you classify each change?
|
|
281
|
-
context:
|
|
282
|
-
api_v1: "api/openapi-v1.yaml"
|
|
283
|
-
api_v2: "api/openapi-v2.yaml"
|
|
284
|
-
breaking_classification: true
|
|
285
|
-
|
|
286
|
-
expected_output:
|
|
287
|
-
must_contain:
|
|
288
|
-
- "breaking"
|
|
289
|
-
- "removed"
|
|
290
|
-
- "required"
|
|
291
|
-
- "type"
|
|
292
|
-
- "compatibility"
|
|
293
|
-
must_not_contain:
|
|
294
|
-
- "all changes break"
|
|
295
|
-
severity_classification: critical
|
|
296
|
-
|
|
297
|
-
validation:
|
|
298
|
-
schema_check: true
|
|
299
|
-
keyword_match_threshold: 0.8
|
|
300
|
-
reasoning_quality_min: 0.75
|
|
301
|
-
|
|
302
|
-
- id: tc006_graphql_breaking_changes
|
|
303
|
-
description: "Detect breaking changes in GraphQL schema"
|
|
304
|
-
category: breaking_changes
|
|
305
|
-
priority: high
|
|
306
|
-
|
|
307
|
-
input:
|
|
308
|
-
prompt: |
|
|
309
|
-
Detect breaking changes from GraphQL schema v1 to v2:
|
|
310
|
-
|
|
311
|
-
v1: type User { id: ID! name: String! }
|
|
312
|
-
v2: type User { id: ID! } # removed name field
|
|
313
|
-
|
|
314
|
-
ALWAYS BREAKING:
|
|
315
|
-
- Field removed (query field gone)
|
|
316
|
-
- Required field became optional
|
|
317
|
-
- Field type changed
|
|
318
|
-
- Enum value removed
|
|
319
|
-
- Input type changed
|
|
320
|
-
|
|
321
|
-
How would you detect and report these?
|
|
322
|
-
context:
|
|
323
|
-
schema_v1: "schema-v1.graphql"
|
|
324
|
-
schema_v2: "schema-v2.graphql"
|
|
325
|
-
breaking_detection: true
|
|
326
|
-
|
|
327
|
-
expected_output:
|
|
328
|
-
must_contain:
|
|
329
|
-
- "field"
|
|
330
|
-
- "removed"
|
|
331
|
-
- "type"
|
|
332
|
-
- "breaking"
|
|
333
|
-
- "GraphQL"
|
|
334
|
-
severity_classification: high
|
|
335
|
-
|
|
336
|
-
validation:
|
|
337
|
-
schema_check: true
|
|
338
|
-
keyword_match_threshold: 0.75
|
|
339
|
-
|
|
340
|
-
# ---------------------------------------------------------------------------
|
|
341
|
-
# CATEGORY: GraphQL Contract Testing
|
|
342
|
-
# ---------------------------------------------------------------------------
|
|
343
|
-
|
|
344
|
-
- id: tc007_graphql_operation_validation
|
|
345
|
-
description: "Validate GraphQL operations against schema"
|
|
346
|
-
category: graphql
|
|
347
|
-
priority: critical
|
|
348
|
-
|
|
349
|
-
input:
|
|
350
|
-
prompt: |
|
|
351
|
-
Validate GraphQL operations:
|
|
352
|
-
1. Check query validity against schema
|
|
353
|
-
2. Verify response shape matches expected
|
|
354
|
-
3. Check nullability (required vs optional fields)
|
|
355
|
-
4. Validate enum values
|
|
356
|
-
5. Check for deprecated fields
|
|
357
|
-
|
|
358
|
-
```graphql
|
|
359
|
-
query GetUser($id: ID!) {
|
|
360
|
-
user(id: $id) {
|
|
361
|
-
id
|
|
362
|
-
name
|
|
363
|
-
email
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
```
|
|
367
|
-
|
|
368
|
-
Is this valid? What would you check?
|
|
369
|
-
context:
|
|
370
|
-
schema: "schema.graphql"
|
|
371
|
-
operations: "queries/**/*.graphql"
|
|
372
|
-
|
|
373
|
-
expected_output:
|
|
374
|
-
must_contain:
|
|
375
|
-
- "valid"
|
|
376
|
-
- "query"
|
|
377
|
-
- "schema"
|
|
378
|
-
- "nullability"
|
|
379
|
-
- "response"
|
|
380
|
-
must_not_contain:
|
|
381
|
-
- "error"
|
|
382
|
-
- "invalid"
|
|
383
|
-
severity_classification: critical
|
|
384
|
-
|
|
385
|
-
validation:
|
|
386
|
-
schema_check: true
|
|
387
|
-
keyword_match_threshold: 0.8
|
|
388
|
-
|
|
389
|
-
- id: tc008_graphql_deprecation_handling
|
|
390
|
-
description: "Detect and warn about deprecated GraphQL fields"
|
|
391
|
-
category: graphql
|
|
392
|
-
priority: high
|
|
393
|
-
|
|
394
|
-
input:
|
|
395
|
-
prompt: |
|
|
396
|
-
Handle GraphQL deprecations:
|
|
397
|
-
1. Identify deprecated fields in schema
|
|
398
|
-
2. Find queries using deprecated fields
|
|
399
|
-
3. Suggest replacements
|
|
400
|
-
4. Plan migration timeline
|
|
401
|
-
|
|
402
|
-
How would you help teams migrate away from deprecated fields?
|
|
403
|
-
context:
|
|
404
|
-
deprecation_warnings: true
|
|
405
|
-
migration_suggestions: true
|
|
406
|
-
|
|
407
|
-
expected_output:
|
|
408
|
-
must_contain:
|
|
409
|
-
- "deprecated"
|
|
410
|
-
- "field"
|
|
411
|
-
- "replacement"
|
|
412
|
-
- "migration"
|
|
413
|
-
finding_count:
|
|
414
|
-
min: 1
|
|
415
|
-
|
|
416
|
-
validation:
|
|
417
|
-
schema_check: true
|
|
418
|
-
keyword_match_threshold: 0.75
|
|
419
|
-
|
|
420
|
-
# ---------------------------------------------------------------------------
|
|
421
|
-
# CATEGORY: Event Schema Validation
|
|
422
|
-
# ---------------------------------------------------------------------------
|
|
423
|
-
|
|
424
|
-
- id: tc009_event_schema_validation
|
|
425
|
-
description: "Validate event schemas for consistency"
|
|
426
|
-
category: event_contracts
|
|
427
|
-
priority: high
|
|
428
|
-
|
|
429
|
-
input:
|
|
430
|
-
prompt: |
|
|
431
|
-
Validate event schemas:
|
|
432
|
-
1. user.created event matches schema
|
|
433
|
-
2. order.completed event matches schema
|
|
434
|
-
3. Check backward compatibility
|
|
435
|
-
4. Validate examples against schema
|
|
436
|
-
|
|
437
|
-
Define schema validation rules for events.
|
|
438
|
-
context:
|
|
439
|
-
event_schemas: "events/schemas/"
|
|
440
|
-
examples: "events/examples/"
|
|
441
|
-
backward_compatible: true
|
|
442
|
-
|
|
443
|
-
expected_output:
|
|
444
|
-
must_contain:
|
|
445
|
-
- "event"
|
|
446
|
-
- "schema"
|
|
447
|
-
- "valid"
|
|
448
|
-
- "backward"
|
|
449
|
-
- "compatible"
|
|
450
|
-
severity_classification: high
|
|
451
|
-
|
|
452
|
-
validation:
|
|
453
|
-
schema_check: true
|
|
454
|
-
keyword_match_threshold: 0.75
|
|
455
|
-
|
|
456
|
-
# ---------------------------------------------------------------------------
|
|
457
|
-
# CATEGORY: Negative Tests
|
|
458
|
-
# ---------------------------------------------------------------------------
|
|
459
|
-
|
|
460
|
-
- id: tc010_contract_mismatch_reporting
|
|
461
|
-
description: "Clearly report contract mismatches and violations"
|
|
462
|
-
category: negative
|
|
463
|
-
priority: high
|
|
464
|
-
|
|
465
|
-
input:
|
|
466
|
-
prompt: |
|
|
467
|
-
Design error reporting for contract violations:
|
|
468
|
-
1. What information should be included?
|
|
469
|
-
2. How would you help developers fix violations?
|
|
470
|
-
3. What level of detail is most useful?
|
|
471
|
-
4. How would you prioritize violations?
|
|
472
|
-
context:
|
|
473
|
-
error_reporting: true
|
|
474
|
-
remediation_guidance: true
|
|
475
|
-
|
|
476
|
-
expected_output:
|
|
477
|
-
must_contain:
|
|
478
|
-
- "mismatch"
|
|
479
|
-
- "expected"
|
|
480
|
-
- "actual"
|
|
481
|
-
- "fix"
|
|
482
|
-
- "guidance"
|
|
483
|
-
finding_count:
|
|
484
|
-
min: 1
|
|
485
|
-
|
|
486
|
-
validation:
|
|
487
|
-
schema_check: true
|
|
488
|
-
allow_partial: true
|
|
489
|
-
|
|
490
|
-
# =============================================================================
|
|
491
|
-
# SUCCESS CRITERIA
|
|
492
|
-
# =============================================================================
|
|
493
|
-
|
|
494
|
-
success_criteria:
|
|
495
|
-
pass_rate: 0.8
|
|
496
|
-
critical_pass_rate: 1.0
|
|
497
|
-
avg_reasoning_quality: 0.75
|
|
498
|
-
max_execution_time_ms: 300000
|
|
499
|
-
cross_model_variance: 0.15
|
|
500
|
-
|
|
501
|
-
# =============================================================================
|
|
502
|
-
# METADATA
|
|
503
|
-
# =============================================================================
|
|
504
|
-
|
|
505
|
-
metadata:
|
|
506
|
-
author: "qe-api-contract"
|
|
507
|
-
created: "2026-02-02"
|
|
508
|
-
last_updated: "2026-02-02"
|
|
509
|
-
coverage_target: >
|
|
510
|
-
Consumer-driven contract testing with Pact, OpenAPI schema validation,
|
|
511
|
-
breaking change detection with strict classification (always/potentially/non-breaking),
|
|
512
|
-
GraphQL contract validation with deprecation handling, event schema validation,
|
|
513
|
-
backward compatibility checking, and comprehensive mismatch reporting.
|