This module puts AI inside the core design loop — options matrices, diagrams, reference-architecture retrieval, Well-Architected reviews, adversarial red-teams, and IaC handoffs — with a verification gate at every step, so speed never outruns the truth of the design.
Module 1 installed the posture; this module applies it to the artifacts architects produce most: the options analysis, the diagram, the review, and the design-to-build handoff. The pattern repeats in every section — AI drafts or checks, a deterministic or documentary gate verifies, a human signs. AI-generated diagrams are plausibility machines, AI review findings run at rejection rates that demand advisory-only placement, and AI-generated IaC hallucinates resource attributes; each workflow below exists because of one of those failure modes, not despite them.
Anita, Solutions Architect at Orbit, is preparing the design pack for orbit-docs-copilot — the company's first customer-facing RAG copilot. The review board wants a deployment diagram by Thursday.
She feeds the requirements brief to a coding assistant and asks for a Mermaid deployment diagram: ingestion pipeline, vector store, retrieval service, gateway, and the copilot API. Thirty seconds later she has a clean, professional-looking diagram.
It looks right. Boxes are sensibly grouped, the data flow reads well. She almost commits it to the design repo as-is.
Then she runs the Module-1 reflex — verify every node and every edge against design intent — and stops at one arrow: the diagram shows the ingestion service writing directly to the vector store from a public subnet, an edge her design routes through an internal indexing API precisely so that ingestion never holds database credentials.
Second pass finds a subtler one: the diagram draws a direct edge between the copilot API and the embedding model endpoint — a service-to-service connection that doesn't exist in the design at all. The model added it because that edge is plausible; it appears in hundreds of reference diagrams. Orbit's design deliberately brokers that call through the retrieval service, where caching and tenant scoping live.
Anita fixes both edges, then writes the check into the workflow itself: the diagram source lives in git next to the Terraform, and a drift check compares the two on every change — so a wrong edge becomes a failed check, not a Thursday-morning embarrassment.
An AI diagram is a plausibility machine — it draws the architecture that things like this usually have, not the one you designed. Every node and every edge gets verified against intent, and the durable fix is structural: diagrams as code, drift-checked against the IaC that defines reality.
The two bad edges were caught in twenty minutes because Anita read the diagram as a claim to be verified, not an artifact to be admired. Left in, the public-subnet edge would have surfaced as a security finding at review — or worse, been faithfully implemented by a build team that trusted the picture.
The solution-options analysis (UC-02) is the first artifact of most engagements: two to four candidate architectures, compared on the dimensions that matter, with a defensible recommendation. AI collapses the scaffolding time — candidate enumeration, dimension selection, first-pass trade-off prose — from days to an hour. What it must not collapse is ownership of the weights and the verdict.
The working split, applied to an orbit-docs-copilot platform choice:
| Criterion | Weight (Anita's) | Option A: managed RAG service | Option B: custom (framework + pgvector) | Option C: hybrid |
|---|---|---|---|---|
| Ops burden | 30% | Low — provider-operated | High — pipeline is yours | Medium |
| Control over retrieval | 25% | Limited tuning surface | Full control | Full on the custom path |
| Compliance & residency | 20% | Verify per region | Region-pinnable by design | Region-pinnable |
| Cost shape | 15% | Per-query pricing — verify | Infra floor + engineering time | Both cost shapes |
| Exit cost | 10% | Re-platform to leave | Portable components | Partial portability |
Three rules make this table trustworthy rather than theater:
Loading org context into a persistent workspace (Claude Projects-class) makes successive matrices faster and more consistent — past matrices, house dimensions, standard weights become retrievable context rather than re-invented structure.
Natural language to diagram (UC-07) is now table stakes: Mermaid or D2 via a coding assistant, or dedicated tools of the Eraser-AI class, turn a requirements brief into a presentable diagram in seconds. The scenario showed the cost of trusting it. The verification pass is short and non-negotiable:
Diagrams-as-code in git, drift-checked against IaC (UC-08) is the structural upgrade. The diagram source (Mermaid/D2/Structurizr) lives in the repo next to the Terraform. On a schedule or on every infra PR, an AI pass regenerates the diagram from the Terraform configuration and state, and diffs it against the committed diagram. A non-empty diff means one of two things — the docs are stale, or the infra changed without a design conversation — and both are findings worth a ticket. Tooling that reads live configuration is the strong anchor here: live-infra import is the most accurate diagram source precisely because it reads what actually exists rather than what anyone remembers.
A worked prompt for the drift check, run by a repo-aware assistant (Claude Code-class):
Compare the architecture diagram at docs/architecture/orbit-docs-copilot.mmd
against the Terraform in infra/ (modules + current plan output).
Report, as a table:
1. Components present in Terraform but missing from the diagram.
2. Components in the diagram absent from Terraform.
3. Edges in the diagram with no corresponding connectivity in Terraform
(security groups, IAM, endpoints, service configs).
4. Connectivity in Terraform not drawn in the diagram.
For each mismatch: cite the file and resource address. Do not modify
anything; this is a report. If you cannot determine a connection from the
code, say "undetermined" — do not guess.
The output is a drift report a human triages — some rows become diagram fixes, some become "why does this security group allow that?" questions. Lab 02 runs this full pipeline against a Terraform stack with three seeded mismatches; your job is to catch all three and correctly classify which side is wrong.
A generated diagram is a set of claims, not a picture — verify every node, edge, and boundary against design intent, then make the check permanent by keeping diagrams as code and drift-checking them against the IaC that defines reality.
Module 1 established the hyperscaler canon; this workflow (UC-09) makes it operational. All three clouds now publish formal AI reference architectures — the Azure Foundry chat baseline and AI landing zone, Google's family of five RAG reference architectures, the scenario guidance in the AWS lenses — and the corpus updates faster than memory tracks. So the working pattern is retrieval:
For Anita, this turned a blank-page design into "the managed-RAG baseline, plus four deviations we can defend." For Rajesh, a cited reference architecture in an RFP response reads as credibility to clients who know the same documents.
Framework reviews (UC-10) are structured as question sets per pillar — which makes them the best-shaped AI-assisted workflow in this module. With the GenAI Lens (and, for agentic workloads, the Agentic AI Lens), the division of labor is:
Expect the AI pass to be both generous and wrong in characteristic ways: it will surface real issues you'd have missed at hour three of a review, and it will also confidently assert findings the evidence doesn't support. Lab 01 is built exactly on this: a deliberately flawed RAG architecture with ten seeded issues, where passing means catching at least eight and rejecting the two false findings the AI asserts. Rejecting the false positives is the graded skill — accepting AI findings uncritically fails the review as surely as missing real ones.
In an AI-assisted framework review, the architect's non-delegable acts are three: validating that cited evidence supports each finding, rejecting findings the evidence doesn't support, and setting the risk ratings. Everything else can be drafted.
Distinct from framework reviews: the adversarial pass (UC-11), where AI attacks your design with failure-mode checklists — single points of failure, quota and limit walls, cost cliffs, cold-start behavior, data gravity, blast radius. This is cheap paranoia on demand, and it belongs in every significant design's pre-review week.
Placement is the discipline. Evidence from AI code review shows rejection rates around 59% for AI-raised findings — a majority of what an adversarial pass raises will be wrong, irrelevant, or misprioritized for your context. Applied to design review, that dictates advisory-only placement:
The last artifact of the design phase is the first artifact of the build: IaC module skeletons generated from the approved design (UC-12). AI is good at this scaffolding — and research on LLM-generated Terraform (the TerraFormer line of work) documents the failure mode you must design around: models hallucinate HCL resource types and attributes, producing code that looks idiomatic and does not correspond to the provider's actual schema.
The consequence is a hard rule: generated IaC is untrusted until it survives the full chain — validate → plan → policy scan → cost check. Validate catches fabricated types and attributes; plan catches what validate can't; policy gates (Checkov-class) catch insecure defaults; cost estimation (Infracost-class) catches the skeleton that quietly provisions the expensive tier. The DevOps track owns operating that chain — your obligations as the architect are:
Plausible is the enemy in this entire module — plausible edges in diagrams, plausible findings in reviews, plausible attributes in HCL. Deterministic checks and documentary verification are how plausible is separated from true.
AI moves the design loop from days to hours only when every artifact it touches passes a matching gate — intent-verification for diagrams, evidence-validation for reviews, human-owned weights for matrices, and the validate→plan→policy→cost chain for IaC.
Two labs anchor this stage. Lab 01 — Well-Architected review with the GenAI lens: run the AI-assisted review against a flawed RAG architecture with ten seeded issues; catch at least eight and reject the two false findings the AI asserts. Lab 02 — Diagram pipeline: NL → Mermaid/D2 → git → AI drift check against Terraform containing three seeded mismatches; your artifact is the diagram repo plus the drift report.
Companion playbooks: pb-06 (Solution-Options Matrix with Weighted Trade-offs), pb-07 (Architecture Diagrams from Natural Language — with Verification), pb-08 (Diagrams-as-Code in Git, Drift-Checked Against IaC), pb-09 (Reference-Architecture Retrieval & Adaptation), pb-10 (AI-Assisted Well-Architected Review — GenAI Lens Included), pb-11 (Design-Review Red Team — Adversarial Failure-Mode Checklists), and pb-12 (IaC Skeletons from an Approved Design).