Full development lifecycle. Human + AI

>by Roman Tsyupryk
>

This text is just my thoughts out loud. I'm only a human being trying to analyze current information and imagine what might happen in the future. My thoughts could be completely wrong or might be just "noise" or they could be food for brainstorming about "what if..." scenarios.

Stay tuned for the second part β†’ Full Development Lifecycle: AI-Only, as a Living System

Roles

Abbrev Role AI Agent AI Agent Role
PM Product Manager PMAIA PM AI Agent
TLA Tech Lead / Architect TLAAIA TLA AI Agent
SWE Software Engineer SWEAIA SWE AI Agent
QAE QA Engineer QAAIA QA AI Agent
SEC Security Engineer SECAIA Security AI Agent
DE DevOps Engineer DEAIA DevOps AI Agent
SRE Site Reliability Eng. SREAIA SRE AI Agent

Concepts & Artifacts

Term Full Name Description
SDD Spec-Driven Development The methodology this workflow follows at the spec-anchored maturity level: the Spec is written before code and kept in sync with the implementation throughout the feature's life (BΓΆckeler's model: spec-first / spec-anchored / spec-as-source; spec-as-source deliberately not adopted).
Constitution β€” Persistent, project-level engineering principles and constraints, owned by TLA. References the pattern library, carries the anti-pattern denylist, and is periodically re-reviewed. Every Spec and ADR must comply with it.
Spec Specification The unified artifact from the Specify step β€” what/why (formerly PRD) + how (formerly TDD/SDD) in one structured, testable document. Single source of truth for ADRs, Tasks, and Code.
Micro-Spec β€” One-paragraph spec (what + why + acceptance criteria) for SMALL changes on the fast path.
ADR Architecture Decision Record A recorded significant decision. v7 uses three weight tiers β€” see Y-statement, Nygard, MADR below. Statuses: rfc β†’ proposed β†’ accepted / rejected / deprecated / superseded by ADR-NNNN. Numbered NNNN-title-with-dashes.md in docs/decisions/; numbers never reused; superseded records preserved.
Y-statement β€” Zimmermann's compact one-paragraph decision record (context, concern, chosen option, alternatives, consequences, accepted downsides). The smallest ADR tier; may live inline in the Spec or in a code comment.
Nygard ADR β€” Five-section template: Title / Context / Decision ("We will…") / Status / Consequences. The mid-weight ADR tier.
MADR Markdown Any Decision Records (v4.0) The heavyweight ADR tier: YAML front matter (status, date, decision-makers, consulted, informed), Decision Drivers, Considered Options with "Good/Bad/Neutral, because…" analysis, and a Confirmation section defining how compliance is verified.
RFC Request for Comments The open-comment sub-status a mid/major ADR starts in, with an explicit response-by deadline, before narrow approval.
Data Model / API Spec data-model.md / api-spec.json Machine-readable Plan-step artifacts (OpenAPI-style contract + entity model) that the Spec Compliance Check can diff automatically.
Implementation Plan (Tasks) β€” Ordered, component-by-component build plan from Final Spec + ADRs. In v7, each task maps to one reviewable PR (≀ ~105 changed lines, < 24h branch).
Spec Compliance Check β€” CI/CD gate verifying the implementation still satisfies the Spec's acceptance criteria and Plan artifacts (api-spec.json, data-model.md); drift raised as a Finding, never auto-fixed. Checks behavior.
Architecture Compliance Check β€” CI/CD gate running ArchUnit / ArchUnitTS-style structural rules derived from the Constitution and ADR Confirmation sections (layering, banned imports, cyclic deps, coupling metrics). Checks structure.
Finding β€” Structured ticket raised by any workflow for an issue it can't resolve locally; routed via the Cross-Workflow Feedback Protocol.
SAST / DAST Static / Dynamic Application Security Testing Code-level vs. running-app security scanning.
IaC Infrastructure as Code Versioned, code-defined infrastructure.
SLO Service Level Objective Target reliability/performance threshold monitored by SRE post-deploy.
CVE Common Vulnerabilities and Exposures Publicly catalogued vulnerability, typically in a dependency.
KPI Key Performance Indicator Business metric tracked post-deploy to catch regressions invisible to technical metrics.

Workflow Map

