Step 3 · The second pass, checked

Draft · 04-11-2026Updated 04-11-2026

All 82 states of [the second pass](mockups/pass2/index.html) opened in the browser on 04-11-2026, at 1 280 and 375 pixels, in French and in English. 28 of them were walked by hand, with real clicks and keys; the other 54 were replayed by the page's own `play=1`. Nothing overflows sideways in any of the 328 openings. The check found one wrong sentence in the list of clicks (31 s for a wait of 30 s), now corrected, and one point to decide (the CSV, below). That check changed none of the page's code; a review of the whole branch then did, and all 82 rows were replayed again afterwards, at both widths and in both languages, with nothing overflowing (328 openings).

How it was checked

  • Page: the built site, npm run build && PORT=3100 npm start, the page at /docs/step3/mockups/pass2/page.html?country=…&lang=…, in the Claude desktop app's browser pane. No call to OBR, RRA or KRA: the page makes none.
  • Walked by hand means: the product box, the boxes, the buttons and the keys were used one by one, from the row's reach, in the pane's browser, at 1 280 pixels. Rwanda's "Units and quantities" row and Kenya's "out of date" row were walked in a second sitting, after a review. Where a hand-walked row differs from its reach, the row says so below. The walks used both languages: Burundi in French (and the 30 s wait in English), Rwanda and Kenya in English.
  • Replayed means: the page was opened with play=1, which plays the row's steps on the page's state with no waiting (a wait of 30 s shows its card at once; since the review, a row that ends on waiting goes on to its answer after 8 s). A replay proves what the page shows at the end of the steps, not that a hand can reach it. The 54 replayed rows are marked "Replayed" in the table.
  • Every row, replayed: each of the 82 rows was opened in a frame 1 280 and 375 pixels wide, in French and in English (328 openings). In each, document.documentElement.scrollWidth was not larger than the frame's innerWidth; and the page ended in the kind of state the row's expect names (a result card, a waiting button, a stale result, a visible failure message, a list, a chosen product, Export), apart from a probe that first confused the empty state with a hidden alert, and was corrected. At 375 pixels nothing was walked by hand.
  • The tool's limits: the pane's screenshots arrive one action late and cannot be saved to a file; the pictures below were taken with Chrome headless (1 280 wide directly; 375 wide in a frame of that width, cropped), from the replays, so they show the same page but are not pictures of my hand walks. Chrome headless cannot make a window narrower than 500 pixels, hence the frame.

1. The states

