Sdlc validation plan workflow

From BlueSkyXN/Codex-is-all-you-need · View interactive version

Sdlc validation plan workflow is an AI agent skill from the GitHub repository BlueSkyXN/Codex-is-all-you-need. Use to create validation plans or behavior baselines linking requirements to checks, evidence, gaps, risks, and release gates.

How to use this skill

Skill file

Validation Plan Workflow

Use this workflow to define how a change will be proven correct before implementation, review, or release.

This is not a missing testing capability. It is an SDLC-owned artifact that makes the validation contract explicit:

Validation Plan defines how correctness will be proven.
dev executes, extends, or reports against that plan.

Use when

Do not use when

Absence of a formal validation plan is not an automatic stop condition for clear direct-dev tasks.

For lane, ADS, lightweight ID, local/sdlc, delivery card, and midstream intake vocabulary, follow ../sdlc-router/references/sdlc-operating-model.md.

Inputs

Use the best available sources. Do not require every artifact family.

SDLC sources

Direct-dev sources

If inputs are weak, produce a validation seed and mark assumptions instead of inventing requirements.

Workflow

1. Classify validation depth

Choose the smallest sufficient validation depth.

| Depth | Use when | Output |

|---|---|---|

| seed | direct-dev or bugfix with clear evidence | source -> expected behavior -> smallest check |

| feature | contained feature or behavior change | acceptance matrix, test levels, smoke path |

| behavior-baseline | refactor where external behavior should stay stable | characterization checks, smoke paths, regression guard |

| architecture | HLD/LLD/ADR/domain/SPEC constraints matter | architecture/domain validation matrix |

| system | multi-module, migration, API/data/permission/NFR risk | full validation plan and regression scope |

| release | release-bound, compliance, launch, rollback, or operations risk | release validation notes and evidence gate |

Do not force system-level validation on every change.

For system and release, read

Engineering Completion Evidence.

For other depths, read it only when the change has material cross-layer risk.

1a. Select applicable completion dimensions

Choose the smallest affected set of requirement, architecture, code, API, data,

test, build, release, runtime, and documentation dimensions. Mark each included

dimension required, not-applicable, or deferred; keep validation status in

the existing status set. A deferred dimension must name its owner and risk.

Do not enumerate unrelated lifecycle layers for a narrow seed. For system,

assess every affected layer. For release, always assess build, release,

runtime, and rollback or forward recovery.

2. Identify proof questions

Answer the questions that apply:

3. Build acceptance test matrix

Create rows from requirements, issues, SPEC items, or task cards.

| ID | Source | Expected outcome | Validation method | Evidence required | Owner | Status |
|---|---|---|---|---|---|---|

Recommended ID prefixes:

VAL-AC-001
VAL-NFR-001
VAL-SMOKE-001
VAL-REG-001
VAL-ARCH-001

Status values:

planned
ready
blocked
passed
failed
not-run
accepted-gap

Do not mark passed without execution evidence.

4. Define NFR validation methods

For each material NFR, define:

| NFR | Target or threshold | Method | Tool or evidence | Required before |

|---|---|---|---|---|

Examples:

If an NFR cannot be measured now, record the accepted gap and owner.

5. Define architecture and domain validation

When HLD, LLD, ADR, Domain Boundary Map, modular-monolith rules, or Directory SPEC exist, include:

| Constraint | Source | What must hold | Validation method | Evidence |

|---|---|---|---|---|

Check for:

This prevents dev from proving only behavior while breaking structure or ownership.

6. Define smoke and regression scope

List:

Manual smoke paths:
Automated checks:
Regression areas:
Out-of-scope checks:
Release evidence:

Tie each check to a source requirement, issue, SPEC, task, or accepted risk.

6a. Define refactor behavior baseline

For the 重构 lane, define how unchanged external behavior will be proven before dev changes structure:

Behavior to preserve:
Representative paths:
Existing tests or smoke commands:
Characterization checks to add or run:
Known accepted gaps:
Stop condition:

Do not ask for BRD/PRD just because the work is large. For pure refactor, the product target is usually unchanged behavior plus safer structure.

7. Define evidence expectations

Specify what dev should report:

Evidence expectations should be precise enough for review, but not so heavy that small changes become process-bound.

8. Mark direct-dev fallback

When formal SDLC materials are absent but the task is clear, produce a small validation seed:

# Validation Seed: <Change Name>

| Source | Expected behavior | Smallest relevant check | Evidence expected | Risk |
|---|---|---|---|---|

State why direct-dev may continue:

Proceed path: direct-dev
Reason: clear issue / reproduction / target behavior / validation command
Risk:
Required safeguard:

Output

Return or write one of these artifacts.

For every validation depth, include the selected completion dimensions using:

## Applicable completion dimensions

| Dimension | Applicability | Method | Evidence | Status |
|---|---|---|---|---|

Use only the existing validation status values. Keep a seed table limited to

the dimensions affected by the narrow change instead of generating a full

lifecycle matrix.

Behavior Baseline

# Behavior Baseline: <Change Name>

## 1. Preserved Behavior
## 2. Representative Paths
## 3. Existing Checks
## 4. Characterization Checks
## 5. Regression Scope
## 6. Accepted Gaps
## 7. Stop Conditions

Validation Plan

# Validation Plan: <Change Name>

## 1. Scope
## 2. Source Artifacts
## 3. Validation Depth
## 4. Acceptance Test Matrix
## 5. NFR Validation Matrix
## 6. Architecture and Domain Validation
## 7. Smoke Checklist
## 8. Regression Scope
## 9. Evidence Expectations
## 10. Gaps and Risks
## 11. Handoff Notes

Acceptance Test Matrix

# Acceptance Test Matrix: <Change Name>

| ID | Source | Expected outcome | Validation method | Evidence required | Owner | Status |
|---|---|---|---|---|---|---|

Validation Seed

# Validation Seed: <Change Name>

| Source | Expected behavior | Smallest relevant check | Evidence expected | Risk |
|---|---|---|---|---|

Validation

Before returning the plan, check:

dimension was considered.

an unverified release, runtime, or business-behavior layer.

Boundaries

Handoff

Recommend the smallest next step. For an explicit-control workflow, return its

exact $codex-next:<skill-name> command and stop; do not begin it here.

Route downstream:

| Need | Next step |

|---|---|

| dev execution | sdlc-dev-handoff-planning or dev-spec-driven-implementation |

| repo-specific test strategy | dev-test-strategy |

| test execution or failure diagnosis | direct test run or dev-bugfix |

| traceability update | sdlc-requirements-traceability |

| readiness decision | $codex-next:sdlc-readiness-review |

| release validation execution | dev-release-check |

| missing SRS/NFR/SPEC/HLD/LLD/ADR/domain source | $codex-next:sdlc-manager |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.