(Constitution is a one-time prerequisite, not part of the per-feature flow β€” see Development Workflow. Graph = Variant A; see note at top.)

                    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                    β”‚ Development β”‚  ← primary source of truth
                    β”‚  Workflow   β”‚    for all other workflows
                    β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜
                           β”‚ PR merged β†’ Deployed to Staging
                           ↓
               β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
               β”‚     CI/CD Workflow    β”‚
               β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                           β”‚ staging build passes
                           ↓
          β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
          ↓                ↓                ↓
  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚  QA Workflow  β”‚ β”‚  Sec Workflow β”‚ β”‚DevOps Workflowβ”‚
  β””β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜
          ↓ passes          ↓ passes          ↓ ready
          β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                           ↓ all three signed off
                  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                  β”‚   SRE Workflow    β”‚
                  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                            ↓ clears monitoring window
                  Released to Production βœ…

⚠ If any workflow detects an issue:

  • Cross-Workflow Feedback Protocol fires (see bottom)
  • Finding routed back to Development Workflow
  • Fix propagates forward through all downstream workflows again

Development Workflow

Steps: Constitution (one-time prerequisite) β†’ Change-Size Triage β†’ Specify β†’ Plan (ADRs) β†’ Tasks (Implementation Plan) β†’ Implement (Code) β†’ Pull Request

Constitution *(one-time, periodically re-reviewed)*

TLA drafts Constitution with TLAAIA:
  - core architectural principles
    (SOLID / GRASP / DRY / KISS / YAGNI / LoD)
  - non-negotiable constraints (security, compliance, style)
  - technology choices and standards
  - DEFAULT PATTERN CHOICES, citing the pattern library
    (information-technology/patterns/) β€” e.g. "all
    cross-service calls use Retry + Circuit Breaker"
  - ANTI-PATTERN DENYLIST (God Object, Golden Hammer,
    Boat Anchor, Lava Flow, Retry Storm, ...)
  - the structural rules that seed the Architecture
    Compliance Check (layering, banned imports,
    coupling thresholds)
          ↓
PM + SEC + DE + SRE review
(cross-functional, since principles are cross-cutting)
          ↓
Constitution approved βœ…
          ↓
── PERIODIC REVIEW (e.g. quarterly, or when a 3rd ADR
   in a row overrides the same default): TLA re-examines
   whether default pattern choices still fit β€” the
   Constitution's own guard against becoming a
   Golden Hammer ──
          ↓
  Referenced by every Spec and ADR from here on

Change-Size Triage

PM + TLA classify the incoming change
          ↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  SMALL                              β”‚
β”‚  - bug fix, copy change, minor      β”‚
β”‚    tweak, no new architectural      β”‚
β”‚    decisions expected               β”‚
β”‚    β†’ Micro-Spec fast path           β”‚
β”‚      (skip Specify/Plan ceremony)   β”‚
β”‚                                     β”‚
β”‚  STANDARD                           β”‚
β”‚  - new feature, behavior change,    β”‚
β”‚    or anything with unclear scope   β”‚
β”‚    β†’ full Specify β†’ Plan β†’ Tasks    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
          ↓
If SMALL, but TLAAIA later flags an architectural
implication during Micro-Spec review:
  β†’ escalate to STANDARD
          ↓
      Triage complete βœ…

Micro-Spec (SMALL changes only)

SWE + SWEAIA draft a one-paragraph Micro-Spec:
  - what is changing
  - why
  - acceptance criteria
          ↓
TLAAIA reviews against the Constitution
          ↓
Architectural implication found?
     ↓ YES                        ↓ NO
  escalate to STANDARD      Micro-Spec approved βœ…
  β†’ go to Specify                  ↓
                            β†’ Tasks step (Plan/ADRs
                              skipped; a decision worth
                              recording still gets a
                              Y-statement inline)

Specify

PMAIA + TLAAIA draft the PROBLEM STATEMENT only
(what hurts, for whom, why now β€” no solutions yet)
          ↓
PM validates the problem with Stakeholders / user research
── features are NOT drafted until the problem is
   confirmed real and worth solving ──
          ↓
PMAIA + TLAAIA extend the Spec with the solution half
(from the validated problem + Constitution)
          ↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚    PM + TLA brainstorm with         β”‚