Country Group State How What was seen
Burundi Product Empty Replayed Questions empty, "Your estimate will show here"
Burundi Product Search by code Walked by hand List of lines under the box
Burundi Product Search by words Walked by hand List of lines under the box
Burundi Product No match Replayed "No product found" in the list
Burundi Product Product chosen Walked by hand Product chosen, its code in boxes under the line
Burundi Product Code boxes with the fifth box Replayed Product chosen, its code in boxes under the line
Burundi Product Product cleared Replayed Questions empty, "Your estimate will show here"
Burundi Shipment Import and Export cards Walked by hand Export chosen, the questions adapted, no result
Burundi Shipment #export opening Export Replayed Export chosen, the questions adapted, no result
Burundi Shipment The four amount rows, each with its currency Replayed "Specify" open
Burundi Shipment Units and quantities Replayed Product chosen, its code in boxes under the line
Burundi Shipment Cylinder capacity Replayed Product chosen, its code in boxes under the line
Burundi Shipment Optional boxes left empty Replayed Result card with its total and its notice
Burundi Estimate Waiting Walked by hand Button busy, card says the customs is calculating
Burundi Estimate Result with every line Walked by hand Result card with its total and its notice
Burundi Estimate Result of an export Replayed Result card with its total and its notice
Burundi Estimate Result for a car Replayed Result card with its total and its notice
Burundi Estimate Result in another currency Replayed Result card with its total and its notice
Burundi Estimate Result out of date Walked by hand Result kept, marked out of date, "Estimate again" offered
Burundi Estimate Result cleared Walked by hand Export chosen, the questions adapted, no result
Burundi Refusals and failures A field refused Walked by hand A card, or a message on the box, saying why: "fieldRefused"
Burundi Refusals and failures External freight at zero Replayed A card, or a message on the box, saying why: "refused"
Burundi Refusals and failures A currency with no rate Replayed A card, or a message on the box, saying why: "blocked"
Burundi Refusals and failures No rate at all Replayed A card, or a message on the box, saying why: "noRates"
Burundi Refusals and failures Customs refusing the shipment Replayed A card, or a message on the box, saying why: "refused"
Burundi Refusals and failures Customs not answering Walked by hand A card, or a message on the box, saying why: "noAnswer"
Burundi Refusals and failures Credentials refused (as the trader sees it) Replayed A card, or a message on the box, saying why: "noAnswer"
Burundi Keep it Print sheet Replayed; button clicked by hand on Burundi only; the sheet rendered by Chrome's print engine Result card with its total and its notice
Burundi Keep it CSV file Walked by hand Result card with its total and its notice
Burundi Refusals and failures An amount no recording covers Walked by hand A card, or a message on the box, saying why: "offRecord"
Burundi Refusals and failures Back to the recorded amounts Walked by hand Product chosen, recorded amounts back in the boxes
Rwanda Product Empty Replayed Questions empty, "Your estimate will show here"
Rwanda Product Search by code Replayed List of lines under the box
Rwanda Product Search by words Replayed List of lines under the box
Rwanda Product No match Walked by hand "No product found" in the list
Rwanda Product Product chosen Walked by hand Product chosen, its code in boxes under the line
Rwanda Product Code boxes with the fifth box Replayed Product chosen, its code in boxes under the line
Rwanda Product Product cleared Replayed Questions empty, "Your estimate will show here"
Rwanda Shipment Import and Export cards Replayed Export chosen, the questions adapted, no result
Rwanda Shipment #export opening Export Replayed Export chosen, the questions adapted, no result
Rwanda Shipment The four amount rows, each with its currency Replayed "Specify" open
Rwanda Shipment Units and quantities Walked by hand Product chosen, its code in boxes under the line
Rwanda Shipment Optional boxes left empty Replayed Result card with its total and its notice
Rwanda Estimate Waiting Replayed Button busy, card says the customs is calculating
Rwanda Estimate Result with every line Walked by hand Result card with its total and its notice
Rwanda Estimate Result of an export Replayed Result card with its total and its notice
Rwanda Estimate Result for cigarettes Replayed Result card with its total and its notice
Rwanda Estimate Result in another currency Replayed Result card with its total and its notice
Rwanda Estimate Result out of date Replayed Result kept, marked out of date, "Estimate again" offered
Rwanda Estimate Result cleared Replayed Export chosen, the questions adapted, no result
Rwanda Refusals and failures A field refused Replayed A card, or a message on the box, saying why: "fieldRefused"
Rwanda Refusals and failures A currency with no rate Replayed A card, or a message on the box, saying why: "blocked"
Rwanda Refusals and failures No rate at all Replayed A card, or a message on the box, saying why: "noRates"
Rwanda Refusals and failures Customs refusing the shipment Walked by hand A card, or a message on the box, saying why: "refused"
Rwanda Refusals and failures Customs not answering Replayed A card, or a message on the box, saying why: "noAnswer"
Rwanda Refusals and failures Credentials refused (as the trader sees it) Replayed A card, or a message on the box, saying why: "noAnswer"
Rwanda Keep it Print sheet Replayed; the sheet rendered by Chrome's print engine Result card with its total and its notice
Rwanda Keep it CSV file Walked by hand Result card with its total and its notice
Rwanda Refusals and failures An amount no recording covers Replayed A card, or a message on the box, saying why: "offRecord"
Rwanda Refusals and failures Back to the recorded amounts Replayed Product chosen, recorded amounts back in the boxes
Kenya Product Empty Replayed Questions empty, "Your estimate will show here"
Kenya Product Search by code Walked by hand List of lines under the box
Kenya Product Search by words Replayed List of lines under the box
Kenya Product No match Replayed "No product found" in the list
Kenya Product Search refused as too short Walked by hand Customs' message in the list
Kenya Product Product chosen Walked by hand Product chosen, its code in boxes under the line
Kenya Product Product cleared Replayed Questions empty, "Your estimate will show here"
Kenya Shipment Import and Export cards Walked by hand Export chosen, the questions adapted, no result
Kenya Shipment #export opening Export Replayed Export chosen, the questions adapted, no result
Kenya Rates and totals Rates before the estimate Walked by hand KRA's rates under the questions, before any estimate
Kenya Rates and totals The total alone Walked by hand Result card with its total and its notice
Kenya Rates and totals The total in shillings Replayed Result card with its total and its notice
Kenya Rates and totals Result for a car Replayed Result card with its total and its notice
Kenya Rates and totals Export with no levies Replayed Result card with its total and its notice
Kenya Estimate Waiting Replayed Button busy, card says the customs is calculating
Kenya Estimate Result out of date Walked by hand Result kept, marked out of date, "Estimate again" offered
Kenya Estimate Result cleared Replayed Export chosen, the questions adapted, no result
Kenya Refusals and failures A code KRA does not know Walked by hand A card, or a message on the box, saying why: "unknownCode"
Kenya Refusals and failures An amount no recording covers Replayed A card, or a message on the box, saying why: "offRecord"
Kenya Refusals and failures Back to the recorded amounts Replayed Product chosen, recorded amounts back in the boxes
Kenya Keep it Print sheet Replayed; the sheet rendered by Chrome's print engine Result card with its total and its notice
Kenya Keep it CSV file Walked by hand Result card with its total and its notice

