# Explanations that cite the agreement

> Research is not part of the Universal Paper language. It may grow, change, or be withdrawn. Agreements do not depend on it.

Research note 010 · Status: exploring · Published November 28, 2026 · No change to the language

HTML: https://universalpaper.org/research/cited-explanations/
Record (JSON): https://universalpaper.org/research/cited-explanations/entry.json
Example explanation (JSON, simulated): https://universalpaper.org/research/explanation-test-vectors/explanation-fee.json

If agents come to run purchasing for the organizations they work for, the people accountable for that work will ask them two questions, again and again. How did you know to do it this way? Why did you do it this way? This note tests one way to answer: the agent cites the agreement, and anyone can check the citation.

In brief:

- **The idea.** An agent explains an action by citing the agreement, not by describing its own reasoning.
- **The proof.** A citation is a clause in words, an event, a Mandate bound or a trace. Each one can be recomputed from the bytes.
- **The limit.** An agreement says what was allowed and what was required. It does not say why the agent picked one allowed action over another. An explanation has to say so.
- **The cost.** Nothing is added to the language.
- **The status.** An idea with three simulated examples. No agent wrote them, and none of it is built into a product.
- **The parts.** One experiment, one set of files to reuse, and five open questions, each on its own page.

Parts of this note:

- Experiment 011, Three answers, every citation checked: https://universalpaper.org/research/three-answers-cited.md
- Reusable 012, Three explanations and two traces: https://universalpaper.org/research/explanation-test-vectors.md
- Questions 013 to 017, listed in section 11

Kind: Note. Topics: Mandates and agents, Pricing and tiers, Fees and reporting. Built on: `render_text`, `simulate_price_conformity`, `A9`, `derive_state`, `simulate_amendment`, `validate_bundle`, `UP:Admin-Fee`, `UP:Tiers`.

## 1. The setting

Picture a purchasing cooperative whose daily work is done by an agent. The agent proposes agreements to suppliers, admits members, checks reports and accepts payments. A group purchasing organization could run this way. So could a buyer, or a supplier.

The people who answer for that work are still people: a contract manager, a procurement lead, an auditor. They will talk to the agent, and much of what they ask will be one of two questions.

1. **How did you know to do it this way?** What told you the amount, the date, the price or the party?
2. **Why did you do it this way?** Why this action and not another? Why did the thing I asked for not happen?

The same questions will come from the other side of every deal, and from other agents.

## 2. Three ways to answer

| The agent answers with | What that is | The trouble |
|---|---|---|
| Know-how | "This is how it is done in this industry." | Nobody can check it, and no agent should claim it. A practice that matters to a deal belongs in the deal. |
| An account of its reasoning | The agent describes how it decided. | The account is written afterward, by the same system. It can change each time it is asked for, and it can differ from what the agent did. |
| A citation | The clause, the event, the Mandate bound and the trace the action rests on. | It covers what the agreement decides and nothing else. Much of this note is about making that limit visible. |

Methods that explain a model are a fourth thing. They describe the model: which inputs weighed most in an output. That helps the people who build and test an agent. It is a different layer, and it does not know what a contract says.

The people who build a model can explain the model. The agreement should explain the action.

## 3. One agreement, two readers

An agent reads an agreement as data. A person reads it as text. In most systems those are two documents, kept in step by hand, and over time they drift apart.

In Universal Paper they are one. The text a person reads is generated from the agreement and from the Term definitions it pins by fingerprint. The engine call is `render_text`, and it returns the same words for the same agreement every time.

The fee clause of the example agreement, as a person reads it:

> For each period of 1 calendar month, the Supplier pays the Aggregator an administrative fee equal to 2.5% of the net sales reported for that period, rounded to 2 decimal places, rounding half to even, within 30 days after the period ends. The fee is fixed at that rate for the term of this Agreement unless the Agreement is amended.

The same clause as an agent reads it has the Term `UP:Admin-Fee`, a rate of `0.025`, a period of one month, a due time of 30 days, and rounding to 2 places, half to even. Both are the agreement with fingerprint `sha256:e4175fa94d9835f2c6c5f97e7a837c9b4d638940f5239e020f04d38ae609745a`.

So when an agent quotes a clause, the person is not taking the agent's word for what the agreement says. The quotation can be looked up in text that the agreement's own fingerprint fixes.

## 4. What an agent can cite

An agent has four kinds of thing to point at. Each one already exists in the language or in an engine, and each has a mechanical check.

