The previous lesson ended with an idea: if you cannot know what will change, the only thing you can design is the ability to change. Verdalia has been doing that for fifteen months. It has drawn boundaries between modules, put ports in front of every external service, and written into each decision the condition that will make it expire. But all of that depends on someone remembering to look. In this lesson you will learn what evolutionary architecture is, and how fitness functions turn an architecture's rules into checks that run on their own. You will distinguish reversible decisions from those that are not, and you will learn to manage technical debt and to govern an architecture without bureaucracy. Verdalia will add one fitness function per quality scenario to its pipeline, will review its decisions in January 2028, and will record ADR-017, which prepares for the spring campaign.

Continuous delivery and observability were explained in Module 6. Here they are used, not repeated.

What Evolutionary Architecture Is

For decades, architecture was understood as what is decided at the beginning and left untouched. The result was well known: either the initial design correctly predicted the future, which almost never happens, or the system degraded with every change the design had not anticipated.

An evolutionary architecture is one that supports incremental, guided change across multiple dimensions. The definition, which comes from the book Building Evolutionary Architectures, has three parts:

Part Meaning At Verdalia
Incremental The system changes in small, frequent steps, each one deployable separately The ADR-012 pipeline: 17 deployments in nine weeks
Guided There is an explicit definition of what the architecture must preserve, and something that warns when it is lost Scenarios QS-1 to QS-6. What is missing is the thing that warns
Multiple dimensions It is not only the code that evolves. So do the data, the security, the operations, and the cost A change can respect the dependencies and double the bill

Both of the first two parts are needed. Incremental change without guidance is how big balls of mud are created: nobody decides to ruin the architecture, and it gets ruined over a hundred reasonable changes.

Fitness Functions

A fitness function is any mechanism that objectively evaluates whether the system preserves a characteristic of its architecture. The name comes from evolutionary algorithms, in which a function measures how close each candidate is to the goal.

It is not a new technology. A test, a metric with its threshold, an alert, or a drill are fitness functions, if what they check is a property of the architecture. What is new is the discipline: every characteristic that matters has a check, and the check runs without anyone having to remember it. These are the “architectures whose rules check themselves” that Marta noted down in Valencia.

Criterion Types Example
Scope Atomic: checks one characteristic, in isolation. Holistic: checks several at once, and how they affect each other Atomic: the dependencies between modules. Holistic: latency during a deployment
Timing Triggered: runs in response to an event, such as a change. Continuous: monitors permanently Triggered: a test in the pipeline. Continuous: an alert on an indicator
Nature Static: analyzes without running the system. Dynamic: runs it and measures Static: the secret detector. Dynamic: a load test
Execution Automated, or manual when automating does not pay off, or is not possible Automated: all of the above. Manual: the restore drill, with its script

There is one for each quality attribute:

Attribute Possible fitness function
Performance The 95th percentile of a test in staging does not exceed its budget
Scalability The maximum configured capacity exceeds the expected peak, with a margin
Availability A failure drill recovers within the agreed time. The error budget is not exhausted
Security No secrets in the repository. No critical vulnerabilities in the image. No open ports outside the list
Maintainability No forbidden dependencies between modules, and no cycles
Operability Deployment and rollback take less than agreed
Cost No untagged resources. The cost per order does not exceed its target

A good fitness function is like a good alert: it is objective, it fails for a reason someone can fix, and it says which one.

Architecture Tests in the Pipeline

In Module 2, Íker wrote by hand a dictionary with the dependencies between the modules, and a program that counted them and looked for cycles. It was useful for measuring, once a month. It had a flaw: the dictionary was written by a person, and nothing guaranteed that it matched the code.

An architecture test removes that step. It reads the code, extracts the real dependencies, and compares them with the rules. There are libraries that do this for every language. The following program does it with the standard library: it creates a package tree in a temporary directory, analyzes its imports, and applies two rules.

import ast
import tempfile
from pathlib import Path

# Rule 1: which module may depend on which. It is the blueprint from Module 2, with subscriptions
ALLOWED = {
    "catalog": {"inventory"},
    "cart": {"catalog", "shipping"},
    "orders": {"cart", "inventory", "shipping"},
    "payments": {"orders"}, "notifications": {"orders"},     # they implement ports of orders
    "subscriptions": {"orders"},
    "inventory": set(), "shipping": set(),
}
# Rule 2: from another module, only its public interface, or its ports, may be imported
PUBLIC = {"ports"}
SHARED = {"config", "events"}                               # common files, outside the rule