What the hand walks added to the replays, in the order they were made:

  • Burundi, French, keyboard only. In the product box, 10 06 and 1006 gave the four rice lines (a code however it is written). ArrowDown three times and Enter chose the third line, and the focus went to the value box. The value, the quantity and the origin were typed with Tab; Tanzania was chosen in the native origin list by typing t a n. Tab then Enter on "Estimate" with the gross weight empty opened "Specify" and marked the weight as missing, with the recorded value beside it. The weight was typed and Enter in the box sent the estimate: 2 040 680,90 BIF, 9 charges, the figures of the first pass.
  • Enter during a pending search (Burundi, rice typed and Enter pressed at once): nothing was chosen; the list then appeared; a second Enter chose its first line. This is what lineForEnter says.
  • A box changed after an estimate (value 2 000 000 to 20 000 001): the result was dimmed and marked "Result out of date: a box changed", with "Estimate again"; the thin total line carried "Out of date". Estimating again with a value no recording covers gave the card "only the recorded amounts have an answer", naming the box that differs, and "Use these amounts" brought the recorded ones back; Estimate then gave the result again. Clicking Export cleared the result, turned "origin" into "destination" and set the regime to Exportation. A new product, as the other way to clear a result, was not walked.
  • The 30 s wait (Burundi, English, scenario estimate-timeout): the button showed "Estimating…" and the card "OBR is calculating your estimate…". A second click on the button 3 s later changed nothing, and sent nothing (no fetch was made). The card "OBR is not answering…" came 30.01 s after the first click, once. The recorded answer's own delay is 31 s; the page gives up at 30 s, as v7 does.
  • A field refused (Burundi): the message "Unknown commodity", OBR's own words, shows on the product box, and in the card "OBR refuses a box: correct it, then estimate again". Customs refusing (Rwanda): "RRA refuses this declaration" and "Country of origin cannot be RW", the hand-written failure.
  • Rwanda, Shipment (units): 24022090000 typed in full and chosen with ArrowDown and Enter; the "Specify" link clicked: the quantity boxes MIL, PKT and RTP showed, and the page did not scroll sideways. (2402 alone, with the first line chosen, gave a different product, the cigars 24021000000.)
  • Kenya, Estimate (out of date): after the estimate (707 901,00 KES), the customs value changed from 10 000 to 10 0001: the card read "Result out of date: a box changed", with "Estimate again", and the total stayed. (A first click on the box missed, because the page had scrolled to the result; the focus was on the result card.)
  • Kenya: 010 gave the list line "Code param is too short. Must be at least 4 digits."; 1006300000 gave one line; ArrowDown and Enter chose it, and the rates KRA publishes appeared under the questions before any estimate, "To check" on the specific duty. With 10 000 USD and 25 000 KGM, Estimate gave 707 901,00 KES with 58 451,00 KES in levies (declaration 2,5 % and railway 2 %), the customs value 1 298 900,00 KES and the rate 1 USD = 129.890000 KES, with its source and date, and no amount per charge. Export, then 9999999999, 1 000 USD, 1: "KRA does not know this code: no estimate is possible", and the message on the product box. (The row's reach has Import; the walk was in Export.)
  • Folding: with the focus on "Detail by charge", Enter folded it (aria-expanded false, the table hidden), Space opened it again.
  • Choosing in a native list by keyboard: typing the first letters (u, t a n) chooses the option and fires the change, which the page reads. ArrowDown on a closed list changed nothing in this tool: the key reached the list, and the page has no handler on it, so I take it for a limit of the tool's synthetic keys, but I did not check it in another browser.
  • The total line appearing live: at 1 280 × 900 the card stays in view on every page of the mockup, so the line stays hidden. At 1 280 × 420, with a result, the line "Total estimated 2 040 680,90 BIF · See the result" showed at the top; scrolling with the wheel until the card came into view hid it, scrolling back brought it back. With a box changed it read "Out of date" first. "See the result" scrolled to the card and put the focus on it.
  • After the whole-branch review: rice with D36's link and a treatment chosen (Burundi, English, by hand once, in the pane, 958 pixels wide). The product, value, quantity, origin and weight by keys and clicks; Estimate gave 2,040,680.90 BIF with the note "A cheaper treatment may exist". "See the treatment" clicked put the focus on the box; z o chose ZONE-EAC; the result was marked out of date and the note went. "Estimate again", clicked by a script, gave no figure: the card "only the boxes recorded on 26-10-2026 have an answer", "What differs from the recording: the treatment", and "Go back to the recording"; Specify open, "Recorded: None" on the treatment box. That link clicked put None back and the focus on Estimate; Enter gave 2,040,680.90 BIF again. China as the origin, chosen by letters, gave the same card naming the origin, "Recorded: Tanzania"; 1 000,5 as the quantity, typed by a script, named the quantity. The earlier walks above quote the card's former words, "amounts". No row of the table changes: "An amount no recording covers" was already walked by hand, so the counts stay 28 and 54.

2. Print and CSV

  • Print. Clicking "Print" on a Burundi result called window.print() once; the call was caught by a script, so the browser's print dialog was not opened and I did not see it. What was seen: the print rules in the style sheet (they hide the header, the band and the buttons, open the folded detail, and keep the chips' colours); and the sheet itself, which Chrome's print engine rendered to a PDF of the replayed result, for Burundi (French), Rwanda and Kenya (English): one letter-size page each, with the country and direction, the code in its boxes, the description, the total, the customs value, the treatment note, the lines (or KRA's rates), and the notice. The sheet for Rwanda: group-keepit-rw-print-sheet.png.
  • CSV. The "CSV file" button was clicked on a Burundi, a Rwanda and a Kenya result, and the file's text was read as the page makes it (the download itself was caught by script, so no file was saved and opened in a spreadsheet). Burundi (French): ; between fields, , for decimals, a header with product, direction, source, date; nine lines with base, rate, amount, "per declaration" and "legal act not found"; Total (BIF);2040680,9; the notice. Rwanda (English): the same with , and .; the description starts with - SEMI-MILLED…, so the file writes it with a leading apostrophe, which the code says is to stop a spreadsheet reading it as a formula. Kenya (English): total 707901, levies 58451, the two levy rates, the customs value, the exchange rate 129.890000, then the rates with their unit and "To check"; no amount per charge.
  • Since the review, the file also carries the customs value, the original of each translated charge with the translation mark, the out-of-date mark on a stale result, D36's note and the guarantee mark; the file was read again on a Burundi result out of date, still not opened in a spreadsheet.
  • To decide: in Burundi's file the line "Sale of declaration folders" has the amount 15180,883, where the page and the print show 15 180,88. The file carries customs' figure as it came D4, the page rounds it for display; whether the file should be rounded too is not settled by anything I read. Nothing was changed.