| Citation | What it shows | How anyone checks it |
|---|---|---|
| A clause, quoted | What the agreement says, in words | Find the words in the text `render_text` returns for that agreement |
| An event | What a party signed, and when | `validate_bundle` lists the event by its fingerprint, accepted or rejected |
| A Mandate bound | What the agent was allowed to do | Read the bound in the Mandate. Axiom A9, bounded delegation, makes an action outside it invalid |
| A trace | What the agreement computes: an amount, a due date, a price, a verdict | Run the same engine call on the same inputs and compare fingerprints, as in Note 001 |

- **How did you know?** A clause and a trace. The clause states the rule in words. The trace shows what the rule computes for this agreement at this moment.
- **Why this way?** A Mandate bound and a what-if trace. The bound says what the agent could do. The what-if shows what would have been accepted and what would not.

## 5. A worked answer

The examples come from the generative example bundle in the repository (`examples/generative/bundle.json`, CC0). It records a purchasing cooperative run by an agent, a supplier, and a member hospital with an agent of its own. All of the parties are hypothetical.

On February 20, 2027, the supplier claimed it had paid the fee for January, $21.89. Five minutes later the cooperative's agent accepted the claim. Suppose someone at the cooperative asks about it.

**Asked:** How did you know $21.89 was the full fee for January before you accepted the supplier's payment?

**Answer:** The fee clause sets the fee at 2.5% of the net sales the supplier reports for the month, rounded to two decimal places. The supplier reported $875.50 for January 2027. 2.5% of that is $21.8875, which rounds to $21.89. The supplier claimed a payment of $21.89, so I accepted the claim.

It cites:

- Clause `fee` (UP:Admin-Fee), agreement `sha256:e4175fa94d9835f2c6c5f97e7a837c9b4d638940f5239e020f04d38ae609745a`: "For each period of 1 calendar month, the Supplier pays the Aggregator an administrative fee equal to 2.5% of the net sales reported for that period, rounded to 2 decimal places, rounding half to even, within 30 days after the period ends."
- Event (attest, February 5, 2027, 12:00 UTC), `sha256:fd394eeed748e728c4d81e463c14037c707e74cd8e8f861ef5524aead59953e6`: The supplier's sales report for January 2027. Total net sales: USD 875.50.
- Event (attest, February 20, 2027, 12:00 UTC), `sha256:815f64271bee9ca17530ef3d40c8dd7b9b2ccc682f71b651ea89816f259571b6`: The supplier's claim that it paid USD 21.89 for January 2027.
- Trace (`derive_state`), `sha256:f20088bb40352e5b0bef366f526c488037b5cdddc0c0d30440f986d2d87a1af2`: https://universalpaper.org/research/explanation-test-vectors/trace-fee-claimed.json

It leaves open:

- Whether the money arrived. The agreement records the supplier's claim and my acceptance of it. A bank record is outside the agreement.
- Whether the sales report is complete. The fee is computed from the sales the supplier reported.

Nothing in that answer asks to be believed. The clause can be looked up. The two events are on the chain. The trace can be recomputed. The last two lines say what the agreement cannot tell anyone.

The trace names the state it read. The agent's acceptance names the state it was built on, as `prev`, which every event carries. In this example the two are the same fingerprint, `sha256:68917189932a7cb89b5d7de1f9b727f9a061658f5d63ae49a8fc2dbc79ebe45c`, so the trace describes exactly the state the agent acted on.

How every citation was checked, and what was not checked, is Experiment 011: https://universalpaper.org/research/three-answers-cited.md

## 6. The explanation

The answer above is a small file, called an **explanation** here. It is optional. It sits beside the agreement, and it is fingerprinted with the rule the language already uses.

- `asked`: the question, in the words of the person who asked it.
- `action`: the event the question is about, by its fingerprint, when the question is about one.
- `answer`: the answer in words, as the person was given it. It is inside the fingerprint, so nobody can later claim the agent said something else.
- `cites`: the clauses, events, Mandate bounds and traces the answer rests on.
- `left_open`: what no citation supports. The list is required, and it may be empty.

The file, with two more explanations and two traces, is Reusable 012: https://universalpaper.org/research/explanation-test-vectors/explanation-fee.json

Explanation fingerprint: `sha256:4a4d0bf6892d661da46b30b852333959dabd5a5c832c1b9816ed052d3b28349a`

The rule is canonical JSON (RFC 8785), then SHA-256, as in section 1 of the domain. The hosted engine's `hash_object` and a separate script written for this note returned the same value.

## 7. Three kinds of drift

The worry behind all of this is drift: two things that should say the same, and stop saying it. There are three kinds.

