METHODOLOGIES · PUBLISHED · 2026-12-01
Formal SDLC in Practice: Bidirectional Traceability from ISO/IEC/IEEE 29148 to CI/CD
Connecting verifiable requirements, UML/ERD models, and Given/When/Then gates without slowing delivery.
ISO/IEC/IEEE 29148 · SWEBOK v4 · PMBOK · UML/ERD · MoSCoW / INVEST · GWT / UAT
Software projects rarely fail because a team could not write syntax. They fail in the gaps between what a stakeholder assumed, what an engineer modeled, and what the release pipeline actually verified.
My engineering philosophy is straightforward: I am a software engineer, not merely a developer. Writing code is one phase inside a disciplined lifecycle. Every full-cycle system I build is grounded in established bodies of knowledge—PMBOK, SWEBOK, ISO/IEC/IEEE 29148, OMG UML 2.5 / ERD, MoSCoW / INVEST, and Given/When/Then (GWT) acceptance gates—connected through bidirectional traceability all the way into CI/CD.
Why Traceability Often Fails—and Why Skipping It Costs More
Traditional "heavyweight" documentation fails when specifications live in disconnected documents that rot the moment the first sprint begins. Conversely, "no-documentation" agile fails when architectural decisions live only in chat threads and tribal memory.
Bidirectional traceability solves both failure modes without turning delivery into bureaucracy:
- Forward traceability ensures every business need in an ISO/IEC/IEEE 29148 Software Requirements Specification (SRS) maps to a domain model, an architectural decision, an implementation unit, and an executable verification scenario.
- Backward traceability ensures every pull request, database migration, and CI check can justify which requirement and stakeholder constraint it satisfies—preventing scope creep and orphaned complexity.
The Standards Stack as an Integrated Pipeline
Rather than treating engineering standards as isolated academic checklists, each standard governs a distinct concern across the lifecycle:
- PMBOK (PMI): Governs scope baselines, schedule milestones, risk registers, and stakeholder communication across sprints and delivery gates.
- SWEBOK (IEEE Computer Society): Establishes systematic discipline across requirements, architecture, construction, testing, maintenance, and quality assurance.
- ISO/IEC/IEEE 29148: Enforces unambiguous, verifiable requirements—each assigned a stable identifier, priority, rationale, and verification method.
- MoSCoW / INVEST: Shapes backlog prioritization (
Must,Should,Could,Won't) and decomposes requirements into Independent, Negotiable, Valuable, Estimable, Small, and Testable slices. - UML 2.5 & Relational ERD: Requires Entity-Relationship, Sequence, State-Transition, and Activity diagrams to be reviewed and approved before production code is written.
- GWT / UAT (BDD Verification & Validation): Translates every requirement into executable
Given / When / Thenacceptance criteria enforced by CI quality gates prior to release.
The Eight-Stage Production SDLC Loop
In practice, these standards operate inside a continuous eight-stage loop adapted from spiral and continuous-delivery models:
- Discovery: Stakeholder interviews, user story mapping, and non-functional requirement (NFR) capture.
- Analysis: Domain modeling, initial ERD drafts, and formal use-case decomposition.
- Design: System architecture, UML sequence diagrams, and Architecture Decision Records (ADRs).
- Implement: Test-driven cycles, peer code review, and controlled feature flags.
- Verify: Unit and integration suites, load testing, and security scans—strictly pre-release.
- Release: Canary deployments, runbook readiness, and telemetry wiring.
- Operate: SLO monitoring, incident response, and blameless postmortems—strictly post-release.
- Evolve: Retrospectives, backlog refinement, and deliberate refactoring feeding directly back into Discovery and Design.
Notice the strict separation between Verify (Stage 5) and Operate (Stage 7). Pre-release verification proves the system meets its SRS contract; post-release observability measures how it behaves under real production load. Treating them as separate responsibilities prevents teams from using production users as their QA environment.
Architecture Before Code: Modeling Critical Invariants First
No implementation begins on a full-SDLC engagement until the foundational ERD, sequence diagrams, and ADRs exist for the first vertical slice. When modeling precedes code, structural defects are caught on paper in minutes rather than in production migrations:
- Security invariants in Sequence Diagrams: When designing mobile OAuth 2.0 authentication, a sequence diagram exposes token-leakage surfaces immediately—forcing PKCE, OS-managed browser sessions (
ASWebAuthenticationSession/ Custom Tabs), and hardware-backed token storage before a single auth endpoint is coded. - Compensating flows in Activity Diagrams: Modeling multi-step order fulfillment with explicit branches reveals where failed payments require explicit compensation (
Release Stock) and where out-of-stock states belong in a first-class backorder path rather than an unhandled exception. - Compliance at the Schema Level: In regulated domains such as healthcare, PHI minimization, standard coding vocabularies, and
INSERT-only audit tables (AUDIT_LOG) are enforced as relational schema constraints in the ERD rather than optional application-layer middleware.
Encoding Traceability as Versioned YAML
To keep traceability lightweight and developer-friendly, the Requirements Traceability Matrix (RTM) lives in Git alongside the codebase—not in a static spreadsheet. Every requirement ID follows ISO/IEC/IEEE 29148 clarity rules and links directly to its UML/ERD artifact and GWT test suite:
# docs/traceability/rtm.yaml
standard: "ISO/IEC/IEEE 29148"
requirements:
- id: "REQ-AUTH-001"
title: "Mobile client must authenticate via OAuth 2.0 Authorization Code with PKCE"
moscow: "Must"
swebok_ka: "Software Design & Security"
nfr_target: "No client secret stored in mobile binary; refresh token in OS Keychain"
artifacts:
sequence: "docs/diagrams/seq-oauth-pkce.svg"
adr: "docs/adr/0004-oauth-pkce-mobile.md"
verification:
method: "Test"
gwt_feature: "tests/acceptance/auth_pkce.feature"
ci_job: "verify:auth-e2e"
- id: "REQ-ORD-014"
title: "Failed payment capture must release reserved inventory within compensation window"
moscow: "Must"
swebok_ka: "Software Construction & Verification"
artifacts:
activity: "docs/diagrams/act-order-fulfillment.svg"
erd: "docs/diagrams/erd-orders.svg"
verification:
method: "Test"
gwt_feature: "tests/acceptance/order_compensation.feature"
ci_job: "verify:saga-integration"
Because this manifest is plain YAML inside the repository, reviewers can inspect requirement changes in the exact same pull request as schema migrations and acceptance tests.
Enforcing Traceability Gates in CI/CD
Documentation stays accurate only when the CI pipeline validates its links automatically. A compact TypeScript gate script can verify at pull-request time that every Must requirement references an existing diagram, ADR, and acceptance test file—failing fast if a requirement ships without verification coverage:
export interface TraceabilityEntry {
id: string;
moscow: 'Must' | 'Should' | 'Could' | 'Wont';
artifacts: Record<string, string>;
verification: {
method: 'Test' | 'Inspection' | 'Analysis' | 'Demonstration';
gwt_feature: string;
ci_job: string;
};
}
export function validateRtmGate(
entries: TraceabilityEntry[],
existingPaths: Set<string>,
activeCiJobs: Set<string>
): string[] {
const violations: string[] = [];
for (const req of entries) {
if (req.moscow === 'Wont') continue;
for (const [kind, filePath] of Object.entries(req.artifacts)) {
if (!existingPaths.has(filePath)) {
violations.push(`${req.id}: missing ${kind} artifact at ${filePath}`);
}
}
if (!existingPaths.has(req.verification.gwt_feature)) {
violations.push(`${req.id}: missing GWT spec ${req.verification.gwt_feature}`);
}
if (!activeCiJobs.has(req.verification.ci_job)) {
violations.push(`${req.id}: unmapped CI verification job ${req.verification.ci_job}`);
}
}
return violations;
}
This keeps the workflow pragmatic: engineers do not fill out redundant forms after coding. Instead, the repository itself guarantees that requirements (ISO 29148), models (UML / ERD), and behavioral checks (GWT / UAT) move in lockstep across every sprint.
Discipline Enables Speed
Formal SDLC is often mischaracterized as slow. In reality, ambiguity is what slows teams down—rebuilding misaligned features, debugging undocumented state transitions, and negotiating scope in production. When every requirement is sized with MoSCoW/INVEST, modeled visually before implementation, and locked to an executable acceptance gate in CI, engineering teams ship with confidence—and build systems that endure.