β”‚    PMAIA + TLAAIA to discover:      β”‚
β”‚  - gaps, ambiguities                β”‚
β”‚  - missing edge cases               β”‚
β”‚  - contradictions (incl. with       β”‚
β”‚    the Constitution)                β”‚
β”‚  - unstated assumptions             β”‚
β”‚  - unclear success metrics          β”‚
β”‚  - architectural gaps / concerns    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
          ↓
PM + TLA talk to Stakeholders to fill
missing information
          ↓
Spec updated
          ↓
── repeat until PMAIA, TLAAIA, PM, TLA, or
   Stakeholders find nothing ──
── escalate to Stakeholders after 3 unresolved loops ──
          ↓
      Final Spec βœ…

Plan (ADRs)

TLAAIA scans the Final Spec and identifies
all decision points that need a record
          ↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  TLAAIA proposes a WEIGHT TIER per decision: β”‚
β”‚                                             β”‚
β”‚  Y-STATEMENT β€” small but real decision;     β”‚
β”‚    one structured paragraph, may live       β”‚
β”‚    inline in the Spec                       β”‚
β”‚  NYGARD β€” mid-weight; own numbered file     β”‚
β”‚    (Title/Context/Decision/Status/          β”‚
β”‚     Consequences)                           β”‚
β”‚  MADR-FULL β€” major decision; YAML front     β”‚
β”‚    matter (decision-makers / consulted /    β”‚
β”‚    informed), Decision Drivers, options     β”‚
β”‚    with Good/Bad/Neutral-because analysis,  β”‚
β”‚    and a CONFIRMATION section stating how   β”‚
β”‚    compliance will be verified (feeds the   β”‚
β”‚    Architecture Compliance Check)           β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
          ↓
TLA reviews and validates the list + tiers
          ↓
── one refinement loop per decision point ──
          ↓
TLAAIA drafts the record from Spec context
          ↓
Mid/major tiers open as RFC:
  - published for open comment, anyone may respond
  - explicit response-by deadline
          ↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚          TLA brainstorms            β”‚
β”‚      with TLAAIA to discover:       β”‚
β”‚  - are all options considered?      β”‚
β”‚  - are trade-offs complete?         β”‚
β”‚  - is the context well defined?     β”‚
β”‚  - are consequences realistic?      β”‚
β”‚  - does it contradict other ADRs?   β”‚
β”‚  - does it comply with the          β”‚
β”‚    Constitution?                    β”‚
β”‚  - does it cite the pattern library β”‚
β”‚    where a known pattern applies?   β”‚
β”‚  - are assumptions explicit?        β”‚
β”‚  - is the rationale strong enough?  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
          ↓
TLA filters TLAAIA findings + RFC comments
          ↓
TLA + TLAAIA improve the record
          ↓
If new information is needed:
communicate with PM or Stakeholders
          ↓
Record updated
          ↓
── repeat until resolved ──
── escalate to Stakeholders after 3 unresolved loops ──
          ↓
NARROW APPROVAL β€” not full-team:
  TLA + the role owning the affected domain
  (e.g. SEC for a security-relevant ADR,
   DE/SRE for an infra-relevant one)
          ↓
    ADR accepted βœ…
    (rejected RFCs are kept with status "rejected" β€”
     a documented no is institutional memory too)
          ↓
── repeat for next decision point until all done ──
          ↓
SWEAIA + TLAAIA derive machine-readable artifacts:
  - data-model.md   (entities, relationships)
  - api-spec.json   (OpenAPI-style contract)
          ↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  TLAAIA runs CROSS-ARTIFACT consistency check β”‚
β”‚  (Spec ↔ ADRs ↔ api-spec/data-model):        β”‚
β”‚  - do any decisions contradict each other?    β”‚
β”‚  - or contradict the Spec?                    β”‚
β”‚  - circular dependencies?                     β”‚
β”‚  - invalidated assumptions?                   β”‚
β”‚  - still compliant with Constitution?         β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
          ↓
TLA resolves any conflicts found
          ↓
    Plan consistent βœ…

Tasks (Implementation Plan)

SWEAIA generates implementation plan
from Final Spec + ADRs + api-spec.json + data-model.md
          ↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  SIZE RULE β€” every task maps to ONE          β”‚
