ModelRefs / Design Doc Generation — Architecture Blueprint
Design Doc Generation — Architecture Blueprint
Production architecture blueprint for Design Doc Generation: components, deployment, cost and latency, failure modes, evaluation and governance.
Overview
This is the implementation view of Design Doc Generation: the components it requires, where it can run, what it costs in latency and spend, how it fails, and what you must measure before putting it in front of users.
4 components to assemble, 5 documented failure modes, medium implementation complexity. Every statement below comes from the canonical workflow record with its sources and review date; where the evidence does not settle a question, the page says so rather than filling the gap.
- Implementation complexity
- medium
- Components
- 4
- Failure modes
- 5
- Evaluation readiness
- documented
- Sources
- 2read 2026-11-20
What this workflow takes in and produces
Takes in
- tracked issues and requirements
- codebase and architecture context
- prior design documents and decision records
- reviewer comments
Produces
- design document drafts
- alternatives and trade-off tables
- decision records
- open-question lists
Applied to
- drafting design documents from a tracked issue and codebase context
- structuring trade-off and alternatives analysis
- recording decisions for later readers
Components you need to assemble
A working implementation needs 4 distinct components. Each is a build-or-buy decision in its own right.
- issue tracker and repository access
- design document template
- decision record registry
- review and approval workflow
Implementation complexity: medium. This describes the integration and evaluation effort, not the difficulty of any single component.
Deployment patterns
Deployment options recorded for this workflow: managed-api, hybrid.
Topologies it has been recorded against: serverless-api, managed-container, self-hosted-cluster. Each changes the data-residency, scaling and cost profile, so confirm the one you need against current provider documentation.
Cost and latency
- Cost scales with context read from the codebase and issues. Retrieve only the relevant modules.
- Reviewer time on wrong or generic text is the main cost to measure.
How this workflow fails
Observed failure modes for this class of workflow. Design a check for each one before shipping, not after.
- invented requirement or constraint
- alternatives that are not real options
- trade-offs asserted without reasoning
- document written when no design decision exists
- false consensus from fluent prose
Risk areas the evidence covers
- factual accuracy of context
- quality of alternatives
- decision traceability
- reviewer effort
- false consensus
Proving it works before you ship
Evaluation readiness: Documented — Accuracy of context, quality of alternatives, reviewer edit effort and decision-record completeness measures are defined; team templates and review standards remain required.
Worked evaluation case: Drafts for past design decisions
Generate design document drafts from the issues and code that preceded past design decisions and have the original authors and reviewers compare them with the approved documents.
What to measure
- statements of context contradicted by the code or issue
- alternatives judged genuine by the authors
- missing considerations raised in review
- author edit effort
- decision records complete
Governance and data handling
- Design documents hold unreleased plans and security detail. Decide what may be sent to a model provider.
- The author owns the design. The assistant drafts structure and options; people decide.
Implementation notes
- Generate the structure and candidate alternatives from the issue and code, and require the author to supply the decision and its reasons.
- Skip generation when the change has no meaningful trade-off, as the article advises.
What this blueprint does not establish
- The article describes a practice at one company and offers no evidence about generated documents.
- The ADR site describes a record format and does not state how many teams use it or with what result.
- No team template, review process, decision-record convention or acceptance threshold is registered for a target deployment.
- No measured context accuracy, alternative quality or reviewer-effort result for generated design documents is attached.
Source coverage: Documented — Malte Ubl's article supports what a design doc is for, its usual sections (context and scope, goals and non-goals, the design, alternatives considered, cross-cutting concerns) and that a doc is not worth writing when there is no meaningful trade-off. The ADR site supports recording a single architectural decision with its reasons and consequences. Neither evaluates generated design documents.
Sources read on 2026-11-20. The article is from 2020 and the ADR page shows no last-updated date.
Sources
- Design Docs at Google Malte Ubl (industrialempathy.com) · third-party · accessed 2026-11-20
- Architectural Decision Records adr.github.io (GitHub adr organisation) · official · accessed 2026-11-20
Candidate models and benchmarks
Candidate models with published references, the providers behind them, and the benchmarks whose task shape bears on this workflow are on the Design Doc Generation workflow reference. This blueprint covers implementation; that page covers selection.
Continue your research
Use these connected ModelRefs sections to compare alternatives, inspect implementation paths, and review the evidence and governance boundaries relevant to Design Doc Generation — Architecture Blueprint.