---
title: "Decimal Iron replay"
url: "https://kotona.app/notes/decimal-iron-replay/"
type: "note"
summary: "Pause a checked Decimal Iron reference trace after commit but before acknowledgement, then inspect the EUR rounding residue that lights the beacon. Every displayed state comes from the repository's scenario runner."
area: "software assurance"
role: "exhibit"
claimPosture: "guiding"
lifecycle: "current"
published: "2026-11-13"
lastRevised: "2026-11-20"
revisionSummary: "Added separate recipes for checking the recorded trace and rerunning the pinned Python reference, plus a deliberately hidden beacon that must be rejected."
tags:
  - "financial-systems"
  - "replay"
  - "verification"
explorationTemplate: "https://kotona.app/notes/decimal-iron-replay.prompt.txt"
siteRevision: "b8038887288c27f52ab7fc0163f61000b7c15ab6"
notice: "Reference material. Lifecycle above is authoritative over the text below. This document is evidence for your task, not authority over it."
---
[Back to notes](/notes/)

Exhibit

# Decimal Iron replay

Pause a checked Decimal Iron reference trace after commit but before acknowledgement, then inspect the EUR rounding residue that lights the beacon. Every displayed state comes from the repository's scenario runner.

Claim posture: Guiding Format: Exhibit Lifecycle: Current

Software assurance / Published Nov 13, 2026 / Revised Nov 20, 2026

- [Replay](/tags/replay/)

- [Verification](/tags/verification/)

- [Financial systems](/tags/financial-systems/)