β”‚  reviewable PR:                              β”‚
β”‚  - guideline ≀ ~105 changed lines            β”‚
β”‚  - branch lifetime < 24h                     β”‚
β”‚  Larger work is decomposed via:              β”‚
β”‚  - stacked PRs (chained dependent branches)  β”‚
β”‚  - refactor-PR then feature-PR               β”‚
β”‚  - shippable steps behind a feature flag     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
          ↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚         SWE brainstorms             β”‚
β”‚      with SWEAIA to discover:       β”‚
β”‚  - are all components covered?      β”‚
β”‚  - correct implementation order?    β”‚
β”‚  - missing integration points?      β”‚
β”‚  - test coverage gaps?              β”‚
β”‚  - contradictions with ADRs?        β”‚
β”‚  - any task too big for one PR?     β”‚
β”‚  - deployment / infra concerns?     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
          ↓
SWE filters SWEAIA findings
          ↓
SWE + SWEAIA improve implementation plan
          ↓
If new information is needed:
communicate with TLA, PM, or Stakeholders
          ↓
Implementation plan updated
          ↓
── repeat until resolved ──
── escalate to TLA after 3 unresolved loops ──
          ↓
  Final Implementation Plan βœ…

Implement (Code)

SWEAIA writes code following
Final Implementation Plan + Spec + ADRs
          ↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   SWEAIA + TLAAIA review code:               β”‚
β”‚  - matches Spec / api-spec.json contracts?   β”‚
β”‚  - respects all ADR decisions?               β”‚
β”‚  - complies with the Constitution?           β”‚
β”‚  - ANTI-PATTERN CHECK against the denylist:  β”‚
β”‚    God Object, Golden Hammer, Boat Anchor,   β”‚
β”‚    Lava Flow, Spaghetti Code, Retry Storm... β”‚
β”‚  - test coverage sufficient?                 β”‚
β”‚  - no logic gaps or edge cases?              β”‚
β”‚  - naming clarity?                           β”‚
β”‚  - comment quality?                          β”‚
β”‚  - style-guide compliance?                   β”‚
β”‚  - documentation updated?                    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
          ↓
SWEAIA fixes findings
          ↓
── repeat until SWEAIA and TLAAIA find nothing more to resolve ──
          ↓
Did implementation reveal a flaw in an upstream document?
          ↓
     β”Œβ”€β”€β”€β”€YES─────────────────────┐
     ↓                            ↓
  Flaw in ADR?              Flaw in Spec?
     ↓                            ↓
  TLA + TLAAIA amend the    TLA + PM (with their AIAs)
  ADR; old ADR β†’            resolve it and update
  "superseded"; new ADR     the Spec
  created (number never
  reused)
     ↓                            ↓
     └──── upstream doc updated βœ… β”€β”€β”€β”€β”˜
                    ↓
       re-validate impacted ADRs,
       api-spec/data-model, and
       implementation plan steps
                    ↓
              resume coding
     ↓ (no upstream flaw)
      Code complete βœ…

Pull Request

SWEAIA opens Pull Request
(one task = one PR; oversized PRs are
 sent back to the Tasks step for decomposition)
          ↓
SWE performs human peer review
(reads the diff, checks logic correctness,
 catches blind spots shared by AI agents β€”
 tractable because PRs are small by rule)
          ↓
SWE approves or requests changes from SWEAIA
          ↓
TLAAIA reviews PR against Spec + ADRs
          ↓
PMAIA validates PR against Spec acceptance criteria
          ↓
TLA approves (technical sign-off) βœ…
          ↓
PM approves (business sign-off) βœ…
          ↓
PR merged β†’ Deployed to Staging βœ…
          ↓
  β†’ CI/CD Workflow begins

Sign-off withheld (TLA or PM)?
  β†’ raise a Finding against the relevant
    Spec / Plan / Tasks step
  β†’ same bounded-loop pattern as other Development
    sub-steps (escalate after 3 unresolved loops)
  β†’ re-enter this step once resolved

CI/CD Workflow

Steps: Build β†’ Architecture Compliance Check β†’ Automated Tests β†’ Spec Compliance Check β†’ Deploy to Staging

DEAIA triggers pipeline on PR merge
          ↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Build step                         β”‚
β”‚  - compile / lint / type-check      β”‚
β”‚  - dependency audit                 β”‚
β”‚  - container image build            β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
          ↓