3. The design's decisions

For each decision of the design's table, where it shows, and where it does not. "Nowhere else" rests on a script that opened all 82 rows in both languages at 1 280 pixels and looked for the decision's text in the page; it is only as good as the words searched for (the text of the notice, the chip, the note).

Decision Where it shows Nowhere else Picture
D4 The notice under the result in all 23 states that have a result, in both languages None of the other 59 rows has it d4
D23, D52 One currency per amount in "Specify" (the selects beside External freight, Insurance, Internal freight); seen by hand in Burundi Not searched for by the script d23-d52
D33, D54 Stale: the three countries, in both languages, and by hand in Burundi; cleared by the direction, by hand in Burundi A new product clearing a result was not walked d33, d54
D35 The chip "Translated" and "See the original" where the page's language is not the customs': Burundi in English, Rwanda and Kenya in French (also on the charges' names in Burundi) Not in Burundi in French, nor in Rwanda or Kenya in English d35
D36 The note "A cheaper treatment may exist" on the 7 Burundi and 7 Rwanda import results with no treatment chosen Not on exports, not in Kenya d36
D45 The chip "Legal act not found" on two lines of Burundi's results (8 states) Not in Rwanda or Kenya d45
D46, D47 The total in the chosen currency with the local amount, the rate to six decimals, its date and source: Burundi and Rwanda "in another currency". Kenya's results in USD show 707,901.00 KES and the rate only: D56 wins over D46 for a provider answering totals only, and the total stays in KES Not on results in the local currency, nor as a total in USD in Kenya d46-d47
D53 The currency lists: Burundi's 19 counted by hand; Kenya's USD and KES seen; Rwanda's 56 not recounted in this check Not searched for d53
D56 Kenya's 7 result states: total, levies as they come, rates apart with "To check", both dates, no amount per charge Not in Burundi or Rwanda d56 at 1 280, at 375

One picture per group, at 1 280 pixels, in the folder of pictures: Product, Shipment, Estimate, Refusals and failures, Rates and totals, Keep it (the print sheet). At 375 pixels: Estimate, Product and Kenya's total above. The cards stack and the tables become lines of label, base and rate; the page does not scroll sideways.

4. Keyboard and contrast

  • Keyboard alone, by hand: the search (typing, ArrowDown, Enter, Escape was typed once with the list open and the list closed), the list, the boxes by Tab, a native list by letters, "Estimate" by Enter on the button and in a box, the fold by Enter and Space. Not done by keyboard: the "Specify" link itself (the estimate opened it each time), "Estimate again", the print and CSV buttons, and the language buttons. The focus was seen on the "Estimate" button (a dark ring) and on the box being typed in; no other focus ring was looked at.
  • The coral. The design says the coral is checked and darkened if it fails. It fails: white on #e08170, the sites' coral, is 2.78 to 1, under 4.5. The page uses #ad5645, white 5.01 to 1 (hover #96493a, 6.34); #e08170 stays on the "MOCKUP" mark and the chips' outline only. The two other changes the plan names: small blue text #28658f, 6.27 on white (#3b84b9 is 4.05), and muted text #526273 on the page's gray #f0f4f7, 5.66 (#637381 is 4.42). Computed from the WCAG formula, for these pairs only: the whole page was not audited.

What the check did not cover

  • By hand, only at 1 280 pixels, and only 28 of the 82 rows, at least one of each group in each country: Burundi (Product: search by code and by words, product chosen; Shipment: Import and Export cards; Estimate: waiting, result, out of date, cleared; Refusals and failures: a field refused, the 30 s wait, an amount no recording covers, back to the recorded amounts; Keep it: print and CSV), Rwanda (Product: no match, product chosen; Shipment: units, MIL, PKT and RTP; Estimate: result; Refusals and failures: customs refusing; Keep it: CSV, and the print sheet through Chrome's print engine only) and Kenya (Product: too short, search by code, product chosen; Shipment: Import and Export cards; Rates and totals: rates before, the total alone; Estimate: out of date; Refusals and failures: a code KRA does not know; Keep it: CSV, and the print sheet through Chrome's print engine only). The other 54 were replayed and measured, not walked. At 375 pixels nothing was walked: the measure and the pictures come from the replays.
  • One browser, Chrome's engine in the Claude app's pane, and Chrome headless for the pictures and the print sheets. No Safari, no Firefox, no phone, no screen reader.
  • The print dialog and a downloaded file opened in a spreadsheet: not done.
  • The live sites: not called, by design; the figures are the recordings'. Equality of each figure with its recording is the tests' (tests/pass2-*.test.mjs), not this check's.
  • Languages: Rwanda's Swahili and Kinyarwanda and Burundi's Kirundi are not in this pass, so they were not checked. French and English only.
  • Administration is not in this pass: it gets a third pass before step 3 is signed off D59.
  • Agreement: melux has not agreed the second pass, and the two reviewers have not seen it.

Back to the mockups, the second pass's design, the first pass's check.

After D60

The form was changed after this check (D60, same day): the gross weight, the cylinder capacity and the currency moved, and "Specify" became cards. All 82 rows were replayed by the tests; six pages were seen in the browser (rice, a car and an export at 1 280 pixels, a car at 375, Kenya, cigarettes with the required boxes left empty). The 28 walks by hand above, and the pictures, predate it.

After D61

The "Customs declaration" card was changed after this check (D61, 05-11-2026): the provenance box left, and "Exported from the country of origin" and the country of export came in, as on v7's page. All 82 rows were replayed by the tests; the card was seen in the browser with both answers on Burundi, in French at 1 280 and 375 pixels and in English for the list's values. The pictures in pass2/check/ predate this change.

Drafted with Claude for melux · UNCTAD · working material, hidden from search enginesUpdated · 04-11-2026