# An example tree: file -> contents
CODE = {
    "cart/service.py": "from verdalia.shipping import calculate_shipping_cost\n",
    "orders/service.py": "from verdalia.inventory import reserve\nfrom verdalia.events import EventPublisher\n",
    "payments/pagoraiz_gateway.py": "from verdalia.orders.ports import PaymentGateway\n",
    "subscriptions/renewals.py": "from verdalia.orders.adapters.postgres_repository import save\n",
    "inventory/alerts.py": "import json\nimport verdalia.orders\n",
}


def create_tree(root, code):
    for path, contents in code.items():
        file = Path(root, "verdalia", path)
        file.parent.mkdir(parents=True, exist_ok=True)
        file.write_text(contents, encoding="utf-8")


def imports(file):
    """Full names a file imports, read from its syntax tree."""
    for node in ast.walk(ast.parse(file.read_text(encoding="utf-8"))):
        if isinstance(node, ast.Import):
            yield from (alias.name for alias in node.names)
        elif isinstance(node, ast.ImportFrom) and node.module:
            yield node.module


def find_cycle(dependencies):
    def walk(module, path):
        if module in path:
            return path[path.index(module):] + [module]
        for dependency in sorted(dependencies.get(module, ())):
            cycle = walk(dependency, path + [module])
            if cycle:
                return cycle
        return None
    return next((c for c in (walk(m, []) for m in sorted(dependencies)) if c), None)


def evaluate(root):
    """Fitness function: returns the violations. An empty list means it passes."""
    failures, actual = [], {}
    package = Path(root, "verdalia")
    for file in sorted(package.rglob("*.py")):
        source = file.relative_to(package).parts[0]
        for name in imports(file):
            parts = name.split(".")
            if parts[0] != "verdalia" or len(parts) < 2 or parts[1] in SHARED | {source}:
                continue                                    # external library, shared, or its own
            target = parts[1]
            actual.setdefault(source, set()).add(target)
            if target not in ALLOWED[source]:
                failures.append(f"{source} cannot depend on {target} ({file.name})")
            if len(parts) > 2 and parts[2] not in PUBLIC:
                failures.append(f"{source} imports the internals of {target}: {name} ({file.name})")
    cycle = find_cycle(actual)
    if cycle:
        failures.append("cycle: " + " -> ".join(cycle))
    return failures


def run(title, code):
    with tempfile.TemporaryDirectory() as root:             # deleted when it finishes
        create_tree(root, code)
        failures = evaluate(root)
    print(f"{title}: {'PASS' if not failures else 'FAIL'}")
    for failure in failures:
        print("  -", failure)
    return 1 if failures else 0                             # the exit code, for the pipeline


run("Before", CODE)
fixed = dict(CODE)
fixed["subscriptions/renewals.py"] = "from verdalia.orders import create_order\n"
fixed["inventory/alerts.py"] = "import json\nfrom verdalia.events import EventPublisher\n"
run("After", fixed)

Output:

Before: FAIL
  - inventory cannot depend on orders (alerts.py)
  - subscriptions imports the internals of orders: verdalia.orders.adapters.postgres_repository (renewals.py)
  - cycle: inventory -> orders -> inventory
After: PASS

Explanation:

  • ALLOWED is the architecture, written as data. Payments and notifications depend on orders because they implement its ports: it is the dependency inversion from Module 2.
  • create_tree writes the example files. In the pipeline it does not exist: the function analyzes the repository.
  • imports uses the ast module, which turns a file into its syntax tree without running it. ast.walk goes through all the nodes, so it also finds imports hidden inside a function. yield hands over the names one at a time.
  • evaluate gets the source module from each file's path, and the target module from each import. It applies the two rules and records the actual dependencies, which find_cycle uses to look for a cycle, as in Module 2.
  • tempfile.TemporaryDirectory creates a directory and deletes it on leaving the with block.
  • run returns 1 if there are violations. In the pipeline, that value is passed to sys.exit, and a nonzero code stops the deployment.

Interpretation:

  • Three violations, from two files. The “Plant of the Month” renewals saved the orders with another module's repository, bypassing its interface. And an inventory alert imported orders, which closed a cycle.
  • None of them broke anything. All the automated tests passed. That is why these rules need their own check: an architecture degrades without any behavior failing.
  • The fix uses what already existed: the public interface of orders, and the event publisher.
  • The rule is changed in plain sight. If one day the cart needs to depend on inventory, someone will modify ALLOWED in a change that another person reviews. The architecture can change. What it cannot do is change without anyone deciding it.