Build fails?
  β†’ DEAIA + SWEAIA diagnose
  β†’ SWE fixes, new commit, pipeline re-runs
  β†’ if not resolved in 2 cycles: escalate to TLA
          ↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Architecture Compliance Check      β”‚
β”‚  (STRUCTURE β€” ArchUnit/ArchUnitTS)  β”‚
β”‚  - layering / dependency direction  β”‚
β”‚  - banned imports                   β”‚
β”‚  - cyclic dependencies              β”‚
β”‚  - coupling / cohesion thresholds   β”‚
β”‚  Rules come from the Constitution   β”‚
β”‚  + ADR Confirmation sections        β”‚
β”‚  (cheap static checks β†’ run early)  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
          ↓
Structural violation?
  β†’ TLAAIA classifies:
      - code violates an accepted rule
        β†’ SWE fixes (like a failing test)
      - the rule itself is outdated
        β†’ Finding to Plan (ADR) step β€”
          supersede the ADR, then update the rule
          ↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Automated Tests                    β”‚
β”‚  - unit, integration, contract      β”‚
β”‚  - regression suite                 β”‚
β”‚  - performance baseline check       β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
          ↓
Test failures?
  β†’ DEAIA classifies failure:
      - flaky test       β†’ retry once, then flag to QAE
      - regression       β†’ Cross-Workflow Feedback to Development
      - env/infra issue  β†’ DevOps Workflow
          ↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Spec Compliance Check              β”‚
β”‚  (BEHAVIOR)                         β”‚
β”‚  - implementation still satisfies   β”‚
β”‚    the Spec's acceptance criteria?  β”‚
β”‚  - live API diffed against          β”‚
β”‚    api-spec.json (automatable);     β”‚
β”‚    schema against data-model.md     β”‚
β”‚  - flags drift, does NOT auto-fix   β”‚
β”‚    or regenerate code               β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
          ↓
Drift detected?
  β†’ DEAIA + TLAAIA classify:
      - Spec/Plan artifact is stale (code is right)
        β†’ Cross-Workflow Feedback to
          Development (Specify or Plan step)
      - code diverged from Spec (code is wrong)
        β†’ Cross-Workflow Feedback to
          Development (Implement step)
          ↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Deploy to Staging                  β”‚
β”‚  - blue/green or canary deploy      β”‚
β”‚  - smoke tests post-deploy          β”‚
β”‚  - health checks                    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
          ↓
Staging deploy fails?
  β†’ DEAIA + SREAIA diagnose
  β†’ if infra: DevOps Workflow
  β†’ if code: Cross-Workflow Feedback to Development
          ↓
  Staging deployment healthy βœ…
          ↓
  β†’ QA, Security, and DevOps Workflows begin (in parallel)

QA Workflow

Steps: Test Plan β†’ Test Execution β†’ Bug Triage

QAAIA generates test plan from the Spec + api-spec.json
          ↓
QAE reviews and enriches test plan
(covers happy paths, edge cases, regression)
          ↓
    Test plan approved βœ…
          ↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  QAAIA executes tests:              β”‚
β”‚  - functional testing               β”‚
β”‚  - exploratory testing              β”‚
β”‚  - performance / load tests         β”‚
β”‚  - accessibility checks             β”‚
β”‚  - regression suite                 β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
          ↓
QAE reviews QAAIA test results
          ↓
Issues found?
     ↓ YES
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  QAAIA classifies each finding by severity:         β”‚
β”‚                                                     β”‚
β”‚  CRITICAL / HIGH  β†’ defect in logic or design       β”‚
β”‚  MEDIUM           β†’ unexpected behaviour, UX issue  β”‚
β”‚  LOW              β†’ cosmetic, minor edge case       β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
          ↓
QAE validates classification
          ↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Route finding by severity:                         β”‚
β”‚                                                     β”‚
β”‚  CRITICAL / HIGH                                    β”‚
β”‚    β†’ Cross-Workflow Feedback to Development         β”‚
β”‚      (see protocol below)                           β”‚
β”‚    β†’ Development re-entry point depends on root:    β”‚
β”‚       - code bug          β†’ Implement step          β”‚
β”‚       - design flaw       β†’ Spec or Plan (ADR) step β”‚
β”‚       - requirements gap  β†’ Specify step            β”‚
β”‚                                                     β”‚
β”‚  MEDIUM                                             β”‚
β”‚    β†’ SWEAIA fixes, SWE reviews, new PR              β”‚
β”‚    β†’ QA re-tests the specific area                  β”‚
β”‚                                                     β”‚
β”‚  LOW                                                β”‚
β”‚    β†’ logged as tech-debt ticket                     β”‚
β”‚    β†’ no workflow re-entry required                  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
          ↓
