@vesviet/agent-skills 5.6.0 → 5.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/INDEX.md +5 -5
- package/README.md +1 -1
- package/VERSION +1 -1
- package/adapters/antigravity/a2a-config.template.yaml +1 -1
- package/adapters/antigravity/role-skill-index.json +12 -12
- package/adapters/claude/CLAUDE_ADAPTER.md +1 -1
- package/adapters/cursor/README.md +185 -185
- package/bin/agent-skills.mjs +17 -14
- package/core/contracts/README.md +1 -1
- package/core/contracts/schemas/api-contract-spec.json +191 -191
- package/core/contracts/schemas/data-pipeline-spec.json +1 -1
- package/core/contracts/schemas/design-tokens-spec.json +19 -0
- package/core/contracts/schemas/feature-ticket.json +1293 -1293
- package/core/contracts/schemas/pull-request-spec.json +338 -338
- package/core/contracts/schemas/references/detailed/01-solution-and-governance.md +19 -19
- package/core/contracts/schemas/references/detailed/02-engineering-delivery.md +93 -93
- package/core/contracts/schemas/references/detailed/04-finance-accounting-and-compliance.md +54 -54
- package/core/contracts/schemas/references/detailed/05-design-and-content.md +92 -92
- package/core/contracts/schemas/references/detailed/06-seo-and-publishing.md +48 -48
- package/core/contracts/schemas/references/detailed/07-a2a-protocol.md +85 -85
- package/core/contracts/schemas/security-audit.json +143 -12
- package/core/contracts/schemas/system-design-spec.json +9 -1
- package/core/contracts/schemas/test-report.json +530 -530
- package/core/contracts/schemas/ux-flow-spec.json +66 -0
- package/core/roles/ai-systems-engineer.md +31 -18
- package/core/roles/aws-engineer.md +33 -29
- package/core/roles/backend-developer.md +6 -4
- package/core/roles/content-manager.md +7 -7
- package/core/roles/data-engineer.md +39 -36
- package/core/roles/qa-engineer.md +18 -18
- package/core/roles/references/ai-systems-engineer-review-checklist.md +11 -3
- package/core/roles/references/aws-engineer-review-checklist.md +29 -16
- package/core/roles/references/business-analyst-responsibilities.md +207 -207
- package/core/roles/references/content-manager-governance-standards.md +2 -2
- package/core/roles/references/content-manager-review-checklist.md +7 -1
- package/core/roles/references/data-engineer-review-checklist.md +11 -3
- package/core/roles/references/frontend-developer-responsibilities.md +275 -275
- package/core/roles/references/qa-engineer-review-checklist.md +10 -5
- package/core/roles/references/security-engineer-review-checklist.md +8 -0
- package/core/roles/references/solution-architect-review-checklist.md +6 -1
- package/core/roles/references/system-engineer-review-checklist.md +11 -0
- package/core/roles/references/ui-ux-designer-review-checklist.md +12 -0
- package/core/roles/security-engineer.md +35 -5
- package/core/roles/solution-architect.md +7 -7
- package/core/roles/system-engineer.md +470 -465
- package/core/roles/ui-ux-designer.md +17 -3
- package/core/skills/agent/agent-memory-compaction/references/anchored-schema-and-compaction-algorithms.md +141 -141
- package/core/skills/agent/architect-mcp-server/SKILL.md +3 -3
- package/core/skills/agent/decompose-agentic-system/SKILL.md +1 -1
- package/core/skills/ai/deploy-vllm-inference/SKILL.md +14 -14
- package/core/skills/ai-agent/agent-evaluation/SKILL.md +5 -0
- package/core/skills/ai-agent/context-optimization/SKILL.md +9 -0
- package/core/skills/backend/add-api-endpoint/SKILL.md +1 -0
- package/core/skills/backend/add-event-handler/SKILL.md +1 -0
- package/core/skills/backend/add-service-client/SKILL.md +1 -0
- package/core/skills/backend/build-mcp-server/SKILL.md +101 -100
- package/core/skills/backend/implement-auth/SKILL.md +1 -0
- package/core/skills/backend/implement-structured-outputs/SKILL.md +95 -94
- package/core/skills/backend/optimize-postgres/SKILL.md +1 -0
- package/core/skills/backend/scaffold-new-service/SKILL.md +1 -0
- package/core/skills/business/elicit-requirements/SKILL.md +102 -102
- package/core/skills/business/elicit-requirements/references/elicitation-techniques-and-babok-criteria.md +60 -60
- package/core/skills/business/trace-requirements-impact/SKILL.md +97 -97
- package/core/skills/business/trace-requirements-impact/references/rtm-graph-and-prioritization-models.md +109 -109
- package/core/skills/business/write-use-cases/SKILL.md +106 -106
- package/core/skills/business/write-use-cases/references/cockburn-scoping-and-13-field-template.md +135 -135
- package/core/skills/content/audit-content/SKILL.md +3 -2
- package/core/skills/content/audit-content/references/information-gain-rubric.md +1 -1
- package/core/skills/content/design-content-strategy/SKILL.md +6 -5
- package/core/skills/content/design-content-strategy/references/information-gain-and-decay-triage.md +2 -2
- package/core/skills/content/optimize-seo/SKILL.md +6 -5
- package/core/skills/content/optimize-seo/references/geo-ai-citation-playbook.md +2 -2
- package/core/skills/content/optimize-seo/references/process-and-checklist.md +1 -1
- package/core/skills/content/repurpose-content/SKILL.md +4 -3
- package/core/skills/content/write-article/SKILL.md +6 -5
- package/core/skills/content/write-copy/SKILL.md +3 -2
- package/core/skills/document/pptx/SKILL.md +1 -0
- package/core/skills/document/pptx/scripts/add_slide.py +0 -0
- package/core/skills/document/pptx/scripts/clean.py +0 -0
- package/core/skills/document/pptx/scripts/thumbnail.py +0 -0
- package/core/skills/document/xlsx/scripts/recalc.py +0 -0
- package/core/skills/documentation/write-documentation/SKILL.md +143 -143
- package/core/skills/documentation/write-tech-radar/SKILL.md +149 -149
- package/core/skills/foundation/accessibility-review/SKILL.md +160 -160
- package/core/skills/foundation/design-review/SKILL.md +11 -1
- package/core/skills/foundation/design-ux-flow/SKILL.md +13 -1
- package/core/skills/foundation/performance-profiling/SKILL.md +3 -1
- package/core/skills/foundation/release-notes/SKILL.md +192 -192
- package/core/skills/foundation/webapp-server-runner/scripts/with_server.py +0 -0
- package/core/skills/foundation/write-product-brief/SKILL.md +160 -160
- package/core/skills/foundation/write-tests/SKILL.md +11 -10
- package/core/skills/frontend/anti-ui-slop-finish-gate/SKILL.md +5 -0
- package/core/skills/frontend/design-md-specification/SKILL.md +1 -0
- package/core/skills/frontend/design-system-engineering/SKILL.md +4 -2
- package/core/skills/meetings-analysis/analyze-business-requirements/SKILL.md +1 -1
- package/core/skills/platform/add-telemetry-instrumentation/SKILL.md +2 -1
- package/core/skills/platform/aws-infrastructure/SKILL.md +12 -11
- package/core/skills/platform/cloudflare-email-service/SKILL.md +166 -166
- package/core/skills/platform/cloudflare-email-service/references/routing.md +199 -199
- package/core/skills/platform/debug-runtime-platform/SKILL.md +1 -0
- package/core/skills/platform/debug-workers-edge/SKILL.md +111 -111
- package/core/skills/platform/sandbox-sdk/SKILL.md +183 -183
- package/core/skills/platform/setup-gpu-finops/SKILL.md +111 -107
- package/core/skills/platform/setup-llm-gateway/SKILL.md +110 -108
- package/core/skills/platform/supply-chain-security/SKILL.md +1 -0
- package/core/skills/platform/system-design/SKILL.md +7 -0
- package/core/skills/platform/turnstile-spin/SKILL.md +118 -118
- package/core/skills/platform/turnstile-spin/scripts/auth-probe.sh +0 -0
- package/core/skills/platform/turnstile-spin/scripts/fetch-secret.sh +0 -0
- package/core/skills/platform/turnstile-spin/scripts/persist-skill.sh +0 -0
- package/core/skills/platform/turnstile-spin/scripts/validate.sh +0 -0
- package/core/skills/platform/turnstile-spin/scripts/widget-create.sh +0 -0
- package/core/skills/platform/turnstile-spin/scripts/worker-deploy.sh +0 -0
- package/core/skills/platform/turnstile-spin/templates/worker/src/index.ts +199 -199
- package/core/skills/platform/turnstile-spin/templates/worker/wrangler.toml +31 -31
- package/core/skills/platform/web-perf/SKILL.md +151 -151
- package/core/skills/platform/workers-best-practices/references/rules.md +463 -463
- package/core/skills/product/build-story-map/SKILL.md +104 -104
- package/core/skills/product/build-story-map/references/story-mapping-and-cpm-scheduling.md +101 -101
- package/core/skills/product/define-product-strategy/SKILL.md +105 -105
- package/core/skills/product/define-product-strategy/references/strategy-frameworks-and-pr-faq.md +142 -142
- package/core/skills/product/model-saas-metrics/SKILL.md +104 -104
- package/core/skills/product/model-saas-metrics/references/saas-unit-economics-and-pricing.md +110 -110
- package/core/skills/product/prioritize-roadmap/SKILL.md +106 -106
- package/core/skills/product/prioritize-roadmap/references/prioritization-scoring-and-kill-criteria.md +105 -105
- package/core/skills/repo-ops/commit-code/SKILL.md +190 -190
- package/core/skills/repo-ops/commit-code/references/multi-repo-and-deployment.md +21 -21
- package/core/skills/repo-ops/navigate-service/SKILL.md +199 -199
- package/core/skills/repo-ops/review-code/references/process-and-format.md +100 -100
- package/core/skills/repo-ops/review-service/SKILL.md +186 -186
- package/core/skills/repo-ops/troubleshoot-service/SKILL.md +127 -127
- package/core/skills/repo-ops/troubleshoot-service/references/failure-modes-and-security.md +22 -22
- package/core/skills/repo-ops/troubleshoot-service/references/suggested-process.md +110 -110
- package/core/skills/security-data/build-data-pipeline/SKILL.md +15 -14
- package/core/skills/security-data/build-data-pipeline/references/producer-contracts-and-lakehouse.md +5 -5
- package/core/skills/security-data/database-maintenance/SKILL.md +1 -0
- package/core/skills/security-data/database-maintenance/references/relational-and-vector-maintenance.md +5 -5
- package/core/skills/security-data/manage-secrets/SKILL.md +3 -0
- package/core/skills/security-data/optimize-olap-database/SKILL.md +14 -13
- package/core/skills/security-data/optimize-olap-database/references/olap-database-guide.md +2 -2
- package/core/skills/security-data/prompt-injection-defense/SKILL.md +3 -0
- package/core/skills/security-data/query-analytical-engine/SKILL.md +8 -7
- package/core/skills/security-data/query-analytical-engine/references/analytical-query-guide.md +3 -3
- package/core/skills/security-data/security-audit/SKILL.md +126 -119
- package/core/workflows/add-new-feature.md +212 -212
- package/core/workflows/agent-a2a-delegation.md +142 -142
- package/core/workflows/bug-fix.md +147 -147
- package/core/workflows/build-deploy.md +208 -208
- package/core/workflows/code-review.md +137 -137
- package/core/workflows/curriculum-delivery.md +1 -1
- package/core/workflows/dependency-upgrade.md +193 -193
- package/core/workflows/feature-delivery.md +149 -149
- package/core/workflows/hotfix-production.md +172 -172
- package/core/workflows/qa-validation.md +231 -231
- package/core/workflows/refactoring.md +154 -154
- package/core/workflows/revert-deployment.md +147 -147
- package/core/workflows/security-incident-response.md +191 -191
- package/core/workflows/seo-content-lifecycle.md +91 -91
- package/core/workflows/service-review-release.md +223 -223
- package/core/workflows/setup-new-service.md +214 -214
- package/core/workflows/tech-repo-review.md +245 -245
- package/core/workflows/troubleshooting.md +241 -241
- package/overlays/astro-cloudflare/README.md +93 -93
- package/overlays/data-analyst-stack/README.md +109 -109
- package/overlays/data-analyst-stack/rules/metric-dashboard-templates.md +135 -135
- package/overlays/data-analyst-stack/rules/stack-conventions.md +80 -80
- package/overlays/ecommerce-microservices/README.md +65 -65
- package/overlays/go-microservices/README.md +78 -78
- package/overlays/go-microservices/rules/go-conventions.md +223 -223
- package/overlays/laravel-filament/README.md +90 -90
- package/overlays/laravel-filament/rules/laravel-conventions.md +220 -220
- package/overlays/laravel-filament/skills/develop-laravel-feature/SKILL.md +141 -141
- package/overlays/laravel-filament/workflows/deploy-laravel.md +133 -133
- package/overlays/obj-configurator/rules/obj-project-rules.md +111 -111
- package/overlays/obj-configurator/skills/develop-obj-feature/SKILL.md +71 -71
- package/overlays/r3f-stack/README.md +89 -89
- package/overlays/r3f-stack/rules/stub.md +43 -43
- package/overlays/r3f-stack/skills/debug-3d-scene/SKILL.md +166 -166
- package/overlays/r3f-stack/skills/integrate-r3f-three-legacy/SKILL.md +159 -159
- package/overlays/r3f-stack/skills/optimize-3d-assets/SKILL.md +128 -128
- package/overlays/seo-publishing/rules/site-mix-and-cannibalization.md +52 -52
- package/overlays/ui-design-system/rules/handoff-conventions.md +73 -73
- package/package.json +2 -2
- package/core/README.md +0 -53
|
@@ -1,231 +1,231 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: QA validation workflow from implemented feature or fix through test coverage audit, risk-based test planning, execution, and release confidence verdict
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
## QA Validation Workflow
|
|
6
|
-
|
|
7
|
-
Use this workflow after a feature or fix has been implemented and is ready for quality validation before merge or release. QA Validation goes beyond running tests — it audits coverage gaps, derives a risk-based test plan, validates observable behavior (including side effects), and produces an explicit release confidence verdict.
|
|
8
|
-
|
|
9
|
-
### When To Use
|
|
10
|
-
|
|
11
|
-
- a feature implementation is complete and needs QA sign-off before merge
|
|
12
|
-
- a bug fix must be validated and regression-checked before shipping
|
|
13
|
-
- a release candidate needs a full validation pass before promotion
|
|
14
|
-
- test coverage for a changed area is unknown or suspected to be insufficient
|
|
15
|
-
- an AI/LLM behavior change needs non-deterministic validation
|
|
16
|
-
|
|
17
|
-
### Prerequisites
|
|
18
|
-
|
|
19
|
-
- the implementation is complete in a testable branch or environment
|
|
20
|
-
- acceptance criteria or expected behavior is documented (from requirements, brief, or ticket)
|
|
21
|
-
- a lower environment (staging, test, dev) is available to test against
|
|
22
|
-
- the test suite runs and can be executed locally or in CI
|
|
23
|
-
|
|
24
|
-
### Workflow Steps
|
|
25
|
-
|
|
26
|
-
#### 1. Understand What Changed And Why
|
|
27
|
-
|
|
28
|
-
Role: **QA Engineer**
|
|
29
|
-
|
|
30
|
-
Before writing any test plan:
|
|
31
|
-
|
|
32
|
-
- read the acceptance criteria or feature description
|
|
33
|
-
- identify the changed files, modules, services, and APIs
|
|
34
|
-
- understand what business behavior the change is supposed to produce
|
|
35
|
-
- identify what was deliberately left out of scope
|
|
36
|
-
- note any known edge cases, performance concerns, or backward compatibility risks
|
|
37
|
-
|
|
38
|
-
Use skill: `navigate-service` if the change scope is not fully visible.
|
|
39
|
-
|
|
40
|
-
#### 2. Audit Existing Test Coverage
|
|
41
|
-
|
|
42
|
-
Role: **QA Engineer**, **Backend Developer**
|
|
43
|
-
|
|
44
|
-
Assess what coverage already exists for the changed area:
|
|
45
|
-
|
|
46
|
-
- what unit tests cover the changed logic?
|
|
47
|
-
- what integration tests cover the changed API or service interaction?
|
|
48
|
-
- what contract tests exist for the changed public interface?
|
|
49
|
-
- are there end-to-end tests for the affected user flow?
|
|
50
|
-
- are there regression tests for previously reported bugs in this area?
|
|
51
|
-
|
|
52
|
-
Use skill: `write-tests` to identify and fill coverage gaps.
|
|
53
|
-
|
|
54
|
-
Classify coverage gaps:
|
|
55
|
-
|
|
56
|
-
- **Critical gap**: no test covers a high-risk behavior or failure path
|
|
57
|
-
- **Important gap**: a test exists but does not cover a significant edge case
|
|
58
|
-
- **Follow-Up gap**: minor coverage improvement that can be deferred
|
|
59
|
-
|
|
60
|
-
#### 3. Derive A Risk-Based Test Plan
|
|
61
|
-
|
|
62
|
-
Role: **QA Engineer**
|
|
63
|
-
|
|
64
|
-
Prioritize testing effort by risk, not by code size:
|
|
65
|
-
|
|
66
|
-
- **Happy path**: core success scenario — must pass before any other tests
|
|
67
|
-
- **Validation and boundary failures**: invalid inputs, edge values, rate limits, empty states
|
|
68
|
-
- **Side effects**: database writes, cache invalidation, events published, downstream calls
|
|
69
|
-
- **Distributed system concerns**: retries, idempotency, eventual consistency, duplicate delivery, timeouts
|
|
70
|
-
- **Backward compatibility**: does the change break any existing consumer of the changed interface?
|
|
71
|
-
- **Security boundary**: does the change affect auth, authz, or input validation?
|
|
72
|
-
- **Accessibility**: if UI is affected — does it meet WCAG 2.2 compliance? (use `accessibility-review` skill)
|
|
73
|
-
|
|
74
|
-
Apply **property-based testing** (fast-check for TypeScript, Hypothesis for Python, `pgregory.net/rapid` for Go) for state machines, serialization, financial calculations, and parser logic — generates hundreds of randomized permutations and automatically shrinks failures to minimal reproducers. Do not limit these paths to example-based tests only.
|
|
75
|
-
|
|
76
|
-
Apply **contract testing** when the change touches service boundaries: use **Pact v4** (for REST/gRPC and async messaging via Kafka/RabbitMQ) or **Specmatic** (OpenAPI/AsyncAPI specs as executable contracts) to confirm no integration drift before staging deployment.
|
|
77
|
-
|
|
78
|
-
**2026 Risk-Weighted Coverage Thresholds** (replace line coverage as primary KPI):
|
|
79
|
-
- Core business logic (`internal/biz`, domain models): **branch/path coverage ≥85%**
|
|
80
|
-
- API contract coverage: **100%** of defined OpenAPI/Protobuf success and error response codes
|
|
81
|
-
- Critical paths (financial, auth, data deletion): **100% branch coverage + mutation score ≥85%**
|
|
82
|
-
- General baseline floor: 80% line coverage as a sanity check only — branch coverage is the real gate
|
|
83
|
-
|
|
84
|
-
For AI/LLM behavior changes, add:
|
|
85
|
-
|
|
86
|
-
- **Property-based assertions**: validate output properties (tone, safety, structure, relevance) — not exact strings
|
|
87
|
-
- **Golden dataset regression**: run against the version-controlled golden dataset and compare pass rate
|
|
88
|
-
- **Trajectory evaluation**: for multi-step agents, validate tool-call sequence and decision logic
|
|
89
|
-
|
|
90
|
-
Document the test plan explicitly: what scenarios, at what layer, in what environment.
|
|
91
|
-
|
|
92
|
-
#### 4. Prepare The Test Environment
|
|
93
|
-
|
|
94
|
-
Role: **QA Engineer**, **Backend Developer**
|
|
95
|
-
|
|
96
|
-
Confirm before running tests:
|
|
97
|
-
|
|
98
|
-
- the correct branch and revision is deployed to the target environment
|
|
99
|
-
- test data is seeded or available (use representative data — never production PII)
|
|
100
|
-
- feature flags match the expected configuration for the test
|
|
101
|
-
- migrations have run and the schema is at the expected state
|
|
102
|
-
- external dependencies (mocks, stubs, or real integrations) are reachable
|
|
103
|
-
|
|
104
|
-
#### 5. Execute The Test Plan
|
|
105
|
-
|
|
106
|
-
Role: **QA Engineer**
|
|
107
|
-
|
|
108
|
-
Use skill: `write-tests`
|
|
109
|
-
|
|
110
|
-
Run in this order:
|
|
111
|
-
|
|
112
|
-
1. **Automated suite first**: run existing unit, integration, and contract tests — do not proceed if pre-existing tests fail
|
|
113
|
-
2. **New tests for coverage gaps**: run newly written tests for the critical and important gaps
|
|
114
|
-
3. **Manual exploratory charter**: for high-risk paths and UX flows, run a structured exploratory session — not ad hoc clicking
|
|
115
|
-
4. **Side effect verification**: confirm non-response side effects (DB writes, event emissions, cache state) are correct
|
|
116
|
-
5. **Regression pass**: run the regression checklist for areas adjacent to the change
|
|
117
|
-
6. **Chaos injection** (for changes to distributed systems or network paths): use **Toxiproxy** to simulate latency spikes, TCP connection drops, and bandwidth throttling on database and downstream service connections within the integration test suite; escalate to **LitmusChaos 3.x** experiments in staging for pod-kill and network packet-loss validation before production promotion
|
|
118
|
-
|
|
119
|
-
For AI-generated test suites: run a **mutation score gate** — AI-written tests must achieve mutation score ≥75% (Stryker for JS/TS, mutmut for Python, go-mutesting for Go) before they count toward coverage. Reject tests that assert trivial invariants or mock out the entire implementation.
|
|
120
|
-
|
|
121
|
-
For each test failure:
|
|
122
|
-
|
|
123
|
-
- record the exact reproduction steps
|
|
124
|
-
- classify as: regression (broke previously working behavior), new bug (unintended behavior in new code), or expected failure (known limitation)
|
|
125
|
-
- do not suppress failures — every failure is a signal
|
|
126
|
-
|
|
127
|
-
#### 6. Validate AI / LLM Behavior (If Applicable)
|
|
128
|
-
|
|
129
|
-
Role: **QA Engineer**
|
|
130
|
-
|
|
131
|
-
When the change involves LLM pipelines, AI agents, or AI-generated output:
|
|
132
|
-
|
|
133
|
-
- run property-based validation — check output properties (tone, factual grounding, safety, structure), not exact string matches
|
|
134
|
-
- run the golden dataset: compare the model or prompt change against the version-controlled baseline
|
|
135
|
-
- calculate pass rate against the golden dataset — if it regresses below the threshold, block the change
|
|
136
|
-
- evaluate multi-step agent trajectories: tool-call sequence, decision logic, error recovery
|
|
137
|
-
- validate that non-deterministic outputs stay within acceptable behavioral bounds
|
|
138
|
-
|
|
139
|
-
Document the LLM-as-Judge methodology used and calibration against human annotations if applicable.
|
|
140
|
-
|
|
141
|
-
#### 7. Document Findings And Evidence
|
|
142
|
-
|
|
143
|
-
Role: **QA Engineer**
|
|
144
|
-
|
|
145
|
-
For each defect found:
|
|
146
|
-
|
|
147
|
-
- title and severity (Critical, High, Medium, Low)
|
|
148
|
-
- reproduction steps (minimal and reliable)
|
|
149
|
-
- expected vs actual behavior
|
|
150
|
-
- evidence (screenshot, log, request/response, DB state)
|
|
151
|
-
- suspected scope: is this limited to the changed code, or does it suggest a deeper issue?
|
|
152
|
-
|
|
153
|
-
Distinguish:
|
|
154
|
-
|
|
155
|
-
- **Blocking defect**: must be fixed before merge or release
|
|
156
|
-
- **Important defect**: should be fixed — can be released with documented risk if stakeholder acknowledges
|
|
157
|
-
- **Follow-Up defect**: can be tracked and fixed post-release
|
|
158
|
-
|
|
159
|
-
#### 8. Produce Release Confidence Verdict
|
|
160
|
-
|
|
161
|
-
Role: **QA Engineer**
|
|
162
|
-
|
|
163
|
-
Use skill: `write-tests`
|
|
164
|
-
|
|
165
|
-
Emit `test-report.json` with:
|
|
166
|
-
|
|
167
|
-
- test plan summary (what was tested, what was not, and why)
|
|
168
|
-
- pass/fail counts by layer (unit, integration, e2e, exploratory)
|
|
169
|
-
- blocking and important defects with status
|
|
170
|
-
- coverage gaps addressed and remaining
|
|
171
|
-
- AI/LLM validation results if applicable
|
|
172
|
-
- explicit release confidence verdict:
|
|
173
|
-
|
|
174
|
-
| Verdict | Meaning |
|
|
175
|
-
|---------|---------|
|
|
176
|
-
| **Confident to release** | All blocking defects resolved, important defects acknowledged |
|
|
177
|
-
| **Conditional release** | Important defects present but stakeholder accepts documented risk |
|
|
178
|
-
| **Block release** | One or more blocking defects unresolved — do not ship |
|
|
179
|
-
|
|
180
|
-
The verdict must be explicit — "no obvious issues" is not a release confidence verdict.
|
|
181
|
-
|
|
182
|
-
### Checklist
|
|
183
|
-
|
|
184
|
-
- [ ] acceptance criteria and change scope understood
|
|
185
|
-
- [ ] existing test coverage audited — gaps classified (Critical/Important/Follow-Up)
|
|
186
|
-
- [ ] risk-based test plan derived — happy path, failures, side effects, distributed concerns
|
|
187
|
-
- [ ] test environment confirmed — correct revision, data, flags, migrations
|
|
188
|
-
- [ ] automated suite passes
|
|
189
|
-
- [ ] new tests for critical coverage gaps written and pass
|
|
190
|
-
- [ ] exploratory testing charter executed for high-risk flows
|
|
191
|
-
- [ ] side effect verification completed (DB, events, cache, downstream)
|
|
192
|
-
- [ ] AI/LLM property-based validation and golden dataset run (if applicable)
|
|
193
|
-
- [ ] defect findings documented with severity and reproduction steps
|
|
194
|
-
- [ ] test-report.json emitted with release confidence verdict
|
|
195
|
-
|
|
196
|
-
### Related Workflows
|
|
197
|
-
|
|
198
|
-
- [add-new-feature](add-new-feature.md)
|
|
199
|
-
- [tech-repo-review](tech-repo-review.md)
|
|
200
|
-
- [service-review-release](service-review-release.md)
|
|
201
|
-
- [build-deploy](build-deploy.md)
|
|
202
|
-
|
|
203
|
-
### Related Skills
|
|
204
|
-
|
|
205
|
-
- **write-tests**: Design and implement tests for coverage gaps
|
|
206
|
-
- **navigate-service**: Understand the changed code before deriving the test plan
|
|
207
|
-
- **review-code**: Review test code quality and coverage logic
|
|
208
|
-
- **accessibility-review**: Validate WCAG 2.2 compliance when UI is affected
|
|
209
|
-
- **agent-quality-gate**: Validate artifacts in agentic pipelines
|
|
210
|
-
|
|
211
|
-
### Failure Modes
|
|
212
|
-
|
|
213
|
-
- **Coverage theater**: a high line-coverage score is achieved without exercising the risky path. **Mitigation:** enforce the Testing Trophy and a mutation score ≥75-80% via Stryker for critical libraries.
|
|
214
|
-
- **Live LLM API in CI**: a test calls a live LLM provider, making the CI run non-deterministic. **Mitigation:** stub LLM calls with vcr-style fixtures in CI; never call live providers in CI.
|
|
215
|
-
- **Brittle E2E for unit logic**: a unit-level decision is covered only by an E2E test. **Mitigation:** drop the E2E and add a focused unit test; reserve E2E for cross-service flows.
|
|
216
|
-
- **Skipped tests reported as full coverage**: a test run skips a category and reports the line coverage as full. **Mitigation:** surface skipped tests in the `test-report.json`; reject reports where skipped > 0% without a documented rationale.
|
|
217
|
-
|
|
218
|
-
### Output Contracts
|
|
219
|
-
|
|
220
|
-
When this workflow produces a structured handoff, emit:
|
|
221
|
-
|
|
222
|
-
- **`contracts/schemas/test-report.json`** (or equivalent) — capture the run id, the test categories, the pass/fail counts, the skipped tests with rationale, and the release confidence verdict.
|
|
223
|
-
- **`contracts/schemas/code-review-finding.json`** (adapted for QA) — when the run surfaces a test gap; capture the category, severity, and the fix path.
|
|
224
|
-
|
|
225
|
-
### Security Guardrails (OWASP ASI)
|
|
226
|
-
|
|
227
|
-
- **ASI04 Supply Chain**: every test runner, e2e driver, and fixture library must be schema-validated against the expected manifest; treat unknown versions as untrusted.
|
|
228
|
-
- **ASI05 RCE Guard**: never construct test scripts or fixture payloads from external or user-supplied content without sanitization; treat adversarial test inputs as a hostile surface.
|
|
229
|
-
- **ASI07 Inter-Agent Communication**: the test report is consumed by CI and release roles; emit a structured contract so each consumer can validate the run.
|
|
230
|
-
- **ASI09 Human-Agent Trust Exploitation**: do not present partial test runs as full coverage; surface skipped tests and their rationale honestly.
|
|
231
|
-
|
|
1
|
+
---
|
|
2
|
+
description: QA validation workflow from implemented feature or fix through test coverage audit, risk-based test planning, execution, and release confidence verdict
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
## QA Validation Workflow
|
|
6
|
+
|
|
7
|
+
Use this workflow after a feature or fix has been implemented and is ready for quality validation before merge or release. QA Validation goes beyond running tests — it audits coverage gaps, derives a risk-based test plan, validates observable behavior (including side effects), and produces an explicit release confidence verdict.
|
|
8
|
+
|
|
9
|
+
### When To Use
|
|
10
|
+
|
|
11
|
+
- a feature implementation is complete and needs QA sign-off before merge
|
|
12
|
+
- a bug fix must be validated and regression-checked before shipping
|
|
13
|
+
- a release candidate needs a full validation pass before promotion
|
|
14
|
+
- test coverage for a changed area is unknown or suspected to be insufficient
|
|
15
|
+
- an AI/LLM behavior change needs non-deterministic validation
|
|
16
|
+
|
|
17
|
+
### Prerequisites
|
|
18
|
+
|
|
19
|
+
- the implementation is complete in a testable branch or environment
|
|
20
|
+
- acceptance criteria or expected behavior is documented (from requirements, brief, or ticket)
|
|
21
|
+
- a lower environment (staging, test, dev) is available to test against
|
|
22
|
+
- the test suite runs and can be executed locally or in CI
|
|
23
|
+
|
|
24
|
+
### Workflow Steps
|
|
25
|
+
|
|
26
|
+
#### 1. Understand What Changed And Why
|
|
27
|
+
|
|
28
|
+
Role: **QA Engineer**
|
|
29
|
+
|
|
30
|
+
Before writing any test plan:
|
|
31
|
+
|
|
32
|
+
- read the acceptance criteria or feature description
|
|
33
|
+
- identify the changed files, modules, services, and APIs
|
|
34
|
+
- understand what business behavior the change is supposed to produce
|
|
35
|
+
- identify what was deliberately left out of scope
|
|
36
|
+
- note any known edge cases, performance concerns, or backward compatibility risks
|
|
37
|
+
|
|
38
|
+
Use skill: `navigate-service` if the change scope is not fully visible.
|
|
39
|
+
|
|
40
|
+
#### 2. Audit Existing Test Coverage
|
|
41
|
+
|
|
42
|
+
Role: **QA Engineer**, **Backend Developer**
|
|
43
|
+
|
|
44
|
+
Assess what coverage already exists for the changed area:
|
|
45
|
+
|
|
46
|
+
- what unit tests cover the changed logic?
|
|
47
|
+
- what integration tests cover the changed API or service interaction?
|
|
48
|
+
- what contract tests exist for the changed public interface?
|
|
49
|
+
- are there end-to-end tests for the affected user flow?
|
|
50
|
+
- are there regression tests for previously reported bugs in this area?
|
|
51
|
+
|
|
52
|
+
Use skill: `write-tests` to identify and fill coverage gaps.
|
|
53
|
+
|
|
54
|
+
Classify coverage gaps:
|
|
55
|
+
|
|
56
|
+
- **Critical gap**: no test covers a high-risk behavior or failure path
|
|
57
|
+
- **Important gap**: a test exists but does not cover a significant edge case
|
|
58
|
+
- **Follow-Up gap**: minor coverage improvement that can be deferred
|
|
59
|
+
|
|
60
|
+
#### 3. Derive A Risk-Based Test Plan
|
|
61
|
+
|
|
62
|
+
Role: **QA Engineer**
|
|
63
|
+
|
|
64
|
+
Prioritize testing effort by risk, not by code size:
|
|
65
|
+
|
|
66
|
+
- **Happy path**: core success scenario — must pass before any other tests
|
|
67
|
+
- **Validation and boundary failures**: invalid inputs, edge values, rate limits, empty states
|
|
68
|
+
- **Side effects**: database writes, cache invalidation, events published, downstream calls
|
|
69
|
+
- **Distributed system concerns**: retries, idempotency, eventual consistency, duplicate delivery, timeouts
|
|
70
|
+
- **Backward compatibility**: does the change break any existing consumer of the changed interface?
|
|
71
|
+
- **Security boundary**: does the change affect auth, authz, or input validation?
|
|
72
|
+
- **Accessibility**: if UI is affected — does it meet WCAG 2.2 compliance? (use `accessibility-review` skill)
|
|
73
|
+
|
|
74
|
+
Apply **property-based testing** (fast-check for TypeScript, Hypothesis for Python, `pgregory.net/rapid` for Go) for state machines, serialization, financial calculations, and parser logic — generates hundreds of randomized permutations and automatically shrinks failures to minimal reproducers. Do not limit these paths to example-based tests only.
|
|
75
|
+
|
|
76
|
+
Apply **contract testing** when the change touches service boundaries: use **Pact v4** (for REST/gRPC and async messaging via Kafka/RabbitMQ) or **Specmatic** (OpenAPI/AsyncAPI specs as executable contracts) to confirm no integration drift before staging deployment.
|
|
77
|
+
|
|
78
|
+
**2026 Risk-Weighted Coverage Thresholds** (replace line coverage as primary KPI):
|
|
79
|
+
- Core business logic (`internal/biz`, domain models): **branch/path coverage ≥85%**
|
|
80
|
+
- API contract coverage: **100%** of defined OpenAPI/Protobuf success and error response codes
|
|
81
|
+
- Critical paths (financial, auth, data deletion): **100% branch coverage + mutation score ≥85%**
|
|
82
|
+
- General baseline floor: 80% line coverage as a sanity check only — branch coverage is the real gate
|
|
83
|
+
|
|
84
|
+
For AI/LLM behavior changes, add:
|
|
85
|
+
|
|
86
|
+
- **Property-based assertions**: validate output properties (tone, safety, structure, relevance) — not exact strings
|
|
87
|
+
- **Golden dataset regression**: run against the version-controlled golden dataset and compare pass rate
|
|
88
|
+
- **Trajectory evaluation**: for multi-step agents, validate tool-call sequence and decision logic
|
|
89
|
+
|
|
90
|
+
Document the test plan explicitly: what scenarios, at what layer, in what environment.
|
|
91
|
+
|
|
92
|
+
#### 4. Prepare The Test Environment
|
|
93
|
+
|
|
94
|
+
Role: **QA Engineer**, **Backend Developer**
|
|
95
|
+
|
|
96
|
+
Confirm before running tests:
|
|
97
|
+
|
|
98
|
+
- the correct branch and revision is deployed to the target environment
|
|
99
|
+
- test data is seeded or available (use representative data — never production PII)
|
|
100
|
+
- feature flags match the expected configuration for the test
|
|
101
|
+
- migrations have run and the schema is at the expected state
|
|
102
|
+
- external dependencies (mocks, stubs, or real integrations) are reachable
|
|
103
|
+
|
|
104
|
+
#### 5. Execute The Test Plan
|
|
105
|
+
|
|
106
|
+
Role: **QA Engineer**
|
|
107
|
+
|
|
108
|
+
Use skill: `write-tests`
|
|
109
|
+
|
|
110
|
+
Run in this order:
|
|
111
|
+
|
|
112
|
+
1. **Automated suite first**: run existing unit, integration, and contract tests — do not proceed if pre-existing tests fail
|
|
113
|
+
2. **New tests for coverage gaps**: run newly written tests for the critical and important gaps
|
|
114
|
+
3. **Manual exploratory charter**: for high-risk paths and UX flows, run a structured exploratory session — not ad hoc clicking
|
|
115
|
+
4. **Side effect verification**: confirm non-response side effects (DB writes, event emissions, cache state) are correct
|
|
116
|
+
5. **Regression pass**: run the regression checklist for areas adjacent to the change
|
|
117
|
+
6. **Chaos injection** (for changes to distributed systems or network paths): use **Toxiproxy** to simulate latency spikes, TCP connection drops, and bandwidth throttling on database and downstream service connections within the integration test suite; escalate to **LitmusChaos 3.x** experiments in staging for pod-kill and network packet-loss validation before production promotion
|
|
118
|
+
|
|
119
|
+
For AI-generated test suites: run a **mutation score gate** — AI-written tests must achieve mutation score ≥75% (Stryker for JS/TS, mutmut for Python, go-mutesting for Go) before they count toward coverage. Reject tests that assert trivial invariants or mock out the entire implementation.
|
|
120
|
+
|
|
121
|
+
For each test failure:
|
|
122
|
+
|
|
123
|
+
- record the exact reproduction steps
|
|
124
|
+
- classify as: regression (broke previously working behavior), new bug (unintended behavior in new code), or expected failure (known limitation)
|
|
125
|
+
- do not suppress failures — every failure is a signal
|
|
126
|
+
|
|
127
|
+
#### 6. Validate AI / LLM Behavior (If Applicable)
|
|
128
|
+
|
|
129
|
+
Role: **QA Engineer**
|
|
130
|
+
|
|
131
|
+
When the change involves LLM pipelines, AI agents, or AI-generated output:
|
|
132
|
+
|
|
133
|
+
- run property-based validation — check output properties (tone, factual grounding, safety, structure), not exact string matches
|
|
134
|
+
- run the golden dataset: compare the model or prompt change against the version-controlled baseline
|
|
135
|
+
- calculate pass rate against the golden dataset — if it regresses below the threshold, block the change
|
|
136
|
+
- evaluate multi-step agent trajectories: tool-call sequence, decision logic, error recovery
|
|
137
|
+
- validate that non-deterministic outputs stay within acceptable behavioral bounds
|
|
138
|
+
|
|
139
|
+
Document the LLM-as-Judge methodology used and calibration against human annotations if applicable.
|
|
140
|
+
|
|
141
|
+
#### 7. Document Findings And Evidence
|
|
142
|
+
|
|
143
|
+
Role: **QA Engineer**
|
|
144
|
+
|
|
145
|
+
For each defect found:
|
|
146
|
+
|
|
147
|
+
- title and severity (Critical, High, Medium, Low)
|
|
148
|
+
- reproduction steps (minimal and reliable)
|
|
149
|
+
- expected vs actual behavior
|
|
150
|
+
- evidence (screenshot, log, request/response, DB state)
|
|
151
|
+
- suspected scope: is this limited to the changed code, or does it suggest a deeper issue?
|
|
152
|
+
|
|
153
|
+
Distinguish:
|
|
154
|
+
|
|
155
|
+
- **Blocking defect**: must be fixed before merge or release
|
|
156
|
+
- **Important defect**: should be fixed — can be released with documented risk if stakeholder acknowledges
|
|
157
|
+
- **Follow-Up defect**: can be tracked and fixed post-release
|
|
158
|
+
|
|
159
|
+
#### 8. Produce Release Confidence Verdict
|
|
160
|
+
|
|
161
|
+
Role: **QA Engineer**
|
|
162
|
+
|
|
163
|
+
Use skill: `write-tests`
|
|
164
|
+
|
|
165
|
+
Emit `test-report.json` with:
|
|
166
|
+
|
|
167
|
+
- test plan summary (what was tested, what was not, and why)
|
|
168
|
+
- pass/fail counts by layer (unit, integration, e2e, exploratory)
|
|
169
|
+
- blocking and important defects with status
|
|
170
|
+
- coverage gaps addressed and remaining
|
|
171
|
+
- AI/LLM validation results if applicable
|
|
172
|
+
- explicit release confidence verdict:
|
|
173
|
+
|
|
174
|
+
| Verdict | Meaning |
|
|
175
|
+
|---------|---------|
|
|
176
|
+
| **Confident to release** | All blocking defects resolved, important defects acknowledged |
|
|
177
|
+
| **Conditional release** | Important defects present but stakeholder accepts documented risk |
|
|
178
|
+
| **Block release** | One or more blocking defects unresolved — do not ship |
|
|
179
|
+
|
|
180
|
+
The verdict must be explicit — "no obvious issues" is not a release confidence verdict.
|
|
181
|
+
|
|
182
|
+
### Checklist
|
|
183
|
+
|
|
184
|
+
- [ ] acceptance criteria and change scope understood
|
|
185
|
+
- [ ] existing test coverage audited — gaps classified (Critical/Important/Follow-Up)
|
|
186
|
+
- [ ] risk-based test plan derived — happy path, failures, side effects, distributed concerns
|
|
187
|
+
- [ ] test environment confirmed — correct revision, data, flags, migrations
|
|
188
|
+
- [ ] automated suite passes
|
|
189
|
+
- [ ] new tests for critical coverage gaps written and pass
|
|
190
|
+
- [ ] exploratory testing charter executed for high-risk flows
|
|
191
|
+
- [ ] side effect verification completed (DB, events, cache, downstream)
|
|
192
|
+
- [ ] AI/LLM property-based validation and golden dataset run (if applicable)
|
|
193
|
+
- [ ] defect findings documented with severity and reproduction steps
|
|
194
|
+
- [ ] test-report.json emitted with release confidence verdict
|
|
195
|
+
|
|
196
|
+
### Related Workflows
|
|
197
|
+
|
|
198
|
+
- [add-new-feature](add-new-feature.md)
|
|
199
|
+
- [tech-repo-review](tech-repo-review.md)
|
|
200
|
+
- [service-review-release](service-review-release.md)
|
|
201
|
+
- [build-deploy](build-deploy.md)
|
|
202
|
+
|
|
203
|
+
### Related Skills
|
|
204
|
+
|
|
205
|
+
- **write-tests**: Design and implement tests for coverage gaps
|
|
206
|
+
- **navigate-service**: Understand the changed code before deriving the test plan
|
|
207
|
+
- **review-code**: Review test code quality and coverage logic
|
|
208
|
+
- **accessibility-review**: Validate WCAG 2.2 compliance when UI is affected
|
|
209
|
+
- **agent-quality-gate**: Validate artifacts in agentic pipelines
|
|
210
|
+
|
|
211
|
+
### Failure Modes
|
|
212
|
+
|
|
213
|
+
- **Coverage theater**: a high line-coverage score is achieved without exercising the risky path. **Mitigation:** enforce the Testing Trophy and a mutation score ≥75-80% via Stryker for critical libraries.
|
|
214
|
+
- **Live LLM API in CI**: a test calls a live LLM provider, making the CI run non-deterministic. **Mitigation:** stub LLM calls with vcr-style fixtures in CI; never call live providers in CI.
|
|
215
|
+
- **Brittle E2E for unit logic**: a unit-level decision is covered only by an E2E test. **Mitigation:** drop the E2E and add a focused unit test; reserve E2E for cross-service flows.
|
|
216
|
+
- **Skipped tests reported as full coverage**: a test run skips a category and reports the line coverage as full. **Mitigation:** surface skipped tests in the `test-report.json`; reject reports where skipped > 0% without a documented rationale.
|
|
217
|
+
|
|
218
|
+
### Output Contracts
|
|
219
|
+
|
|
220
|
+
When this workflow produces a structured handoff, emit:
|
|
221
|
+
|
|
222
|
+
- **`contracts/schemas/test-report.json`** (or equivalent) — capture the run id, the test categories, the pass/fail counts, the skipped tests with rationale, and the release confidence verdict.
|
|
223
|
+
- **`contracts/schemas/code-review-finding.json`** (adapted for QA) — when the run surfaces a test gap; capture the category, severity, and the fix path.
|
|
224
|
+
|
|
225
|
+
### Security Guardrails (OWASP ASI)
|
|
226
|
+
|
|
227
|
+
- **ASI04 Supply Chain**: every test runner, e2e driver, and fixture library must be schema-validated against the expected manifest; treat unknown versions as untrusted.
|
|
228
|
+
- **ASI05 RCE Guard**: never construct test scripts or fixture payloads from external or user-supplied content without sanitization; treat adversarial test inputs as a hostile surface.
|
|
229
|
+
- **ASI07 Inter-Agent Communication**: the test report is consumed by CI and release roles; emit a structured contract so each consumer can validate the run.
|
|
230
|
+
- **ASI09 Human-Agent Trust Exploitation**: do not present partial test runs as full coverage; surface skipped tests and their rationale honestly.
|
|
231
|
+
|