Manuscript Offprint

arXiv:2610.13647

A-SAW: The Agentic Software Architecture Workflow

Finn Klatt, Luca Di Grazia, Johannes Schneider

FINN KLATT, University of Liechtenstein, Liechtenstein

LUCA DI GRAZIA, University of St. Gallen, Switzerland

JOHANNES SCHNEIDER, University of Liechtenstein, Liechtenstein

AI assistance in software engineering focuses on implementation and verification, leaving the design phase, and in particular the maintenance of architecture documentation, comparatively underserved. Architecture as Code makes architectural artifacts versionable, diffable, and machine-readable, but it does not reduce the effort of keeping them updated, so design documentation still ends up as a fragmented, author-dependent, and only partially trusted record of why a system looks the way it does.

In this paper we introduce the Agentic Software Architecture Workflow (A-SAW), a process-level artifact that extends Architecture as Code with a persistent agent layer: an IDE-integrated agent drafts architecture documents from a version-controlled C4 model, a typed element catalog, and instrumented templates. Every draft passes a mandatory human review gate before it is accepted. We evaluate it in a large industrial organization along two tracks: a rubric assessment of 45 architecture documents including 13 matched source→regeneration pairs, and 13 task-anchored practitioner interviews. Our results show that the workflow collapses the between-author variance that made quality unpredictable (SD 19.2 → 3.8; ratio 5.0, 95% CI [2.9, 9.2]). Intrinsic quality also rises, by a median of +19 points across the matched pairs (p = 0.001, r = +0.97). The cohort means of 58% and 89% bundle templates, catalog, agent, and a richer regeneration context. So they bound the agent’s contribution from above rather than isolating it. In the agent-generated documents, completeness (100%), consistency (93%), and machine-readability (99%) reach or approach the rubric maximum, while traceability reaches 79%. After the hands-on task, the interviewed practitioners described their trust as conditional. They tied it to how much the agent had to infer beyond the data in the repository and to how many reliable generations they had seen. Their trust also covered whether the recorded design is sound. Because the rubric measures none of these, high structural scores do not by themselves show that a document can be trusted. Eleven of the 13 participants rejected agent output that no human had reviewed, and one warned that polished output may lead reviewers to skip the review. Our work supports keeping human review mandatory and concentrating it where the agent must infer beyond the repository.

CCS Concepts: • Software and its engineering → Software architectures; Software documentation; • Computing methodologies → Intelligent agents.

Additional Key Words and Phrases: Software Architecture Documentation, Architecture as Code, LLM Agents, C4 Model, Human-in-the-Loop, Design Science Research, Industrial Case Study

1 Introduction

Large language models have moved from autocompletion to agentic workflows, and in software engineering they are now widely adopted [12, 38, 58]. Agents now localize, reproduce, and fix bugs [57], coordinate in role-distributed teams [22, 56], and use commercial issue trackers under engineer supervision [47]. That effort is not well distributed across the life cycle: the study by Hou et al. [23] finds the majority of AI for Software Engineering approaches target code generation and software testing, and few target software design and software architecture. The asymmetry is understandable: code compiles or it does not. In contrast, architectural artifacts are communicative and partly subjective because business intent enters in the design phase. These intents are constraints later phases inherit [39].

Authors' Contact Information: Finn Klatt, finn.klatt@tutanota.com, University of Liechtenstein, Vaduz, Liechtenstein; Luca Di Grazia, work@lucadigrazia.com, University of St. Gallen, St. Gallen, Switzerland; Johannes Schneider, johannes.schneider@uni.li, University of Liechtenstein, Vaduz, Liechtenstein.

  1. ACM XXXX-XXXX/2026/10-ART https://doi.org/10.1145/nnnnnnn.nnnnnnn

Finn Klatt, Luca Di Grazia, and Johannes Schneider