A Performance Fitness Function

Scenario QS-1 was measured three times in fifteen months, always by hand and before a campaign. Between measurements, any change could have broken it. The following function compares the percentiles of a test with their budget. The times in the example are simulated.

import math
import random

BUDGET_MS = {95: 800, 99: 2000}                 # scenario QS-1


def percentile(samples, p):
    sorted_values = sorted(samples)
    return sorted_values[math.ceil(p / 100 * len(sorted_values)) - 1]


def performance_fitness(name, samples, budget=BUDGET_MS):
    passes = True
    for p, maximum in budget.items():
        measured = percentile(samples, p)
        passes = passes and measured <= maximum
        print(f"  {name}  p{p}: {measured:5.0f} ms  budget {maximum} ms  {'ok' if measured <= maximum else 'EXCEEDED'}")
    return passes


rng = random.Random(2028)
current = [rng.lognormvariate(5.6, 0.45) for _ in range(5000)]           # times, in milliseconds
with_regression = [t + (rng.uniform(300, 700) if rng.random() < 0.15 else 0) for t in current]
for name, samples in (("2028.01.18-a41c9e2", current), ("2028.01.19-7be02d5", with_regression)):
    print("Performance:", "PASS" if performance_fitness(name, samples) else "FAIL")

Output:

  2028.01.18-a41c9e2  p95:   558 ms  budget 800 ms  ok
  2028.01.18-a41c9e2  p99:   775 ms  budget 2000 ms  ok
Performance: PASS
  2028.01.19-7be02d5  p95:   876 ms  budget 800 ms  EXCEEDED
  2028.01.19-7be02d5  p99:  1081 ms  budget 2000 ms  ok
Performance: FAIL

Explanation:

  • percentile sorts the samples and returns the one at the corresponding position. With 5,000 samples, the 95th percentile is number 4,750.
  • performance_fitness compares each percentile with its budget. It does not stop at the first failure: it reports all of them.
  • lognormvariate generates times with the usual shape of a latency: most are short, and a few are very long. The second list adds between 300 and 700 ms to 15% of the requests, as a change that queries the database inside a loop would.

The second image exceeds the 95th percentile by 76 ms. Its median barely changes, and a manual test would not have noticed. At Verdalia, the test lasts 3 minutes, with 150 simulated users against staging, and it runs on every deployment before approval is requested. It does not replace the full test before each campaign: it checks that nobody has made worse what was already there.

Reversible and Irreversible Decisions

Not all decisions deserve the same care. A useful image is that of doors. A reversible decision is a two-way door: if you do not like what you find on the other side, you come back. An irreversible one only opens from one side.

Reversible Irreversible, or very expensive to reverse
Examples at Verdalia The image function, behind a flag. The language model provider, behind a port. The maximum number of replicas The move to NubeAtlas. The order data model. A one-year reservation. Dropping a column
How to decide Quickly, with a bounded experiment Slowly, with compared options, measurements, and an ADR
Cost of getting it wrong Hours Months

Three ideas help turn decisions of the second kind into decisions of the first:

  • The last responsible moment. A decision is made when not making it starts to cost more than making it. Before that, you would be deciding with less information than you will have. ADR-001 postponed microservices, and ADR-010 left the way the store would run for another record. It is not simply putting it off: the postponement carries a condition, and someone watches it.
  • Real options. You pay a small cost today to keep the possibility of choosing tomorrow. Verdalia chose NubeAtlas services with open protocols: leaving would take three weeks, not a rewrite. The LanguageModel port is another option it bought, for an afternoon's work.
  • Designing to be replaced, not to last. No piece is final. The design question is not whether a piece will still be useful in ten years, but how much it will cost to change it when it stops being useful.

There is a limit. Options are paid for, in complexity. A port in front of every library, just in case, is the antipattern we will see later. You buy options where uncertainty is high and change would be expensive.

Coupling as a Brake on Evolution

What prevents you from changing a piece is whatever depends on it. It is the coupling from Module 2, seen at the scale of the system.

An architecture quantum is the smallest piece that can be deployed separately and that works with everything it needs, including its data. It is the unit of evolution: whatever is inside the same quantum changes together.

System Quanta Consequence
Verdalia Two: the store with its database, and the notification service The eight modules are deployed together. It is the cost accepted in ADR-001
Rutalia Central, and four services with their own databases Each team evolves its own
A distributed monolith One, even if they look like ten Ten services that share a database are, in practice, deployed together