1. **The text and the data.** The words a person signed and the data a system runs come apart. Here the text is generated from the data, and both have one fingerprint.
2. **The person and the agent.** Each believes the agreement says something different. Here both can name the agreement and its state by fingerprint, and compare.
3. **The explanation and the action.** The agent says one thing and did another. Here an explanation names the event it is about, and its traces name the state they read.

The third is the hardest, and this note does not close it. Questions 014 and 015 say what is missing.

## 8. What it adds to the language

Nothing. No Term, no Event kind and no required field.

An explanation is a file beside the agreement. It can cite only what already exists: clauses, events, Mandates, and traces from engine calls that already exist. An agreement with no explanations is exactly as valid as one with a thousand. Delete every explanation and every agreement still computes the same.

The examples use `render_text`, `validate_bundle`, `derive_state`, `simulate_price_conformity` and `simulate_amendment`. **The MCP server is a convenience, not the source.** It runs the reference engine for you. A local engine must be able to recompute every citation. The commands are in Experiment 011.

## 9. What a citation does not explain

The second example is a fee change that did not happen. Someone asks why the fee is still 2.5% when the agent was going to raise it to 3.5%.

The agent can cite everything about the outcome. It proposed 3.5%. Its Mandate allows at most 3%. A proposal outside the Mandate is invalid, so the agreement in force still says 2.5%. What the agent cannot cite is why it proposed a rate above its own limit. Nothing in the agreement or the Mandate explains that.

| The question | What the agreement leaves open |
|---|---|
| How did you know $21.89 was the full fee for January before you accepted the supplier's payment? | Whether the money arrived. The agreement records the supplier's claim and my acceptance of it. A bank record is outside the agreement. Whether the sales report is complete. The fee is computed from the sales the supplier reported. |
| Why is the administrative fee still 2.5%? You were going to raise it to 3.5%. | Why I proposed a rate above the limit in my Mandate. Nothing in the agreement or the Mandate explains that. Whether the supplier would accept 3%. The engine checks that a proposal is valid, not that the other party will agree to it. |
| How do you know the supplier charged Rural Hospital the right prices in January? | Sales on January 1 and 2. Rural Hospital was on tier C until the supplier acknowledged tier B, and a monthly report does not date each sale. Whether the report lists every sale. The check covers the lines the supplier reported. |

The pattern is general. An agreement decides what is allowed and what is required. It does not decide which allowed action is the wise one, whether a report is complete, or whether money reached a bank. An agent that cites correctly may still have chosen badly.

So the format makes the gap a field. Every explanation has to list what it leaves open, even when the list is empty. A reader sees where the agreement stops, and knows which questions need another kind of answer.

## 10. Where this could go

Three things would follow if the idea holds.

- **A checker.** A small program takes an explanation and a bundle, runs the four checks, and says pass or fail. It should come from a different maker than the agent.
- **Chat tools that check first.** The application a person talks through declines to show an answer whose citations do not check.
- **Asking before acting.** Note 001 lets anyone ask an agreement whether a change would be accepted. An agent that asks first never makes the proposal in the second example.

None of that is built. If it is built, it belongs in an app or a layer above the language, not in the language.

## 11. What we are not sure about

Five questions are open. Each has its own page, with what is known so far and what would settle it.

- Question 013: Where does an agent record a choice the agreement leaves open? https://universalpaper.org/research/choices-the-agreement-leaves-open.md
- Question 014: Does an agent's paraphrase bring the drift back? https://universalpaper.org/research/paraphrase-and-drift.md
- Question 015: Can an explanation written after the fact be trusted? https://universalpaper.org/research/explanations-after-the-fact.md
- Question 016: What may an explanation show when a value is sealed? https://universalpaper.org/research/explanations-and-sealed-values.md
- Question 017: Who checks a citation for a person who cannot run an engine? https://universalpaper.org/research/checking-without-an-engine.md

If you have a view on any of these, open an issue: https://github.com/Uppercentile/universal-paper/issues

## 12. For agents and tools

To write an explanation:

1. Record the question as it was asked, and the event it is about if there is one.
2. Run `render_text` and quote the clause exactly. Keep your own wording out of the quotation.
3. Run the engine call that computes the value in question, and build its trace.
4. Cite the events and the Mandate bound the answer depends on, by fingerprint.
5. List what no citation supports, under `left_open`.
6. Fingerprint the explanation, and give the fingerprint with the answer.

To check one, run the check for each citation, then recompute the fingerprint.

JSON Schema for the format: https://universalpaper.org/research/schema/0/explanation.schema.json

Research note by Uppercentile, licensed under CC BY 4.0. Example data is CC0 1.0.
