Standardize the contract, not every deployment
How the six pillars and Generative AI Lens best practices guide reusable GenAI architecture standards, distinguishing consistent design requirements from deployment-specific trade-offs. · advanced
The AWS Well-Architected Framework supplies six perspectives for judging a workload; the Generative AI Lens adds GenAI-specific questions and best practices. Together they guide reusable standards, but neither prescribes one architecture for every deployment. The workload boundary includes data, model interactions, infrastructure, operating procedures, and accountable people.
A useful architecture standard separates invariants from deployment parameters. Invariants are organizational requirements that each applicable deployment must satisfy, such as preserving authorization when retrieving context. Parameters select an implementation within that contract, such as the model, retrieval depth, or capacity strategy. Applicability matters: a retrieval authorization requirement applies when retrieval is present, not as a demand that every application use retrieval.
Package each requirement with its rationale, applicability, verification method, and owner. For example, require authorization before retrieved content enters model context, then verify it with cross-tenant negative tests. This standardizes a security outcome without mandating the same search service everywhere. An exception is a governed departure from a requirement, not an undocumented parameter choice.
| Standard element | Meaning | Example |
|---|---|---|
| Invariant | Required outcome | Authorized retrieval context |
| Parameter | Choice within constraints | Retrieval depth |
| Exception | Approved requirement departure | Time-bounded deviation |