Validation Strategist
Purpose
Use this skill to design a multi-layer validation and verification strategy for any software artifact or release. The output is a structured plan that maps what to validate at each layer, which environments and evidence are required, and what gates must pass before progressing.
This skill is domain-generic. It must work for PRDs, SDDs, RFCs, ADRs, ACs, NFRs, architectures, OpenAPI specs, workflows, and release plans without embedding project-specific assumptions.
Core Distinction: Verification vs Validation
| Term |
Definition |
Focus |
| Verification |
"Did we build it right?" — checks implementation matches design. |
Artifacts, traces, constraints |
| Validation |
"Did we build the right thing?" — checks product meets user needs. |
Outcomes, business value, real-world behavior |
A complete strategy uses both. Verification gives confidence in correctness; validation gives confidence in correctness.
The Five Validation Layers
Design validation across these five layers, from narrowest to widest scope:
Layer 1 — Unit
- What: Individual functions, methods, classes in isolation
- Evidence: Unit tests, code coverage, linting, type checks
- Gates: All tests pass; coverage above threshold; no critical lints
- Metrics: Pass rate, coverage %, cyclomatic complexity
Layer 2 — Component
- What: Integration between modules within a service or package
- Evidence: Integration tests, contract tests, module-level mocks
- Gates: Component tests pass; contracts between modules verified
- Metrics: Integration pass rate, contract compliance
Layer 3 — Feature
- What: End-to-end behavior of a single feature or user story
- Evidence: Feature tests, API contract tests, UI automation, Given/When/Then scenarios
- Gates: Feature acceptance criteria met; all happy and sad paths covered
- Metrics: Feature test pass rate, scenario coverage, critical path coverage
Layer 4 — Application
- What: Multiple features working together across services
- Evidence: System tests, end-to-end tests, performance benchmarks, security scans
- Gates: Cross-feature flows work; NFRs met; security scan clean
- Metrics: System test pass rate, p99 latency, error rate, security findings
Layer 5 — Release Candidate
- What: The deliverable in a production-like environment
- Evidence: Staging deployment, smoke tests, manual QA, canary rollout, rollback test
- Gates: Rollback procedure verified; monitoring and alerting operational; feature flags active; business metrics within expected range
- Metrics: Deployment success rate, time-to-production-ready, rollback success rate
Layer Selection Principle
Always prefer the lowest layer that gives enough signal.
If Layer 1 unit tests prove correctness, do not require Layer 4 system tests for that specific check. Higher layers are slower, more expensive, and harder to debug. Reserve them for what lower layers cannot catch:
- Cross-service interactions → Layer 3–4
- User-facing flows → Layer 4–5
- Critical-path flows → Layer 5 (E2E reserved for flows where failure is catastrophic)
E2E Abuse Prevention
End-to-end tests are a limited resource. Use them only when:
- The flow spans multiple services or domains.
- The consequence of failure is severe (data loss, security breach, financial impact).
- Lower-layer tests cannot simulate the failure mode.
If a flow can be validated at Layer 3 or 4 with reliable automation, do not add a Layer 5 E2E test.
Validation Triggers and Environments
| Trigger |
Environment |
Evidence Required |
| Code commit / PR |
CI pipeline (isolated) |
Unit + component tests; lint; type check |
| Feature complete |
Feature environment |
Feature tests; contract tests |
| Release candidate build |
Staging / pre-production |
System tests; smoke tests; security scan |
| Canary / production rollout |
Production |
Live metrics; error rates; business KPIs |
| Hotfix |
Production with expedited gate |
Targeted unit + integration tests; smoke suite |
Entry and Exit Criteria per Layer
For each active layer, define:
Entry criteria — what must be true before running validation at this layer:
- Prior layers passed and gates closed.
- Required test artifacts exist and are passing.
- Environment is stable and isolated.
Exit criteria — what must be true to consider this layer passed:
- All gates passed with evidence attached.
- No open critical or high severity findings.
- Metrics within defined thresholds.
Release Readiness Checklist
At Layer 5 (Release Candidate), validate all of the following before promoting to production:
| Check |
Criteria |
| Unit + Component layers |
All gates closed |
| Feature layer |
All acceptance criteria verified |
| Application layer |
NFRs met (performance, security, scalability) |
| Smoke test suite |
100% pass in staging |
| Rollback procedure |
Documented, tested, and team knows the steps |
| Monitoring + alerting |
All critical paths monitored; alerts firing correctly |
| Feature flags |
Kill switches and rollbacks configured |
| Business metrics |
Baseline metrics established for comparison post-release |
| Go/no-go decision |
Authorized by defined stakeholder |
Input Artifact Mapping
Adapt the validation strategy based on what artifact is provided:
| Artifact |
Primary Validation Focus |
| PRD |
Validation: does the product solve the stated problem? Trace requirements to acceptance criteria. |
| SDD / Spec |
Verification: does implementation match spec? Trace REQs to test cases. |
| RFC / Architecture |
Verification: does implementation follow the approved design? Trace decisions to components. |
| ADR |
Verification: was the decision applied correctly? Trace decision to implemented behavior. |
| AC (Acceptance Criteria) |
Verification: do tests prove ACs are met? Map each AC to test case. |
| NFR (Non-Functional Requirements) |
Verification: do benchmarks prove NFRs are met? Measure and report. |
| OpenAPI / API Contract |
Verification: do contract tests prove API matches spec? Use contract testing. |
| Workflow |
Verification: does the implementation follow the state machine? Trace transitions to test scenarios. |
| Release Plan |
Validation + Verification: can we ship safely? Apply full Layer 5 checklist. |
Validation Strategy Output Structure
# Validation Strategy: <Artifact Name>
## 1. Scope and Context
- Artifact type: <PRD / SDD / RFC / ADR / AC / NFR / OpenAPI / Workflow / Release Plan>
- Validation goal: <what we need to prove>
- Active layers: <which of the 5 layers apply>
## 2. Verification vs Validation Split
- Verification checks: <list>
- Validation checks: <list>
## 3. Layer-by-Layer Plan
| Layer | What to Validate | Evidence | Gates | Metrics |
| --- | --- | --- | --- | --- |
## 4. E2E Justification
- Critical flows requiring E2E: <list>
- Why lower layers are insufficient for each: <reason>
## 5. Environment and Trigger Map
| Trigger | Environment | Evidence |
| --- | --- | --- |
## 6. Entry/Exit Criteria
| Layer | Entry Criteria | Exit Criteria |
| --- | --- | --- |
## 7. Release Readiness (Layer 5 only)
| Check | Status | Notes |
| --- | --- | --- |
| Unit + Component gates closed | ✅/❌ | |
| Feature ACs verified | ✅/❌ | |
| NFRs met | ✅/❌ | |
| Smoke tests pass | ✅/❌ | |
| Rollback tested | ✅/❌ | |
| Monitoring active | ✅/❌ | |
| Go/no-go authorized | ✅/❌ | |
## 8. QA Flow Summary
<One-paragraph description of the end-to-end QA flow from commit to production>
Quality Bar
Before presenting the validation strategy, verify:
- Verification and validation are treated as distinct activities with separate outputs.
- The lowest-layer principle is applied: no layer used beyond what it can meaningfully prove.
- E2E tests are justified and limited to critical paths.
- All five layers are evaluated; inactive layers are explicitly excluded with rationale.
- Entry and exit criteria are concrete and evidence-attached.
- The strategy is generic: no vendor names, project names, or concrete technology names unless essential.
Troubleshooting
- User provides no artifact type: Ask for the artifact type or the primary deliverable being validated before designing the strategy.
- All five layers requested for a simple change: Apply the lowest-layer principle strictly. A one-line bug fix may only need Layer 1 evidence.
- E2E tests are the only evidence available: Flag this as a risk. E2E is slow, brittle, and expensive to maintain. Recommend building lower-layer test coverage.
- No defined NFRs or ACs: Treat this as a gap — the strategy should note that entry/exit criteria cannot be verified without defined thresholds.
- Conflicting evidence from different layers: Investigate the discrepancy. Lower-layer failures may indicate an environment issue; higher-layer failures always take priority.
1---2name: validation-strategist3description: Design layered validation and verification strategies for software artifacts. Trigger: when designing a validation plan, QA strategy, release gates, verification layers, test strategy, entry/exit criteria, or multi-layer quality assurance.4license: MIT5---67# Validation Strategist89## Purpose1011Use this skill to design a **multi-layer validation and verification strategy** for any software artifact or release. The output is a structured plan that maps what to validate at each layer, which environments and evidence are required, and what gates must pass before progressing.1213This skill is domain-generic. It must work for PRDs, SDDs, RFCs, ADRs, ACs, NFRs, architectures, OpenAPI specs, workflows, and release plans without embedding project-specific assumptions.1415## Core Distinction: Verification vs Validation1617| Term | Definition | Focus |18| --- | --- | --- |19| **Verification** | "Did we build it right?" — checks implementation matches design. | Artifacts, traces, constraints |20| **Validation** | "Did we build the right thing?" — checks product meets user needs. | Outcomes, business value, real-world behavior |2122A complete strategy uses **both**. Verification gives confidence in correctness; validation gives confidence in correctness.2324## The Five Validation Layers2526Design validation across these five layers, from narrowest to widest scope:2728### Layer 1 — Unit29- **What**: Individual functions, methods, classes in isolation30- **Evidence**: Unit tests, code coverage, linting, type checks31- **Gates**: All tests pass; coverage above threshold; no critical lints32- **Metrics**: Pass rate, coverage %, cyclomatic complexity3334### Layer 2 — Component35- **What**: Integration between modules within a service or package36- **Evidence**: Integration tests, contract tests, module-level mocks37- **Gates**: Component tests pass; contracts between modules verified38- **Metrics**: Integration pass rate, contract compliance3940### Layer 3 — Feature41- **What**: End-to-end behavior of a single feature or user story42- **Evidence**: Feature tests, API contract tests, UI automation, Given/When/Then scenarios43- **Gates**: Feature acceptance criteria met; all happy and sad paths covered44- **Metrics**: Feature test pass rate, scenario coverage, critical path coverage4546### Layer 4 — Application47- **What**: Multiple features working together across services48- **Evidence**: System tests, end-to-end tests, performance benchmarks, security scans49- **Gates**: Cross-feature flows work; NFRs met; security scan clean50- **Metrics**: System test pass rate, p99 latency, error rate, security findings5152### Layer 5 — Release Candidate53- **What**: The deliverable in a production-like environment54- **Evidence**: Staging deployment, smoke tests, manual QA, canary rollout, rollback test55- **Gates**: Rollback procedure verified; monitoring and alerting operational; feature flags active; business metrics within expected range56- **Metrics**: Deployment success rate, time-to-production-ready, rollback success rate5758## Layer Selection Principle5960**Always prefer the lowest layer that gives enough signal.**6162If Layer 1 unit tests prove correctness, do not require Layer 4 system tests for that specific check. Higher layers are slower, more expensive, and harder to debug. Reserve them for what lower layers cannot catch:63- Cross-service interactions → Layer 3–464- User-facing flows → Layer 4–565- Critical-path flows → Layer 5 (E2E reserved for flows where failure is catastrophic)6667## E2E Abuse Prevention6869End-to-end tests are a **limited resource**. Use them only when:70- The flow spans multiple services or domains.71- The consequence of failure is severe (data loss, security breach, financial impact).72- Lower-layer tests cannot simulate the failure mode.7374If a flow can be validated at Layer 3 or 4 with reliable automation, do not add a Layer 5 E2E test.7576## Validation Triggers and Environments7778| Trigger | Environment | Evidence Required |79| --- | --- | --- |80| Code commit / PR | CI pipeline (isolated) | Unit + component tests; lint; type check |81| Feature complete | Feature environment | Feature tests; contract tests |82| Release candidate build | Staging / pre-production | System tests; smoke tests; security scan |83| Canary / production rollout | Production | Live metrics; error rates; business KPIs |84| Hotfix | Production with expedited gate | Targeted unit + integration tests; smoke suite |8586## Entry and Exit Criteria per Layer8788For each active layer, define:8990**Entry criteria** — what must be true before running validation at this layer:91- Prior layers passed and gates closed.92- Required test artifacts exist and are passing.93- Environment is stable and isolated.9495**Exit criteria** — what must be true to consider this layer passed:96- All gates passed with evidence attached.97- No open critical or high severity findings.98- Metrics within defined thresholds.99100## Release Readiness Checklist101102At Layer 5 (Release Candidate), validate all of the following before promoting to production:103104| Check | Criteria |105| --- | --- |106| Unit + Component layers | All gates closed |107| Feature layer | All acceptance criteria verified |108| Application layer | NFRs met (performance, security, scalability) |109| Smoke test suite | 100% pass in staging |110| Rollback procedure | Documented, tested, and team knows the steps |111| Monitoring + alerting | All critical paths monitored; alerts firing correctly |112| Feature flags | Kill switches and rollbacks configured |113| Business metrics | Baseline metrics established for comparison post-release |114| Go/no-go decision | Authorized by defined stakeholder |115116## Input Artifact Mapping117118Adapt the validation strategy based on what artifact is provided:119120| Artifact | Primary Validation Focus |121| --- | --- |122| **PRD** | Validation: does the product solve the stated problem? Trace requirements to acceptance criteria. |123| **SDD / Spec** | Verification: does implementation match spec? Trace REQs to test cases. |124| **RFC / Architecture** | Verification: does implementation follow the approved design? Trace decisions to components. |125| **ADR** | Verification: was the decision applied correctly? Trace decision to implemented behavior. |126| **AC (Acceptance Criteria)** | Verification: do tests prove ACs are met? Map each AC to test case. |127| **NFR (Non-Functional Requirements)** | Verification: do benchmarks prove NFRs are met? Measure and report. |128| **OpenAPI / API Contract** | Verification: do contract tests prove API matches spec? Use contract testing. |129| **Workflow** | Verification: does the implementation follow the state machine? Trace transitions to test scenarios. |130| **Release Plan** | Validation + Verification: can we ship safely? Apply full Layer 5 checklist. |131132## Validation Strategy Output Structure133134```markdown135# Validation Strategy: <Artifact Name>136137## 1. Scope and Context138- Artifact type: <PRD / SDD / RFC / ADR / AC / NFR / OpenAPI / Workflow / Release Plan>139- Validation goal: <what we need to prove>140- Active layers: <which of the 5 layers apply>141142## 2. Verification vs Validation Split143- Verification checks: <list>144- Validation checks: <list>145146## 3. Layer-by-Layer Plan147| Layer | What to Validate | Evidence | Gates | Metrics |148| --- | --- | --- | --- | --- |149150## 4. E2E Justification151- Critical flows requiring E2E: <list>152- Why lower layers are insufficient for each: <reason>153154## 5. Environment and Trigger Map155| Trigger | Environment | Evidence |156| --- | --- | --- |157158## 6. Entry/Exit Criteria159| Layer | Entry Criteria | Exit Criteria |160| --- | --- | --- |161162## 7. Release Readiness (Layer 5 only)163| Check | Status | Notes |164| --- | --- | --- |165| Unit + Component gates closed | ✅/❌ | |166| Feature ACs verified | ✅/❌ | |167| NFRs met | ✅/❌ | |168| Smoke tests pass | ✅/❌ | |169| Rollback tested | ✅/❌ | |170| Monitoring active | ✅/❌ | |171| Go/no-go authorized | ✅/❌ | |172173## 8. QA Flow Summary174<One-paragraph description of the end-to-end QA flow from commit to production>175```176177## Quality Bar178179Before presenting the validation strategy, verify:180- Verification and validation are treated as distinct activities with separate outputs.181- The lowest-layer principle is applied: no layer used beyond what it can meaningfully prove.182- E2E tests are justified and limited to critical paths.183- All five layers are evaluated; inactive layers are explicitly excluded with rationale.184- Entry and exit criteria are concrete and evidence-attached.185- The strategy is generic: no vendor names, project names, or concrete technology names unless essential.186187## Troubleshooting188189- **User provides no artifact type:** Ask for the artifact type or the primary deliverable being validated before designing the strategy.190- **All five layers requested for a simple change:** Apply the lowest-layer principle strictly. A one-line bug fix may only need Layer 1 evidence.191- **E2E tests are the only evidence available:** Flag this as a risk. E2E is slow, brittle, and expensive to maintain. Recommend building lower-layer test coverage.192- **No defined NFRs or ACs:** Treat this as a gap — the strategy should note that entry/exit criteria cannot be verified without defined thresholds.193- **Conflicting evidence from different layers:** Investigate the discrepancy. Lower-layer failures may indicate an environment issue; higher-layer failures always take priority.