§ Where truth lives
design principles · 4 min read
Don't Repeat Yourself (DRY) holds that every piece of knowledge in a system must have a single, unambiguous, authoritative representation.Applied as intended, it means finding the same judgement scattered across several places, naming one place as authoritative and having the rest refer to it.
data governance · 5 min read
A single source of truth says that every element is maintained in one place and everywhere else refers to it.It is a choice of structure rather than a choice of location.And it fails most easily in the references that point at it.
separation of concerns · 4 min read
Model-View-Controller is a structure worked out at Xerox PARC in 1978–79 that separates data from presentation, so one body of data can have several presentations kept in step.The model holds nothing about how it is shown on screen, so dependency runs in one direction only.
§ How derived things arise
facts and derivations · 4 min read
Event sourcing captures every change to an application's state as a sequence of events, and derives the current state by replaying that sequence.Replay means rereading existing facts, not running everything again, so outside side effects such as sending an email or taking a payment must not fire again during replay.The price is that earlier entries can never be edited: a mistake is fixed by reversing that entry and those after it, then replaying with the corrected event.
separating reads from writes · 5 min read
Command query responsibility segregation splits one model in two along the read/write line: the write side handles behaviour and consistency, the read side query-optimised projections.Its ancestor is Meyer's 1988 command-query separation, a rule about methods; this pattern lifts the same cut to the level of the model.Separate them and you acquire a projection that will always lag the original, and the lag itself sends no signal.
§ Where the boundary falls
siting boundaries · 5 min read
Modularity is the design of cutting a complex system into pieces that manage their own insides and deal with each other through agreed rules.Its value goes beyond easier maintenance; Baldwin and Clark (2000) turned it into economic theory and saw in it the ability to run many local experiments at low cost.For where a boundary should go, Baldwin's 2008 paper gives the cost of the traffic across it as the test, whether it can be defined, counted and priced.
language and boundaries · 5 min read
Domain-driven design is the approach Evans (2003) set out in which domain experts and developers share one set of terms, and those terms become the names in the model and the code.You might expect the vocabulary to be unified across the whole system; once scale arrives it is instead cut into bounded contexts, consistent inside each and translated explicitly across them.Design effort is limited, so it goes first to the core domain that truly differentiates, and peripheral and generic parts are bought off the shelf where possible.
direction of dependency · 4 min read
Hexagonal architecture, from Cockburn (2005), has the core define its ports in its own vocabulary: what the outside may ask of it, and what it needs the outside to provide.At run time the core may call out through a port to a database; source-code dependency still always points from the outside in, and the core knows no concrete technology.The criterion: given test inputs and fake adapters, can the core run and have its business rules verified without a real database, user interface or outside service.
§ What the boundary follows
organisation and structure · 5 min read
Conway's law is Conway's 1968 proposition that organisations which design systems produce designs that mirror their own communication structures.It is a constraint rather than a fate, so its most valuable use is the reverse one: change how people talk first.Interfaces between modules can only be negotiated between people who can talk to each other, so the system's boundaries grow into the teams' boundaries.
interfaces and cognitive load · 4 min read
Team Topologies is an approach that starts from Conway's law and treats deliberately designing team boundaries as an architectural tool.The book requires relationships between teams to rest not on tacit understanding but on an explicit document written the way an interface is, which it calls a Team API.The criterion for a boundary is cognitive load: what one team can genuinely hold has an upper limit, and overload is itself the signal to split.
§ What you gave up once you distributed it
service boundaries · 5 min read
Microservices builds a single application as a set of small services, each in its own process, talking through lightweight mechanisms and deployed independently.The trouble with a monolith is not its size but its coupling at the deployment level: any small change means releasing the whole thing again.What you buy is autonomy and local scaling, and what you pay is the full cost of a distributed system.
distributed trade-offs · 5 min read
The CAP theorem is a proposition about trade-offs in distributed systems: once a network partition occurs, you can keep consistency or availability, and not both.Choosing consistency means refusing or blocking the requests that would break it; choosing availability means letting both sides of the partition keep serving and reconciling the conflicts afterwards.
federated governance · 5 min read
Data mesh is a data architecture in which each domain holds its own data and turns it into a product that can be discovered, addressed and used together with others.It keeps source-aligned datasets, the immutable time-stamped facts each domain produces, apart from consumer-aligned datasets, the views transformed for downstream use: the first are facts, the second are derived.Standards for interoperating across domains are settled federally and enforced computationally, while a platform layer keeps down the cost of providing a product.
§ When both ends of reading and writing are models
external evidence · 4 min read
Retrieval-augmented generation adds an external text corpus alongside the model's weights and, at the moment of generating, retrieves first and answers second.This approach moves the ceiling on quality from how much the model remembers to how good the corpus is and how accurate the retriever is.Updating knowledge then means swapping the index rather than retraining, and the retrieved passages can be taken out and inspected.
failure modes · 4 min read
Hallucination is generation that reads fluently while being unfaithful to its source, or making no sense at all.The danger is not that it is wrong but that it is wrong fluently: fluency lends an appearance of credibility that the truth value does not support.Beyond the range it can reliably cover, a model tends to keep sampling fluently and rarely says “I don't know”.
axes of evaluation · 5 min read
Faithfulness and factuality are two separate tests: the first asks whether a statement is supported by the source, the second whether it is true of the world.The repairs differ: a faithfulness problem is distortion in copying, treated with entailment checks or enforced citation; a factuality problem is an error of world knowledge, which only outside checking or retrieval can catch.
high-stakes instances · 5 min read
A fabricated citation is a reference that is complete and convincing in form but points to something that does not exist.The danger is not that it looks untrustworthy but that it looks entirely trustworthy.Credibility of form and truth of content come completely apart here, and the only action that intercepts it is going back and checking existence.