Catalogue · EAN-13
A wrong bar code reaches the till.
The product does not scan. The customer waits.
The catalogue export carries 10 EAN-13 codes. Three are wrong.
Fictional catalogue · synthetic data
The problem
The last digit is computed.
- An EAN-13 ends with a check digit.
- A typing error makes it wrong.
- No standard tool checks it at import.
The rule
The operator drops a script. The manifest names it.
mapping:
cell:
- kotlin:
script: hooks:ean-check.kts2 manifests, 24 lines. One script, 10 lines.
Before any import
A wrong script is refused at validation.
- Line 8, column 20.
- No connector created.
- Nothing imported.
The result
Every code gets a verdict.
- 7 valid codes.
- 2 wrong check digits: ART-104, ART-108.
- 1 code of 12 digits: ART-110.
Real values, replay of 28 October 2026.
Security
The script holds all the hub's rights.
- Only the operator installs it.
- The integrator picks it by name.
- The SHA-256 fingerprint says which version runs.
Try it
The scenario replays end to end.
Scripts, refusal, import: each step is published with its output.