Decisions taken

Updated 04-11-2026

This page is the record of every choice, with who took it and when. Read next: Progress.

One row per decision, numbered, never renumbered. A decision is overturned by a new row that names the one it replaces.

# Date Decision Who Recorded in
D1 29-09-2026 One calculator, runnable on its own or embedded. eRegulations v7 will embed it; retiring v7's own ASYCUDA code (TariffsBO, TariffsCache) is decided once a country has run on the embed. melux concept note §5
D2 29-09-2026 Order: the calculator is built on its own first; v7 is untouched until pilot 1 passes. melux concept note §5
D3 29-09-2026 Two providers behind one contract: ASYCUDA, which delegates to customs, and a computing engine on ingested tariff data, modelled on EU TARIC. melux concept note §3, §4
D4 29-09-2026 When customs computes, its answer is shown and never corrected; defects are reported to it. Any figure the calculator computes is marked as an estimate. melux concept note §2
D5 29-09-2026 Pilot 1: Burundi computed by the engine in shadow mode and compared with OBR. Pilot 2: a second EAC member. melux concept note §7
D6 29-09-2026 The product starts from the unctad-ai/vertical-base template (Next.js, Prisma, Postgres). melux concept note §6
D7 29-09-2026 The calculator runs at calculator.eregistrations.dev; the documents at calculator.eregistrations.dev/docs. melux concept note §2, §6
D8 29-09-2026 Work follows seven steps, each through draft, first agreement, adversarial review by agents and final agreement. Naming revised by D48. Every role in the documents is written "analyst", never a name. melux concept note §6
D9 29-09-2026 Embedding is an iframe of /<country>/embed, or one script tag that inserts it; each country lists the sites allowed to frame it. No web component or package until a host needs one. melux concept note §5
D10 29-09-2026 Specifications are Markdown in the repository; the pages under /docs are generated from them. melux concept note §6
D11 29-09-2026 When ASYCUDA does not answer, the page shows no computed figure unless the country's settings allow one; Burundi's do not. melux concept note §3, §9
D12 29-09-2026 A golden case passes only when every tax equals OBR's after rounding. melux concept note §4, §9
D13 29-09-2026 Pilot 2 is Rwanda; this narrows D5. melux concept note §7, §9
D14 29-09-2026 Reworded by D19. The OBR meeting's tasks of 24-09-2026 are done in the calculator OBR uses today, within the week agreed, and become requirements of modules 2, 3 and 6. melux concept note §9
D15 29-09-2026 Exports go through the ASYCUDA provider only, once OBR's service computes them. melux concept note §3, §9
D16 29-09-2026 The new repository is unctad-ai/tariff-calculator-platform. melux concept note §9
D17 29-09-2026 The repository and the documents' site may exist before step 1's final agreement, so the documents can be read where they will live; no product code is written before it. This relaxes D8 for documents only. melux index
D18 29-09-2026 Until step 7 the repository holds the documents, their generator and a small static server, with / sent to /docs/. The vertical-base template is brought in at step 7, its origin commit recorded in template.json. melux index
D19 29-09-2026 This project does not touch eRegulations v7 while the calculator is built. v7 keeps receiving changes from other requests, OBR's of 24-09-2026 among them, which this project carries as requirements. Rewords D14. melux concept note §5, §8
D20 29-09-2026 One installation per country. Its provider, shadow mode and settings are set on the installation's administration page, not in the environment. melux concept note §3, §6
D21 29-09-2026 Rwanda's answers come from the rwandatrade.rw tariff API, called as the prototype calls it. melux concept note §7
D22 29-09-2026 UNCTAD runs the calculator and maintains its data for now; later, decided with each authority. melux concept note §8
D23 29-09-2026 The calculator has its own contract, as flexible as possible: exact decimal amounts, a currency for each amount, its own codes. No provider is ever asked to change for it; each adapter translates, and where a provider cannot take a value the adapter converts with that provider's own published rates and says so in the trace. melux concept note §3
D24 29-09-2026 Pilot 1 compares against OBR's production service with v7's Burundi settings, checked with one call from the calculator's server once the key is set; OBR is asked to authorise the address only if that call is refused. melux concept note §3
D25 29-09-2026 At least twenty golden cases before step 7.2, varied by chapter, origin, excise, vehicles and exemptions; taxes OBR is known to get wrong are exempted by name in a register of known defects. melux concept note §4
D26 29-09-2026 Narrows D7. Each country's installation is at calculator-<country code>.eregistrations.dev (calculator-bi, calculator-rw…); calculator.eregistrations.dev keeps the documents. melux concept note §2
D27 30-09-2026 A first visit opens in the country's default language, set on the installation's administration page. melux module 0
D28 30-09-2026 The page's identity (logo, colours, the authority's name) is decided in each installation's configuration, not in the specification. melux module 0
D29 30-09-2026 The ASYCUDA provider keeps reference tables 7 days and exchange rates 1 day. melux module 4
D30 30-09-2026 Revised by D46. The result is shown in the currency the importer selected on the form, converted with the rate the customs service returned. melux module 4
D31 30-09-2026 The order of the Import and Export tabs is a setting on the installation's administration page: Import first by default, Export first when set; the first tab opens by default. melux module 0
D32 30-09-2026 The rarely used fields of the form (trading and provenance countries, delivery terms, package type, other costs, deductions) sit behind "more details", closed by default. melux module 2
D33 30-09-2026 When a field changes after a result, the result stays, dimmed and marked "out of date", until the trader asks again; it is never recomputed on its own. melux module 3
D34 30-09-2026 The product search runs on the calculator's own copy of the provider's catalogue, refreshed daily, not live on the provider. melux module 1
D35 30-09-2026 Everything is translated into every language of the page, customs' descriptions included; a translation is marked as one and the original stays one click away. melux module 1
D36 30-09-2026 When the trader chose no treatment and a cheaper one is valid, the engine applies the trader's choice, as ASYCUDA does, and the result says a cheaper one exists. melux module 5
D37 30-09-2026 The engine uses today's rates; an administrator can set a test date in administration. melux module 5
D38 30-09-2026 For pilot 1, Burundi's duty rates come from the EAC tariff gazette of 2022, extracted to CSV and checked line by line by an administrator. melux module 6
D39 30-09-2026 The computing provider uses customs' published exchange rates, read from its service where it has one, otherwise entered weekly. melux module 6
D40 30-09-2026 Any administrator may publish a tariff version, including the one who loaded it. melux module 7
D41 30-09-2026 Administrators sign in with the template's own accounts only, managed on the administration page. An installation can import the administrators of an existing eRegulations instance with their passwords, which v7 stores in bcrypt; legacy SHA-256 passwords are re-hashed at first sign-in, accounts without one set it. melux module 7
D42 30-09-2026 The embedded page stays under 100 KB of script and styles, compressed; a build that breaks the budget fails. melux module 8
D43 30-09-2026 The status page is public: each provider's state, its 24-hour history and the counts. melux module 9
D44 30-09-2026 Shadow differences are kept 90 days, then only their totals. melux module 9
D45 30-09-2026 A charge whose legal act was not found, such as the DMC or rice's 10 % VAT, is published, flagged "legal act not found" on its line and in the data register. melux module 6
D46 30-09-2026 Revises D30. The result is shown in the currency chosen on the form, with the local currency beside it as customs' original. melux module 3
D47 30-09-2026 The result shows the exchange rate's date and source. melux module 3
D48 30-09-2026 Revises D8's naming rule. The documents credit people by name: decisions by melux, remarks and sources by who made them. Inside the product, the role that runs an installation is called administrator. melux this log
D49 15-10-2026 Every module page of step 2 keeps one template, at most 450 words, described in Progress; a continuity table lists each function of v7's calculator and of the prototype, and the module that takes it over. Brought back from eRegulations-Next (its D16, D17). melux process
D50 15-10-2026 One ledger of every question by round, and the reviewers' findings in one table per step, their columns defined in History. Brought back from eRegulations-Next (its D18). melux process, history
D51 15-10-2026 The documents in French as well, English the source: each page's twin is <page>.fr.md, built under /docs/fr/; a French page older than its English page says so. Brought back from eRegulations-Next (its D19). melux README
D52 26-10-2026 Revises D21. Rwanda's answers come from RRA directly, through the ASYCUDA provider as OBR's do, once RRA agrees; the rwandatrade.rw provider is withdrawn. melux module 4
D53 26-10-2026 Revises module 4's mapping of 30-09-2026. The currencies offered are those customs quotes a positive rate for, less the installation's exclusions (by default XDR, DTS, ZWD, VEF, MRO, FRF, SKK, KPW, BAM, ZIG), and the local currency always; each code goes as customs spells it, UGS named Ugandan shilling and found by "UGX". melux module 4
D54 26-10-2026 Narrows D33. When the product or the tab changes, the result is cleared; D33 stays for every other field. melux module 3
D55 26-10-2026 KRA's tax calculator is a candidate provider; no country is added. melux opens a sandbox account on developer.go.ke, and step 4 checks the contract against KRA's answers as well as OBR's. melux module 4
D56 26-10-2026 When a provider answers only totals, its figures are shown as they come, with the rates from its other call beside them as rates and the time of each call; no amount per charge is computed. melux module 3
D57 29-10-2026 Step 3's first pass stays v7's page for Burundi and Rwanda. The Kenya Duty Estimator (kenya-tariff.eregistrations.dev, on KRA's sandbox) is the reference the second pass starts from, and the case where D56 is shown. melux step 3
D58 04-11-2026 The second pass of step 3 is built on direction A, "the journey": the questions on one band, the answer opening below, in the visual language of the corridor and Business Registration sites. melux step 3
D59 04-11-2026 Administration gets its mockups in a third pass of step 3, before the step is signed off; it does not move to step 5. melux step 3
D60 04-11-2026 On the second pass's page, every box the trader must fill is on the band, gross weight and a vehicle's cylinder capacity included; the currency sits inside the value's box; the rest of "Specify" is grouped in cards by subject. melux step 3
D61 05-11-2026 The "Customs declaration" card of the second pass takes the boxes of v7's page: regime, exported from the country of origin, country of export when not, treatment. Provenance and the trading country work as on v7: no box, filled from the destination and the country of export. For these two countries, this goes further than D32, which put them behind "more details". melux step 3
D62 05-11-2026 The third pass of step 3 is made for an administrator who comes occasionally, after a first configuration. It shows both a customs-only installation and one with the computing provider in shadow mode. melux step 3
Drafted with Claude for melux · UNCTAD · working material, hidden from search enginesUpdated · 04-11-2026