What Decision Engineering means
Decision Engineering is the discipline of discovering, formalising, distributing, enforcing and verifying the engineering decisions that AI coding agents must follow in agentic software development.
An engineering decision, in this sense, is a choice that constrains future changes. Use PostgreSQL for transactional data. Keep the billing service behind its public API. Do not add a second HTTP client library. Teams have always made decisions like these. What has changed is who carries them out. When coding agents write a growing share of the changes, a decision that lives only in an engineer's head, or in a document no tool reads, stops constraining the work.
The discipline treats decisions as engineering material with a lifecycle of their own. Someone has to find them and write them down precisely enough to act on. The relevant ones have to reach whoever is making a change. Changes have to be checked against them where a machine can do the checking, and there has to be a record of whether each change conformed. Each of those is work a team does, and each fails in its own way.
What the term already means
"Decision engineering" has established meanings, and Mneme did not coin it. Three are worth knowing before reading further.
- Decision intelligence. In decision-intelligence work, decision engineering means modelling how business decisions are made. A 2021 Gartner webinar, The Art of Knowing How to Leverage Decision Intelligence, describes it as modelling decisions and their subdecisions, with their input data, decision algorithm and possible outputs, followed by implementation, monitoring and continuous improvement. Wikipedia's "Decision engineering" entry redirects to its article on decision intelligence. This sense covers putting decisions into operation, not only making them.
- Technical decision-making. Decision Engineering by Grygoriy Gonchar (Manning, in early access) is a method for engineers making consequential technology choices. It runs from defining the problem and comparing alternatives to building agreement, documenting the decision and following through on its implementation, and it addresses AI-assisted development.
- Architectural decision research. In 2007, a paper listed by IBM Research used "architectural decision engineering" for the collaborative decision-making of software architects: ADkwik, a wiki-based collaboration system, by Nelly Schuster, Olaf Zimmermann and Cesare Pautasso, presented at the 2007 International Conference on Software Engineering and Knowledge Engineering (SEKE).
Both of the first two meanings already cover putting decisions into practice, so this sense differs in its object and its mechanism. Here the object is engineering decisions about a codebase. The mechanism is to represent them in a form machines can act on, resolve which of them govern a given change, enforce the parts a machine can check, and verify conformance across autonomous execution environments: AI coding agents, the harnesses that run them, and continuous integration (CI).
What it is not
Decision Engineering is not decision intelligence applied to code, because its object is different. Decision intelligence models how business decisions are made, put into operation and improved, using data and models. Decision Engineering, in this sense, works on engineering decisions about a codebase: it holds them in a form machines can act on and checks every change, written by a person or an agent, against the ones that apply. A team can be good at deciding and still merge agent changes that ignore what it decided.
It is not documentation, because a record does not act. An architecture decision record (ADR) captures a choice and its reasoning, and writing decisions down is part of the discipline. But an ADR that no agent receives and no check evaluates changes nothing about the next change.
It is not prompt engineering, because an instruction is not a check. Putting a decision into an agent's instructions is one way to distribute it. The decision's scope, its current version and the rule that can be checked against it do not live in the prompt, and a model can read an instruction and still not follow it.
The five stages
The discipline has five stages. Each one answers a different question about a decision.
- Discover: find the engineering decisions that already govern a system, whether written down or only implied. Some sit in ADRs and design documents. Many exist only as patterns in the code or habits in review. A discovered decision is a candidate until a person accepts it.
- Formalise: state each decision with its scope, its applicability and its lifecycle, and derive deterministic rules where the decision allows it. "Do not import the legacy payments client outside the adapters directory" yields a rule a machine can evaluate. "Prefer simple designs" yields no rule and stays guidance.
- Distribute: deliver the decisions that apply to a change to the agents and tools making it, when they make it. An agent working in the billing service needs the billing decisions, in their current version, not the whole set.
- Enforce: evaluate changes against those decisions at the points where a tool can still stop a change, such as before a file is written, at commit or in CI before merge. Enforcement covers only the part of a decision that a machine can check. The rest still needs a reviewer.
- Verify: establish, with evidence, that a change conforms to the decisions that apply to it. The evidence names which decision version and which rule produced each result, so anyone can trace a verdict back to its source.
Verify means conformance, not correctness. It checks that a change follows the applicable decisions. It does not judge whether a decision was right, and a conformance record is not a trusted attestation that a given test or check ran.
The stages are iterative, not a one-way pipeline. Enforcement findings and verification results feed back into discovery and formalisation. A rule that fires on legitimate code shows that a decision was scoped too broadly. A review comment that keeps recurring shows a decision nobody wrote down. A decision can be revised or superseded and go through the stages again.
Authority runs through every stage
Every stage depends on knowing which decisions carry authority. That means four things. Acceptance: a person accepts or rejects a proposed decision. Precedence: which of two overlapping decisions wins. Supersession: one decision replaces another. Effective resolution: working out which decisions govern a given change, after precedence and supersession are applied. Authority is not a sixth stage. Discovery needs it to turn a candidate into a decision, distribution needs it to send the current version, and enforcement needs it to know which rule wins.
Describing authority is not the same as proving it. A record saying who accepted a decision is a claim unless an identity system stands behind it. Organisational authority, such as roles, single sign-on and directory groups, sits outside the decision record.
A peer of prompt, context and harness engineering
Agentic software development already has named disciplines. Prompt engineering shapes what an agent is asked. Context engineering shapes what it knows. Harness engineering builds the runtime around the model: tools, retries, state and coordination. Decision Engineering shapes which engineering decisions the agent must respect, and checks that it did.
They are peers, not a sequence. A team does not graduate from prompts to harnesses to decisions. It does all of this work at once, and no discipline replaces another. They also overlap: a harness can run a decision check as a hook, and a decision can reach the agent as part of its context. The disciplines name kinds of work, not layers of a runtime, so Decision Engineering does not add a new layer to the agent stack.
The discipline and its result
Decision Engineering is the work. Engineering decision governance is the result the work aims at: a system that determines which engineering decisions govern a given change, why, and with what evidence. That page owns the definition, and the result is never a synonym for the discipline.
Doing the five stages does not by itself guarantee governance. Part of governance is that every person, agent and check gets the same answer to which decisions apply to a change. A team can discover, formalise and distribute its decisions and still have two of them overlap with no deterministic answer to which one applies. Governance needs the stages and the authority rules to resolve the same way for every person, agent and check. Precedence semantics, the rules for which of two overlapping decisions wins, and decision continuity, keeping decisions available across sessions and handoffs, describe two parts of that.
Where to start
The work belongs with whoever already owns how the team's agents are set up: a staff engineer, an architecture lead or the platform team. Make it one named person, because a decision nobody owns goes stale without anyone noticing.
The first step needs no tool. Read the last month of review comments on agent-written pull requests and pick out the ones that repeat. Each repeat is a decision the team enforces by hand. Write the clearest ones down with a scope and a status, then turn the most frequent into a check that runs in CI. That covers Discover, Formalise and Enforce for a handful of decisions, and it shows which decisions agents break most often.
What Mneme supports at each stage
Mneme supports parts of the discipline for one class of decision: architectural decisions in a repository. The table below was checked against mneme-hq 0.11.0, the current release of Mneme's open-source package, and lists what ships next to what does not.
| Stage | Ships in 0.11.0 | Limits, and what is not shipped |
|---|---|---|
| Discover | The Architecture Audit finds candidate decisions in Markdown architecture documents. A public function classifies whether a statement expresses a decision. | Candidates, not reconstructed decisions. Reconstructing decisions from code and history is not shipped. The open-architecture research harness is research-only, with no validated results. |
| Formalise | mneme adr import reads ADRs. Typed rules, which a machine evaluates the same way every time: FORBID_LITERAL bans a literal term in matching files, and FORBID_NUMERIC_ABOVE caps a number in Python code. The Decision Index, the persisted, versioned record of decisions (since 0.10.0); declared applicability. |
The Decision Index persists decisions. It does not turn arbitrary intent into rules. Declared applicability is stored and read by the governance library only; no check uses it yet to select which decisions it enforces. |
| Distribute | The Decision MCP server (since 0.9.0) gives agents six Model Context Protocol tools to look up, search and trace decisions and to record proposals. Pre-generation context on supported integrations. | Search relevance is not an authoritative answer to which decisions govern a change. |
| Enforce | Hooks on supported integrations, mneme check and CI gates. Typed rules give a deterministic verdict. A forbidden-dependency constraint (FORBID_DEPENDENCY), which is not a typed rule, gives a warning, and strict mode blocks on warnings. |
The numeric rule runs only in the whole-file mneme check --source-file audit, not at edit time. A Claude Code check on new Python files exists but has not been independently validated, so no enforcement claim is made for it. |
| Verify | CI re-checks at merge. mneme check --json adds the exact rule_id to each applicability entry and typed-rule violation, and the decision_version_id for decisions loaded from the Decision Index. Declared test evidence (since 0.8.0). |
Conformance only. Trusted attestation that a test ran exists as a proposed design and is not built. |
| Authority | A person accepts or rejects proposed decisions. An explicit supersession link or a higher priority decides which decision wins; ADR dates no longer do. A library works out which decisions are in effect and what changed between two states. | Acceptance is not tied to a verified identity, and the Decision Index records no approver. No check or search uses the library to decide what it enforces or returns; the opt-in mneme check --applicability-preview report uses it and is marked non-authoritative. Waivers, recorded exceptions to a decision, are unreleased. |
Mneme carries accepted architectural decisions to agents, enforces the constraints it can check, and reports in mneme check --json which typed rule and decision version produced a result. It does not reconstruct decisions from code, authenticate who approved them, or attest that a check ran.
How it relates to other concepts
- Engineering decision governance is the result the discipline produces when its decisions resolve deterministically.
- Engineering coherence is the outcome governance protects: independent changes that still add up to one system.
- Deterministic enforcement is how the Enforce stage applies a rule: the same input gives the same verdict every time.
- Governance before generation is the case for distributing decisions to an agent before it writes, rather than catching violations afterwards.
- Architectural drift is what accumulates when decisions are made but never distributed or enforced.