In this domain, the main problem is not the generation of the software architecture, but its maintenance during the iterations and the entire software life-cycle. van Heesch and Avgeriou [50] elaborate on architectural knowledge vaporization: the rationale behind a design as well as its alternatives and trade-offs are the least recorded category of architectural knowledge. They evaporate as systems evolve and their designers move on. What remains diverges from the running system [18] and scatters across wikis, file shares, and repositories [19]. The Architecture as Code (AaC) paradigm [7] addresses part of this: treating diagrams and specifications as plain-text source under version control makes architecture reviewable, diffable, and, decisively for what follows, machine-readable. But AaC solves storage and versioning, not the maintenance problem. A repository full of PlantUML does not update itself, flag its own drift, or synthesize rationale; Bucaioni et al. [7] indeed list minimizing drift and ensuring conformance among the paradigm's own open challenges.

In this paper, we design the Agentic Software Architecture Workflow (A-SAW) extending AaC with a persistent agent layer between the artifact store and the human reviewer. An artifact layer holds version-controlled, machine-readable C4 models and design documents governed by a typed element catalog that acts as a naming contract across every view; an agent orchestration layer assembles context from that catalog, the system model, instrumented templates, and a feature-scoped context folder, and generates a structurally complete first draft; and a human review layer approves every draft. Hallucination is constrained structurally rather than by exhortation, through five measures: catalog-grounded element references, context-folder scoping, explicit gap marking instead of plausible filler, an automated check for phantom identifiers and macro misuse, and a two-role approval gate.

We evaluate A-SAW using a rubric assessment on 45 architecture documents across three cohorts (pre-tooling manual authoring, partial AaC adoption, and agentic generation). It exploits a matched-pairs design in which each of the 13 agentic documents regenerates a named human-authored source. The main result shows that the standard deviation of document scores falls from 19.2 to 3.8 (ratio 5.0, 95% CI [2.9, 9.2]). Scores near the rubric maximum have little room to vary, so we also check traceability, the dimension furthest below that maximum (79% in the agentic cohort). Its standard deviation decreases as well, from 22.9 to 7.4. Quality is therefore much more uniform across documents, and the 19-point gap between architecture and detailed design documents in the manual cohort does not recur in the agentic one. Intrinsic quality also increases, by a median of +19 points across the matched pairs (p = 0.001, rank-biserial r = +0.97); the cohort means of 58% and 89% bundle templates, catalog, agent and a richer regeneration context, and bound the agent's contribution from above rather than isolating it. 13 practitioners each performed a 30-minute hands-on regeneration task and were then interviewed. They reported that the workflow cut first-draft effort from days to minutes and made design rationale easier to find. Their trust was conditional: none expressed unconditional confidence in the diagrams they had just watched being generated. Most insisted on human review (11 of 13), and their effort shifted from authoring toward verification.

As a result, the contributions of this paper are:

• A process-level artifact: the A-SAW, a three-layer design (artifact / agent orchestration / human review) extending Architecture as Code with agentic first-draft authoring under mandatory review, together with the element catalog as a machine-verifiable naming contract across all C4 views (Section 3).

• An industrial evaluation with a matched-pairs design: 45 documents across three cohorts, 13 of them matched source→regeneration pairs, quantifying the quality gain and the variance collapse (Section 4.2).

• A capability boundary: completeness, consistency, and machine-readability are within reach of a repository-grounded agent, while requirements traceability and decision auditability remain human-dependent (Section 4.3).

• The quality–trust divergence: a triangulated account of why near-ceiling measured quality coexists with conditional practitioner trust, decomposed along established trust dimensions, plus five transferable design principles (Sections 4.5 and 5).

The impact of this work rests on a finding that measured artifact quality and practitioner trust come apart, because trust is gated by properties the rubric does not measure (Section 4.5). One participant pointed to the converse risk of over-trust: because the output looks polished, reviewers may relax the scrutiny the workflow depends on. Whether trust converges on measured quality under sustained use is a longitudinal question a single-session design cannot answer, and it remains a future direction.

References (39)