A shared database is the coupling that holds things back the most. That is why every table at Verdalia has an owning module: the day a module needs to be separated, its data will be able to go with it.

Data and contracts evolve too, and you already know the techniques: expand and contract for schemas, in the lesson “Infrastructure as Code and Continuous Delivery (CI/CD),” and API versioning, in Module 3. Both do the same thing: they let the two sides of a contract change at different times.

Managed Technical Debt

In Module 1 we defined technical debt, with its principal and its interest, and distinguished deliberate from accidental debt. Managing it means treating it as exactly what its name says:

Practice What it consists of
Register Each debt is written down: what it is, why it was taken on, and what interest is being paid. A recorded debt is deliberate. A forgotten one becomes accidental
Interest It is estimated in time: how much extra work it causes each month
Planned repayment A fixed percentage of the time. The debt with the highest interest is paid first, not the most annoying one
Debt that is not paid If the code is not going to change, its interest is zero

Verdalia's register is in docs/debt.md. These are four of its eleven entries:

Debt Type Estimated interest Repayment
utils.py still has 640 lines Inherited 2 hours a month Within the reserved 15%
The old image code, behind its flag Deliberate Low Removed in May, with the radar
Pau registers each package by hand on Rutalia's portal Process 11 hours a month Integration planned after the campaign
Losing the region has not been fully rehearsed Accepted risk Unknown Drill in the fall of 2028

The third has the highest interest, and it is not in the code.

Lightweight Governance

Governing an architecture means making sure decisions are made, known, and reviewed. In a team of three people it cannot be a committee. It is four pieces, and all four already exist:

Piece What it contributes Where
ADRs, with review conditions The why of each decision, and when it stops being valid docs/adr/
Architecture principles The rules that guide the small decisions, which do not deserve an ADR docs/architecture/principles.md
Technology radar What is adopted, what is being trialed, and what is let pass docs/architecture/radar.md
Fitness functions The check that all of the above is being followed The pipeline, and the alerts

Verdalia's principles are six, and they fit on one screen:

  1. Measure before deciding.
  2. Managed before self-built, except for what differentiates the business.
  3. Every table has an owning module.
  4. Every external service, behind a port.
  5. Nothing reaches production outside the pipeline.
  6. Every decision carries its review condition.

The Expiration Date of ADRs

Every Verdalia ADR ends with its review conditions. There are two kinds. A date can be watched by a program. An event, such as “more than 10,000 orders a month” or “a second module needs to take payments,” needs someone to observe it. In January 2028 a rule was added: no ADR in force goes more than twelve months without being reviewed, whether or not it has a date of its own.

from datetime import date

# Decision checker: (number, status, deadline for the next review)
ADR = [(1, "in force", "2028-06-30"), (2, "in force", "2027-06-30"), (3, "in force", "2027-06-30"),
       (4, "in force", "2028-05-19"), (5, "in force", "2028-06-23"), (6, "superseded", None),
       (7, "superseded", None), (8, "in force", "2028-05-19"), (9, "in force", "2028-05-19"),
       (10, "in force", "2028-05-19"), (11, "in force", "2028-06-23"), (12, "in force", "2028-07-21"),
       (13, "in force", "2028-10-06"), (14, "in force", "2028-12-01"), (15, "in force", "2028-11-03"),
       (16, "in force", "2028-12-01")]


def reviews(adrs, today, warning_days=150):
    overdue, upcoming = [], []
    for number, status, deadline in adrs:
        if status != "in force":
            continue
        days = (date.fromisoformat(deadline) - today).days
        if days < 0:
            overdue.append(f"ADR-{number:03}, overdue by {-days} days")
        elif days <= warning_days:
            upcoming.append(f"ADR-{number:03}, in {days} days")
    return overdue, upcoming


overdue, upcoming = reviews(ADR, date(2028, 1, 10))
print("Overdue reviews:", overdue or "none")
print("Upcoming reviews:", upcoming or "none")

Output:

Overdue reviews: ['ADR-002, overdue by 194 days', 'ADR-003, overdue by 194 days']
Upcoming reviews: ['ADR-004, in 130 days', 'ADR-008, in 130 days', 'ADR-009, in 130 days', 'ADR-010, in 130 days']

date.fromisoformat turns the text into a date, and subtracting two dates gives a difference, from which days extracts the days. Superseded ADRs are skipped: there is nothing left to review. The ADR list is generated from docs/adr/reviews.md.

