Architecture, an architect’s role and their relationship to agile principles are seldom defined when I start an agile transformation. There are those who believe architecture is a lofty set of future technical needs or desires. For example, architects provide solutions to address past technical debt that will never be implemented. There are those who believe that architects live in an ivory tower and profess designs that have no possibility of being implemented within the constraints of the -ilities (affordability, scalability, securability, sustainability, supportability, etc). There are those who know that agile means do whatever, whenever and however they want until there is something new and urgent that needs to be done instead. When all of these beliefs are held in an organization, architecture is dismissed.
Given this baggage, I start an agile transformation by asking, how do you define architecture and the role of architects? As expected, I get a mixture of responses across the organization depending upon who’s answering. Engineering managers tend to define the role subservient to their role as managers, as in technical designs that fit into their envisioned schedule and feature set. Product managers define the role as subservient to their roles balancing stakeholders and customers’ needs, as in technical designs that support the whim of sales or customers’ desires. Support or quality leads define the role as ensuring supportability or delivering reliability. Even the technical leads will define their own roles as being subservient to everyone else.
When I ask, if a technical infeasibility surfaces, who raises it and resolves it? I’m surprised by their willingness to immediately take on technical debt and paper over the infeasibility. Or, worst yet, toss the technical issue on another team or organization, and move forward with an unrealistic, low-quality solution.
To reset the discussion, I define architecture as ‘technical decisions that we hold ourselves accountable to’. This means that the decisions (or agreements) are technical in nature and made by engineers, technical leads and/or architects. Architecture decisions relate to but are not management, product, quality or support decisions. Everyone is held accountable to these decisions which means that the decisions have to be written down and tested/checked against. If there’s a discrepancy, we either change the implementation to be consistent with the technical decision(s), or we change the technical decision(s) for everyone. Architects, or technical leads, are responsible for cultivating, documenting and, when necessary, making these technical decisions. Architecture and architects stand as a separate task and job role. They are part of the collaboration between Product Management, Engineering Management and the team.
This definition avoids the pitfalls of the above baggage by centering architecture in the space of documenting and brokering technical decisions that are written down and used. Normally, engineering managers, product managers, support, and quality don’t want to cultivate or maintain a set of technical documentation. Equally important, most everyone will agree that given the pragmatic nature of the definition, it avoids the ivory tower and irrelevance concerns.
I can hear the screams of the agile purists, ‘working software over comprehensive documentation’! Most agree that ‘over’ does not mean ‘instead of’. Both working software and documentation are highly valued and important.
Let’s step back and use Mary Poppendieck’s ‘Build Integrity In’ Tools; Perceived Integrity, and Conceptual Integrity. Perceived Integrity is the consistency in how we present abstractions and interactions to our users. This means that our abstractions, or user design decisions are expressed in both internal and user documentation, and are carefully cultivated and validated with our users. Equally, this means that we have explicitly decided and documented who our users, or user personas, are. Therefore, I place the decisions of user design and user personas in the realm of architects’ technical domain. Any change in user personas has a massive impact on every aspect of the product and needs to be carefully considered and controlled. Architects tend to understand these impacts on Perceived Integrity better than the other roles.
Turning to Conceptual Integrity as it comes more naturally to technical leaders. Conceptual Integrity deals with the speeds, feeds, interfaces, APIs and functionality of the code itself. As we’ve learned, APIs are contracts between components. Neither component can change the contract without an agreement of all parties involved and a phased transition to the new agreement. A lot of modern language and API styles have helped to ease these transitions but regardless, the contract has to be kept to keep the system operating. When these are documented, maintained and tested against, the resulting system tends towards resilience.
Back to the ‘working software over comprehensive documentation’ concern. Recent innovations in validation, APIs, languages, CI/CD, tooling and UI development, have moved us towards the reality when comprehensive documentation is also working software. As we maintain software, we can maintain architecture and our technical agreements. With each software change, we know if we’re staying aligned with those agreements.
Another benefit of this approach, by clearly defining and using user personas, all teams can now align their user stories and outcomes to identically the user personas defined for Conceptual Integrity. So as Product Managers, Engineering Managers and teams discuss potential user value, they have a common understanding of who they are discussing for precisely the intended outcome that is consistent with past delivered value.
During an agile transformation, it takes a while for the organization to grow accustomed to this clearly defined architecture role, responsibility and accountability. Some organizations have created a ‘triad’ collaboration where Engineering Leadership, Architecture and Product Owners engage the team as a single voice during the team’s refinement, planning and execution. Teams benefit because they know what’s expected of them so they can focus on creating the highest value for the customer.
Thank you for putting your vast experience into blogs Prof. Hodapp.
ReplyDelete