Governance needs a memory.

Context Engineering

Context engineering is the practice of giving AI agents the right information at the right time, and only what they need, so they act the way your organization intends: their instructions, the tools they can call, examples of the behavior you want, the conversation so far, what they retrieve, and what they write down for later.

The Claim

The Decision Record, Part of the Governance Layer

Some of an agent's context stays the same from one task to the next, such as its instructions and tools. The rest changes as the work moves on: what it retrieves, the conversation, and its notes. When agents act for an organization, someone must be accountable for the context they act on: which rules apply, who set them, and whether they remain in force. That is the governance side of context engineering, and it covers several things: policies, permissions, and the logs that show a rule ran. **The Decision Record is the governance part that explains why a rule exists: a sealed account a rule can be checked against, kept separate from the conversation that produced it.

Governance in context engineering: policies, what the rules are; permissions, who may do what; logs, that a rule ran; and the Decision Record, highlighted, why a rule exists

Memolok is the Decision Record platform: it captures what your organization decided as you work.

The Stack

Where the Decision Record Fits

Context engineering is usually described in six parts: instructions, tools, examples, the conversation so far, what is retrieved on demand, and memory, what is written down and carried forward when work runs longer than one session.

The agent reaches a Memolok Decision Record the way it reaches other sources, over the Model Context Protocol (MCP), the open standard AI assistants use to connect to tools and data, whenever it needs reasoning. What differs is what it reads: a sealed account it cannot rewrite, with its status attached. Once a record is sealed, what was decided, what else was considered, and what was expected to happen stay as recorded, and when the decision changes, a new record supersedes it.

An AI agent reaches its sources: instructions, tools and retrieved documents, and the Decision Record over MCP; what differs is what it reads, a sealed record with its status attached, accepted and in force

Compared

What a Policy Trace Tells You

Some agent systems log each time a rule is applied: an exception granted, a threshold crossed, an override approved. Richer ones also record why that case was approved and who signed off. Each entry explains a single case, while the rule itself, and why the threshold sits where it does, is decided somewhere else.

A trace explains the case, a decision record explains the rule: trace entries keep one case each, an exception granted, a threshold crossed, an override approved; the sealed record keeps why this threshold, the thresholds considered, what should follow, and that it is accepted and in force

The decision behind the rule, why this threshold, what alternatives were considered, what was expected to happen, and whether it is still in force, is an ordinary Memolok Decision Record, committed by a person and sealed once it is settled. The trace explains the case, and the record explains the rule.

From One Person to a Company

Governance at Any Scale

Governance sounds like a word for large companies, yet it takes the same shape at any size: a solo builder deciding how their project should behave, a team setting a policy for how it works, or an organization deciding what an AI agent may do on its behalf.

See Use Cases for each size, and why we built Memolok for one person and for the whole company.

Beyond Context Engineering

The Same Record in Decision Intelligence

The Decision Record also belongs to a different discipline: Decision Intelligence, the practice of improving how an organization decides, and of learning from what happens next. There, it is the foundation, whoever makes the call: a person, a person with a machine, or a machine alone.

Decision Intelligence and context engineering meet in governance: as AI agents act for an organization, someone has to answer for the rules they follow, and the Decision Record is the part of governance that holds why each rule exists. Enforcing those rules stays with the systems and the people who run them.

Read more on Decision Intelligence.

Common Questions

Questions About Context Engineering

Where does a Decision Record fit in context engineering?

On the governance side of context engineering. The agent reads a Decision Record over MCP like any other source, yet what it reads is sealed: when a decision changes, a new record supersedes it, so an agent can tell which recorded decision is still in force.

Is a trace of what an agent did the same as a Decision Record?

No. A trace records a policy applied to one case, such as an exception granted or a threshold crossed, and sometimes why that case was approved. A Memolok Decision Record is the decision that set the policy: why the rule exists, the alternatives considered, what was expected, who committed to it, and whether it is still in force.

Keep Reading

Decision Records for AI Agents

Why an agent needs the reasoning behind your decisions, with its status attached. Continue reading

Decisions live here.