# Review of the short specifications · Claude · 30-09-2026

## Verdict

Final agreement **after fixes**. The pages follow the concept note closely and cite well. Two blockers: no module owns the page's states, so step 3 cannot draw them, and D41 as written opens an account-takeover path. The major findings are errors against measured facts or questions that will stall step 4: the adapter's error rule, legal acts that do not exist, where golden cases live, D38's single source, a test date shown to the public. Each can be fixed with a sentence or a row; nothing calls for rework.

## Coverage

| Concept-note commitment | Module(s) | |
|---|---|---|
| Public page, FR/EN, Kirundi off, accessibility | 0 | OK |
| Swahili and Kinyarwanda when their authorities supply texts | — | MISSING |
| Print and CSV | 3 | OK |
| Probe per provider, counts across restarts, no personal data, logs deleted | 9 | OK |
| The contract (search, details, tables, estimate; decimals, currency per amount) | 10, layout only | MISSING |
| Adapters convert with the provider's rates and say so | 4 | OK |
| Provider, version, "indicative" and trace on every estimate | 0, 3, 5 | OK |
| rwandatrade.rw provider (D21) | — | MISSING |
| Provider and shadow mode on the administration page | 7, 9 | OK |
| D11 rule / its display state | 4, 7 / — | OK / MISSING |
| Exports through ASYCUDA only; no live stand-in | 0, 2, 4, 10 | OK |
| One call to check OBR accepts our address (D24) | — | MISSING |
| Shadow production calls few and spread out | — | MISSING |
| TARIC model; connectors 1–2; publication gate; data register; aggregators | 5, 6 | OK |
| Declared rule with its own test (cylinder capacity) | 2 input only | MISSING |
| Freight measurements become golden cases | — | MISSING |
| Embedding; frame-ancestors; CORS; height messages; size budget | 8, 10 | OK |
| Proxy-trusting rate limit; cached reference answers | 10, 4 | OK |
| Key holder, rotation, customs lockout | — | MISSING |
| v7 moves 1–2 | 8 | OK |
| ERN-1255 menu position (module 8) | — | MISSING |
| Template's applicant accounts and registration set aside | — | MISSING |
| Check gate plus four checks | 10 | OK |
| Currencies from the provider, non-ISO mapped | 4 | OK |
| Open with OBR: rate date and source shown | — | MISSING |
| Open with OBR: origin of an export line | — | MISSING |
| Open with OBR: special drawing rights, EAC currency group | 4, 7 | OK |
| Stale-data warning | 9 | OK |

## Findings

