Library

Volume 4 · AI-Assisted Development (AI SDLC)

Notebook
Sign in

Section 12

Structured AI SDLC (Plan-Constrain-Validate Approach)

214 words · about 1 min

12.1 The 3 Core Conventions of AI-SDLC

  1. “Context Over Generation” (Zero Ad-Hoc Prompting): Engineers are never allowed to open an empty file and ask the AI to “build a microservice.” The convention is that the AI must always be pointed to a pre-written architecture or requirement file first.
  2. The “Layer-by-Layer” Generation Standard: The AI cannot generate the entire stack at once. Generate the Domain layer first and review it, then the Infrastructure layer and review it, then finally the Application/API layer.
  3. Mandatory AI Code Attribution (Visible Review): During Pull Requests, any heavily AI-generated logic must be explicitly called out by the developer, who must be able to manually explain the Big-O complexity and error-handling of that code to the reviewer.

12.2 Plan → Constrain → Validate

PLAN:      Engineer + AI generate IMPLEMENTATION_PLAN.md before any code
           is written. Human reviews and approves the plan.

CONSTRAIN: The AI is bounded by repository-level rule files (.cursorrules,
           AGENTS.md) that enforce architecture, language version, coding
           standards, and forbidden patterns.

VALIDATE:  Every AI-generated change goes through automated gates
           (linters, tests, SAST) AND a human review that explicitly
           validates error handling, security, and architectural fit.

This is the core answer to “how do you implement a controlled AI-SDLC”: inject constraints directly into the repository rather than relying on developer discipline alone.