The result has a story behind it. ADR-002 and ADR-003 said: “in any case, it will be reviewed in June, together with ADR-001.” The June 2027 review was devoted to ADR-001, and nobody opened the other two. They had been overdue for 194 days without anyone knowing.

Antipatterns

Antipattern How to recognize it Alternative
Ivory tower architecture Whoever decides neither codes nor goes on call. Decisions arrive in a document, and their problems are discovered when they are applied Deciding with the team, close to the code. It was the architect's table in Module 1
“Just in case” overengineering Layers, abstractions, and services for requirements nobody has asked for. “That way we will be prepared” The YAGNI principle from Module 2. Options only where there is uncertainty and change is expensive
Total rewrite “This code is beyond repair. We will have it new in six months.” Meanwhile the old system keeps changing, and the new one never catches up Rutalia's Strangler Fig pattern: replacing piece by piece, with the system running

All three share an origin: they decide all at once, and in advance, what could be decided little by little and with measurements.

Verdalia: The Fitness Functions, the January Review, and ADR-017

One Fitness Function per Scenario

Scenario Fitness function Type When Fails if
QS-1, performance Latency budget, in staging Holistic and dynamic On every deployment The 95th percentile exceeds 800 ms, or the 99th, 2 s
QS-2, scalability Configured capacity vs. expected peak Atomic and static On every infrastructure change The maximum number of replicas times 20 requests per second does not exceed the expected peak plus 15%
QS-3, availability Database failover drill, and error budget burn rate Holistic and dynamic Every quarter, by hand, and continuously The interruption exceeds 5 minutes
QS-4, security Secret detector and image scan Atomic and static On every change A secret, or a critical vulnerability, appears
QS-5, maintainability Dependency rules between modules Atomic and static On every change There is a forbidden dependency, an import of another module's internals, or a cycle
QS-6, operability Duration of deployment and of rollback Holistic and dynamic On every deployment. Rollback, every quarter Deployment exceeds 10 minutes, or rollback, 10
ADR-009, backups Age of the last successful restore Atomic Continuous More than 35 days have passed
flowchart LR
    change["Proposed change"] --> static_checks["Tests, dependencies between modules, and secret detector"]
    static_checks --> image["Image, and vulnerability scan"]
    image --> staging["Staging: smoke test and latency budget"]
    staging --> approval["Approval by a person"]
    approval --> prod["Production: deployment duration"]
    static_checks -.->|"If it fails"| change
    staging -.->|"If it fails"| change
    prod -.-> continuous["Continuous: error budget, age of the last restore, and ADR reviews"]

Four already existed, and nobody called them that: the drills, the secret detector, the measurement of each deployment, and the monthly restore. Three are new: those for QS-1, QS-2, and QS-5. The pipeline now takes 4 minutes longer.

The January Review

On Monday, January 10, 2028, the team devoted the morning to the decisions.

Matter Result
ADR-002, overdue The condition “a second module needs to take payments” had been met since September: subscriptions take payments. The PaymentGateway port moves from orders to the public interface of payments, and ALLOWED changes in the same change. The ADR stands, with the annotation
ADR-003, overdue Operating the notification service takes half a day a month, below the 2 days in its condition. It stands
Proposal to raise the maximum number of replicas It becomes ADR-017
Debt Eleven entries. The integration with Rutalia becomes the first, after the campaign

ADR-017: Raise the store's maximum number of replicas from 10 to 13 for the 2028 campaign, and raise the minimum by hand before each email campaign

Status: Accepted. Revises ADR-011, which remains in force in every other respect.

Date: 2028-01-12

Participants: Marta decides; Íker and Lucía consulted; Andrés approves the cost.

Context

The business expects a peak of 1,800 concurrent users, 40% more than in 2027. That is 216 requests per second and 11 replicas. The ADR-011 maximum is 10. Each replica opens 12 connections to the database, the alert fires at 160, and the limit is 200. It affects scenarios QS-1 and QS-2.

Options considered

  • A. Keep the maximum at 10. Each replica would run at 65%, and the failure of a single one would take them to 72%. No margin.
  • B. Raise the maximum to 13. The 11 needed, and 2 as a margin. That is 156 connections, below the alert.
  • C. Raise the maximum to 16, with a connection pooler in front of PostgreSQL. More margin, and a new piece to operate two months before the campaign.
  • D. Replicas twice the size. It invalidates the measurement of 20 requests per second per replica, on which all the calculations are based.

Decision