(MEDIUM-severity fix PRs re-enter the CI/CD Workflow
 like any other PR before QA re-tests the area)
          ↓
All issues resolved or accepted βœ…
          ↓
     QA sign-off βœ…
          ↓
  recorded β€” SRE Workflow begins once QA + Security + DevOps
  have all signed off (see Workflow Map)

Security Workflow

Steps: Threat Model Review β†’ SAST/DAST β†’ Pen Test Triage

SECAIA loads the Spec + ADRs to review threat model
          ↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  SECAIA surfaces:                   β”‚
β”‚  - attack surface changes           β”‚
β”‚  - missing auth / authz controls    β”‚
β”‚  - data exposure risks              β”‚
β”‚  - dependency CVEs                  β”‚
β”‚  - insecure design patterns         β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
          ↓
SEC reviews SECAIA findings
          ↓
SAST / DAST scans run on staging build
          ↓
SEC + SECAIA triage scan results
          ↓
Vulnerabilities found?
     ↓ YES
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  SECAIA classifies each finding:                    β”‚
β”‚                                                     β”‚
β”‚  CRITICAL / HIGH  β†’ exploitable, data at risk       β”‚
β”‚  MEDIUM           β†’ hardening gap, best-practice    β”‚
β”‚  LOW / INFO       β†’ acceptable risk or false pos.   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
          ↓
SEC validates classification
          ↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Route finding by severity:                         β”‚
β”‚                                                     β”‚
β”‚  CRITICAL / HIGH                                    β”‚
β”‚    β†’ Cross-Workflow Feedback to Development         β”‚
β”‚      (see protocol below)                           β”‚
β”‚    β†’ Development re-entry point depends on root:    β”‚
β”‚       - code-level vuln   β†’ Implement step          β”‚
β”‚       - insecure design   β†’ Spec or Plan (ADR) step β”‚
β”‚       - requirements gap  β†’ Specify step            β”‚
β”‚    β†’ staging deploy BLOCKED until resolved          β”‚
β”‚                                                     β”‚
β”‚  MEDIUM                                             β”‚
β”‚    β†’ SWEAIA applies fix, SWE reviews, new PR        β”‚
β”‚    β†’ SEC re-scans the affected area                 β”‚
β”‚                                                     β”‚
β”‚  LOW / INFO                                         β”‚
β”‚    β†’ documented in security log                     β”‚
β”‚    β†’ accepted risk recorded in an ADR (MADR tier,   β”‚
β”‚      since accepted risks need decision-makers      β”‚
β”‚      named) if architectural                        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
          ↓
(MEDIUM-severity fix PRs re-enter the CI/CD Workflow
 like any other PR before SEC re-scans the area)
          ↓
All critical / high findings resolved βœ…
          ↓
  Security sign-off βœ…
          ↓
  recorded β€” SRE Workflow begins once QA + Security + DevOps
  have all signed off (see Workflow Map)

DevOps Workflow

Steps: Infrastructure Provisioning β†’ Config Management β†’ Observability

(runs in parallel with QA and Security, or triggered by CI/CD issues)

DEAIA provisions / updates infrastructure
from Spec + ADRs
          ↓
DE reviews infra plan
          ↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Config management:                 β”‚
β”‚  - environment variables            β”‚
β”‚  - secrets management               β”‚
β”‚  - feature flags (incl. those       β”‚
β”‚    created by the Tasks-step        β”‚
β”‚    PR-size rule β€” tracked for       β”‚
β”‚    retirement, not left forever)    β”‚
β”‚  - service dependencies             β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
          ↓
DEAIA runs infra validation (IaC linting, plan diff)
          ↓
DE approves and applies
          ↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Observability setup / update:      β”‚
β”‚  - dashboards                       β”‚
β”‚  - alerts and thresholds            β”‚
β”‚  - log aggregation                  β”‚
β”‚  - distributed tracing              β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
          ↓
