# Reproduce the delegated handover

Two installed packages have different certificate records. In the inspection workflow both can be inspected, checked and signed off. In the delegated workflow both can also be handed to a delegate. The delegate may accept the certified package. The other package needs proof before sign-off. If the promised record lists every available next action, the two delegated records must be distinguishable. The inspection route remains available from both installed states. [Open the essai](../) · [See the exact handover states and transitions](handover.json).

## Run the check

Download [replay.py](replay.py). Python 3.9 or later and its standard library are sufficient. Run this command from the folder containing the download.

```sh
python3 replay.py --online --check
```

This reads three public JSON inputs, verifies each SHA-256, reconstructs the handover, and runs two independent implementations against the supplied cases. It compares the computed output with the historical first-essai digest, the published [results](results.json) and the [reader’s handover fixture](handover.json). It writes no files.

From a source checkout, all inputs are available offline. Run these two commands at the repository root.

```sh
python3 essai-04/evidence/replay.py --check
python3 -m unittest discover -s essai-04/evidence -p test_replay.py
```

## What the result checks

A summary groups concrete states. For the delegated handover, the proposed grouping records the phase. To preserve the declared observations and every labelled next move, any two states in one group need to give the same observation, and every action into a group from either state needs a matching action into that group from the other. The checker splits a group at a disagreement and repeats. The independent reference starts with pairs of candidate states and removes pairs that fail the two-way matching test. They must agree on exactly which concrete pairs remain together. This check applies observation-preserving strong bisimulation to finite, explicitly enumerated examples. [Boulgakov, Gibson-Robinson and Roscoe, *Computing Maximal Bisimulations*, §§2–2.1](https://www.cs.ox.ac.uk/files/6715/ICFEM%202014%20Version%2010.pdf).

| Case | Concrete states | Proposed groups | Checked groups | What caused the difference |
|---|---:|---:|---:|---|
| Handover through inspection | 4 | 3 | 3 | Inspection takes both installed packages to the same checked state. |
| Handover with delegation | 6 | 4 | 6 | After delegation the available actions differ. That future difference also separates the two installed states. |
| Rotunda, one hoist | 219 | 184 | 184 | The known single-hoist context hides distinctions irrelevant to its action menu. |
| Rotunda, second hoist | 323 | 288 | 296 | The inherited grouping needs eight additional groups for this context. In the computed witness, the second front can start a brick in one state and must wait for curing in the other. |
| Gimmer, initial support 0, 1 or 2 | 7 / 8 / 8 | 7 / 8 / 8 | 7 / 8 / 8 | The existing guard already expresses the extra support. A defective summary keeping only boundary counts loses the identity of completed work. |

The handover fixture gives the starts, observations and labelled edges actually used by the reader. The full result contains 17 transition/model checks. Sixteen complete inputs have independent agreement. One intentionally incomplete model returns “unresolved”. An extra review action that leaves the record in place provides a harmless-change control. The repair in the 323-state Rotunda case is relative to the declared two-hoist context and the supplied grouping. Its stronger open-interface test keeps all 323 states.

The **route-choice** comparison asks a different question. Can the handlers always choose *one* permitted action from the information they have? The baseline museum case needs two report outcomes to choose a permitted route, and three to preserve the full choice of routes. Adding a permitted robust route reduces the first requirement to one outcome, with all three still needed for the full menu. Direct enumeration checks all 223 supplied information partitions across the five route cases. Permission to choose a route is only one step in completing the move. [Knowing Enough, Essai 02](../../essai-02/).

## Sources and limits

Lawrence Rowland’s earlier model-sufficiency first essai supplied the cross-case construction, the separately implemented mathematical references, the original regression cases and the synthetic handover. The handover was written after the diagnostic was frozen and was an authored example. For its six states, writing down the certificate rule conveys the decision very economically. The larger example shows what automated enumeration can check. Human decision benefit or time savings were not measured. The checker needs a richer finite model against which to test the summary.

- Rotunda supplies the fixed one- and two-hoist workfront semantics. The fixture comes from the native implementation at revision `03472c70854eebc5f4a623391e0270021fecd341`. [Native export](https://experimentsin.ai/bricklaying-a-rotunda/apps/constructive-state/open-interface-case.json) · [Input checked here](inputs/rotunda.json).
- Gimmer supplies named events and their finite support/receiver contract. The native revision is `07fa5cbca5e597fa746c67ac497e45a3b6636cf0`. [Native export](https://experimentsin.ai/gimmer-crag-project-mountain-refuge/research/contract-compression/cases.json) · [Input checked here](inputs/gimmer.json).
- Knowing Enough supplies the independently enumerated permitted-route and report partitions. The verified export at native revision `98a1310c874f54fd879a84829251b674458d2231` remains part of Essai 02. [Input checked here](../../essai-02/results.json).
- The deterministic [result file](results.json) retains its original format, internal case names and SHA-256 `f7a4ad7237e816de567df84b42fbd1e40bf268c08e760e1fed5003f683ba5a8d`. It was reproduced on 21 November 2026. Eleven [regression tests](test_replay.py) also passed, including comparison on 1,200 seeded small model/partition combinations.