We adopt option B. The maximum goes to 13 in Terraform. The minimum is raised to 6 one hour before each email campaign, because autoscaling reacts and does not anticipate. The load test is repeated, with 1,800 users.

Consequences

Positive: the peak fits, with a margin to lose one replica. It is a one-line change, and reversible.

Negative: the connection margin is 4 until the alert. The campaign month costs a few cents more.

Risks: that the peak exceeds the forecast. With 13 replicas, the limit is at about 2,160 users.

Review conditions

It will be reviewed if the forecast exceeds 2,000 users, if connections go above 160, or if a replica needs more than 12. In any case, on June 30, 2028, after the campaign. The next expansion will require the connection pooler.

The test was run on Thursday, January 20, in staging: with 1,800 users, a 95th percentile of 590 ms and a 99th percentile of 1.6 s, with 11 replicas and 132 connections. The campaign starts on Saturday, March 18. Verdalia has seventeen recorded decisions: fifteen in force and two superseded.

Common Mistakes and Tips

  • Architecture rules that only exist in a document. A rule nobody checks is followed until the first Friday in a hurry.
  • Fitness functions that fail for no reason. A flaky check ends up being disabled. Five reliable ones are better than twenty doubtful ones.
  • Measuring everything. Every fitness function has to be maintained. Start with the quality scenarios, which are what was agreed with the business.
  • Treating every decision as irreversible. A team that deliberates for a month over a flag does not deliver. The care should be proportional to the cost of going back, not to the importance of the matter: the assistant matters a great deal to Andrés, and it can be switched off in a minute.
  • Postponing without a condition. The last responsible moment has a moment. “We'll see” does not.
  • Recording debt and not paying it. A register without reserved time is a list of reproaches.
  • Practical tip. Pick the rule in your architecture that has been broken most often, and write its check this week. One fitness function in the pipeline is worth more than ten in a plan.

Exercises

Exercise 1: Classify

For each check, state whether it is atomic or holistic, static or dynamic, triggered or continuous, and automated or manual:

  1. An alert that fires if the cost per order exceeds €0.25 for a week.
  2. A program that, on every change, checks that no Terraform resource is missing its tags.
  3. The quarterly drill in which Lucía brings down the database primary during a deployment.

Exercise 2: A New Rule

The team wants to prevent any module other than payments from importing the pagoraiz library. Explain what you would change in the dependency program, and which Verdalia principle that rule protects.

Solutions

Solution to Exercise 1

  1. Atomic, dynamic, continuous, and automated. It measures a single characteristic, on the running system.
  2. Atomic, static, triggered, and automated. It reads files, without creating anything.
  3. Holistic, dynamic, triggered, and manual. It checks availability and deployment at the same time, which is where the problems that no isolated test sees appear.

Solution to Exercise 2

In evaluate, imports that do not start with verdalia are discarded. They would have to be handled before that: if the first element of the name is pagoraiz and the source module is not payments, a violation is added.

if parts[0] == "pagoraiz" and source != "payments":
    failures.append(f"{source} uses the PagoRaiz library, which only payments may use ({file.name})")

It protects the fourth principle: every external service, behind a port. If another module called the library, changing gateways would no longer mean changing an adapter. It is the real option Verdalia bought in Module 2, and this rule prevents it from being lost through carelessness.

Conclusion

In this lesson you have learned that an evolutionary architecture supports incremental, guided change across multiple dimensions, and that what guides it are fitness functions: objective checks that the system preserves its characteristics. You have seen their types, and you have written three: one that reads the code's imports and detects forbidden dependencies and cycles, one that compares percentiles with their budget, and one that watches the review dates of the decisions. You have distinguished reversible from irreversible decisions, and you have met the last responsible moment and real options. You have seen that coupling, above all data coupling, is what holds evolution back, that technical debt is recorded and paid off with a plan, and that governance can be lightweight.

At Verdalia, every quality scenario has had a fitness function since January 2028. The review on the 10th found two decisions overdue since June, and a met condition that nobody had noticed. ADR-017 raises the maximum number of replicas to 13, and the test with 1,800 users gave a 95th percentile of 590 ms. The store is ready for its third campaign.

The system now knows how to watch over itself. That leaves the other half of the architecture, the half that is not in any repository: the people who make the decisions. Marta began this course with one server, a tangled monolith, and a three-hour outage, and she is ending it with seventeen decisions, a radar, and a pipeline that checks its rules. She is not the same either. How an architecture professional is trained, stays up to date, and grows is the topic of the last lesson of the course: “Preparing for the Future.”

© Copyright 2026. All rights reserved