Infra issue found that requires design change?
  β†’ Cross-Workflow Feedback to Development
    (re-entry: Spec or Plan (ADR) step)
          ↓
  DevOps ready βœ…
          ↓
  recorded β€” SRE Workflow begins once QA + Security + DevOps
  have all signed off (see Workflow Map)

SRE Workflow

Steps: SLO Validation β†’ Production Deploy β†’ Post-Deploy Monitoring

(begins after QA βœ… + Security βœ… + DevOps βœ…)

SREAIA checks SLOs and error budgets are defined and aligned
          ↓
SRE reviews SLO definitions with TLA
          ↓
Production deploy (rolling / canary / blue-green)
          ↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Post-deploy monitoring window:     β”‚
β”‚  - error rate vs baseline           β”‚
β”‚  - latency percentiles              β”‚
β”‚  - saturation metrics               β”‚
β”‚  - business KPIs (conversion, etc.) β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
          ↓
SLO breach or anomaly detected?
     ↓ YES
  SREAIA classifies:
    - regression in this change
        β†’ rollback immediately
        β†’ Cross-Workflow Feedback to Development (Implement step)
    - infra / capacity issue
        β†’ DevOps Workflow
    - known acceptable degradation
        β†’ document, continue monitoring
          ↓
Monitoring window clear βœ…
          ↓
  Released to Production βœ…

Cross-Workflow Feedback Protocol

Triggered by: QA, Security, CI/CD, DevOps, or SRE β€” when a finding cannot be resolved within that workflow alone.

Step 1 β€” Finding ticket created

Originating workflow creates a Finding ticket containing:
  - source workflow and step (e.g. "Security / SAST scan")
  - severity (CRITICAL / HIGH / MEDIUM)
  - description of the issue
  - evidence (logs, scan output, reproduction steps)
  - proposed root cause (code / design / requirements)

Step 2 β€” Root cause classification

TLAAIA + SWEAIA jointly analyse the Finding ticket
(PMAIA joins if a requirements flaw is suspected)
          ↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Classify root cause β†’ determines re-entry point:       β”‚
β”‚                                                         β”‚
β”‚  Requirements / design flaw  β†’ re-enter Development      β”‚
β”‚                                  at Specify step         β”‚
β”‚  Architectural decision flaw β†’ re-enter Development      β”‚
β”‚                                  at Plan (ADR) step      β”‚
β”‚  Implementation bug          β†’ re-enter Development      β”‚
β”‚                                  at Implement (Code) stepβ”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
          ↓
TLA confirms classification
(PM also confirms if classified as a requirements flaw)
          ↓
TLA decides which downstream workflows must re-validate
once the fix lands (default: only the originating workflow β€”
see Step 4)

Step 3 β€” Development Workflow re-entry

Finding ticket attached to the relevant Development step
          ↓
PM / TLA / SWE (whichever owns that step) is notified
          ↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  At the re-entry step, the human + their AIA:           β”‚
β”‚  - review the Finding ticket                            β”‚
β”‚  - update the document (Spec / ADR / code)              β”‚
β”‚  - re-check compliance with the Constitution            β”‚
β”‚  - update api-spec.json / data-model.md if contracts    β”‚
β”‚    changed                                              β”‚
β”‚  - propagate changes to all downstream documents        β”‚
β”‚  - re-run the cross-artifact consistency check if       β”‚
β”‚    ADRs or Plan artifacts changed                       β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
          ↓
Fix verified by TLA (and PM if the Spec changed)

Step 4 β€” Forward propagation

New PR opened with the fix
(subject to the same one-task-one-PR size rule)
          ↓
Development Workflow resumes from Implement / Pull Request step
          ↓
CI/CD Workflow re-runs
(incl. Architecture + Spec Compliance Checks)
          ↓
Originating workflow re-validates the finding area.
Other workflows that already passed are NOT fully re-run
unless TLA's Step 2 domain call says the fix scope
touches them too.
          ↓
Originating workflow closes the Finding ticket βœ…
          ↓
If the SAME finding area reopens a 3rd time:
  β†’ escalate to TLA + PM before attempting another fix
  β†’ re-examine whether the root cause was misclassified
    in Step 2
          ↓
If all workflows sign off:
  β†’ pipeline continues toward Released to Production βœ…

Stay tuned for the second part β†’ Full Development Lifecycle: AI-Only, as a Living System

Share this post: