© John D. McDowall 2019
John D. McDowall Complex Enterprise Architecture https://doi.org/10.1007/978-1-4842-4306-0_2
2. An Overview of Complex Adaptive Systems
John D. McDowall 1
(1)
Warrenton, VA, USA
A complex adaptive system is a system where each of the parts may be perfectly understood, but the behavior of the system as a whole cannot necessarily be predicted. The characteristics of such systems and their relevance to system design have been recognized for many years. Douglas Hofstadter, in his 1979 work on artificial intelligence, Gödel, Escher, Bach: An Eternal Golden Braid , 1 recognized the importance of the emergent behaviors that come from these systems. By the 1990s, commodity hardware powerful enough to efficiently run large-scale agent simulations was readily available, opening up a new avenue of research into complex adaptive systems. This research led to new insights in fields as diverse as economics and social sciences highlighting the effects of small changes on the behavior of large populations and how societies self-organize. We can use the insight that was developed from this research to improve the practice of enterprise architecture. Instead of imposing structure from the top down, we can let the structure emerge naturally from an environment bounded by relatively simple rules.
Complex Adaptive Systems
Usually, the individual elements of a complex adaptive system are themselves relatively simple and operate according to a set of similarly simple rules. But when these simple elements are combined into a system, the system exhibits complex behaviors that are not readily predictable by examining the behaviors of the individual elements. That is, the system as a whole is greater than the sum of its parts and behaves differently than any of the parts. This phenomenon is known as emergent behavior and is one of the key characteristics of a complex adaptive system. To the outside observer, emergent behaviors may appear to be the result of sophisticated, centrally controlled optimization and prioritization of a system’s actions. In reality, the emergent behaviors are the result of each of the individual elements of the system operating according to its own internal rules and motivations, in the context of the operating environment, and interacting with all the other elements of the system (each, in turn, operating according to its own internal rules and motivations). Put more simply, emergent behaviors are the result of each individual element of a system pursuing its own interest. It is these emergent behaviors that are of primary interest in modernizing the practice of enterprise architecture.
Examples of Complex Adaptive Systems
One of the simplest examples of a complex adaptive system is a flock of birds. Anyone who watches a large flock of birds, such as starlings, in flight is struck by the way the entire flock moves as a coherent unit without any obvious leader. Moving from one place to another, turning in midflight, climbing, and diving all appear to be under the control of some director. The flock maneuvers as a unit to avoid threats such as predators and selects a landing place big enough to accommodate the entire flock, but there is no leader. This maneuvering of the flock is an emergent behavior of the flock as a whole. There is no leader making decisions and directing each bird. Each bird acts according to its own interests: avoiding collisions with other birds, eluding predators, and otherwise “looking out for number one.” But when these individual birds come together, their individual behaviors combine to produce a flock that operates in the best interest of the species. When a single bird flying alone tries to elude a predator, the odds are in the predator’s favor and over time the predators will kill many individual birds. But an entire flock maneuvering as a unit can confuse and intimidate a predator, dissuading the predator from attacking and thereby saving the lives of more members of the flock .
For a more detailed example, consider an ant colony. An ant colony is an example of something scientists call a “superorganism.” A superorganism emerges when individuals of the same species become so highly specialized that they cannot survive without being part of a larger group composed of many individuals with complementary specializations. The group functions as though it were an individual, with each of its members being a small part of that individual. The behaviors of the superorganism are really the emergent behaviors of the complex adaptive system that is the group.
An ant colony displays a number of such emergent behaviors. The colony varies the number of ants that are sent out to forage for food; it maintains the nest; it cares for eggs and young ants; it fights off predators; and it completes many other complex tasks. For example, when one ant finds a food source, the ants will collectively find the shortest path to that source, a complex calculation for humans and one that no single ant is capable of. But an ant colony performs this task without any knowledge of mathematics, and, more importantly, without any central direction .
To better understand just how remarkable this phenomenon is, let’s take a closer look at the composition of an ant colony. The exact composition varies depending upon the species, but most ant species have three types of ant: the queen, the soldier, and the worker. The queen ant establishes the colony, and after that her only task is to lay eggs. Despite her regal title, she does not rule the colony, nor does she direct the actions of any of the other ants in the colony. The soldier ants are relatively large ants with powerful mandibles. As their name suggests, their task is to defend the colony from threats such as predator attacks or other ant colonies infringing on their territory. Worker ants perform the routine tasks that keep the ant colony functioning, such as foraging for food and caring for the young. A closer examination of worker ants reveals some of the remarkable emergent behaviors of an ant colony, behaviors that no single worker ant is even aware of .
Worker ants leave the colony each day to forage for food. Foraging is a relatively costly activity: The colony must send out enough ants to find and retrieve the amount of food necessary to feed all the ants in the colony. Ants that are sent out to forage are not available to maintain the nest or care for young. Send out too many ants to forage and the health of the colony will suffer; send out too few to bring back enough food and the colony will also suffer. By the same token, time spent looking for and transporting food is time that cannot be spent on other tasks. The goal of the ant colony is not to find food. Rather, the goal of the colony is to maintain its own health and to propagate the species; finding food is just one of the tasks necessary to reach that goal .
Worker ants initially set out to forage for food without a specific destination, and each wanders the area until it finds a food source. Upon finding a food source, the ant returns to the colony. On this return journey, the ant releases pheromones, a chemical trail that helps other ants find the food source. The other worker ants in the colony have an instinctive inclination to follow this pheromone trail. This inclination is not an overwhelming drive and ants may choose other actions when presented with the pheromone trail; however, the inclination is strong enough that at least a few other ants will follow the trail. As other ants follow the pheromone trail and return to the nest with food, they reinforce the trail by releasing pheromones of their own, thereby reinforcing the inclination of other ants to follow the trail because stronger trails are more attractive .
It is possible that several ants will find the same food source at about the same time from different routes and each of the ants will return to the nest independently, leaving different pheromone trails. Other worker ants will then follow each of these pheromone trails to the food source and return to the nest, reinforcing that trail. Those ants that return most quickly will inspire more ants to follow their pheromone trail (it being fresher and stronger than other trails), and each of the ants that follow the first ones further reinforces the trail. Over time, the worker ants converge on the shortest routes and the longer trails are abandoned .
The result of all these individual actions is that the ant colony as a whole calculates the shortest path from the colony to the food source from among the many known paths—a task that no single ant could have accomplished on its own, and one that no central authority has directed. It is important to note that the ants have no instinct to find a shortest path. They have an instinct to find food, an instinct to bring food back to the nest, an instinct to follow a pheromone trail, and an environment that offers a network of many possible paths between the nest and any food source. With these simple building blocks, the ants perform a task that requires complex mathematical calculations for a human. It wasn’t until 1959, when computer scientist Edsger W. Dijkstra published his algorithm for finding the shortest path between any two nodes in a network, 2 that humans had an efficient way to compute the shortest path between two points in a network .
Sugarscape
Ant colonies are just one example of a complex adaptive system; we are surrounded with many examples of complex adaptive systems and our understanding of them is still developing. These systems remain an active area of research in fields as diverse as computer science, economics, and the social sciences. Agent-based software systems have been used in a number of research projects to observe emergent behaviors and study how small changes in the environment or the rules that govern the individual agents can have large effects on the resulting emergent behaviors. One of the seminal developments in this field of research is the Sugarscape model.
Sugarscape is a framework for growing artificial societies developed by computer scientists Joshua M. Epstein and Robert Axtell and described in their book Growing Artificial Societies . 3 Epstein and Axtell created an artificial environment and populated it with autonomous agents. They divided the environment into a grid and seeded select squares in the grid with “sugar,” which served as food for the agents. They endowed each of the software agents with “vision” and the ability to “see” some number of squares as well as an internal reserve of sugar that could be replenished from any of the sugar deposits. They also gave each agent a set “metabolism,” or rate at which it burns sugar. They programmed the agents to look around for deposits of sugar within their visual range, then move to one of the detected deposits based on a combination of the size of the sugar deposit, the distance to the deposit, and the agent’s metabolic rate (i.e., how much sugar it would burn from its reserves to move to a given sugar deposit). Once at the deposit, agents consumed the sugar to replenish their internal stores. If an agent ran out of sugar, it died. Sugar deposits replenished themselves over time at a defined rate .
Epstein and Axtell observed the agents at work and were surprised at the behaviors that emerged from the system, even with only those simple rules. Where it would be natural to expect agents to converge on the largest sugar deposits, deplete them rapidly, and move on, the behaviors that emerged were more nuanced. Agents distributed themselves among the sugar deposits in a more efficient manner, with large deposits having relatively large numbers of agents but smaller deposits likewise attracting their share of agents. Over time, the environment would arrive at an equilibrium state (what ecologists call the “carrying capacity”). When environmental variations in sugar replenishment were introduced (“growing seasons”), patterns of migration that mimic what we see in nature emerged.
During the course of their research, Epstein and Axtell added more features to their agents, including the ability to reproduce, the ability to trade, and even the ability to modify their characteristics through cultural exchange. They observed things like the development of “tribes” of agents that emerged in different parts of the environment, with each tribe displaying distinct characteristics that had evolved over time. Economies also emerged among the agents, with surprising amounts of cooperation despite the agents existing in an environment where competition for resources was a specific design feature. A rough analog of human society emerged spontaneously from this group of simple agents .
The Sugarscape model demonstrated that even simple agents operating on limited instincts could combine and spontaneously generate sophisticated societies without any central organizing principle or force. It also demonstrated that even small variations in their environment could drive new behaviors. The results have been replicated in a number of subsequent studies and provide valuable insights not only into the production of agent-based software systems but also into fields such as economics, political science, and biology. Similar models are now used in many disciplines beyond computer science to better model the complex interactions of large, heterogeneous populations.
Economics and Enterprise Architecture
Before the development of models such as Sugarscape, economic models were largely based on the assumption that the population is, in important respects, both homogeneous and rational. Homogeneous in the sense that all members of the population have the same goals (a higher income, lower prices, etc.) and rational in the sense that each individual’s decisions are directed at maximizing their likelihood of achieving those goals. While these models are useful for understanding some aspects of societal behavior, they have significant limitations that are revealed when comparing predictions to observed behaviors.
Unfortunately for economists, reality often proves that traditional economic models are not accurate reflections of human behavior. The behavior of populations in the real world is very hard to predict. In addition, traditional economic modeling techniques are based on differential equations and partial differential equations, which make it difficult to analyze highly heterogeneous populations. In contrast, complex adaptive systems research gives economists a way to model and analyze both heterogeneity and the extent to which actors are not always rational .
Using techniques such as those demonstrated in the Sugarscape model, economists can create artificial societies that evolve over time, where individuals may alter their preferences based on experience and interactions with others. They can also increase the tendencies of some agents to act “irrationally” with respect to economic decisions. For example, instead of assuming that all agents in the model will act to maximize their own income, some agents may have a preference to remain neighbors with other agents, forgoing an increased income when presented with a choice between moving to increase income and staying put at the same income .
What does all this talk of economics have to do with enterprise architecture? Economics is fundamentally the study of interpersonal relations and how the aggregation of those relations results in business formation, growth, and evolution. Enterprises are composed of people, individuals who each have their own preferences, their own goals, and their own priorities. These characteristics affect how they perform their assigned tasks, whether they cooperate or compete with others in their own organization and other organizations within the enterprise, and their responsiveness to different incentives. All these individuals interacting with one another results in emergent behaviors of the enterprise as a whole—behaviors that may not be predicted and may not advance the enterprise’s goals .
Traditional approaches to enterprise architecture take none of these aspects of the human element into account. Existing architecture frameworks assume that everyone involved is a rational actor and that each person and project will align to the enterprise architecture and act in the best interests of the enterprise. What usually happens in practice (i.e., an emergent behavior) is that implementation teams produce whatever documentation is required to satisfy the requirements specified by the enterprise architecture team, and once they receive approval to proceed, they focus on completing their assigned tasks on time and within budget. Communicating and cooperating with other teams working on different projects is a secondary priority. While the enterprise architecture may assume that one team will reuse components being developed by another team, the first team might be hesitant to trust that the second team will deliver the necessary components in time for the first team to meet its delivery schedule. As a result, the first team often just implements the needed component itself rather than worry about depending on the second team.
Ultimately, we see the same scenario play out over and over: Rather than relying on other teams to deliver critical dependencies on time, each project implements the needed functionality independently. This results in duplicated capabilities, often using incompatible interfaces that make eventual integration more difficult. Instead of the unified, interoperable ecosystem envisioned by the enterprise architects, the result is a fragmented, brittle conglomeration of systems with overlapping and inconsistent functionality. This requires a separate integration project, draining resources from the enterprise’s main goals and requiring ever-increasing levels of effort to maintain and upgrade the resulting systems .
Adaptive Systems and Enterprise Architecture
Every large organization is a complex adaptive system. Each individual is an independent actor driven by his or her own motivations, and those motivations may or may not align with the enterprise’s overall objectives. While one developer may be driven by the prospect of career advancement, another may be driven by a passion to implement a particular technology even if it is not a good fit into the enterprise architecture. The architects of individual systems may tend to fall back on old techniques they are comfortable with, or they may be interested in trying the latest development techniques to see firsthand how well they work. This human element makes managing any large organization difficult. When combined with the ever-increasing complexity of modern systems development, it becomes nearly impossible to effectively manage an enterprise architecture using traditional techniques .
Traditional enterprise architecture frameworks do not take account of the human element and the resulting emergent behaviors of the organization. They assume that a complex enterprise can be constructed from the top down and that the development of individual systems can be managed using a command-and-control system that assumes near perfect visibility from the most abstract levels of the enterprise architecture to the most concrete implementation details. This necessitates a significant monitoring effort in order for the enterprise architects to ensure that individual system development efforts conform to the requirements of the enterprise architecture. Implementing this monitoring scheme requires design reviews, approval criteria, coordinating detailed schedules, and assorted other red tape focused on feeding the architecture, not on meeting the enterprise’s goals. To a large extent, this monitoring effort is dedicated to countering the emergent behaviors of the organization and trying to drive development teams to adopt the desired behaviors instead of channeling their natural behaviors toward the enterprise’s goals .
This does not mean that monitoring is unnecessary or undesirable; effective supervision is the key to success in any large endeavor. “Effective” is the key concept here—supervision does not need to be heavy-handed to be effective. Modern design and development tools make it easy to implement lightweight but effective supervision techniques. Automated test tools can ensure that systems conform to enterprise data-exchange standards, conformance-checking software can verify that system architectures are documented using the enterprise’s selected language, and user feedback can gauge whether systems are meeting the needs they are intended to fulfill. When monitoring is automated, the implementation teams can check their own conformance periodically to ensure they are aligned with enterprise constraints. It is a form of test-driven development; a reliable form of self-monitoring .
The central insight of my approach is that the effort to drive behavioral conformance using techniques such as enterprise-level design reviews and detailed approval criteria is counterproductive. This does not mean design reviews and approval criteria are not important; they remain a critical part of the design and implementation of individual systems. But applying techniques that are appropriate for individual systems to entire enterprises makes the erroneous assumption that those techniques will scale up without adverse effects. These techniques do not scale well because of the sheer complexity of the enterprise as compared to individual systems. By applying these techniques at the wrong level, the traditional approach to enterprise architecture expends resources on ensuring conformance instead of on meeting the enterprise’s real goals. Very few organizations have the development of a fully traceable, fully conformant enterprise architecture as their goal; the architecture is only a means for reaching that goal. By refocusing the enterprise architecture effort on meeting business goals instead of developing a detailed picture of the enterprise’s systems, we can return enterprise architecture to its proper place as an operational management tool. As it is, enterprise architecture is relegated to the role of an esoteric technical pursuit that is only understandable to the modeling priesthood .
Focus on Goals
Never tell people how to do things. Tell them what to do and they will surprise you with their ingenuity.
—George S. Patton 4
System and enterprise architects generally come up from the ranks of engineers—system implementers who are trained to specify how a system should operate, build that system, and then test it to verify that it operates as designed. Engineers are not necessarily micromanagers, but they are used to understanding the inner workings of systems and tinkering with them to optimize their functionality . They tend to be skeptical of black box systems, preferring to understand the inner workings of the components they use. Engineers bring these habits with them when they become architects, and those habits often serve them well when building individual systems. But those habits do not serve the enterprise architect well. There are too many details in a large system of systems for any one person to understand, or even for a small group to understand. Enterprise architects need to give up their quest for detailed knowledge and their desire for control if they want to effectively manage a complex ecosystem .
General George Smith Patton Jr. was the preeminent American battlefield commander in the Second World War. His blunt language and strong opinions often made him a controversial figure, but both sides respected him as a brilliant operational commander and an inspirational leader. More than 70 years after his death, his leadership techniques are studied in military and civilian leadership development programs around the world.
Effective military organizations have long understood the benefits of ceding perfect knowledge in the name of organizational agility and mission accomplishment. Good military commanders accept the fact that detailed knowledge of their subordinates’ activities is unattainable and unnecessary so long as the mission is being accomplished in accordance with their instructions. Instructions from commanders take the form of “ mission-type orders .” The commander specifies the desired end state (by saying something like, “Secure the perimeter of the embassy and protect those within it”) as well as any restrictions or controls on the unit’s activities (e.g., “Comply with the published rules of engagement”). The details of how the task will be accomplished are left to the subordinates who are actually performing it. There are several advantages of this approach. First, because the commander is not focused on the detailed planning for any individual task, he or she can focus on ensuring that the goals of each task align with the overall operational strategy. Second, the approach allows the subordinates tasked with implementation to respond to locally changing conditions without seeking approval from higher headquarters. This gives the on-scene personnel the flexibility to accomplish the mission quickly and efficiently. Another advantage of this approach is that it encourages innovative and novel solutions that are often more efficient than older ways of accomplishing the task .
Enterprise architects must be willing to adopt this goal-oriented approach to managing the enterprise’s system development efforts if they wish to be successful in today’s rapidly changing business-and-technology climate. The complexity of modern enterprises, especially those that are heavily dependent on large software systems, demands nothing less. No amount of documentation or wishful thinking will make up for the fact that there are only so many details one mind can comprehend. But the organization as a whole does comprehend all those details, and it is sufficient for the enterprise architect to leverage that knowledge. Unfortunately, directly using this kind of corporate knowledge is difficult because it requires knowing who has the specific knowledge needed to solve any given problem. Even in organizations where system design details are well documented, searching through the information to find the one or two pieces needed to address a specific problem is impractical. A better approach is to know which parts of the organization have that knowledge, and task them to solve that problem. Leave it those divisions to work out the details, and the enterprise architect can focus on observing the effects and measuring the results. That is, the enterprise architect leaves it to the enterprise’s emergent behaviors to figure out how to achieve goals while he or she focuses on monitoring the results .
Establishing and modeling goals is discussed in detail in Chapter 3 . For now, it is sufficient to understand that the enterprise must define its goals and monitor progress toward achieving them. By taking an adaptive systems approach to managing the enterprise architecture, the architect can make use of the latent organizational knowledge within the enterprise to achieve those goals. The key to effectively harnessing that knowledge is establishing rules and constraints that bound and guide the system implementation teams. Carefully defining these rules and constraints and keeping them to the minimum needed to meet the enterprise’s goals provides maximum flexibility to the implementation teams, a key enabler of enterprise agility .
Rules and Constraints
At its core, an architecture is a set of rules and constraints imposed on the system builders. The rules may include things like insisting that all system architectures be developed using a particular architecture framework, or that software must be designed using the Unified Modeling Language (UML) . Constraints may take the form of requiring that systems use specific hardware architectures, such as requiring that all computer systems use an x86-compatible architecture in their central processing unit. Problems arise because people chafe at rules and constraints; it’s human nature to rebel at having our choices limited. But rules and constraints must be enforced or they are meaningless. This is why most enterprise architecture efforts become focused on assessing the compliance of system architectures instead of achieving the enterprise’s goals. And yet, we must constrain system builders’ activities to ensure the enterprise’s systems are compatible and can interoperate when needed. An effective enterprise architecture framework must balance the need to constrain system development with the need to focus on enterprise goals.
Before discussing the details of rules and constraints, we should define what they are and how they differ. Rules are guidelines that consist of more than hard-and-fast requirements. There are exceptions to every rule; the point of having the rule is to ensure that any exceptions are known and carefully considered. Constraints are more restrictive and generally do not tolerate exceptions; they are more akin to enterprise-wide requirements statements. While constraints may apply to the architecture or design of a system, they are usually applied to the system itself. Constraints are the primary means we use to assess whether the system fits into the enterprise architecture. Taken together, the rules and constraints of the enterprise architecture form the environment that system implementers must operate within. They form the “sugarscape” where emergent behaviors that are of interest to the enterprise architect will emerge.
Rules
Within an enterprise architecture , rules are general statements about how the enterprise does the business of architecture. Assessing conformance to an architecture’s rules may be more subjective that assessing conformance to constraints, but rules should be formulated to make that assessment as simple and unambiguous as possible. Rules are intended to govern the products rather than the behavior of architects and implementation teams; trying to govern their behavior would undermine our desire to take advantage of the emergent behaviors of the enterprise. Enterprise architecture rules fall into one of two categories: rules governing how systems are developed and rules governing how systems behave.
When establishing rules, the enterprise architect must take account of human nature and adapt the rules to those realities. People do not usually object to rules as such; people object to arbitrary, unenforceable, or unclear rules. We all have an innate desire to know how we measure up among our peers and whether we meet the standards expected of us within our field of endeavor. Clear, consistently enforced rules form the framework used to judge the degree of our success. The rules established by an enterprise architect for developing system architectures provide the framework for judging whether a system architecture meets the standards expected of it. As such, the rules should be relatively few and they should be clear and concise .
Rules can take one of two forms: they can define things that are prohibited or they can define things that are required. Within an enterprise architecture, defining rules based on what is prohibited is generally counterproductive. With few exceptions, it is hard to assess what a system architecture or implementation does not do. For example, the enterprise architecture could include a rule stating that no system may expose a network interface that does not employ Transport Layer Security (TLS) to encrypt data. But it would be simpler and easier to enforce if the architecture rules stated that all exposed interfaces must use TLS. For one thing, this is a clear statement. For another, the positive statement is much easier to test because of the inherent difficulty in proving a negative. There may be exceptions, but those exceptions must be clearly understood so the rules can be appropriately crafted. Rules that define prohibited activities or results must be unambiguous, so the implementation teams understand exactly what is expected of them in regard to those rules. In practice, you will find that it is much easier to craft clear rules defining what is required than crafting rules defining what is prohibited .
Rules that define what is required must also be clear and unambiguous. It is not sufficient to establish a rule stating, “All source code must be well documented.” That is an ambiguous statement that is almost impossible to enforce. How do you define “well documented”? That is a subjective measure and it will require significant effort to assess conformance to it. Effort expended assessing conformance to a subjective rule is effort that could have been devoted to meeting the enterprise’s goals. More importantly, this is an example of a rule that is inappropriate for an enterprise architecture because it attempts to define details of the development process that will only be visible to the implementation team; this rule has no effect on whether the resulting system contributes to achieving the enterprise’s goals .
An example of a more appropriate rule would be: “System designs must be documented using UML 2.” This is a clear, concise rule that is easy to assess. There are many tools on the market that can assess whether the system design is expressed in valid UML , so human interpretation is not required. It is also a rule that is easy to comply with, as design tools that generate valid UML are readily available. It is worth pointing out that this is a rule governing how systems are developed and documented, not how the system behaves. An example of a rule governing how a system behaves in relation to the rest of the enterprise would be: “All data within a system should be available through a public interface .”
The important thing to remember when formulating rules is that people will inevitably find a way around them, especially when conforming to the rules is more work than getting around them. We can counter this tendency by ensuring that rules clearly contribute to some defined enterprise goal. This is necessary for both the enterprise architects and the implementation teams. The enterprise architects need to understand how the rule contributes to a specific enterprise goal or they cannot intelligently approve exceptions to the rule. Without that context for each rule, there is no way to judge the possible impact of the exception on the enterprise’s ability to achieve that goal. The system implementers need to understand how each rule contributes to achieving an enterprise goal in order to intelligently apply the rule. People are less likely to try to work around rules when they understand the reasons for those rules .
Every proposed rule must be carefully considered to ensure it contributes to one or more enterprise goals and to ensure it will not have unintended adverse effects on system implementers. When we examine a proposed rule to understand how it contributes to achieving the enterprise’s goals, we may find that the rule is actually counterproductive. For that same reason, we must periodically reexamine rules to ensure they are still helping achieve the enterprise’s goals. Too often, rules persist over time and the original reason for the rule becomes irrelevant with the advance of technology or a change in enterprise goals.
It is important to keep rules as simple and easy to comply with as possible. The more burdensome a rule is, the more effort will be devoted to getting around it. When formulating a rule, it is important to consider how people will try to get around it and formulate the rule in such a way that avoiding it is either impossible or will take significantly more effort than complying with it .
It is also important to ensure that rules are stated as precisely as reasonably possible. The more ambiguous a rule is, the harder it will be to enforce. By choosing words carefully and ensuring that the meaning of the rule cannot be misinterpreted, we prevent the misunderstanding that results from the assumption that “everybody knows” what we mean by particular words or phrases. 5
Finally, human nature should be taken into account. Sometimes, people will ensure they comply with the letter of a rule even if they don’t comply with the rule’s spirit, particularly when complying with only the letter of the rule is easier. So, think about ways people will try to “game the system” and formulate your rules with an eye toward preventing that behavior .
In addition, the rules should be kept few and simple, and it should be ensured that rules contribute to some defined enterprise goal. Whenever possible, it is useful to provide provenance for each rule. There is some reason the rule is in place, whether it is directly related to a specific enterprise goal or it is required by law or regulation. Any rule that does not have a definable reason for being in place is arbitrary and a distraction from achieving the enterprise’s goals. When people understand the reason for a rule, they will be more willing to conform to it. More importantly, everyone involved will understand when it is appropriate to break that rule .
There are some obvious exceptions to these guidelines for formulating rules. Rules derived from legal or regulatory requirements must be clearly stated, and everyone concerned must understand that violating those rules can leave individuals or the enterprise vulnerable to severe consequences. Such rules and their provenance must be clearly understood by all, and that means everyone must understand the consequences of failing to comply and the potential penalties.
Constraints
Constraints are more concrete than rules. They are more directive and easier to enforce because they are easier to assess. Constraints are really enterprise-scale requirements and should be formulated in the same way as a good requirement. Constraints should be developed in conjunction with the tests that will be used to assess conformance to them, and those tests should be provided to implementation teams as early in the development process as possible. When the constraints and the tests are available to the implementation teams, it is easier for them to ensure that their systems will conform to the tests. Whenever possible, constraints should be assessed using automated test tools, allowing the enterprise architecture team to quickly and easily assess conformance. Most importantly, constraints must apply to the externally observable characteristics of the system because those are the things that contribute to achieving the enterprise’s goals. Constraints that apply to the inner workings of a system are not only hard to assess; they remove the focus from achieving the enterprise’s goals .
I use the term constraints instead of requirements because requirements are typically defined on a per-system basis, and constraints apply to the entire enterprise. More importantly, in some contexts the word requirement denotes specific legal and regulatory criteria that do not always apply to enterprise architecture efforts. For example, in developing systems for the US Department of Defense, requirements refer to criteria that have been approved through the Joint Requirements Oversight Council (JROC) process . Getting JROC approval for requirements can take more than a year and failing to meet JROC-approved requirements can be grounds for cancelling a program or for legal action against the contractor. In short, constraints don’t carry quite the same weight as requirements.
Still, constraints should be expressed using the same type of language as used for requirements and their quality should be judged using the same criteria as those of requirements. That means they must be individually testable and enforceable. A common way to judge the quality of constraints is using the mnemonic SMART. A good constraint must be :
-
Specific : A constraint must apply to a specific area that will be assessed.
-
Measurable : A constraint must be measurable.
-
Assignable : A constraint must specify what it will be applied to.
-
Realistic : A constraint must be achievable with available resources.
-
Time-bound : A constraint must specify when it will be assessed.
For a constraint to be specific, is has to apply to a defined, assessable part of the system. In most cases, this means that it applies to the external interfaces of the system where it interacts with humans or other systems. Making constraints as specific as possible ensures that test results are unambiguous. For example, a constraint like, “All systems must be secure” is not specific enough for a clear assessment. What specific aspects of the system must be secure? User authentication, network communications, data storage, and many other aspects of a system contribute to security and each of them must be assessed separately because each is secured using different means. A better way to express this constraint would be, “All systems must use secure communications protocols.” This is still not a good constraint, but at least it is specific. We will improve it in the following paragraphs until we have a good constraint .
Just stating that systems must use secure communication protocols is not measurable. What defines “secure”? Unless we clearly define the term, we cannot measure whether the system is using a secure protocol. There are many network communication security protocols to choose from, some more secure than others. A better way to express the previous constraint would be, “All network communications must be secured using Transport Layer Security version 1.2 or later.” This provides a clear, measurable expression of that we mean by “secure.” Clearly, using TLS version 1.1 is not conformant, and it also does not apply to aspects such as strength of user passwords.
We still do not have a good constraint because it is not yet assignable. Systems have many means of communicating. They can invoke services across a network; they can send and receive e-mail—the list of means a system can use to communicate is extensive. Because this constraint has not been made assignable, it is not assessable; we do not know where on the system to perform the assessment. We can improve the constraint by restating it as, “All externally visible service interfaces must be secured using Transport Layer Security version 1.2 or later.” We now have a good constraint, although it still needs to be judged against the “Realistic” and “Time-bound” criteria .
Determining whether a constraint is realistic should be as unambiguous as possible. We know that a constraint that specifies TLS version 1.2 is realistic because that protocol is in widespread use today and is supported by a wide array of programming languages and libraries. We could have specified some lower-level criteria, such as requiring that network interfaces use a 256-bit encryption key (which TLS does). This would still be a realistic constraint. However, specifying that network interfaces use quantum encryption would not be realistic because there are no commercially available quantum encryption devices on the market.
Finally, each constraint must be time-bound. When establishing constraints for an enterprise architecture, it is not necessary to place time bounds on every constraint individually. It is sufficient to specify time bounds in terms of the entire architecture. Because what we really care about is how the systems in the enterprise function when they are deployed, most constraints will be subject to assessment during final testing. They should also be subject to testing after they are fielded. Chapter 7 includes a discussion of the need to periodically test fielded systems’ conformance to enterprise constraints. Systems evolve over time, and patches or configuration updates can alter their behavior. If we are to understand how systems contribute to achieving the enterprise’s goals, we must be able to assess how they are contributing today, not how they were contributing when they were first fielded. And that means assessing systems periodically to ensure they still conform to enterprise constraints.
Just as rules should include provenance describing their reason, each constraint should include some statement of provenance. A constraint may be intended to enforce a rule, it may be intended to conform to an enterprise policy, or it may have some other reason. That reason must be clearly understood. A constraint that does not have a definable contribution to achieving the enterprise’s goals is an indefensible drain on resources .
Harnessing Emergent Behaviors
Once we have established the rules and constraints for the enterprise architecture and applied them to system development efforts, we have the ingredients needed to observe and take advantage of the emergent behaviors of the enterprise. The rules and constraints form the major boundaries of the environment that system implementers and users operate in—that is, they form the foundation of the enterprise architecture. How users and implementers respond to those boundaries and to each other results in emergent behaviors that will either help or hinder the enterprise in achieving its goals. Harnessing those emergent behaviors and channeling them toward achieving the enterprise’s goals is the primary function of the enterprise architect.
All complex adaptive systems function within a framework of rules and constraints. An ant colony has rules; for example, worker ants must forage for food. An ant colony also functions with a number of constraints. Examples include there only being so much food that any single worker ant can carry back to the nest, there being a limited number of available worker ants, and so forth. Those rules and constraints can have dramatic effects on the resulting emergent behaviors. As the Sugarscape project demonstrates, altering rules and constraints changes the nature of the emergent behaviors. Giving agents the power to trade resulted in the emergence of trading networks and increased carrying capacity of the environment. Changing the metabolism of agents altered the distribution of agents and, in some cases, resulted in the emergence of migratory behavior .
The enterprise architect can likewise change the rules and constraints to affect the emergent behaviors of the enterprise. In this way, the enterprise architect can guide system development without getting involved in the details of how individual systems are designed or built. Ideally, the systems function as black boxes from the point of view of the enterprise architect: they take some set of inputs, produce some set of outputs, have one or more effects on the environment, and either do or do not conform to the constraints. That is all the information the enterprise architect needs about individual systems to guide the system development effort, and it provides half of the information needed to guide the enterprise toward its goals. 6
The other half of the information needed is measurements of progress toward the enterprise’s goals. This information quantifies the emergent behaviors of the enterprise. It does not explain those emergent behaviors, nor does it identify their specific causes. These are relatively unimportant processes in the field of enterprise architecture. Academics and researchers may have an interest in specific causes because they are trying to understand the science of adaptive systems. But the enterprise architect’s interest is more practical: to achieve the enterprise’s goals and to harness emergent behaviors toward that end. If the enterprise architect can identify correlations among specific rules and constraints with particular behaviors, that is a bonus. Just remember that correlation is not the same as causation .
Chapter 7 discusses enterprise monitoring in detail, but it is useful to touch on the subject here because monitoring is how we gauge progress toward the enterprise’s goals. Enterprise goals are usually targets for the enterprise to achieve over the course of more than a year. Goals with a shorter timeline are difficult to achieve through any enterprise architecture effort because it takes time to adopt any enterprise architecture framework and see the results.
Armed with long-term goals and a means of measuring their achievement, and having reviewed the rules and constraints that system implementation teams must conform to, we can begin to monitor the results. These results are the outward manifestation of the emergent behaviors we want to harness. Measurements should be taken on a periodic basis to provide a means for establishing and understanding trends over time. Instantaneous monitoring (e.g., does a given system conform to a given constraint?) has its place, but because enterprise goals evolve over time, it is the behavior of the enterprise over time that is of primary importance to the enterprise architect .
Each enterprise goal will have associated metrics that are used to judge the enterprise’s progress toward that goal. Several measurements will be needed to establish a baseline before any trends become visible. A minimum of three measurements is necessary, and those measurements must be spread across time to ensure the rules and constraints have had time to take effect. The time between measurements should be at least one month in an enterprise where systems are frequently updated, such as a DevOps environment. In an enterprise where systems are deployed less frequently, the measurement doesn’t have to be done as often to provide meaningful results. Taking measurements every month tells us nothing about the rate of change if the enterprise only deploys system updates once per year.
Once a trend line is established, we can start to judge progress toward the enterprise’s goals. If the trend lines are improving and getting closer to meeting the goals, we know we have an effective set of rules and constraints. They may not be optimal, but they are at least having a positive effect. If the trend lines are not improving, or are getting worse, then we know need to take action. The appropriate action is to review the rules and constraints and compare those to the observed results. The goal is to identify any correlations between the observed results and the applicable rules and constraints. It is important to remember that correlation is not the same as causation, but it does provide clues as to where to look for problems .
When correlations between observed results and one or more rules or constraints can be identified, it is the architect’s task to ruthlessly examine the rules and constraints to determine if they are having unintended adverse effects. For example, it is possible that complying with a rule is having an different effect from the architect’s intention. It is also quite possible that implementation teams’ efforts to work around the rule are causing the adverse effects. Regardless of the proximate cause, the architect needs to change the rule. The rule can be discarded if complying with it is causing the unintended effect, or it can be reformulated to close loopholes if the problem is caused by implementation teams working around it. Another option would be to formulate one or more constraints that enforce compliance with the spirit of the rule .
After changing one or more rules or constraints, it will take at least two more measurement cycles to identify any trends resulting from the change. A single measurement will provide some hints about the effects of the changes, but at least two measurements are necessary to ensure there is a genuine trend emerging and not a brief anomaly in the data. This will also allow time for the changes to take effect in the enterprise and be reflected in the data; changes that have not yet had an effect on system implementation cannot show up in the data. More measurements over a longer timespan will yield a more accurate picture of the effects of the changes.
There may be times when the enterprise architect needs to change several rules and constraints at the same time. When making multiple changes, it is important to look at the changes as a whole and see if there are any predictable adverse interactions occurring. As any researcher will tell you, changing more than one variable at a time in any experiment makes it hard to predict what the results will be. What is important is to make changes, take the time to understand the state of the enterprise after those changes have taken effect, and repeat that cycle, continuing to refine rules and constraints as the enterprise evolves. This is a never-ending activity because enterprises and their goals evolve over time, and the behaviors that served an enterprise well in the past will not necessarily serve it well in the present or the future. The enterprise architect must continually monitor the enterprise and adapt to its changing needs .
Summary
Complex adaptive systems are examples of the old adage that the whole is more than the sum of its parts. Surprisingly complex behaviors can emerge from very simple building blocks, and we can harness that phenomenon to improve the effectiveness of enterprise architecture efforts. Complex adaptive systems abound in nature, from ant colonies to flocks of birds. Researchers have developed frameworks to grow and study such systems under controlled conditions, giving us insight into how emergent behaviors can be affected by changes in environmental conditions even if we don’t understand all the details of how those behaviors emerge.
Every enterprise, even a small one, is an adaptive system. But whereas small enterprises are relatively easy to govern, large enterprises produce many more emergent behaviors, which makes the enterprise architect’s task particularly difficult. The desire to understand the details of each system’s functioning and to ensure that system implementation teams conform to the enterprise architecture often results in a complicated system of design reviews and development policies. Many of these policies and procedures are directed at countering the natural emergent behaviors of the enterprise. This diverts attention away from meeting the enterprise’s real goals. By applying the concepts of complex adaptive systems research to enterprise architecture, we can leverage the emergent behaviors of the enterprise to simplify the enterprise architecture and refocus resources on meeting the enterprise’s real goals.
The enterprise architect’s task is not to understand the details of how each system functions or to control implementation teams, but to channel emergent behaviors into productive activities that contribute to meeting the enterprise’s goals. The key tools the enterprise architect uses to affect emergent behaviors are rules and constraints. By publishing clear rules and constraints that implementation teams will be reviewed against, the enterprise architect provides a clear definition of what must be done without directing how to do it. This gives the implementation teams room to exercise their creativity to ensure their systems conform to the enterprise rules and constraints while efficiently meeting their users’ needs.
The resulting ecosystem of rules, constraints, and development teams will interact in ways that we cannot fully predict, leading to emergent behaviors that either improve the enterprise’s performance relative to its goals or degrade that performance. Periodic assessments give the enterprise architect the data needed to identify and understand the enterprise’s performance trends relative to its goals. This information can be used to update the rules and constraints to drive the resulting emergent behaviors in more positive directions, but it does require patience because behaviors do not emerge instantaneously, and so results can only be accurately measured over time.
Even if results are uniformly positive, it is important that the enterprise architect periodically reviews rules and constraints to ensure they are still aligned to the enterprise’s goals. The business environment and technology change over time, and so the enterprise’s goals will also change. The architecture must likewise change to remain relevant.
Footnotes
1
Douglas R. Hofstadter, Gödel, Escher, Bach: An Eternal Golden Braid (New York: Basic Books, 1979).
2
E. W. Dijkstra, “A Note on Two Problems in Connexion with Graphs,” Numerische Mathematik 1, no. 1 (December 1, 1959): pp. 269–271.
3
Joshua M. Epstein and Robert Axtell, Growing Artificial Societies: Social Science from the Bottom Up (Washington, DC: Brookings Institution Press, 1996).
4
George S. Patton, “Reflections and Suggestions,” chap 1. in War As I Knew It (New York: Houghton Mifflin Company, 1947) p. 357.
5
For an entertaining example of the miscommunication caused by ambiguity, see the old Abbot and Costello routine “Who’s on First?”
6
More detailed information may be necessary to perform other tasks that can fall to the enterprise architect, such as portfolio management. But this discussion is confined to the specific tasks of enterprise architecture.