| # | Severity | Module | Finding | Evidence | Suggested fix |
|---|---|---|---|---|---|
| S1 | blocker | 0, 3 | No owner for these states: loading, no result, catalogue not yet copied, reference tables down at first load, D11 fallback, test date, shadow, rate-limited, Export unavailable, embed refused | 0:25-28; 3:43-49 | Add a "States" list to module 0, each with the module that triggers it |
| S2 | blocker | 7 | "An account without one sets it": empty rows are CAS-managed, so anyone who knows the address could claim the account. v7 also keeps **plaintext** legacy passwords, which the page does not mention | 7:32; `PasswordHasher.cs`:9-13, 60-72 | Reset by mail instead; plaintext and SHA-256 rows are verified once, then replaced |
| S3 | major | 7 | The import makes every v7 content editor an administrator who can publish (D40), change credentials and add framing sites. No roles are defined | 7:25, 32; template `Role` enum | Name the roles; imported accounts start with none |
| S4 | major | 4 | "4xx is a refusal, anything else is an outage" is wrong for OBR: a missing field returns 500, EX returned 500, a bad key returns 401. Typing mistakes would mark OBR as down | 4:51; BURUNDI.md §3, §7, §8 #5 | 401/403 is a configuration alert, never shown on a field; a 500 while the probe is healthy is a refusal |
| S5 | major | 7 | A test date is "marked on every result", so the public sees another day's figures | 7:21; D37 | Administration previews only |
| S6 | major | 6 | "No legal act, not published", but the DMC (every declaration) and the rice 10 % VAT ordinance have none found. The module's own example fails | 6:47; impuestos…md "NOT FOUND" | Publish flagged "legal act not found", or list the charge as a known defect |
| S7 | major | 6 | D38 uses only the 2022 CET gazette: the annual EAC gazettes of stays and remissions and Schedule 2 are not named, and there is no rule from 8 to 11 digits | 6:39, 64 | Add the annual gazette; state that each national line inherits its CET line |
| S8 | major | 5, 6, 7, 10 | Golden cases are rows in administration, yet they gate CI merges. Cases taken under the old law fail against the new version, so the 1 July version cannot be published in time | 7:27; 5:50; 10:37 | Keep them in the repository, per version date |
| S9 | major | 6 | Weekly rates and notices, set against "a published version never changes": does every rate make a new version with twenty golden cases? | 6:26, 38, 48 | Rates and notices as dated rows outside the version |
| S10 | major | 3 | OBR assesses in BIF; the chosen currency is derived and off by cents. For the computing provider there is no "rate customs returned" (D30) | BURUNDI.md §5; 3:18 | Always show BIF too; computing uses the D39 rate and its date |
| S11 | major | 1 | D35 translates 6 278 customs descriptions: by whom, at what cost, with what review? This contradicts "when authorities supply the texts" | 1:32; concept note §2 | Name the method and a review screen, or narrow D35 |
| S12 | major | 1 | The daily catalogue copy walks the tree: from about 100 to thousands of production calls a day, with the quota unknown | 1:31; OpenAPI paths | `commodities/{chapter}`, 97 calls; add it to ?33 |
| S13 | major | 2, 5 | Conditions check "the trader's entries", but the form asks for no certificate | 5:27 | A chosen treatment stands for its certificate, or add the field |
| S14 | major | 9, 10 | "No address is read" contradicts "limited per address" | 9:25; 10:30 | "Held in memory for limits, never stored" |
| S15 | major | — | The rwandatrade.rw provider has no owner. The prototype calls a portal's internal `/api/Tariffs/*` with a forged User-Agent and Referer | server.js:19, 170-171 | Add it to module 4, with its terms as an open item |
| S16 | minor | 1 | "As v7 does": v7's `int.TryParse` treats a full 11-digit code as words | TariffsController.cs:71 | Drop the phrase |
| S17 | minor | 2 | Delivery terms and package type appear both in the main fields and behind "more details" (D32). The CIF, FOB and currency defaults contradict "starts blank" | 2:27, 41, 54 | Move them; name the defaults as exceptions |
| S18 | minor | 5 | "Whichever is higher" is TARIC's MIN (a floor); the reader could map it to MAX | 5:31 | Add the example |
| S19 | minor | 7 | "Nothing is deleted" contradicts D44 | 7:47 | Except what expires by retention |
| S20 | minor | 8, 10 | `frame-ancestors` "per installation" leaves the administration frameable. Host colours arrive unchecked. CORS for host sites is useless with a same-origin iframe | 10:29; 8:19, 46 | `'none'` outside `/embed`; hex colours only; CORS for our own origin only |
| S21 | minor | 9 | Counts "by day": in UTC or local time? The time-zone header can be forged | 9:24; stats.js | The installation's day; counts labelled "declared" |
| S22 | minor | 5, log | Module 5 cites D4 for "indicative", but D4 says "estimate". "Additional code" is undefined. D26 replaces D7 without naming it. The dictionary's "Declaration currency" is stale after D30 | 5:25, 49; DECISIONS.md:9 | Correct them |

## Questions for the analyst

1. S1: the states list lives (a) in module 0, recommended, or (b) across modules 0 and 3.
2. S2: an imported account without bcrypt (a) gets a reset by mail, recommended, or (b) is created disabled.
3. S5: a test date applies (a) to administration previews only, recommended, or (b) everywhere, with a banner.
4. S6: a charge with no legal act found is (a) published and flagged, recommended, or (b) left out as a known defect.
5. S8: golden cases live (a) in the repository, per version, recommended, or (b) in the database, exported to CI.
6. S10: the result shows (a) BIF and the chosen currency, recommended, or (b) the chosen currency only.
7. S11: descriptions are translated (a) only when an authority supplies the texts, recommended, or (b) by machine, marked, with review.
8. S15: rwandatrade.rw goes (a) in module 4, recommended, or (b) in a module of its own.
9. The rate's date and source are (a) shown unless OBR objects, recommended, or (b) hidden until OBR agrees.

## What holds

- One contract with adapters, consistent across modules 3, 4 and 10 and with D23.
- The prototype's lessons are kept, with evidence: no preselected blanks, a zero rate is zero, the intermediate certificate, no unknown code sent, accent-blind search.
- The export details match ERN-1251: Import opens first, destination, FOB, three regimes, no preference field.
- Module 6's publication gate matches the concept note exactly.
- The template's bcryptjs verifies v7's `$2a$11` hashes as they are.
- Every page ends with an honest "Not seen".