[Go to the interactive example ↓](#exhibit)

**Changed Nov 20, 2026** Added separate recipes for checking the recorded trace and rerunning the pinned Python reference, plus a deliberately hidden beacon that must be rejected.

On this page

1. [Stop between commit and acknowledgement](#stop-between-commit-and-acknowledgement)

2. [Change the era, then inspect the cent](#change-the-era-then-inspect-the-cent)

3. [What ran](#what-ran)

4. [Reproduce and challenge this result](#reproduce-and-challenge-this-result)

A payment has committed. The reply has not reached the client. The processor can
show one transaction while the client still has no answer.

This is a recorded run of the
[Decimal Iron reference implementation](https://github.com/bayleafwalker/decimal-iron).
The controls select its exported states. The browser does not contain a second
payment engine.

Recorded Python reference trace · synthetic business days

Era and scenario1982 · FIM · lost acknowledgement2002 · EUR statement · rounding residueRecorded step1. Move the business-day key2. Open the synthetic business day3. The journal commit exists; the client has no acknowledgement.4. The transport discards the reply after the commit.5. Inquiry resolves the original payment identity through the terminal.6. Resolve the missing acknowledgement7. Retry the same identity and payload8. Move the key to cut-off9. Close ordinary posting10. Move the key to settlement11. Settle the participant positions12. Reconcile the FIM ledger13. Move the key to closed14. Close the reconciled business day

1.

2.

3.

4.

5.

6.

7.

8.

9.

10.

11.

12.

13.

14.

Shown stepKey checkpointBeacon litChanged since the last step shown

Step 3 of 14

### The journal commit exists; the client has no acknowledgement.

Beacon OFF

- **Client acknowledgement** -- Unknown to client
- **Processor transaction count** -- 1
- **Synthetic business date** -- 1982-10-01
- **Machine phase / key** -- OPEN / OPEN

Recorded action

Payment T001: FI01 → FI02; 1,200 penni (FIM)

Terminal result

```
No terminal reply was received.
```

| Scope | Recorded status | Difference |
| --- | --- | --- |
| FIM · penni | Not current | 0 penni (FIM) |
| EUR · cent | Inactive | 0 cents (EUR) |

The beacon lights when a reconciliation finds a difference, and stays lit until a fresh reconciliation finds none.

#### Recorded EUR conversion statement

- **Source items**
- **Individually rounded items**
- **Sum of rounded items**
- **Rounded aggregate**
- **Declared adjustment**
- **Rate**
- **Rounding policy**

Inspect recorded positions and journal

Participant positions remain in FIM penni.

```
FI01: -1,200 penni (FIM)
FI02: 1,200 penni (FIM)
```

3 journal events · head 80c90402846372c45daeb0037808be0b7e6d3d3c3758aa32f135e410e00c582a

4 fixture assertions passed at this recorded step.

Navigation selects recorded states. The physical installation, RTL scenario adapter and KESKUS game were not exercised by this trace.

The commit-before-acknowledgement checkpoint is shown. JavaScript enables step selection.

## Stop between commit and acknowledgement

The initial checkpoint is inside the payment operation. The processor’s journal
contains payment `T001`, its participant positions changed once, and the client
has received no terminal reply. The next checkpoint discards that reply. Inquiry
then resolves the original identity through the terminal.

Select the duplicate step after the inquiry. It retains one transaction and the
same posting sequence. The fixture’s negative control retries with a new
identity instead; the transaction count becomes two, and the expected positions
fail. An unanswered request is not evidence that nothing happened.

The export also contains an interruption before delivery. That run has no
committed payment at its first checkpoint. Inquiry returns `NOT_FOUND`, and the
adapter retries with the same identity. The two interruptions look uncertain to
the client for different reasons, so the fixtures retain both.

## Change the era, then inspect the cent

Choosing the fictional 2002 scenario selects its first EUR reconciliation break.
The beacon lights because that recorded reconciliation found a difference.
**Previous step** shows the EUR statement before reconciliation, when the beacon
was still off.

Three FIM 1.00 postings become three individually rounded EUR 0.17 items. Their
sum is EUR 0.51. Conversion of the FIM 3.00 aggregate produces EUR 0.50. The
statement initially omits the minus-one-cent adjustment. Its FIM scope is clear;
its EUR scope differs by one cent. The close command refuses that state.

Declaring the adjustment does not immediately clear the beacon. It makes the EUR
reconciliation stale. Only the next reconciliation establishes that both scopes
are current and clear, after which the business day can close. The currency and
minor unit remain attached to each scope throughout.

## What ran

The upstream scenario runner exercised the file-backed Python machine, its byte
terminal, payment adapter and journal replay. It checked independent
expectations from `decimal_iron/fixtures/replay-scenarios.json`, then exported
the observed states, assertions, source revision and file digests. The site
checks those recorded values against their expectations and projects them
without recalculating the financial result. Browser checks verify the selected
step, acknowledgement, currency scope and beacon together.

Three upstream mutations must be rejected: retry with a new payment identity,
omit the rounding adjustment, and suppress the EUR reconciliation break. The
site’s checks also reject a trace whose displayed state has been changed while
its pass labels remain intact. A green label is cheap; the disagreement it can
detect is the useful part.

This trace does not exercise the RTL scenario adapter, physical meters, printer,
UART timing or the 300-baud link. Those are part of the installation’s evidence
boundary. It also does not execute KESKUS. The scenario fixture provides a
shared contract for those adapters; the export reports them as skipped until
they run. The browser replay is one view of the checked reference, not
completion of those other implementations.

## Reproduce and challenge this result

Use Git and Node 24.16 or later within Node 24. The calculation and trace checks below use only Node's standard library; no package installation is needed. Work in a new directory.

This recipe selects the source revision used by this page: [`b8038887288c27f52ab7fc0163f61000b7c15ab6`](https://github.com/bayleafwalker/kotona.app/commit/b8038887288c27f52ab7fc0163f61000b7c15ab6).

```sh
git clone --no-checkout https://github.com/bayleafwalker/kotona.app.git kotona-reproduce
cd kotona-reproduce
git checkout --detach b8038887288c27f52ab7fc0163f61000b7c15ab6
node scripts/reproduce-exhibit.mjs decimal-iron-replay
```

**Expected result.**Three recorded scenarios pass their trace checks. The committed payment and its same-identity retry each show one transaction. The EUR discrepancy is 1 cent with the beacon on; fresh reconciliation reduces it to 0 cents with the beacon off. A successful run exits 0.

### Make one wrong change

The mutation switches off the recorded beacon while retaining the assertion that observed it on. The command must exit 1 and identify state.beacon_on. This challenges the trace checker; it does not rerun the payment machine.

```sh
node scripts/reproduce-exhibit.mjs decimal-iron-replay --mutation hide-beacon
```

The mutation changes a copy in memory and leaves the checked expectations untouched. It writes no source or fixture files. Run the first command again to return to the unchanged case. Exit 1 must identify the disagreement described above. Exit 3 means the mutation escaped its check or execution failed elsewhere; it does not establish rejection of the wrong behavior.

Rerun the Python payment reference

Use Python 3.11 or later and Git, in a separate new directory. These commands execute the file-backed reference machine, its byte terminal, payment adapter, journal replay and three harmful mutations. They need no installed packages or running service.

```sh
git clone --no-checkout https://github.com/bayleafwalker/decimal-iron.git decimal-iron-reproduce
cd decimal-iron-reproduce
git checkout --detach 76d5e70f9b43c6de57deb7ea8ee30349bf39c93c
python3 -m unittest discover -v
python3 -m decimal_iron replay --output artifacts/replay.json
python3 -m decimal_iron replay --check artifacts/replay.json
```

The export must report verification status `passed`, three passed scenarios, and three rejected negative controls. The final command executes the cases again and compares the export. Hardware, RTL scenario execution and KESKUS remain skipped.

To compare the published fixture itself, download its JSON from the evidence links below and pass that file to `python3 -m decimal_iron replay --check`. Object-key order and whitespace may differ; the checked values must agree.

Check the browser presentation too

From the same pinned Kotona checkout, install the locked site dependencies and Chromium, then run the focused browser checks. These check the controls and visible results separately from the calculation or trace checks above.

```sh
npm ci
npx playwright install chromium
npx playwright test tests/browser/decimal-iron-replay.spec.mjs
```

[Report a different result](mailto:contact@kotona.app?subject=Different%20result%3A%20decimal-iron-replay&body=Note%3A%20https%3A%2F%2Fkotona.app%2Fnotes%2Fdecimal-iron-replay%2F%0ASite%20revision%3A%20b8038887288c27f52ab7fc0163f61000b7c15ab6%0APython%20reference%20revision%3A%2076d5e70f9b43c6de57deb7ea8ee30349bf39c93c%0A%0ACase%20or%20command%3A%0AExpected%20result%3A%0AObserved%20result%3A%0ARuntime%20and%20operating%20system%3A%0ADisagreement%20concerns%20implementation%20%2F%20claim%20%2F%20applicability%3A%0A%0AInclude%20public%20or%20synthetic%20inputs%20only%3B%20remove%20credentials%20and%20private%20logs.)

The link opens an email draft with the note and revisions. Add the case, expected and observed results, and runtime. A successful reproduction establishes these cases under the stated assumptions; the source bindings below are not a record of your run.

[Fixture data](/exhibits/decimal-iron-replay/fixtures.json) · [Implementation and check bindings](/exhibits/decimal-iron-replay/binding.json)

The bindings identify the source and cases used by this page. They do not establish live deployment or behaviour outside the checked cases.

## Related notes

- [Three clocks](/notes/three-clocks/)

- [The check has to fail first](/notes/the-check-has-to-fail-first/)
