Wrong currency on UK pages
On staging, a UK shopper opened the sofa right after a US shopper and saw 1,499.00 in dollars.
Impact: Shoppers in Canada and the UK see another region's price.
All problemsData & Systems
Review an AI-written pull request that caches product lookups and prices and fix its blocking problems.
Your mission · AI code review
Halyard Home's Black Friday sale starts at midnight, and product pages are slow at peak. Pull request 318 adds a cache that makes them ten times faster. On staging, though, a UK page showed a dollar price, and a marked-down sofa kept its old price. Checkout charges what the page showed.
On staging, a UK shopper opened the sofa right after a US shopper and saw 1,499.00 in dollars.
Impact: Shoppers in Canada and the UK see another region's price.
Merchandising cut the sofa to 999.00 in the UK, and the page kept showing 1,199.00 for minutes.
Impact: Checkout charges a price the shopper did not agree to.
The cache keeps every entry it ever stored until the worker restarts.
Impact: A day of traffic grows the worker past its memory limit.
Edit the components marked “Your work”. The other components show where your changes fit.
| Field | Type | Notes |
|---|---|---|
sku | string | Unique, such as LAMP-01. |
name | string | The same in every region. |
prices | {us, ca, uk} | Whole cents (pence in the UK), above 0. |
| Field | Type | Notes |
|---|---|---|
sku, name, region | string | What the shopper asked for. |
amount | int | The region's price in whole cents. |
currency | string | USD, CAD or GBP, from the region. |
| Field | Type | Notes |
|---|---|---|
key | SKU, or SKU and region | Products by SKU; prices by SKU and region. |
stored_at | int | Clock seconds when it was read from the store. |
value | dict | What the store returned, copied on the way out. |
samples/request-sofa-markdown.json A US and a UK shopper open the sofa, merchandising marks the UK price down, and both look again, then once more after 300 seconds. Ready to pass to handle.{
"op": "run",
"products": [
{
"sku": "LAMP-01",
"name": "Arc floor lamp",
"prices": {
"us": 12900,
"ca": 17500,
"uk": 9900
}
},
{
"sku": "SOFA-02",
"name": "Linen three-seat sofa",
"prices": {
"us": 149900,
"ca": 199900,
"uk": 119900
}
},
{
"sku": "RUG-07",
"name": "Wool flatweave rug",
"prices": {
"us": 34900,
"ca": 45900,
"uk": 27900
}
}
],
"steps": [
{
"op": "view",
"sku": "SOFA-02",
"region": "us"
},
{
"op": "view",
"sku": "SOFA-02",
"region": "uk"
},
{
"op": "set_price",
"sku": "SOFA-02",
"region": "uk",
"amount": 99900
},
{
"op": "view",
"sku": "SOFA-02",
"region": "uk"
},
{
"op": "view",
"sku": "SOFA-02",
"region": "us"
},
{
"op": "wait",
"seconds": 300
},
{
"op": "view",
"sku": "SOFA-02",
"region": "uk"
}
]
}samples/results-sofa-markdown-expected.json The results the contract requires for that request.{
"results": [
{
"sku": "SOFA-02",
"name": "Linen three-seat sofa",
"region": "us",
"amount": 149900,
"currency": "USD"
},
{
"sku": "SOFA-02",
"name": "Linen three-seat sofa",
"region": "uk",
"amount": 119900,
"currency": "GBP"
},
{
"sku": "SOFA-02",
"region": "uk",
"amount": 99900
},
{
"sku": "SOFA-02",
"name": "Linen three-seat sofa",
"region": "uk",
"amount": 99900,
"currency": "GBP"
},
{
"sku": "SOFA-02",
"name": "Linen three-seat sofa",
"region": "us",
"amount": 149900,
"currency": "USD"
},
{
"now": 300
},
{
"sku": "SOFA-02",
"name": "Linen three-seat sofa",
"region": "uk",
"amount": 99900,
"currency": "GBP"
}
]
}samples/reads-sofa-markdown.json The same steps as a reads request, with the store reads the contract allows: two product reads and four price reads.{
"request": {
"op": "reads",
"products": [
{
"sku": "LAMP-01",
"name": "Arc floor lamp",
"prices": {
"us": 12900,
"ca": 17500,
"uk": 9900
}
},
{
"sku": "SOFA-02",
"name": "Linen three-seat sofa",
"prices": {
"us": 149900,
"ca": 199900,
"uk": 119900
}
},
{
"sku": "RUG-07",
"name": "Wool flatweave rug",
"prices": {
"us": 34900,
"ca": 45900,
"uk": 27900
}
}
],
"steps": [
{
"op": "view",
"sku": "SOFA-02",
"region": "us"
},
{
"op": "view",
"sku": "SOFA-02",
"region": "uk"
},
{
"op": "set_price",
"sku": "SOFA-02",
"region": "uk",
"amount": 99900
},
{
"op": "view",
"sku": "SOFA-02",
"region": "uk"
},
{
"op": "view",
"sku": "SOFA-02",
"region": "us"
},
{
"op": "wait",
"seconds": 300
},
{
"op": "view",
"sku": "SOFA-02",
"region": "uk"
}
]
},
"expected": {
"reads": {
"product": 2,
"price": 4
}
}
}logs/catalog-staging-2026-11-25.log What pull request 318 did on staging: a UK page in dollars from a cache hit, a markdown hidden for four minutes, and the worker's memory at the end of the day.{"ts": "2026-11-25T16:02:11.204Z", "worker": "catalog-7", "event": "page", "sku": "SOFA-02", "region": "us", "amount": 149900, "currency": "USD", "cache": "miss"}
{"ts": "2026-11-25T16:02:13.871Z", "worker": "catalog-7", "event": "page", "sku": "SOFA-02", "region": "uk", "amount": 149900, "currency": "USD", "cache": "hit"}
{"ts": "2026-11-25T16:04:40.019Z", "worker": "catalog-7", "event": "price_change", "sku": "LAMP-01", "region": "uk", "amount": 7900, "by": "merch-ana"}
{"ts": "2026-11-25T16:05:02.553Z", "worker": "catalog-7", "event": "page", "sku": "LAMP-01", "region": "uk", "amount": 9900, "currency": "GBP", "cache": "hit"}
{"ts": "2026-11-25T16:09:12.300Z", "worker": "catalog-7", "event": "page", "sku": "LAMP-01", "region": "uk", "amount": 7900, "currency": "GBP", "cache": "miss"}
{"ts": "2026-11-25T23:58:00.000Z", "worker": "catalog-7", "event": "memory", "rss_mb": 1912, "cache_entries": 151870}TASK-201 Read pull request 318 against the catalog contract Reported by Nadia (Storefront lead)
Expected The UK views show GBP, and the view after the markdown shows 99900.
Actual The first UK view shows 149900 USD, and the view after the markdown still shows 149900 USD.
TASK-202 Rank the findings, each with steps that prove it Reported by Nadia (Storefront lead)
Expected Every blocking finding has steps that show it, and the things that look wrong but are fine are listed with a reason.
Actual NOTES.md is empty. The pull request description says a five-minute delay is fast enough.
TASK-203 Fix the blocking findings and keep the cache Reported by Jonah (Storefront)
Expected Every public check passes and samples/reads-sofa-markdown.json still reads the store six times in all.
Actual 7 of the 22 public checks fail, including "Each region sees its own price" and "A price change shows on the next view".
Scores use evidence from your session. A short or incomplete session may not provide enough evidence for every skill. See a sample scorecard
A teammate used an assistant to add a cache to the product catalog, and wants to merge before the sale goes live at midnight. Review pull request 318. Rank your findings in NOTES.md, tell me which ones block the merge and why, and fix those. Use the AI assistant however you like, but the review is yours. Before you change any code, tell me your most severe finding and the steps that show it.